uid incrementation scheme

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

uid incrementation scheme

3,812 Views
haukereese
Contributor I

Hi,

We are using some lpc11c24 devices on a CAN-Bus.

To differ the devices we're using the uid.

Based on historical reasons, we can only use 4 byte of the uid.

In the near past it happened that 2 devices had the same id.

So i wonder what is the scheme of the uid generation.

Is it just increment,

or has each fab has its own number region of the uid ?

Or is it just a random number generator ?.

What i need is to get an unique 4 byte id from this 128 bit uid.

best regards

hauke reese

0 Kudos
Reply
7 Replies

3,765 Views
haukereese
Contributor I

No one an idea, how to get an individual 32 Bit id from this 128 Bit id ?

best regards

hauke reese

0 Kudos
Reply

3,796 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @haukereese 

Which ID are you referring to? The CAN ID or the board ID?

The CAN ID is a value that you assign for the communication in your system, the board ID is saved on the registers and you cannot change it.

 

Best Regards, Miguel.

0 Kudos
Reply

3,792 Views
haukereese
Contributor I

Hi Miguel,

I'm referring to the unique 128 bit chip ID (uid).

Best regards

hauke

0 Kudos
Reply

3,783 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @haukereese 

In which register are you reading the ID? the Device ID register (0x4004 83F4) has a size of 32 bits, not 128 and the value depends on the device.

Miguel04_0-1667323093667.png

Miguel.

0 Kudos
Reply

3,774 Views
haukereese
Contributor I

Hi Miguel,

this is the id for the device family.

For example each lpc11c24 with the same package have the same ID.

What i need is the unique part id to differ between 2 lpc11c24 devices.

Best regards

hauke

0 Kudos
Reply

3,749 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @haukereese 

Sorry for the misunderstanding, you are correct the ReadUID returns a 128 bit value, you could use this 128 bit value to differentiate the LPCs since choosing only 32 bits does not guarantees they are going to be unique. Let me know if you have another question.

Miguel.

0 Kudos
Reply

3,772 Views
haukereese
Contributor I

Hm,

I'm using the IAP command 58 to get the UID.

There the result is 4*32-Bit registers.

You can find it in the user manual UM10398 on page 445.

0 Kudos
Reply