|
C8051F960-B-GM Datasheet, PDF (249/492 Pages) Silicon Laboratories – Ultra Low Power 128K, LCD MCU Family | |||
|
◁ |
C8051F96x
18.4. Determining the Device Part Number at Run Time
In many applications, user software may need to determine the MCU part number at run time in order to
determine the hardware capabilities. The part number can be determined by reading the value of the
DEVICEID Special Function Register.ï
ï
The value of the DEVICEID register can be decoded as follows:ï
ï
0xD0âC8051F960ï
0xD1âC8051F961ï
0xD2âC8051F962ï
0xD3âC8051F963ï
0xD4âC8051F964ï
0xD5âC8051F965ï
0xD6âC8051F966ï
0xD7âC8051F967ï
0xD8âC8051F968
SFR Definition 18.1. DEVICEID: Device Identification
Bit
7
6
5
4
3
2
1
0
Name
DEVICEID[7:0]
Type
R/W
Reset
0
0
0
0
0
0
0
0
SFR Page = 0xF; SFR Address = 0xE9
Bit
Name
Function
7:0 DEVICEID[7:0] Device Identification.
These bits contain a value that can be decoded to determine the device part
number.
SFR Definition 18.2. REVID: Revision Identification
Bit
7
6
5
4
3
2
1
0
Name
REVID[7:0]
Type
R/W
Reset
0
0
0
0
0
0
0
1
SFR Page = 0xF; SFR Address = 0xEA
Bit
Name
Function
7:0 REVID[7:0] Revision Identification.
These bits contain a value that can be decoded to determine the silicon revision.
0x01 = Revision A.
0x02 = Revision B.
Rev. 1.0
249
|
▷ |