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
2. LPC11U14 GPIO registers
3. LPC1343 GPIO registers
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
2. LPC11U14
Direction Settings
1. LPC1114/LPC1343
2. LPC11U14
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
2. LPC11U14
Read Port
1. LPC1114/LPC1343
2. LPC11U14
Related file downloads:
- LPC1114 project template.rar
- LPC11U14 project template.rar
- LPC1343 project template.rar
Previous article:Comparison between LPC1114/LPC11U14 and LPC1343 (Part 3) SysTick
Next article:stm32_ps2 keyboard display test program
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Common Misunderstandings in Circuit Design
- Discussion on debugging CLA module of 28035
- Tell us about your money-making plan. How do you manage your finances?
- [HC32F460 Development Board Review] (Part 3) LCR Bridge Design - Reviewing External Interrupts and Timers
- TI official website application--Electronic paper display (EPD) supporting low power WiFi function
- When the ECG signal acquisition circuit board is connected to the oscilloscope ground, there is signal output. If it is not connected, there is no signal output.
- [Pingtou Ge RVB2601 Creative Application Development] + Smart Home Assistant Based on Pingtou Ge RVB2601
- Showing goods + collecting boards for three years
- The sensor driver for X-NUCLEO-IKS01A3 will soon be available in MakeCode
- 【AT-START-F425 Review】 3. GPIO Lighting and Button Evaluation