6.2 Get Device ID
The code is equivalent to reading a word at the address DSUEXT.DID at (0x41000118) (DSU_DID register). The value is read from the DSUEXT range; therefore, this register is always accessible even on protected and secured devices. Each PIC32CX-BZ3/PIC32CX-BZ36 variant of the device is identified with a unique Device ID. Refer to the device data sheet for the specific DID value for the specific device variant.
Note:
- It is recommended that only the lower 16 bits of this register be used to identify the device.
- The DSUEXT range starts at offset 0x0100.
Steps | mem_ap primitive |
---|---|
Read DSU DID register | ReadD32(DSUEXT.DID) |