Current location - Quotes Website - Collection of slogans - Recording steps of Stc microcontroller
Recording steps of Stc microcontroller
STC MCU code burning steps: (The following words are input by the universal worker through the keyboard)

1, the line needs to be downloaded. It can be a serial connection line connected to the native serial 9-pin COM port of the computer motherboard and converted by the MAX232 chip; It can also be a serial port connected to a computer USB port, which is converted from a CP2 1xx or CH3xx chip. If you use USB to serial download cable, you need to install the driver of the corresponding conversion chip in the computer before using it. At present, the most commonly used download line is CH340. After the driver is successfully installed, you can see the USB-SERIAL CH340(COMx) item in the port list of the Computer Device Manager. At this time, you need to keep this X in mind.

2. Connect the download line with the serial port 1(P3.0, P3. 1 port) of the STC microcontroller. At this time, it should be noted that the TXD/RXD of the download line and the TXD/RXD lead of the microcontroller need to be cross-connected.

3. Download the latest STC-spi software from STC MCU official website. After opening the software (1), select the chip model to download. (2) Select the serial port. (3) Set the baud rate. The lowest baud rate is set to 2400, and the highest baud rate can be set from low to high according to different chips. (4) Open the compiled. Hexadecimal target file.

4. Don't power on the microcontroller yet, click "Download/Program" and wait for about 3 seconds to power on the microcontroller. At this time, you can see the prompt of automatic operation in the software window and download progress bar, and wait for a period of time to complete the download.