ErnieM, I have started to write the code using XC8 compiler and I am stuck with the delay in flashing the LED. This is my first programming experience so please bear with me.
Attachments
-
2 KB Views: 16
ErnieM, I have started to write the code using XC8 compiler and I am stuck with the delay in flashing the LED. This is my first programming experience so please bear with me.
Yes, spinnaker, the LED is not getting turn off if the alarm signal or GP0 is low. It should be turning off only when reset GP3 and GP0 is low.Admittedly I am not familiar with your level of chip, but I don't see you turning off the LED. I assume it is connected to GP5?
eetech00, I tried to compile the code but I got stuck on page 84 for some unexpected syntax. Please analyze what could have been missed. I am also having problem on the else statement and the MCLREN=LL.
Hieetech00, I tried to compile the code but I got stuck on page 84 for some unexpected syntax. Please analyze what could have been missed. I am also having problem on the else statement and the MCLREN=LL.
Hieetech00, some minor changes, compiled and tested in the circuit and found the following:
1) Alarm GP0 is pressed, GP5 flashes quickly. Required condition GP5 flashes one second off, one second on.
2) Alarm GP0 is released, GP5 steady lit. Required condition GP5 should remain flashing.
3) Ack GP1 is pressed, no action. Required condition GP5 should be steadily lit.
4) Lamp Test GP2 is pressed, GP5 lamp goes off. Required condition GP5 Lamp should be on.
5) MCLR GP3 is pressed, no action. Required condition should reset the CPU and GP5 should be off if Alarm GP0 is off too.
I will try to play with the timings and maybe interchanged the GP2 and GP3 if I get good results.
Hieetech00, the latest changes does not work at all. The previous one main_v2 only the GP5 flashes when GP0 is pressed and off if released. It should latch and remain flashing until acknowledge have been press. Other functions like ack and lamp test reverse output.
Which development board?I am downloading to the target and simulate it using kanda development board. I am sorry I don't know how to use the MPLAB simulator.
by Jake Hertz
by Jake Hertz
by Aaron Carman
by Duane Benson