XC886/888CLM
Flash Memory
User’s Manual
4-21
V1.3, 2010-02
Flash Memory, V 1.0
4.8.6
Get Chip Information
This subroutine reads out a 4-byte data that contains chip related information. In the
XC886/888, it reads out the 4-byte chip identification number, which is used to identify
the particular device variant.
Table 4-6
Get Chip Information Subroutine
Subroutine
DFE1
H
: GET_CHIP_INFO
Input
ACC:
00
H
= Chip Identification Number
Others = Reserved
R1 of Current Register Bank:
IRAM start address for 4-byte return data
Output
4-byte of return data in IRAM (only if input ACC - 00
H
):
Byte 1 in R1 (MSB)
Byte 2 in R1 + 1
Byte 3 in R1 + 2
Byte 4 in R1 + 3 (LSB)
PSW.CY:
0 = Fetch is successful
1 = Fetch is unsuccessful
Stack size required
4 bytes
Resource
used/destroyed
ACC, R1, DPL, DPH
*