C8051F80x-83x
16. In-System Device Identification
The C8051F80x-83x has SFRs that identify the device family and derivative. These SFRs can be read by
firmware at runtime to determine the capabilities of the MCU that is executing code. This allows the same
firmware image to run on MCUs with different memory sizes and peripherals, and dynamically changing
functionality to suit the capabilities of that MCU.
In order for firmware to identify the MCU, it must read three SFRs. HWID describes the MCU’s family,
DERIVID describes the specific derivative within that device family, and REVID describes the hardware
revision of the MCU.
SFR Definition 16.1. HWID: Hardware Identification Byte
Bit
7
6
5
4
3
2
1
0
HWID[7:0]
Name
Type
Reset
R
0
R
0
R
1
R
0
R
0
R
0
R
1
R
1
SFR Address = 0xB5
Bit
Name
Description
HWID[7:0]
7:0
Hardware Identification Byte.
Describes the MCU family.
0x23: Devices covered in this document (C8051F80x-83x)
Rev. 1.0
95