Hard starting Sx project
David B
Posts: 592
I have a problem with a Scenix power-up reset.
I've made maybe a dozen or so Scenix project boards, and have never had the problem I'm seeing with my current board. The board has an Sx28, 20 mHz crystal and header for SX-Key programmer. It programs fine and runs fine, but it doesn't start well at all. When I power it up, it only starts by itself maybe one time in 20. When I send a new program to it via the SX-Key, it programs, then runs the new code fine. But if I cycle power, it usually won't start. It acts the same whether or not the SX-Key programmer is plugged in to it. When it starts, it works perfectly.
At first I had tied MCLR high. After the board showed its failure to start reliably, I used the circuit in the Parallax application note AN18Reset.pdf, where a cap holds voltage low on the MCLR pin for a while, and a resistor gradually pulls the voltage high after power-up. No difference - the board still only starts about one time in 20. I've changed SX28 chips and seen the same result. Board power is 5.1 V, and seems solid.
If I reset the board and it doesn't start, I can tap a grounded wire to MCLR (which has a resistor-current-limiting circuit as in AN18Reset.pdf), and the program starts immediately, every time.
Is this normal? Is there anything more I can do? Do I need to add some TTL pulse generator reset circuitry to reset my Sx?
David
I've made maybe a dozen or so Scenix project boards, and have never had the problem I'm seeing with my current board. The board has an Sx28, 20 mHz crystal and header for SX-Key programmer. It programs fine and runs fine, but it doesn't start well at all. When I power it up, it only starts by itself maybe one time in 20. When I send a new program to it via the SX-Key, it programs, then runs the new code fine. But if I cycle power, it usually won't start. It acts the same whether or not the SX-Key programmer is plugged in to it. When it starts, it works perfectly.
At first I had tied MCLR high. After the board showed its failure to start reliably, I used the circuit in the Parallax application note AN18Reset.pdf, where a cap holds voltage low on the MCLR pin for a while, and a resistor gradually pulls the voltage high after power-up. No difference - the board still only starts about one time in 20. I've changed SX28 chips and seen the same result. Board power is 5.1 V, and seems solid.
If I reset the board and it doesn't start, I can tap a grounded wire to MCLR (which has a resistor-current-limiting circuit as in AN18Reset.pdf), and the program starts immediately, every time.
Is this normal? Is there anything more I can do? Do I need to add some TTL pulse generator reset circuitry to reset my Sx?
David
Comments
Try specifing BOR42 on the device line.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
·
Post Edited (Paul Baker) : 4/14/2005 6:59:38 PM GMT
I think I'll pull out my SX-Tech board and make sure my programmed chip runs in it, then maybe try its power supply to run my homemade board...
David
You might try putting a 1 meg resistor across the crystal/resonator, as shown on
page 177 of the SX-Key Development System Manual.
Dave G
I'd used the oscillator circuit from one of the Sx app notes, with a 1 meg resistor across a 20 mHz crystal, 33 pF to gnd from OSC1 and 22 pF to gnd from OSC2. This same or similar circuit has worked for me many times on other projects, for both SX18 and SX28 chips.
But for this particular troublemaker, it seemed that the circuit started marginally better with the Sx-Key plugged in, so guessing that more capacitance was needed, I played with a couple of variations, and when I had OSC1 up to 55 pF and OSC2 still at 22 pF, everything began to work perfectly.
So I guess maybe this particular crystal had some odd characteristics?
Anyhow, it now starts perfectly, each and every time, and my project can start to move ahead. Thanks to all who assisted.
David