d.johnstone
New Member
Hi
I have recently purchased a PICAXE 20M2 microcontroller and programming board from the PICAXE online shop. I have written a simple program using the free software available for download on the website (PICAXE Editor 6) and it appears to run perfectly in the simulation. However, after programming the microcontroller and placing it onto my breadboard, the program does not run as expected.
The program itself simulates correctly in the following manner:
- The outputs C.3, C.4 and B.7 are made high for 2 seconds before being returned to the low state
- Output C.3 is made high again
- A PICAXE keypad (SEN040) is then scanned as per the flowchart provided here.
- Once a key is pressed, the output C.4 is pulsed high and low an equal number of times to the key that was pressed (i.e. if 2 was pressed, the output pulses twice)
- The program ends
However, when actually using the chip with LEDs at the outputs, they turn on for two seconds as expected, but soon after turning off, they turn back on for a further two seconds. This then just keeps looping.
Please find attached the flowchart file made in the programming editor for reference. I have tried two different chips, only to get the same result.
Any ideas would be much appreciated
Thanks in advance
I have recently purchased a PICAXE 20M2 microcontroller and programming board from the PICAXE online shop. I have written a simple program using the free software available for download on the website (PICAXE Editor 6) and it appears to run perfectly in the simulation. However, after programming the microcontroller and placing it onto my breadboard, the program does not run as expected.
The program itself simulates correctly in the following manner:
- The outputs C.3, C.4 and B.7 are made high for 2 seconds before being returned to the low state
- Output C.3 is made high again
- A PICAXE keypad (SEN040) is then scanned as per the flowchart provided here.
- Once a key is pressed, the output C.4 is pulsed high and low an equal number of times to the key that was pressed (i.e. if 2 was pressed, the output pulses twice)
- The program ends
However, when actually using the chip with LEDs at the outputs, they turn on for two seconds as expected, but soon after turning off, they turn back on for a further two seconds. This then just keeps looping.
Please find attached the flowchart file made in the programming editor for reference. I have tried two different chips, only to get the same result.
Any ideas would be much appreciated
Thanks in advance
Attachments
-
107.9 KB Views: 5