3.3 Reading the Application ID Word
The Application ID Word is stored at the address 0x800BFE in executive code memory. To read this memory location, you must use the SIX control code to move this program memory location to the VISI register. Then, the REGOUT control code must be used to clock the contents of the VISI register out of the device. The corresponding control and instruction codes that must be serially transmitted to the device to perform this operation are provided in Table 3-1.
After the programmer has clocked out the Application ID Word, it must be inspected. If the Application ID has the value 0xDF, the Programming Executive is resident in memory, and the device can be programmed using the mechanism described in Device Programming – Enhanced ICSP. However, if the Application ID has any other value, the Programming Executive is not resident in memory; it must be loaded into memory before the device can be programmed. The procedure for loading the Programming Executive to memory is described in Programming the Programming Executive to Memory.
| Command (Binary) | Data (Hex) | Description |
|---|---|---|
|
Step 1: Exit the Reset vector. | ||
|
|
|
|
| Step 2: Initialize the TBLPAG register and the Read Pointer (W0) for the TBLRD instruction. | ||
|
|
|
|
|
Step 3: Output the VISI register using the | ||
|
| <VISI> |
Clock out contents of the VISI register. |
