PortA ist an analog-input after reset. Look at the manual !
I used adcon1 = 7 to change port a to digital. Did I do something wrong?
c = 0
e = 0
not declared !
Right, somehow those got left off in the top as did these:
entry var byte
c var byte
e var byte
they are in the original program I just deleted them while I was cutting and pasting.
In the select case statement I used c as a counter for the number of entries pressed into the key pad. For example, once the call initiates, c=0. The user inputs the first DTMF signal. That is decoded and a lookup table is used. That input is then placed in the dtmf variable:
LookUp dtmf,["_1234567890*#"],dtmf
The program then returns to the select case statement and places that dtmf value into an array based on what c equals. C is then advanced by 1.
c = c + 1
If c is 7 or less then the program returns to the if dtmf_ready = 0 then begin loop to retrieve the next digit.
if c =< 7 then begin
This is supposed to continue until c >=8, at which point the program starts comparing the array values to a set of constant numbers. Now, this is how it is supposed to work. Obviously it does not work. This is my first attempt at using the select case statement and first time trying a password out. Thanks for your help, its just I am not sure what you are telling me to do.
Travin
Bookmarks