English
Language : 

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