View Single Post
Old December 8th, 2015   #6
Task Group Member
Join Date: Aug 2008
Posts: 369

I usually do EEPROM writes in the lazy-loop, or a low-priority thread if I'm using an RTOS. The RDM handler writes the new address to RAM, and then passes a flag out to the lazy loop telling it to commit the new values to EEPROM.

The lazy loop has all of the non time-critical stuff. No one will notice an LED that blinks for 10ms longer because it's busy writing, but the time-critical stuff can proceed as a higher priority interrupt or thread.
ericthegeek is offline   Reply With Quote