Waiting for Reply. I have shared my circuit with you. Please suggest what I am doing wrong in this circuit.
As per your remarks:
(1) 330Ohm as pull-up on an output generates a static current of 10mA in case the output is driven to LOW.
Remarks:
But LPC2138 has 4 mA Sink current. So may be this 330 ohm value is wrong here?
We have to use the resistance which can limit current upto 4 mA.
So if we use 3.3K ohm resistor. That this static current will be 1 mA. This may be ok for safety of pin?
Because with 10 k ohm resistance, this current will be limit to 33 uA.
(2) The connection on P1.31 could be a problem, because you pull the 3.3V output up to a 5V domain. I have to think about any side effects.
Remarks: 5V pull up may be reason for fail of this pin. Fail means permanently 0V. So we have to drive the ULN2003 Current driver IC with this pin. SO we can directly connect this pin with ULN2003 without pull up.
(3) P0.3 & P1.26 (input) has same case. May be this is due to 10 mA static current. As it is Pull up with 330 ohm resistor. I have not observed any 5V on these pins. But these pins goes to permanently low voltage stage and doesn't operate. So if we pull up with 3.3 K ohm then static current will be 1 mA. safe limit for mCU.
Please suggest.