pic_programm3r
New Member
Hi everyone,
I'm having a problem with the verification of a key code that i set for my Burglar Alarm system .
When i first power up the circuit a key is automatically pressed and the key counter automatically increments to 1 instead of staying at 0. Instead of entering 4 keys to verify the code it allows only 3 key presses since the key that was automatically pressed counted as 1 of the keys pressed.
After the 1st attempt at entering the code the circuit doesn't do this anymore as i am able to enter 4 key presses.
i cant figure out the problem that the hardware or the program code is having at power up.
Please see the attachment to see the code im using.
Thanks in advance
I'm having a problem with the verification of a key code that i set for my Burglar Alarm system .
When i first power up the circuit a key is automatically pressed and the key counter automatically increments to 1 instead of staying at 0. Instead of entering 4 keys to verify the code it allows only 3 key presses since the key that was automatically pressed counted as 1 of the keys pressed.
After the 1st attempt at entering the code the circuit doesn't do this anymore as i am able to enter 4 key presses.
i cant figure out the problem that the hardware or the program code is having at power up.
Please see the attachment to see the code im using.
Thanks in advance
Attachments
Last edited: