I²C OUTPUT_OPEN_DRAIN ./. OPEN_DRAIN

User avatar
rudi ;-)
Posts: 1259
Joined: Fri Nov 13, 2015 3:25 pm

I²C OUTPUT_OPEN_DRAIN ./. OPEN_DRAIN

Postby rudi ;-) » Wed Feb 21, 2018 10:51 am

hi
we talk just in time the I²C glitch problem in arduino esp32 core.
not tested just in time, but makes sense:

at we have:

Code: Select all

gpio_set_direction(scl_io, GPIO_MODE_OUTPUT_OD);
gpio_set_direction(sda_io, GPIO_MODE_OUTPUT_OD);
to change it to OPEN_DRAIN only?

Code: Select all

gpio_set_direction(scl_io, GPIO_MODE_DEF_OD);
gpio_set_direction(sda_io, GPIO_MODE_DEF_OD);

i can test earliest this on weekend with OSC ( RIGOL )

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: Baidu [Spider], filipESP and 11 guests