- Joined
- Jul 4, 2009
- Messages
- 16,532
- Helped
- 5,157
- Reputation
- 10,347
- Reaction score
- 5,215
- Trophy points
- 1,393
- Location
- Aberdyfi, West Wales, UK
- Activity points
- 139,786
More like open drain in that configuration but driving the output latch high makes the TRIS (tri-state) bit behave like an open source pull-up.So basically it rather acts as an open source output.
More generally with PICs, if the output s driven low and the TRIS register (has one bit per port bit) is used instead of the PORT register it can be used in open-drain fashion to interface to devices that can only tolerate low voltages. A PIC on 5V can drive a 3.3V device for example if the pins are externally pulled up to the 3.3V supply.
Brian.