For some time now I have been having problems with the 08M2 PICAXE chip randomly resetting to the beginning of the code. I believed it was a layout problem and made a work around in software.
I have since made two more projects but I am still getting unexplained resets. The latest project is a programmable power supply. It is simple and low power. It consists of a 08M2 and uses the PWMOUT function. A two stage RC filter converts the pulse stream to a dc voltage which is then buffered by an op-amp connected as a unity gain voltage follower. The output is within the regulated 5v supply.
The 08M2 is pre-programmed to go to a set voltage, wait for a logic signal, a pulse, then jump to a second voltage, wait for a second pulse, jump to another voltage, etc.
Many times after the first voltage jump, the program resets to the start. I added a small pause and jump to a low voltage at the beginning of the code so that I could see it was at the beginning and was still functioning. I used an old 08M and everything worked perfectly with no code or circuit change. On the 08M2 code supplied I have since added a DISCONNECT command. This had no effect.
Hardware description. A 1000pF capacitor is connected with very short leads to pins 1 and 8 of the 08M2. A 0.1uf ceramic capacitor is also connected with short leads and a 47uF tantalum is also connected. The supply is from a 78L05 regulator. (The reset problem still occurs with batteries). The serial in pin is directly connected to 0v. The two unused pins are set as low outputs. The first resistor in the RC filter is 1k, so no excessive high currents.
Any ideas what maybe causing the resets?
I have since made two more projects but I am still getting unexplained resets. The latest project is a programmable power supply. It is simple and low power. It consists of a 08M2 and uses the PWMOUT function. A two stage RC filter converts the pulse stream to a dc voltage which is then buffered by an op-amp connected as a unity gain voltage follower. The output is within the regulated 5v supply.
The 08M2 is pre-programmed to go to a set voltage, wait for a logic signal, a pulse, then jump to a second voltage, wait for a second pulse, jump to another voltage, etc.
Many times after the first voltage jump, the program resets to the start. I added a small pause and jump to a low voltage at the beginning of the code so that I could see it was at the beginning and was still functioning. I used an old 08M and everything worked perfectly with no code or circuit change. On the 08M2 code supplied I have since added a DISCONNECT command. This had no effect.
Hardware description. A 1000pF capacitor is connected with very short leads to pins 1 and 8 of the 08M2. A 0.1uf ceramic capacitor is also connected with short leads and a 47uF tantalum is also connected. The supply is from a 78L05 regulator. (The reset problem still occurs with batteries). The serial in pin is directly connected to 0v. The two unused pins are set as low outputs. The first resistor in the RC filter is 1k, so no excessive high currents.
Any ideas what maybe causing the resets?
Attachments
-
1 KB Views: 14