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.

Lain

Member Since 15 Feb 2011
Offline Last Active Aug 13 2011 12:14 AM
-----

Topics I've Started

Measuring Time in microseconds?

03 March 2011 - 07:32 PM

Hi, I am new to netduino platform with Visual Studio 2010. I will like to know if there is a function for measuring time in microsecond. I am using the netduino to receive a square signal between 1 to 120 Hz through one of the analog pins. Then I make an interrupt with the rising/lower edge of the square signal. During the interruption I want to measure a starting time and then the stopping time so that I can measure the frequency of my signal. Note 1: Perhaps the problem can be solved with millisecond, but for more precise application, I would like to know if it is possible with this platform. This is because in other application I would like to do more processing than just getting the frequency of the signal (Ignition time for a motor for example). Note 2: I have tried using DateTime for trying to measure but it is not precise. Note 3: I haven’t found in visual studio the stopwatch function. That could be another possibility according to some forums.

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.