Content originally posted in LPCWare by lxttian on Sun Oct 17 19:50:51 MST 2010
Quote: Zero
Did you try to change some of this values? I'm not sure, what you are trying to do.
Don't know the value of VCC1. If I should guess, I would blame your circuit:
If VCC1=3.3V and the LED costs about 1.2V (just guessing, don't know the exact value of TLP521) you are trying to switch your optocoupler with 2V/1000 Ohm = 2mA. That's not much. Don't know how you calculated this resistor, but my first idea would be to use a 680 Ohm resistor to increase the forward current.
Another optocoupler (with lower min. forward current like 6N138) could help also.
Of course LPC11xx can't draw currents like 10mA (to ensure a proper operation of LED / optocoupler), so it would be a good idea to use an additional transistor (or FET) to switch the LED (google for 'optocoupler input').
High-current output driver (20 mA) on one pin.
That is from the first page in LPC1114 datasheet, is that mean it can draw the same amount current ?