Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
qizh_1205111
Level 1
Level 1

Hi

i want to configure a pin as both input and output, such emulate SDA of i2c master,  what driver mode should i use to make it work ?

i tried strong driver/ pull up/down, found output works fine but input can't read right value in strong driver mode,

and in pull up/down, output can't driver right voltage.

appreciate your help and sharing your experience, thanks.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Use "Open Drain drives low" and an external pull-up resistor (5k), set initial drive state to "high". This is what I2C uses.

Bob

View solution in original post

0 Likes
3 Replies