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.
Open Drain Configuration
Started by Igor Kondrasovas, Jun 04 2012 07:20 PM
2 replies to this topic
#2
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
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