8 DSU.DID vs SW-DP ID

The SW-DP ID is a 32-bit ID comprised of an 11-bit JEDEC Manufacturer’s ID Code (assigned to Microchip), the 20-bit Device ID, and a fixed LSB of ‘1’. The SW-DP ID can be read through SWD interface using ARM’s IDCODE command. The device ID to be used by external debugger or programmers must be within the DSU [DSU.DID register] located at address 0x4100_00118 (external address). Only the lower 16-bits of this register are used for the purpose of external tools to identify the device, the upper 16-bits should be masked off on read.

Many of the fields in the SW-DP ID and the DSU.DID register are the same, but positioned differently.

Refer the following figure for details on how the SW-DP ID and DSU.DID are correlated and refer to device data sheet for the specific variant part number values.

Each device have different “Mask ID” and “Revision ID”. Each variants of each device have different “Device ID”. For more details, refer to device data sheet as Device ID and Revision ID varies from variant to variant.

Table 8-1. ID
DevicesMaskSeries IDJEDEC Manufacturer
PIC32CX-BZ3 0x9E00x29
PIC32CX-BZ60xA81
Table 8-2. DSU.DID VS SW-DP ID
Bits31302928272625242322212019181716
SW-DP IDRevision IDMask IDDevice ID
DSU DIDRevision IDFamily IDReservedSeries ID
Bits1514131211109876543210
SW-DP IDDevice IDJEDEC Manufacture’s ID CodeAlways ‘1’
DSU DIDMask IDDevice ID