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.
Devices | Mask | Series ID | JEDEC Manufacturer |
---|---|---|---|
PIC32CX-BZ3 | 0x9E | 0 | 0x29 |
PIC32CX-BZ6 | 0xA8 | 1 |
Bits | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
SW-DP ID | Revision ID | Mask ID | Device ID | |||||||||||||
DSU DID | Revision ID | Family ID | Reserved | Series ID | ||||||||||||
Bits | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SW-DP ID | Device ID | JEDEC Manufacture’s ID Code | Always ‘1’ | |||||||||||||
DSU DID | Mask ID | Device ID |