芯片的EEPROM內容如下:
可以使用下面的C程序寫入上述EEPROM內容:
#include <avr/eeprom.h>
uint8_t* EEPROM_START = 0x00;
int main()
{
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 0, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 1, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 2, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 3, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 4, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 5, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 6, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 7, 0x00);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 8, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 9, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 10, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 11, 0x1C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 12, 0x10);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 13, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 14, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 15, 0x00);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 16, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 17, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 18, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 19, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 20, 0x1E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 21, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 22, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 23, 0x00);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 24, 0x0E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 25, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 26, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 27, 0x0E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 28, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 29, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 30, 0x0E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 31, 0x00);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 32, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 33, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 34, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 35, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 36, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 37, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 38, 0x0C);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 39, 0x00);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 40, 0x0E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 41, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 42, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 43, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 44, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 45, 0x12);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 46, 0x0E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 47, 0x00);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 48, 0x1E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 49, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 50, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 51, 0x0E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 52, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 53, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 54, 0x1E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 55, 0x00);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 56, 0x1E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 57, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 58, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 59, 0x0E);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 60, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 61, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 62, 0x02);
eeprom_busy_wait();
eeprom_write_byte(EEPROM_START + 63, 0x00);
while (1);
return 0;
}