4.2 STC general USB to serial tool layout diagram ................33 4.3 STC Universal USB to Serial Tool Driver Installation ..............34 4.4 Use STC universal USB to serial port tool to download program to MCU ........35 4.5 Use STC universal USB to serial port tool to simulate user code ............37 Application circuit diagram ........................45...
STC Tool Instruction Manual STC8H Series Manual 1 Overview U8W/U8W-Mini is a series of programming tools that integrates online download and offline download. STC Universal USB to Serial Port Tool is a programming tool that supports online download and online simulation. Online...
3 USB type online/offline download tool U8W/U8W-Mini The application range of U8W/U8W-Min can support all current MCU series of STC, and the Flash program space and EEPROM data space are not restricted. Support includes the following and upcoming STC full series chips:...
Page 5
STC Tool Instruction Manual STC8H Series Manual The offline download tool can be used for downloading without the computer, and can be used for mass production and remote upgrades. The offline download board can support multiple functions such as automatic increment, download limit, and encrypted transmission of user programs.
Page 6
STC Tool Instruction Manual STC8H Series Manual figure below): Note: This USB cable is a USB enhanced cable specially customized by our company, which can ensure that the download can be successful when directly powered by USB. On the market, some relatively low-quality two-end male USB cables have too much internal resistance and cause a large voltage drop (for example, the voltage of the USB when it is empty is about 5.0V.
After downloading, decompress, the path of CH340 driver installation package is stc-isp-15xx-v6.87K\USB to UART Driver\CH340_CH341: Download the driver manually through STC's official website or in the latest STC-ISP download software Download the driver manually on the official website of STC or in the latest STC-ISP download software. The download link...
Page 8
Then the driver installation successful dialog box pops up, click the "OK" button to complete the installation: Then use the USB cable provided by STC to connect the U8W/U8W-Mini download board to the computer, open the device manager of the computer, and under the port device category, if there is a device similar to "USB-SERIAL CH340 (COMx)", it means U8W/U8W-Mini can be used normally.
STC Tool Instruction Manual STC8H Series Manual 3.2 U8W function introduction The main interfaces and functions of U8W tools are described in detail below: If the MCU is on the user system, P3.0/P3.1/Gnd must be connected during online programming/ISP, and P3.0/P3.1 of the target MCU...
The target chip is installed on the U8W locking base and connected to the computer by U8W for online download First use the USB cable provided by STC to connect the U8W to the computer, and then install the target MCU on the...
Page 11
Firstly, use the USB cable provided by STC to connect U8W to the computer, and then connect U8W to the target MCU of the user system through the download line. The connection method is shown in the following figure:...
Page 12
STC Tool Instruction Manual STC8H Series Manual Then use STC-ISP to download the software to download the program, the steps are as follows: 1. Select the MCU model; 2. Select the serial port number corresponding to U8W; 3. Open the target file (HEX format or BIN format);...
The steps to use USB to power U8W for offline download are as follows: (1) Use the USB cable provided by STC to connect the U8W download board to the computer, as shown below: - 11 -...
Page 14
U8W download tool. It is recommended that users use the latest version of STC-ISP to download the software (please always pay attention to the updates of the STC-ISP download software on the STC official website http://www.STCMCUDATA.com. It is...
Page 15
U8W for offline download. The steps for offline download using USB to supply power to U8W are as follows: (1) Use the USB cable provided by STC to connect the U8W download board to the computer, as shown below: - 13 -...
Page 16
(2) Set up in the STC-ISP download software according to the steps shown in the figure below: It is recommended that users use the latest version of STC-ISP to download the software (please always pay attention to the updates of the STC-ISP download software on the STC official website http://www.STCMCUDATA.com. It is strongly recommended that users download the software from the official website http://www.STCMCUDATA.com).
Page 17
The target chip is connected to U8W by the user system lead, and the user system supplies power to U8W for offline download (1) Firstly, use the USB cable provided by STC to connect the U8W download board to the computer, as shown below:...
Page 18
STC Tool Instruction Manual STC8H Series Manual http://www.STCMCUDATA.com. It is strongly recommended that users download the software from the official website http://www.STCMCUDATA.com). 1. Select the MCU model; 2. Select the serial port number corresponding to U8W; 3. Open the target file (HEX format or BIN format);...
Page 19
The target chip is connected to U8W by the user system lead, and U8W and the user system are independently powered for offline download (1) Firstly, use the USB cable provided by STC to connect the U8W download board to the computer, as shown below:...
Page 20
STC Tool Instruction Manual STC8H Series Manual 1. Select the MCU model; 2. Select the serial port number corresponding to U8W; 3. Open the target file (HEX format or BIN format); 4. Set the hardware options; 5. Select the "U8W Offline/Online" tab, set the offline programming options, pay attention to the S-VCC output voltage matches the target chip operating voltage;...
STC Tool Instruction Manual STC8H Series Manual During the downloading process, the 4 LEDs on the U8W download tool will be displayed in marquee mode. After the download is complete, if the download is successful, the 4 LEDs will be on and off at the same time; if the download fails, all the 4 LEDs will be off.
Firstly, use the USB cable provided by STC to connect the U8W-Mini to the computer, and then connect the U8W- Mini to the target MCU of the user system through the download cable. The connection method is shown in the...
4 LEDs will be off. It is recommended that users use the latest version of STC-ISP to download the software (please pay attention to the updates of the STC-ISP download software on the STC official website http://www.STCMCUDATA.com. It is strongly recommended that users download the software on the official website http://www.STCMCUDATA.com).
Page 24
U8W-Mini download tool. It is recommended that users use the latest version of STC-ISP to download the software (please pay attention to the updates of the STC-ISP download software on the STC official website http://www.STCMCUDATA.com. It is...
Page 25
The target chip is connected to the U8W-Mini by the user system lead, and the U8W-Mini is powered by the user system for offline download. (1) Firstly, use the USB cable provided by STC to connect the U8W-Mini download board to the computer, as shown below:...
Page 26
U8W-Mini download tool. It is recommended that users use the latest version of STC-ISP to download the software (please pay attention to the updates of the STC-ISP download software on the STC official website http://www.STCMCUDATA.com. It is strongly recommended that users download the software from the official website http://www.STCMCUDATA.com)
Page 27
The target chip is connected to U8W-Mini by the user system lead, and U8W-Mini and the user system are independently powered for offline download. (1) Firstly, use the USB cable provided by STC to connect the U8W-Mini download board to the computer, as shown below:...
Page 28
U8W-Mini download tool. It is recommended that users use the latest version of STC-ISP to download the software (please pay attention to the updates of the STC-ISP download software on the STC official website http://www.STCMCUDATA.com. It is strongly recommended that users download the software from the official website http://www.STCMCUDATA.com).
Then click the "Set U8W/U8-5V/U8-3V as the offline download master chip" button on the "U8W Offline/Online" page in the STC-ISP download program, as shown in the figure below: (Note: Be sure to select The serial port...
Page 30
STC Tool Instruction Manual STC8H Series Manual When the following screen appears, it indicates that the U8W control chip is made: - 28 -...
STC Tool Instruction Manual STC8H Series Manual After the production is completed, do not forget to dial the "Update/Download Selection Interface" of U8W back to the "Burn User Program" mode, and power on the U8W download tool again, as shown in the figure below: (Otherwise, programming will not be performed normally ) 3.9 U8W/U8W-Mini set through mode (can be used for simulation)
STC Tool Instruction Manual STC8H Series Manual 2. After U8W/U8W-Mini is powered on, it is in normal download mode. At this time, press and hold the Key1 (download) button on the tool and do not release it. Press the Key2 (power) button again, and then release the Key2 (power) button.
Page 33
STC Tool Instruction Manual STC8H Series Manual This Flash memory is required when the user program is larger than 41K The reference circuit diagram of the button part: Reference circuit diagram of the buzzer part: LED display part reference circuit diagram:...
STC Tool Instruction Manual STC8H Series Manual 4 STC Universal USB to Serial Tool 4.1 Appearance of STC Universal USB to Serial Tool Front: Back: - 32 -...
For STC microcontrollers, if you want to perform ISP download, you must receive the serial port command at power- on reset to start executing the ISP program, so the correct steps to download the program to the MCU using the STC...
5. Open the target file (HEX format or BIN format); 6. Click the "download/program" button in the ISP download software; 7. Press the "power switch" on the STC Universal USB to Serial Tool to power the MCU, and the download can start. 【Cold start burning】...
Then the driver installation successful dialog box pops up, click the "OK" button to complete the installation: 4.4 Use STC universal USB to serial port tool to download program to 1. Use the STC universal USB to serial port tool to connect the MCU to be burned to the computer: 2. Open the STC-ISP software;...
Page 38
3. Select the model corresponding to the burning chip; 4. Select the serial port number recognized by the STC universal USB to serial tool (when the STC universal USB to serial tool is correctly connected to the computer, the software will automatically scan and identify the serial port named "USB-SERIAL CH340 (COMx)", the specific COM The number will vary from computer to computer).
Firstly, open STC-ISP to download the software; Then click the "Add MCU Type to Keil / Add STC ICE driver to Keil" on the "Keil ICE settings" page in the functional area on the right side of the software:...
Page 40
STC Tool Instruction Manual STC8H Series Manual After pressing, the following screen will appear: Locate the directory to the installation directory of the Keil software, and then confirm. After the installation is successful, the following prompt box will pop up:...
Page 41
You can see the following files in the relevant directory of Keil, which means that the driver is installed correctly. Since in the default state, the main control chip of STC is not an emulation chip and has no emulation function, if simulation is needed, the main control chip of STC needs to be set as an emulation chip.
Page 42
STC Tool Instruction Manual STC8H Series Manual Then click the "Set target MCU as ICE" button on the "Keil ICE Settings" page in the right functional area of the software,After pressing, the following screen will appear: - 40 -...
Page 43
STC Tool Instruction Manual STC8H Series Manual Next, you need to press the "power switch" on the STC Universal USB to Serial Tool to supply power to the MCU [cold start], and you can start to make the simulation chip.
Page 44
STC Tool Instruction Manual STC8H Series Manual At this point, the simulation chip has been made successfully. Next we open a project for simulation: Then make the following project settings: An additional note: When a C language project is created and the startup file "STARTUP.A51" is added to the project, there is a macro...
Page 45
Step 5: Set the port number and baud rate of the serial port. The serial port number should be the serial port corresponding to the STC universal USB to serial port tool. The baud rate is generally 115200 or 57600.
Page 46
STC Tool Instruction Manual STC8H Series Manual After finishing all the above work, you can press "Ctrl+F5" in Keil software to start simulation debugging. If the hardware connection is correct, you will enter a debugging interface similar to the following, and display the...
STC Tool Instruction Manual STC8H Series Manual As shown in the figure above, multiple breakpoints can be set in the program, and the maximum number of breakpoint settings currently allowed is 20 (in theory, any number can be set, but setting too many breakpoints will affect the speed of debugging).
Need help?
Do you have a question about the micro U8W and is the answer not in the manual?
Questions and answers