??? 10/07/09 01:40 Read: times |
#169482 - No surprise... Responding to: ???'s previous message |
Chico said:
I discovered that putting a pullup in the output the ULN starts to work normally... That's no surprise at all, because the AT89S52's outputs cannot source much current. No more than 300µA at an output voltage of 2V, at "worst case". If you connect an input of ULN2803 to an output of AT89S52, then you must forward bias two base emitter junctions. Makes 1,4V. In parallel to these pn-junctions about 10kOhm is present, which results in a current of 1,4V / 10kOhm = 140µA each. This current must also flow through a 27kOhm resistor, which gives a further voltage drop of about 3.8V. So, each output of AT89S52 would have to deliver 280µA at an output voltage of about 5V, not even mentioning the needed base currents. This is way too much load for a standard 8051's output. Your added pull-up then turned the situation and the ULN2803 started to work properly. Chico said:
Well... OK... BUT... why was working with the other microcontroller (the now burnt one) ??? Manufacturing tolerances! The old one could, the new one cannot. Kai |