LPC1114 can automatically ISP download programs. Because before it leaves the factory, the bootloader program is solidified in the chip, and the chip leads to the boot pin. The bootloader is used to guide the microcontroller to execute the task of downloading the program or executing the existing program in the chip. This judgment is determined by the high and low levels of the external boot pin.
After the microcontroller is powered on, the bootloader program will be run first. This program relies on the internal IRC clock to work. The bootloader first checks the level of the boot pin. If it is low, it will execute the download task and wait for the program to be downloaded; if it is high, it will execute the existing user program in the chip. Simple!
Manual download:
According to the principle of bootloader, first connect the boot pin to ground, then power on the microcontroller, and then use flash magic to download the program. After downloading the program, disconnect the boot pin from the ground, then power on, and the program just downloaded will run.
Automatic Download:
Connect the DTR of the serial port to the reset pin of the microcontroller, and connect the RTS to the boot pin to realize automatic ISP. Find the program to be downloaded and directly click the flash magic download button.
When downloading manually, the MCU and the computer serial port are connected by 3 wires:
MCU Computer serial port
RXD—–TXD
TXD—–RXD
GND—–GND
When downloading automatically, the MCU and the computer serial port are connected with 5 lines
MCU Computer serial port
RXD——-TXD
TXD——-RXD
GND——-GND
RESET——-DTR
BOOT——-RTS
Generally, download failures are caused by not connecting DTR and RTS. On Ration's lpc1114 development board, the ISP button is used to connect DTR and RTS, so you have to press it to download the program. Or you can use the manual download method.
When running the program, especially the serial port program, in order to prevent errors, disconnect the lines connecting DTR, RTS and the microcontroller. On the Ration lpc1114 development board, flip up the ISP switch.
Previous article:LPC1114 system timer systick
Next article:LPC1114 general timer - timing function
Recommended ReadingLatest update time:2024-11-16 21:31
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- DSP's various lords
- Unboxing K210 and ESP32S2
- What is the name of this insulation sheet?
- cpld realizes phase-locked loop frequency synthesis
- Power conversion type analysis
- Synplify Tool User Guide.pdf
- STM32 A certain function is put into RAM and runs without any phenomenon
- [Help] Pingtouge scenario-based Bluetooth Mesh node write address 0x failed! Write registers fail...
- C6678 DSP program debugging problem
- [First batch of finalists] 2022 Digi-Key Innovation Design Competition