Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
BOD (Brown Out Detection) shuts down the microcontroller at a certain voltage. EEPROM gets messed up at low voltage levels, so set the BOD fuse to a voltage right under your normal operating voltage. Most AVR circuits run at about 5v, so select the 4.3v option.
So for example, if we were to write the byte 64 to location 23 of the EEPROM, the code would look like this:eeprom_write_byte ((uint8_t*) 23, 64);
Hey Razor Concepts . . . another question . . .The most useful use of EEPROM I can think of involves storing large arrays. Know how to do this with EEPROM?This code doesn't make it easy to store 50x50 matrices eeprom_write_byte ((uint8_t*)<<location>>, <<byte to be written>>);edit: posted this question up on avrfreaks