Hi All,
I got a quick questions here where i want to store data into my eeprom (16f84a).
this data is actually a condition data.
refer to my sample prog below, i when i pressed switch porta,0 , it will run the cond_A. What i would to do is store all the activities in cond_a into my eeprom. so when i pressed porta,1, it will recall all the activities in cond_a. Any idea, how can i implement this.
Thanks All
I got a quick questions here where i want to store data into my eeprom (16f84a).
this data is actually a condition data.
refer to my sample prog below, i when i pressed switch porta,0 , it will run the cond_A. What i would to do is store all the activities in cond_a into my eeprom. so when i pressed porta,1, it will recall all the activities in cond_a. Any idea, how can i implement this.
PRESS1
BTFSC PORTA,1
GOTO PRESS
GOTO COND_B
PRESS
BTFSC PORTA,0
GOTO PRESS1
GOTO COND_A ;yes goto cond_a
COND_A
BSF PORTB,0
CALL DELAY
BCF PORTB,0
BSF PORTB,1
CALL DELAY
BCF PORTB,1
BSF PORTB,2
CALL DELAY
BCF PORTB,2
BSF PORTB,3
CALL DELAY
BCF PORTB,3
GOTO PRESS
COND_B
CALL READ ; read from eeprom
MOVWF PORTB ; display at port b
Thanks All