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:
  1. It is recommended that only the lower 16 bits of this register be used to identify the device.
  2. The DSUEXT range starts at offset 0x0100.
Table 6-1. Reference
Stepsmem_ap primitive
Read DSU DID registerReadD32(DSUEXT.DID)