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

sleep microseconds

delay

  • Please log in to reply
1 reply to this topic

#1 ScapeGoat

ScapeGoat

    New Member

  • Members
  • Pip
  • 1 posts

Posted 21 June 2014 - 05:29 PM

Could not seem to find a delay of sleep method in microsecond range.  Have the AM2302 sensor from Adafruit and requires pulling line low/high in microsecond range sometimes.  Is this possible with board?

 

using netduino plus 2, c# and new to everything

 

Thanks



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 21 June 2014 - 08:02 PM

Hi ScapeGoat,

There's no microsecond sleep function in NETMF, but you could approximate the # of microseconds by creating a loop that "does nothing".

One note of caution: the GC could kick in at any time, so exact microsecond sleep isn't something that we can guarantee from managed code.

We've thought about creating an "output compare" feature for NETMF that would output a sequence of low/high states in native code. Perhaps that's something that could help in this scenario (recognizing of course that I'm talking about a feature which doesn't exist right now).

Chris




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.