CPUID values

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CPUID values

562 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ktownsend on Wed Feb 03 16:26:03 MST 2010
I've been trying to setup a way to determine which mcu is being used (to determine SRAM size, revision number, available pins etc.), and it's easy enough to get the Revision, Part Number, and Variant values from the CPUID register, but I haven't found any information in the datasheet or user manual to say what these values actually mean. For example, the LPC1343FBD48 (QFP48, 8KB SRAM) reports:

Part Number = 0xC23
Variant = 2

How could I determine if this was an LPC1342 (part number = ???), or whether it was a 33 pin QFN or 48 pin QFP chip (variant?), for example? I'd like to make a simple enumeration for the various values, but haven't found this information on NXP's website.
0 Kudos
2 Replies

432 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ktownsend on Wed Feb 03 17:54:12 MST 2010
igorsk:

Seems I'm barking up (completely) the wrong tree.  Thanks for that.  I'll update the code accordingly.

Kevin.
0 Kudos

432 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Wed Feb 03 17:46:46 MST 2010
The TRM says:

Quote:
[15:4] PARTNO Number of processor within family:
[11:10] b11 = Cortex family
[9:8] b00 = version
[7:6] b00 = reserved
[5:4] b10 = M (v7-M)
[3:0] X = family member. Cortex-M3 family is b0011.


which matches your value.
But to detect the NXP's part number you should use NXP's DEVICEID register instead. For LPC13xx and LPC11xx it's at 0x400483F4 and the following values are defined (chapter 3):

Quote:

0x041E502B LPC1111FHN33/101
0x0416502B LPC1111FHN33/201
0x042D502B LPC1112FHN33/101
0x0425502B LPC1112FHN33/201
0x0434502B LPC1113FHN33/201
0x0434102B LPC1113FHN33/301
0x0434102B LPC1113FBD48/301
0x0444502B LPC1114FHN33/201
0x0444102B LPC1114FHN33/301
0x0444102B LPC1114FBD48/301
0x0444102B LPC1114FA44/301

0x2C42502B LPC1311FHN33
0x2C40102B LPC1313FHN33
0x2C40102B LPC1313FBD48
0x3D01402B LPC1342FHN33
0x3D00002B LPC1343FHN33
0x3D00002B LPC1343FBD48


The breakdown by bit fields, if there is one, is not specified.
Just for kicks, here's the list for LPC17xx (register address unknown):

Quote:
0x26113F37 LPC1769
0x26013F37 LPC1768
0x26012837 LPC1767
0x26013F33 LPC1766
0x26013733 LPC1765
0x26011922 LPC1764
0x25113737 LPC1759
0x25013F37 LPC1758
0x25011723 LPC1756
0x25011722 LPC1754
0x25001121 LPC1752
0x25001118 LPC1751

0 Kudos