hithesh123
Full Member level 6
- Joined
- Nov 21, 2009
- Messages
- 324
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- lax
- Activity points
- 3,548
Some serial protocols need reading and writing on same data lines, like PS2 protocol.
Let's say device1 is sending data to device2.
But device2 can pull the line low and make a request.
In this case, how does device1(a microcontroller) read the data lines.
Let's say data is being written by Microcontroller on Port P0.1, and device 2 pulls it low.
To read the LOW, I will have to use another port on the micro as input and this port will be connected to P0.1 ?
Let's say device1 is sending data to device2.
But device2 can pull the line low and make a request.
In this case, how does device1(a microcontroller) read the data lines.
Let's say data is being written by Microcontroller on Port P0.1, and device 2 pulls it low.
To read the LOW, I will have to use another port on the micro as input and this port will be connected to P0.1 ?