Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Timer Resolution


  • Please log in to reply
1 reply to this topic

#1 xykudyax

xykudyax

    New Member

  • Members
  • Pip
  • 3 posts

Posted 20 March 2013 - 01:33 PM

Hi to the community, this is my fist topic and post ever.

I would like to know how far can I go in terms of timer resolution and

how much time does is take to set a pin to high or low value.

I'm trying to implement a MFM (floppy disk emulator) and I have to

deal with 400ns transitions is it possible with netduino plus 2? Should I use other kind of hardware?

 

Thank you very much for you time,

 

Francisco Dias  :)



#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 20 March 2013 - 05:16 PM

Netduino Plus 2 is capable of doing that, but not in managed (C#) code - you'd have to write so called 'native driver' in C/C++, include it in the firmware and expose its functionality via managed wrapper class. If you already have working C/C++ code, for example a library, then it is relatively easy to add it to the firmware, otherwise I would recommend you to start coding the native driver using any of available ARM toolchains that support Cortex-M4 (there are dozen of them, even free GCC-based ones), it will make the development process and debugging much easier. While it is possible to flash STM32 micros using DFU over USB, for debugging you'd probably need to solder in the 0.05" pitch header for mini-JTAG connector and use hardware debugger/programmer, such as ST-LINK/V2 or similar.
 
Alternatively, you can use STM32F4-Discovery board, which has the same microcontroller, the only change required is to adjust PLL parameter in the firmware source to account for different crystal frequency (8 Mhz vs. 25 MHz on Netduino Plus 2); or replace the crystal. It comes with integrated ST-LINK programmer.

 

There are also STM32F4-based boards made by GHI Electronics, Mountaineer Group, Olimex and maybe others. And plenty of completely different ARM boards  :P

 

Welcome to the community!


  • JerseyTechGuy likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.