- Joined
- Jan 22, 2008
- Messages
- 53,215
- Helped
- 14,794
- Reputation
- 29,875
- Reaction score
- 14,317
- Trophy points
- 1,393
- Location
- Bochum, Germany
- Activity points
- 301,502
TX output high should give RX input high and vice versa. Check in your circuit.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
@Easyrider
No, I was not kidding. You are right. It works. I had made a mistake. I had connected opto cathode to Rx line instead of Tx line.
But what is the use of using opto on UART ?
See datasheet of opto. If Opto input diode needs 1.6V and 30mA then (5V - 1.6V) / 30 mA = 113E. Power dessipated in resistor = P = VI = IIR = (5 - 1.6) * 30 mA = 102 mW. You can use 1/4W.
what is the resistor connected to pin number 5 of opto and pin number 1 of micro ?