pull-up resistor mode?
BebopALot
Posts: 79
My SX is producing a 40KHz sqaure qave signal only when I drop a 1k resistor at the output pin to ground and measure the voltage accross it.
Here is my question: would using the mode pull-up setting eliminate the need for an external pullup like this?
Here is my question: would using the mode pull-up setting eliminate the need for an external pullup like this?
Comments
if you could post your program code, and a drawing of your hookup, this would dramatically increase your chance getting valuable hints from other forum members.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
BBAL
There is clearly a hole in my knowledge here.
Why is that true, and do you need less or more resistance in the pulldown for faster speeds?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wonder if this wire is hot...
When an I/O pin is configured, it has a high impedance, or high input resistance. Nevertheless, the input also acts as a small capacitor. When you connect the input pin to Vdd, this capacitor is charged. When you then connect the input to Vss, the capacitor is discharged.
When you apply power to the SX, the input capacitor is charged through the pull-up resistor. When you then press the pushbutton, the capacitor is discharged through the closed pushbutton. When you release the pushbutton, the capacitor is charged again through the pull-up resistor. The time-constant for charging is experessed by R * C, where R is the value of the pull-up resistor, and C the input capacity. As you can see, when you increase R, the time-constant also increases, i.e. it take more time to charge the capacitor when R is increased (the same is true for C, but you can't change its value, unless you would attach an additional parallel capacitor).
The faster the signal speeds are that control the input, the more is it important that the input capacitor is charged and discharged fast enough in order to maintain steep signal edges. This is why you should select lower values for the pull-up resistor in such cases 10 kOhm, down to 1 kOhm are values that are fine in most cases.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I wonder if this wire is hot...