Electronics > Projects, Designs, and Technical Stuff
reason for not being able to drive another input low
(1/2) > >>
rookie:
I have a circuit that detects a pulse and counts it(henceforth "counter"). I treat it like a black box at the moment The input to this circuit is pulled up with a resistor.
I am testing this with two inputs:
1 - one where a microcontroller GPIO is being pulled up briefly and then pulled back down at some interval
2 - another where a PWM signal is being generated by another microcontroller

When I connect the PWM signal(2) to the counter circuit, it is able to detect and count pulses correctly. The signal at the input of the counter also looks like the PWM signal.
But when I connect the GPIO signal(1), the signal on the input of the counter does not look like the original signal when unconnected. There is a DC offset to the signal, and hence the counter doesn't work correctly. It seems that it is not able to bypass the pullup on the input of the counter.

What could be happening here? Is it worth while to remove the pull up as there would always be some signal connect to the counter in a practical scenario? Why is the PWM signal able to drive the signal low but the other GPIO input not able to do so(they are separate microcontrollers)? What electrical characteristic of the pin should I look at when trying to figure this out.
ataradov:
What is the value of your pull-up resistor? Generally you need to look at the maximum output current to know what kind of pull-up resistor can be pulled low by the output.
rookie:
I think the GPIO is pulled up with a 25k pullup and is connected to the counter circuit which has a 10k input pullup
ataradov:
I don't understand your configuration. Any reasonable MCU output should be able to overpower the 10K pull-up. Do you actually drive the output low, or just pull-down the input?
fsr:
Generally, pull-ups are needed for inputs, not for outputs, unless they're open collector outputs, or something like that. Is that the case?
Anyways, it shouldn't make any difference, as when the output is "open" the pull-ups should pull the output up, and when the output is low, it should drive both the pull-ups low, unless that's over the output current capabilities, which would be rare.
Better if you put a schematic of the whole thing.
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod