Datasheet

Table Of Contents
ADuC7060/ADuC7061 Data Sheet
Rev. D | Page 24 of 108
FEECON Register
FEECON is an 8-bit command register. The commands are
described in Table 15.
Name: FEECON
Address: 0xFFFF0E08
Default value: 0x07
Access: Read and write
Table 15. Command Codes in FEECON
Code Command Description
0x00
1
Null Idle state.
0x01
1
Single read Load FEEDAT with the 16-bit data. Indexed by FEEADR.
0x02
1
Single write Write FEEDAT at the address pointed to by FEEADR. This operation takes 50 μs.
0x03
1
Erase/write
Erase the page indexed by FEEADR and write FEEDAT at the location pointed to by FEEADR. This operation takes
approximately 24 ms.
0x04
1
Single verify Compare the contents of the location pointed to by FEEADR to the data in FEEDAT. The result of the
comparison is returned in FEESTA Bit 0 and Bit 1.
0x05
1
Single erase Erase the page indexed by FEEADR.
0x06
1
Mass erase Erase 30 kB of user space. The 2 kB of kernel are protected. To prevent accidental execution, a command
sequence is required to execute this instruction. See the Command Sequence for Executing a Mass Erase
section.
0x07 Reserved Reserved.
0x08 Reserved Reserved.
0x09 Reserved Reserved.
0x0A Reserved Reserved.
0x0B Signature This command results in a 24-bit LFSR-based signature being generated and loaded into the FEESIGN MMR.
This operation takes 16,389 clock cycles.
0x0C Protect This command can run only once. The value of FEEPRO is saved and is removed only with a mass erase (0x06)
or the key.
0x0D Reserved Reserved.
0x0E
Reserved
Reserved.
0x0F Ping No operation; interrupt generated.
1
The FEECON register always reads 0x07 immediately after execution of any of these commands.