button Pull-up resistor / reset problem
Chicago Mike
Posts: 88
I'm not sure if this belongs in the SX forum, or not.... This is an electrical problem I think.
I'm using a typical switch circuit with a 10k pull-up resistor attached, through a Hex Schmitt Invertor to a pin on an SX (I"m doing this to electrically debounce). on a bread board, this seems to have worked very well. No problems. I recent transposed the EXACT circuit onto a PCB, and I'm having some problems. When I close the switch it seems to reset the SX chip every 10 or 15 activations of the swtich. I've checked the PCB layout, and actually at one point even took the circuit, layed it out only with the switch portion of the circuit, and still see the problem sometimes. If I take the swtich OFF of the circuit board, and run the contacts off the board to a swtich, say a foot or so away, the probem seems to go down to 1 in 50 times.... Interesting. I put a 1k resistor inline with the switch and this seem to help, but not eliminate the problem. I've attached the schematic of the circuit I'm using. I'm at wits end and have been trying to trace this for a week now. There is never a dead short, so thats not doing it. All I can think is that I'm somehow sinking too much current on a pin maybe? Decoupling problems? I don't think there is creepage and clearance isses on the PCB, as when I re-laid out the board the exact same problem exists, and the switch inputs are the ONLY thing that cause this reset.
Attached is the drawing of the circuit. Any tips would be great.
I'm using a typical switch circuit with a 10k pull-up resistor attached, through a Hex Schmitt Invertor to a pin on an SX (I"m doing this to electrically debounce). on a bread board, this seems to have worked very well. No problems. I recent transposed the EXACT circuit onto a PCB, and I'm having some problems. When I close the switch it seems to reset the SX chip every 10 or 15 activations of the swtich. I've checked the PCB layout, and actually at one point even took the circuit, layed it out only with the switch portion of the circuit, and still see the problem sometimes. If I take the swtich OFF of the circuit board, and run the contacts off the board to a swtich, say a foot or so away, the probem seems to go down to 1 in 50 times.... Interesting. I put a 1k resistor inline with the switch and this seem to help, but not eliminate the problem. I've attached the schematic of the circuit I'm using. I'm at wits end and have been trying to trace this for a week now. There is never a dead short, so thats not doing it. All I can think is that I'm somehow sinking too much current on a pin maybe? Decoupling problems? I don't think there is creepage and clearance isses on the PCB, as when I re-laid out the board the exact same problem exists, and the switch inputs are the ONLY thing that cause this reset.
Attached is the drawing of the circuit. Any tips would be great.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Those who criticize our generation forget who raised it.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
As for decoupling, I've always been a little confused on when and how. I know its good practice, and I always do it on my rail voltage after the regulator (usually using a 1000uf), but as for decoupling the ICs... What is the method to calculate the correct cap value to put in parallel to the Vdd and Vss near to the IC? I've heard of 100uf 10uf, 10nf, 100nf.. These are huge differences, and I've never found a 'common excepted practice', or formula to follow. Placement is crucial too right? Decoupling should occur as near as possible to the IC pins? Or is this really not absolutely necessary? Any advice would be great!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net