??? 05/21/07 07:23 Read: times |
#139569 - Sinking and sourcing Responding to: ???'s previous message |
Chinmay Nanda said:
I am not sure as to what you mean by "Use the micro pins to sink the 6N137 diode current Chinmay Nanda said:
right now i am grounding the cathode So you need a current source to drive it; ie, you need the current to flow out from the pin, through the diode, to ground. You need to reverse the diode, so that the anode connects to Vcc and the current is switched to ground through the 8051's pin; ie, the 8051 pin "sinks" the current. Don't forget the limiting resistor, of course... |