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

Open Drain Configuration


  • Please log in to reply
2 replies to this topic

#1 Igor Kondrasovas

Igor Kondrasovas

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • LocationPorto, Portugal

Posted 04 June 2012 - 07:20 PM

Hi, Is there any way to set my Netduino's output port to work as open drain configuration? I heard that Atmel calls it "Multi Drive" configuration, right? Thank you, Igor.

Igor Kondrasovas

www.inovativatec.com


#2 Paul Newton

Paul Newton

    Advanced Member

  • Members
  • PipPipPip
  • 724 posts
  • LocationBerkshire, UK

Posted 04 June 2012 - 09:01 PM

Hi Igor, I think you are looking for the "TristatePort" class. I don't have any reference to hand, but I am 99% certain thats the correct class name. Paul

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 04 June 2012 - 09:14 PM

As Paul recommended, Tristate should work well for most circumstances. Set the initial state to False and the ResistorMode to "disabled", and you can emulate protocols like I2C. When you switch Active to true, TristatePort will drive the line low. When you switch Active to false, TristatePort will switch to input mode (where you can read the current high/low state). 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.