
536
42073A-MCU Wireless-02/13
ATmega2564/1284/644RFR2
31.10.27 Programming User Signature Data
page 505 for details). Before programming the user signature pages a Page Erase must
1. Enter JTAG instruction PROG_COMMANDS.
2. Enable user signature page write using programming instruction 9d.
3. Load High byte of address using programming instruction 2c (0x01, 0x02 or 0x03).
4. Load Low byte of address using programming instruction 2d.
5. Load data using programming instructions 2e, 2f and 2g.
6. Repeat steps 4 and 5 for all instruction words in the page.
7. Write the user signature page using programming instruction 2h.
8. Poll for Flash write complete using programming instruction 2i, or wait for tWLRH (refer
9. Repeat steps 4 to 9 until all user signature data have been programmed.
A more efficient data transfer can be achieved using the PROG_PAGELOAD
instruction:
1. Enter JTAG instruction PROG_COMMANDS.
2. Enable user signature page write using programming instruction 9d.
3. Load the page address using programming instructions 2c and 2d. PCWORD (refer
as 0.
4. Enter JTAG instruction PROG_PAGELOAD.
5. Load the entire page by shifting in all instruction words in the page byte-by-byte,
starting with the LSB of the first instruction in the page and ending with the MSB of
the last instruction in the page. Use Update-DR to copy the contents of the Flash
Data Byte Register into the Flash page location and to auto-increment the Program
Counter before each new word.
6. Enter JTAG instruction PROG_COMMANDS.
7. Write the user signature page using programming instruction 2h.
8. Poll for Flash write complete using programming instruction 2i, or wait for tWLRH (refer
9. Repeat steps 3 to 8 until all user signature data have been programmed.
31.10.28 Erasing User Signature Data
page 505 for details). User signature pages must be erased before being written. A
contents of signature pages. Erasing user signature data is performed with the following
command sequence.
1. Enter JTAG instruction PROG_COMMANDS.
2. Enable user signature page erase using programming instruction 9e.
3. Load High byte of address using programming instruction 2c (0x01, 0x02 or 0x03).
4. Load Low byte of address using programming instruction 2d.
5. Latch the page address using programming instructions 2g.
6. Erase the user signature page using programming instruction 2h.