This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Reading from internal EEPROM on power up

Other Parts Discussed in Thread: TM4C123GH6PM

Hi,

I want to try out a simple program for purely academic purposes using Tiva™ C Series TM4C123G LaunchPad with TM4C123GH6PM uC and CCS.

(I relatively a newbie, I've done some tutorials with the lauchpad's basic functions but not worked on the internal EEPROM before)

I have connected an LED controlled by a switch to the uC. If the power supply goes off and comes back, the LED should go back to their original state before the power went off.

To program the LED state to the internal EEPROM I did check the sample program in the workshop workbook.

However I'd like to know how during power supply resumption, the LED would automatically read from the EEPROM and go back to its previous state?? Is pressing the reset button required for this? 

Regards,

Akella

  • Hello Sowmya,

    So when you change the LED color, the same value must be written to the EEPROM. When after power up, the CPU must check if the EEPROM Data is not 0xFFFFFFFF. If it is not then the read data can be applied to the LED. If it is 0xFFFFFFFF then you can consider it as a first boot scenario.

    Regards
    Amit