Atmel UC3 - how to get the serial number?
문제
Each Atmel UC3 apparently has a unique serial number. Does anyone know how I retrieve it in software?
해결책
Even better: I wrote to Atmel tech support (which I should have done in the first place?) and got this reply:
The serial number is defined by a 120-bit data located at address 0x80800204-0x80800212 for UC3A. For each chip, the serial number is unique.
Here is an example:
volatile unsigned int* id_data = 0x80800204;
unsigned int ID_get[4];
for(int i=0;i<4;i++)
ID_get[i] = *id_data++;
제휴하지 않습니다 StackOverflow