In Assembly.
I'm working on a simple code that rotates through 8 LED's(PORTC) from with the rlf instruction. All I need to do is store the value into EEPROM so the same LED is lit up when the circuit is powered on. Say RC2 is high when you power off, when you power it back on, RC2 is still high...same with the other pins. If that makes any sense.
I know I need the 5 lines:
movlw 0x55
movwf EECON2
movlw 0xAA
movwf EECON2
bsf EECON1, WR
but other than that, I'm new to EEPROM.
Thanks guys, you're always helpful.
I'm working on a simple code that rotates through 8 LED's(PORTC) from with the rlf instruction. All I need to do is store the value into EEPROM so the same LED is lit up when the circuit is powered on. Say RC2 is high when you power off, when you power it back on, RC2 is still high...same with the other pins. If that makes any sense.
I know I need the 5 lines:
movlw 0x55
movwf EECON2
movlw 0xAA
movwf EECON2
bsf EECON1, WR
but other than that, I'm new to EEPROM.
Thanks guys, you're always helpful.