The first thing to do is to understand the part about EINT1 in the LPC_2212_2214_err.pdf file. In this part, there is an example as follows:
VPBDIV=0;
EXTMODE=0x01;
VPBDIV=1;
VPBDIV=0;
EXTPOLAR=0x01;
VPBDIV=0x01;
VPBDIV=0;
But I still can't interrupt when I press this, and I still don't know the reason. I hope friends who know can tell me. I made the following settings to make it work.
VPBDIV=0;
EXTMODE=0x03;
VPBDIV=1;
VPBDIV=0;
EXTPOLAR=0x03;
VPBDIV=0x01;
//VPBDIV=0;
Set EINT1 to interrupt on rising edge, then it will be OK. Of course, the EINT1 pin does not need to be set, and the interrupt does not need to be set, so that the requirements can be met.
Looking at the error correction folder, 0x01 and 0x0d are set to 0x00, so the only value that can be set is other than these two. Of course, I didn't try other values.
The main point here is that if debugging is always unsuccessful, you should first look at the ERRATA DATASHEET, which will save a lot of time.
Previous article:Summary of S3C2440 circuit board layout
Next article:I2C slave mode for LPC2200
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
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- ADI's smoke detector integrated solution based on ADPD188BI has started the registration for the prize live broadcast~
- Prize-winning live broadcast: TI chip technology is helping motor development in progress!
- C2000 MCU DesignDRIVE Solutions for Industrial Motor Drives
- New predictions for cloud computing in 2019
- Typical applications of Zigbee technology in street light control systems
- Bluetooth BLE - BlueNRG2 VTimer
- Celebrate National Day and wish our motherland a happy 70th birthday!
- [STM32F769Discovery development board trial] SD card file system application & hard-to-decode JPEG decoding code that makes people autistic
- The general form of C language function call
- R329 Development Board Application - Operation Image (1)