using EEPROM
hey
if i am using eeprom and i would like to enter a password for a keypad, then i would like to keep that password and not enter the loop where i initialize the password, can i use this process..
i start by saying read 0,b to enter the loop initialize, then after i enter the password i would like to set b to 1 so the if satement works.. is my process ok
// note that the variable a, b, code were declared as DIM
Read 0, b ''' ENTERING 0 IN VARIABLE B INSIDE EEPROM
If b = 1 Then
'Goto start
Endif
initialize:
WaitMs 300
Lcdcmdout LcdClear
Lcdout "WELCOME TO YOUR HOME"
Lcdcmdout LcdLine2Home
Lcdout "SECURITY SYSTEM"
Lcdcmdout LcdLine3Home
Lcdout " PLEASE ENTER CODE"
For j = 1 To 5 Step 1
If a > 9 Then
buzzer = 1
WaitMs 1000
buzzer = 0
Goto initialize
Else
code = PORTA And %00001111
Write j, a
Lcdcmdout LcdLine4Home
Lcdout #a
Endif
Next j
Write 11, 1
Write 0, 1