STC micro U8W User manual

STCmicroTM
STC Tool Instruction Manual
Date of update: 2022/3/9

- i -
Contents
STC8H Series Manuall
1 Overview.................................................................................................................................................1
2 System Programmable (ISP) Process Description ..............................................................................1
3 USB type online/offline download tool U8W/U8W-Mini ....................................................................2
3.1 Install U8W/U8W-Mini driver...........................................................................................................5
3.2 U8W function introduction................................................................................................................7
3.3 U8W online download instructions....................................................................................................8
3.4 U8W offline download instructions..................................................................................................11
3.5 U8W-Mini's function introduction...................................................................................................19
3.6 U8W-Mini online download instructions .........................................................................................20
3.7 U8W-Mini offline download instructions.........................................................................................21
3.8 Make/Update U8W/U8W-Mini ........................................................................................................27
3.9 U8W/U8W-Mini set through mode (can be used for simulation).....................................................29
3.10 Reference circuit of U8W/U8W-Mini ............................................................................................30
4 STC Universal USB to Serial Tool .....................................................................................................32
4.1 Appearance of STC Universal USB to Serial Tool ..........................................................................32
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
5 Application circuit diagram ................................................................................................................45
5.1 U8W tool application reference circuit diagram..............................................................................45
5.2 STC Universal USB to Serial Tool Application Reference Circuit Diagram ..................................46
STC Tool Instruction Manual

- 1 -
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.
Tool type
Online
Download
Offline
download
Burner
download
Online simulation
Price(CNY)
U8W
support
support
support
Need to set pass-
through mode
100 yuan
U8W-Mini
support
support
not support
Need to set pass-
through mode
50 yuan
Universal USB to
serial port
support
not support
not support
support
30 yuan
2 System Programmable (ISP) Process Description
STC Tool Instruction Manual

- 2-
STC8H Series Manual
Note: Because [P3.0, P3.1] is used for download/simulation (download/simulation interface is only available [P3.0,
P3.1]), it is recommended that users put serial port 1 on P3.6/P3.7 Or P1.6/P1.7, if the user does not want to switch
and insists on using P3.0/P3.1 to work or communicate as the serial port 1, be sure to check the "Next cold start,
when downloading the program, The program can be downloaded only when P3.2/P3.3 is 0/0". 【Note 1】
[Note 1]: The programming protection pins of STC15, STC8 and later new chips are P3.2/P3.3, and the programming
protection pins of earlier chips are P1.0/P1.1.
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:
The microcontroller is completely
poweroff
Power on the microcontroller
(Cold start)
MCU runs the ISP
monitoring program
Download the user program and
enter the user program area
Soft reset to the user program
area and run the user program
Yes
No
External manual reset, the microcontroller is also started
from the system ISP monitoring program area.
The MCU runs the ISP monitoring program to detect whether there
is a legal command stream, which takes tens of milliseconds to
several hundred milliseconds. If there is no legal download
command stream, it will immediately run the user program.
If [P3.2, P3.3] = [0, 0] has been set, it will judge whether to
download the user program or not. After cold start, if [P3.2,
P3.3] ≠[0, 0], then Running the user program directly will
only take 50μs, which is negligible. It is recommended that
the user select [P3.2, P3.3] if they are not [0, 0] at the same
time, then run the user program immediately and skip the
system ISP monitoring program. 【Note 1】
[Cold start programming]: The MCU is in a power-off state firstly, and the user
must first click the [Download/Program] button of the STC-ISP control software
on the PC side to send the download command stream, and then power on the
MCU.
Check if P3.0 has a legitimate
download command stream
STC Tool Instruction Manual

- 3 -
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.
The following picture shows the front and back views of U8W tools and the front and back views of U8W-Mini:
In addition, some wires and tools are used together as follows, such as:
(1) Two-end male USB cable (shown on the left in the figure below) and USB-Micro cable (shown on the right in the
STC Tool Instruction Manual

- 4-
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. When using a low-quality USB cable to connect U8W/U8W-Mini/U8 /U8-Mini,
the voltage to our download board may drop to 4.2V or lower, causing the chip to be in a reset state and fail to
download successfully).
(2) The download cable connecting U8W/U8W-Mini to the user system (ie the connecting cable between U8W/U8W-
Mini and the target MCU on the user board), such as
As shown below:
U8W/U8W-Mini and
User systems are independent
Power supply cable
U8W/U8W-Mini to
The user's system power supply
wiring
User system gives
U8W/U8W-Mini
Power supply cable
STC8H Series Manual STC Tool Instruction Manual

- 5-
STC8H Series Manual
3.1 Install U8W/U8W-Mini driver
The U8W/U8W-Mini download board uses a CH340 USB-to-serial universal chip. This saves the trouble that some
computers without a serial port must buy a USB to serial port tool to download. But CH340 is the same as other
USB-to-serial tools, the driver must be installed before use.
Obtain the driver by downloading the STC-ISP software package
The following is the download location of the STC-ISP software package provided on the STC official website
(www.STCMCUDATA.com):
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 of the driver is: U8 programmer USB to serial port driver
(http://www.stcmcu.com/STCISP/CH341SER.exe ). The driver address on the website and STC-ISP download
software is shown in the figure below:
Install U8W/U8W-Mini driver
After the driver is downloaded to the machine, double-click the executable program and run it. The interface shown
in the figure below appears, click the "Install" button to start the automatic driver installation:
STC Tool Instruction Manual

- 6-
STC8H Series Manual
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. As shown in the figure below (different
computers, the serial port number may be different):
Note: When using STC-ISP to download software later, the selected serial port number must be the corresponding
serial port number, as shown in the figure below:
STC Tool Instruction Manual

- 7-
STC8H Series Manual
3.2 U8W function introduction
The main interfaces and functions of U8W tools are described in detail below:
Programming interface: Use different download cables to connect the U8W download board and the user system
according to different power supply methods.
U8W update system program button: used to update U8W tools. When there is a new version of U8W firmware, you
need to press this button to update the U8W main control chip (note: you must first set the toggle switch on the
update/download selection interface Toggle to upgrade tool firmware).
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
should not be connected to any other lines during online
programming/ISP
STC Tool Instruction Manual

- 8-
STC8H Series Manual
Offline download user program button: Start offline download button. First, the PC downloads the offline code to the
U8W board, and then uses the download cable to connect the user system to the U8W, and then press this button to
start the offline download (the user code will also start to download every time the power is turned on).
Update/download selection interface:When you need to upgrade the underlying firmware of U8W, you need to
switch this toggle switch to the firmware upgrade tool. When you need to program the target chip through U8W, you
need to turn the toggle switch to Burn the user program.
(Please refer to the figure above for the connection of the toggle switch)
Automatic burner/sorter interface: It is a control interface used to control the automatic burner/sorter for automatic
production.
3.3 U8W online download instructions
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
U8W in the direction shown in the figure below:
Then use STC-ISP to download the software to download the program, the steps are as follows:
STC Tool Instruction Manual

- 9-
STC8H Series Manual
1 Select the MCU model;
2 Select the number of pins. When the chip is directly installed on the U8W to download, be sure to select the correct
number of pins, otherwise the download will fail;
3 Select the serial port number corresponding to U8W;
4 Open the target file (HEX format or BIN format);
5 Set the hardware options;
6 Click the "Download/Program" button to start burning;
7The step information of the programming process is displayed, and the message "Completed!" is displayed when the
programming is completed.
When there is the version number information of the output download board and the corresponding information of the
external Flash in the information box, it means that the U8W download tool has been correctly detected.
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, All 4 LEDs will be on and off at the same time; if the
download fails, all 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 from the official website http://www.STCMCUDATA.com).
The target chip is connected to U8W through the user system leads and U8W is connected to the computer for
online download
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:
STC Tool Instruction Manual

- 10 -
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);
4. Set hardware options;
5. Click the "Download/Program" button to start burning;
6. The step information of the programming process is displayed, and the message "Completed!" is displayed when
the programming is completed.
STC Tool Instruction Manual

- 11-
STC8H Series Manual
When there is the version number information of the output download board and the corresponding information of the
external Flash in the information box, it means that the U8W download tool has been correctly detected.
During the download 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.
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).
3.4 U8W offline download instructions
The target chip is installed on the U8W socket and locked and connected to the computer via USB to power the U8W
for offline download
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:
STC Tool Instruction Manual

- 12-
STC8H Series Manual
(2) Set up in the STC-ISP download software according to the steps shown in the figure below:
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 working voltage; click the "Download user program to U8/U7 programmer for offline
download" button ;
6. The step information of the setting process is displayed, and the prompt "Completed!" is displayed after the setting
is completed.
According to the steps in the above figure, after the operation is completed, if the download is successful, it means
that the user code and related setting options have been downloaded to the 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
STC Tool Instruction Manual

- 13-
STC8H Series Manual
strongly recommended that users download the software from the official website http://www.STCMCUDATA.com).
(3) Place the target MCU in the U8W download tool in the direction shown in the figure below, as shown in the figure
below:
(4) Then press and release the button as shown in the figure below to start offline download:
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.
Offline download plug and play burning function introduction:
1. After completing the above steps (1) and (2), U8W is in the plug-and-play programming state by default when it is
connected to the computer and powered on;
2. Put the chip into the programming socket according to the instructions in step (3). While tightening the socket
wrench, U8W will automatically start programming;
3. Display the burning process and burning result through the indicator light;
4. After programming is completed, loosen the wrench and take out the chip;
5. Repeat steps 2, 3 and 4 for continuous programming, eliminating the need to press the button to trigger the
programming action.
The target chip is connected to U8W by the user system lead and connected to the computer via USB to supply
power to 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:
STC Tool Instruction Manual

- 14-
STC8H Series Manual
(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).
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;
Click the "Download user program to U8/U7 programmer for offline download" button;
6. The step information of the setting process is displayed, and the prompt "Completed!" is displayed after the setting
is completed.
According to the steps in the above figure, after the operation is completed, if the download is successful, it means
that the user code and related setting options have been downloaded to the U8W download tool.
STC Tool Instruction Manual

- 15-
STC8H Series Manual
(3) Then use the cable to connect the computer, connect the U8W download tool and the user system (target MCU) as
shown in the figure below, and press the button shown in the figure and release it to start offline downloading:
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.
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:
(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
STC Tool Instruction Manual

- 16-
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);
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;
Click the "Download user program to U8/U7 programmer for offline download" button;
6. The step information of the setting process is displayed, and the prompt "Completed!" is displayed after the setting
is completed.
According to the steps in the above figure, after the operation is completed, if the download is successful, it means
that the user code and related setting options have been downloaded to the U8W download tool.
(3) Then connect U8W to the user system as shown in the figure below, supply power to the user system, and then
start offline downloading:
STC Tool Instruction Manual

- 17-
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.
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:
(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).
STC Tool Instruction Manual

- 18-
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;
Click the "Download user program to U8/U7 programmer for offline download" button;
6. The step information of the setting process is displayed, and the prompt "Completed!" is displayed after the setting
is completed.
According to the steps in the above figure, after the operation is completed, if the download is successful, it means
that the user code and related setting options have been downloaded to the U8W download tool.
(3) Then connect U8W to the user system as shown in the figure below, and press the button shown in the figure first
and then release it, ready to start offline download, and finally power on/on the user system to download the user
program Officially begin:
STC Tool Instruction Manual
This manual suits for next models
1
Table of contents
Popular Thermostat manuals by other brands

Pentair
Pentair RAYCHEM RAYSTAT-CONTROL-10 user manual

CAME BPT
CAME BPT TH/450 GSM Installation and use manual

technoswitch
technoswitch CR035WB instruction manual

Honeywell Home
Honeywell Home CM707 user guide

Honeywell
Honeywell T822 installation instructions

Greystone
Greystone TTLSO Series installation instructions