Open Drain Ports
Sal Ammoniac
Posts: 213
I'm starting a new project and will be using a Propeller chip. I don't have much experience with the Propeller, only what I've read here in the forum and in the datasheet.
Do the Propeller I/O pins support an open-drain configuration? I didn't see any mention of it in the datasheet and will need this capability to implement interfaces to things like multi-master I2C buses.
Do the Propeller I/O pins support an open-drain configuration? I didn't see any mention of it in the datasheet and will need this capability to implement interfaces to things like multi-master I2C buses.
Comments
It is not a configuration, but since you have a direction and data register for the pins, instead of togging the data to 1 or 0, you can toggle input or output.
If you set the data register for that pin to 0, then set the direction to output it will pull low. If you set direction to input, it will be HI-Z.
Same thing if you want to only source, set data to 1, set direction to output or input.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*