How to read the unique serial number of LPC ARM chip

Publisher:满足的36号Latest update time:2016-04-22 Source: eefocusKeywords:LPC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
ARM chips basically have unique serial numbers, which greatly facilitates intellectual property protection, product encryption, and product serial number settings. However, different manufacturers, or even different series of the same manufacturer, may have different methods for reading serial numbers. Here we will talk about how to read the serial numbers of LPC1100 series chips and what to pay attention to.

First of all, we need to pay attention to two concepts: the difference between product identification number and product serial number?

 

1. Product identification number: For the LPC1100 series, there are multiple models, and different models have different identification numbers.

 

How to read the unique serial number of LPC ARM chip How to read the unique serial number of LPC ARM chip


2. Product serial number: Each product has a serial number located in 32 bits (ASCII format).

Read product identification

There are many ways to read product identification. Here are a few methods:

a. In the simulation state, open the peripheral window, select Device ID, and open the window to view, as shown below:

How to read the unique serial number of LPC ARM chip How to read the unique serial number of LPC ARM chip

 

b. Since there is a Device ID register in the LPC1100 system control register, we can directly read this register to read this value.

 

How to read the unique serial number of LPC ARM chip How to read the unique serial number of LPC ARM chip

 

How to read the unique serial number of LPC ARM chip

 

b. Reading the product identification can also be done through ISP/IAP, which is also a common method for using NXP chips. The following is a method for reading IAP under IAP.

 

How to read the unique serial number of LPC ARM chip How to read the unique serial number of LPC ARM chip

The method of reading the identification is very simple. The code is as follows. Note that the entry parameter is 54. The first output data is the status return value, and the second byte is the real identification ID.

 

How to read the unique serial number of LPC ARM chip How to read the unique serial number of LPC ARM chip

Read product serial number

 

There are not so many ways to read the product serial number. It can only be read through ISP/IAP. The following is a method to read the UID using IAP commands.

 

 

How to read the unique serial number of LPC ARM chip How to read the unique serial number of LPC ARM chip

7.jpg (36.07 KB)
2012-5-9 22:09

 

The function code is as follows:

 

How to read the unique serial number of LPC ARM chip How to read the unique serial number of LPC ARM chip

8.jpg (62.26 KB)
2012-5-9 22:09

 

 

 

 Note: Since LPC1100 does not have Flash remapping function, we read the interrupt vector by remapping it to RAM, refer to " NXP ARM Cortex M0/M3 IAP Application ". When using IAP code, be sure to pay attention that you can only call the IAP function to read the UID before calling the mapping function in RAM, otherwise the code will die in the IAP function, resulting in failure to read the UID. . . .


Keywords:LPC Reference address:How to read the unique serial number of LPC ARM chip

Previous article:Use McBSP of DM6437 to configure SPI to communicate with ARM_S2440
Next article:Implementation of video server for USB camera under Arm-linux

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号