Hi,
I have seen a mismatch in SPNU514A document (RM46x 16/32-Bit RISC Flash Microcontroller Technical Reference Manual) version September 2013.
It is about the I2C open drain function when used as output pin.
You can see 2 extracts from this document bellow :
Extract 1 :
"30.5.6 Open Drain Function
The I2C pins can be programmed to include an open drain function when they are configured as output
pins. This is done by writing to the corresponding bit of the I2CPDR register.
When the open drain function is enabled, a low value (0) written to the data output register forces the pin to a low output voltage (VOL or lower) whereas a high value (1) written to the data output register forces the pin to a high impedence state."
Extract 2 :
"I2CPDR Register
- 0 The open drain function is disabled (the output voltage is VOL or lower if SDAOUT = 0 and highimpedance
if SDAOUT = 1)
- 1 The open drain function is enabled (output voltage is VOL or lower if SDAOUT = 0; VOH or higher if
SDAOUT = 1)"
I think "enable" and "disable" are inverted in extract 2. I have tested on the MCU and it seems that in I2CPDR Register a value 0 enable the open drain and a value 1 disable open drain.
Could you help me to clarify the problem.
Thank,
Thomas