Unique ID for HC(S)12(S)   --  MC9S12XDP512?

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

Unique ID for HC(S)12(S)   --  MC9S12XDP512?

3,194 Views
Pang
Contributor I
Hi every one,
 
Does each processor have an unique ID? If it does, where and how to get it?
 
Thanks,
 
Pang
Labels (1)
0 Kudos
7 Replies

451 Views
Nabla69
Contributor V
Hello,

MCU ID Table is in the datasheet at the description of the MCU ID Register.

A.
0 Kudos

451 Views
Pang
Contributor I
Is that device id "unique"  in the register? It appears that it is all the same device id for MC912XDP512.(0xC411/0xC410).  I want to learn about the individual and unique id for each processor so that I can do something for Copyright Protection.
 
Thanks a lot for your inputs.
 
Pang
0 Kudos

451 Views
Nabla69
Contributor V
Ok, I understand what you want to do now.

There is no hard coded serial number available on the S12(X).
However, you can program one in Flash making it different each time.
Some programming tool allow this (Serialize).
If you secure the Flash, nobody will be able to retrieve this code to put it in another device.

A.
0 Kudos

451 Views
Pang
Contributor I
Got it. I am new to the world of S12X. How to secure it? Could u plz give me some leads to this method (book or papers)
 
Thanks,
 
Pang
0 Kudos

451 Views
Nabla69
Contributor V
No problem Pang,
 
There is a Flash location to write to in order to lock the Flash from external reading.
Two bits are securing the Flash and they are called SEC1 and SEC0.
These bits are located at 0xFF0F (CPU logical map) = 0x7F_FF0F'G ('G means global memory map).
 
The procedure is explained in Chapter 30.1.3 of the MC9S12XDP512 Datasheet.
 
An other solution is to include in your S-Record (the file you program in the MCU) these two bits, so it is all done in one operation. As you are not familiar with the family, I suggest you use the procedure from the datasheet. (the debugger has an option to secure the MCU also)
 
Alphonso.
0 Kudos

451 Views
Pang
Contributor I
Alphonso, Thanks a lot for your help. Pang
0 Kudos

451 Views
StephenRussell
Contributor I
Pang,
 
Try reading Freescale application note AN2400/d available at:
 
It tells you almost everything you need to know about flash and EEPROM programming in one place.
 
0 Kudos