Your code is very "unoptimal".
3 Tips:
Replace the whole "select case"-statement by 1 command:
password[c]=dtmf
The if-then-else for checking the password may be shortened:
if password[1]<>"1" then goto error
if password[2]<>"2" then goto error
...
and the last select-case-statement could be shortened a lot by placing the low-pause-high-sequence in one part at the end ...
The datasheet of the mc145436a tells a minimum time of 18us for the Guardtime-input. Maybe they mean the minimum pulselength for reset. Your pulse is to short, PICs are fast !!!
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Bookmarks