The DSU - Device Service Unit peripheral provides the Device Selection bits in the Device Identification register (DID.DEVSEL) in order to identify the device by software. The SAM D21 variants have a reset value of DID=0x1001drxx, with the LSB identifying the die number ('d'), the die revision ('r') and the device selection ('xx').
| Device Variant | DID.DEVSEL | Device ID (DID) |
|---|---|---|
| SAMD21J18A | 0x00 | 0x10010000 |
| SAMD21J17A | 0x01 | 0x10010001 |
| SAMD21J16A | 0x02 | 0x10010002 |
| SAMD21J15A | 0x03 | 0x10010003 |
| Reserved | 0x04 | |
| SAMD21G18A | 0x05 | 0x10010005 |
| SAMD21G17A | 0x06 | 0x10010006 |
| SAMD21G16A | 0x07 | 0x10010007 |
| SAMD21G15A | 0x08 | 0x10010008 |
| Reserved | 0x09 | |
| SAMD21E18A | 0x0A | 0x1001000A |
| SAMD21E17A | 0x0B | 0x1001000B |
| SAMD21E16A | 0x0C | 0x1001000C |
| SAMD21E15A | 0x0D | 0x1001000D |
| Reserved | 0x0E | |
| SAMD21G18A (WLCSP) | 0x0F | 0x1001000F |
| SAMD21G17A (WLCSP) | 0x10 | 0x10010010 |
| Reserved | 0x11 - 0x1F | |
| SAMD21J16B | 0x20 | 0x10011420 |
| SAMD21J15B | 0x21 | 0x10011421 |
| Reserved | 0x22 | |
| SAMD21G16B | 0x23 | 0x10011423 |
| SAMD21G15B | 0x24 | 0x10011424 |
| Reserved | 0x25 | |
| SAMD21E16B | 0x26 | 0x10011426 |
| SAMD21E15B | 0x27 | 0x10011427 |
| Reserved | 0x28-0x54 | |
| SAMD21E16B (WLCSP) | 0x55 | 0x10011455 |
| SAMD21E15B (WLCSP) | 0x56 | 0x10011456 |
| Reserved | 0x57-0xFF |