I am very interested in electronics and I have build few basic circuits. I have attached a circuit that I am trying to understand and I need some help. The inputs to the NOR gate PEL1.PWM and PEL1.DIR comes from the micrcontroller AT90CAN128 and they have a pull down resistor to GND. Just curious to know what will happen if I output a 1 or 0 on the GPIO pins of the micro and why do we need the pull down resistor at that place.
Thanks a lot
I am very interested in electronics and I have build few basic circuits. I have attached a circuit that I am trying to understand and I need some help. The inputs to the NOR gate PEL1.PWM and PEL1.DIR comes from the micrcontroller AT90CAN128 and they have a pull down resistor to GND. Just curious to know what will happen if I output a 1 or 0 on the GPIO pins of the micro and why do we need the pull down resistor at that place.
Thanks a lot
Hi romeshkumar,
Welcome to the best electronic forums on the net!
The pull down insures the pin, an input, stays at a defined level of logic 0. If you leave the pin floating, it is possible the voltage at the input will drift, causing undefined results. The pulldown resistor is of a large enough value that the microcontroller will have no problem overcoming it and setting the input to a logic 1.
No, the output from the micro should have an impedance which is much smaller than 100k ohms, and forms a voltage divider with your 100k resistor, so you should get close to Vdd. on those input pins.
All the resistors are doing is setting the input impedance of the gates - in this case to 100K - without the resistors they would be VERY, VERY high impedance.
The 100K resistors are far too high to have any effect on the output from the processor, but low enough to stop the inputs drifting high on their own.
If your output pin is open collector, then it isn't capable of outputting a logic high, and you must provide a pullup in order to do that. Use a 'normal' IO pin for these and save yourself the headache.