18M2 (Firmware version B) symbol lightswitch = pinc.1 ' THE SWITCH FOR THE LIGHT

mymps3

New Member
Hi, every so often, my program gets corrupt and pinc.1 stays HIGH.

I reflash my program and it fixes it. This has happened at least twice.
I have the same cicruit board in my car (for a fancy kill switch), and it has been fine.

I'm just curious if this has happened to anyone else ??
Thanks !!!!!

Picaxe-18m2 firmware version B
 
We need much more information in order to provide any help.

Can you provide a circuit diagram and a photo of the wiring?
Is the circuit switching 1) high voltages, 2) heavy currents or 3) Inductive loads like a relay or motor?
 
Hi,

+1 to IP's post #2. Yours is not a "known" problem, but potential causes could be :

- Have you used a DISABLEBOD command (don't) ?
- Is there a 100nF ceramic or plastic film capacitor connected directly between (i.e. near to) Supply and Ground pins of the PICaxe ?
- What (if anything) is connected to the "Input Only" (Base PIC Master Reset/Programming pin) ? Note this pin does not (can't) have an internal Electrostatic Protection Diode.
- What (if anything) is connected to the PICaxe Programming Input pin in "normal" use ?
- What is connected to pin C.1 (and where does it lead on to) ?
- What is the typical PICaxe supply rail voltage ?

Cheers, Alan.
 
Hi,

+1 to IP's post #2. Yours is not a "known" problem, but potential causes could be :

- Have you used a DISABLEBOD command (don't) ?
- Is there a 100nF ceramic or plastic film capacitor connected directly between (i.e. near to) Supply and Ground pins of the PICaxe ?
- What (if anything) is connected to the "Input Only" (Base PIC Master Reset/Programming pin) ? Note this pin does not (can't) have an internal Electrostatic Protection Diode.
- What (if anything) is connected to the PICaxe Programming Input pin in "normal" use ?
- What is connected to pin C.1 (and where does it lead on to) ?
- What is the typical PICaxe supply rail voltage ?

Cheers, Alan.
Also: 1) If heavy (switched) currents share wiring between the power source and the PIC. Spikes caused by surges on the power rails can cause a PIC to reset. 2) If you are using the "Serial In" (program download) pin for any other additional purpose, it must be pull low until the "Disconnect" command is executed.

Note that I have referred to PICs in point 1 - the problem you are having is not unique the PICAXEs. It can occur with bad wiring practice or circuit design with any microcontroller.
 
Back
Top