Steps to burn the microcontroller

1, the microcontroller as a ROM chip, the early microcontroller is the same. When the microcontroller is programmed on general-purpose programming, it is like the process of writing a program to a ROM such as the 28C256. Just the ports used by different microcontrollers, the timing used for programming is different.


2, like the AT89S52 or AVR microcontroller, there is an SPI interface on the microcontroller, then use a dedicated download line to program the program into the microcontroller. At this time, the CPU of the MCU can execute special instructions for operating the ROM, such as ROM erasing, programming, and verifying instructions, in addition to executing the instructions of the MCU itself. When programming the ROM, the download line is first executed by the CPU by transmitting these instructions (erasing the ROM, reading the data, programming the ROM, and verifying the ROM), thus completing the programming of the ROM of the microcontroller. In addition, the commonly used JTAG emulator is also the case, the CPU of the microcontroller can execute the special instructions of JTAG to complete the programming operation of the ROM.
Steps to burn the microcontroller

3, the boot program, that is, a programming program already exists in the microcontroller. When starting the MCU, run this program first. The program judges the port status. If it matches the status of “Write ROM”, it reads data from a port (serial port, SPI, etc.) and then writes it to the ROM of the MCU. If there is no "to burn ROM" status, then go to the user's program to start execution. Such as AVR microcontroller bootloader mode, STC serial port download mode, as well as other microcontroller serial port programming and so on.

Other Capacitors

Other capacitors

Ac Filter Capacitor,Power Saver Capacitor,Line Filter Capacitor,Low Voltage Capacitor

YANGZHOU POSITIONING TECH CO., LTD , https://www.yzpstcc.com