crossthreaded
New Member
Well, it's happened twice.
I have a strip-board and wire prototype board which is, frankly, built from my scrap box. It has a socketed 18X, connectors for servos, an analogue sensor and the serial programming cable, 2 LEDs (one is just power) and three buttons (one is reset). The 18X is powered from an emitter follower circuit with a zener reference and runs about 3.3V. The 18X power is coupled with a parallel capacitor to remove any big lumps but there isn't a separate decoupler.
The only "bad" thing I think I'm doing, other than not having a proper on-off switch and just plugging in the 4 cell nicad to add power, is that the servos have direct connections to PIC pins rather than through resistors, which I thought might be better for them since the PIC has a reduced voltage compared to the servos, which run straight off the battery.
On two occasions (from a sample of ~40) I have had the circuit running with a program, removed power, restored power (within 10 minutes) and had the PIC act asthough there was no stored program. Subsequent connection to the serial lead and downloading (the same) program in this state proceeds normally and restores function.
Is there some strange combination of power transition and reset switch that could cause this to happen? How complex is the serial line handshake which signals the PIC to clear program memory?
I have a strip-board and wire prototype board which is, frankly, built from my scrap box. It has a socketed 18X, connectors for servos, an analogue sensor and the serial programming cable, 2 LEDs (one is just power) and three buttons (one is reset). The 18X is powered from an emitter follower circuit with a zener reference and runs about 3.3V. The 18X power is coupled with a parallel capacitor to remove any big lumps but there isn't a separate decoupler.
The only "bad" thing I think I'm doing, other than not having a proper on-off switch and just plugging in the 4 cell nicad to add power, is that the servos have direct connections to PIC pins rather than through resistors, which I thought might be better for them since the PIC has a reduced voltage compared to the servos, which run straight off the battery.
On two occasions (from a sample of ~40) I have had the circuit running with a program, removed power, restored power (within 10 minutes) and had the PIC act asthough there was no stored program. Subsequent connection to the serial lead and downloading (the same) program in this state proceeds normally and restores function.
Is there some strange combination of power transition and reset switch that could cause this to happen? How complex is the serial line handshake which signals the PIC to clear program memory?