EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Page 843

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
- 827 -
Appendix J ISP Download Starts Automatically After
Receiving User Command While Running User
Program (no Power-down)
"User-defined download" and "user-defined encrypted download" are two completely different functions.
Compared with the function of user-defined encrypted download, the function of user-defined download is simpler.
The specific functions is: Before the computer or offline download board starts to send the real ISP download
programming handshake command, it first sends a user-defined string of commands (for this string of serial commands,
user can set the baud rate, parity, and stop bits), and then immediately sends the ISP download programming handshake
command.
The function of "user-defined download" is mainly used in the early development stage of the project, which can
download user code without power-off (without re-power-on to the target chip). The specific implementation method
is: User needs to add a piece of code to detect the custom command in user program. When the command is detected,
execute the assembly code of "MOV IAP_CONTR, # 60H" or the C language code of "IAP_CONTR = 0x60;" , MCU
will reset to ISP area to execute ISP code automatically.
As shown in the figure below, set the custom command sequence with a baud rate of 115200, no parity bit, and
one stop bit: 0x12, 0x34, 0x56, 0xAB, 0xCD, 0xEF, 0x12. When the option "Send custom commands before each
download" is checked, the user-defined download function can be implemented.
Click "Send user-defined download command" or click the "Download / Program" button in the lower left corner of
the window, the application will send the serial data as shown below.

Table of Contents

Related product manuals