Comparison between LPC1114/LPC11U14 and LPC1343 (Part 2) GPIO

Publisher:夜色迷离Latest update time:2015-09-09 Source: eefocusKeywords:LPC1114  LPC11U14  LPC1343  GPIO Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Learning about processors usually starts with GPIO. Below we will compare the applications and differences of GPIO of these three chips.

The following three represent the GPIO registers of three chips. From the table, we can see that the GPIO registers of LPC1114 and LPC1343 are compatible, which means that the port control programs of these two types of chips are also fully compatible. On the contrary, LPC11U14, as a member of the LPC1100 series, is not compatible. I don’t know why NXP designed it this way. It’s really confusing.

GPIO Registers

1. LPC1114 GPIO registers

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

2. LPC11U14 GPIO registers

LPC1114/LPC11U14 and LPC1343 comparison study - pinout LPC1114/LPC11U14 and LPC1343 comparison study - pinout

3. LPC1343 GPIO registers

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

The GPIO settings for LPC1114 and LPC1343 are the same, and the registers are the same, which are not complicated. However, for LPC11U14, there are more registers, which are not fully listed in the table above. I really don't understand why NXP designed so many registers. To be honest, from the registers above, LPC1343 seems to be in the same series as LPC1114, but LPC11U14 is not.

From the above table, we can see that LPC1114 and LPC1343 are fully compatible, and the program codes used are also fully compatible. The following program for LPC1114 can also be used for LPC1343.

Initialization Code

1. LPC1114/LPC1343

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

2. LPC11U14

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

Direction Settings

1. LPC1114/LPC1343

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

2. LPC11U14

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

The direction setting functions are the same, both setting the DIR register.

There is a big difference in the read/write port. LPC1114 and LPC1343 operate the port output value through the mask register; while LPC11U14 is implemented through two registers, which is very similar to the operation method of ARM7.

Write Port

1. LPC1114/LPC1343

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

2. LPC11U14

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

Read Port

1. LPC1114/LPC1343

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

2. LPC11U14

LPC1114/LPC11U14 and LPC1343 comparison study - pinout

Related file downloads:

  • LPC1114 project template.rar
  • LPC11U14 project template.rar
  • LPC1343 project template.rar
Keywords:LPC1114  LPC11U14  LPC1343  GPIO Reference address:Comparison between LPC1114/LPC11U14 and LPC1343 (Part 2) GPIO

Previous article:Comparison between LPC1114/LPC11U14 and LPC1343 (Part 3) SysTick
Next article:stm32_ps2 keyboard display test program

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号