0% found this document useful (0 votes)
43 views91 pages

SOC LINK Series Programmer Simulator User Manual V0.1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views91 pages

SOC LINK Series Programmer Simulator User Manual V0.1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 91

SOC LINK Series Programmer & Simulator

SinOne User Manual

SOC LINK Series


Programmer & Simulator
User Manual

Shenzhen SinOne Microelectronics Co., Ltd.

Page 1 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Content
Content............................................................................................................................................................. 2
Statement ......................................................................................................................................................... 4
1. Introduction to Development/Mass Production Tools .................................................................................. 5
1.1 Mass Production/Development Programmer: SC LINK PRO ............................................................ 6
1.2 Mass Production/Development Programmer: SC LINK ..................................................................... 7
2. Programmer & Simulator SC LINK PRO ..................................................................................................... 8
2.1 Hardware Description ......................................................................................................................... 8
2.1.1 Specifications ........................................................................................................................... 8
2.1.2 Descriptions.............................................................................................................................. 8
2.2 SC LINK PRO OLED Display ........................................................................................................... 10
2.2.1 Display Connection Status in Online Programming Mode .................................................... 10
2.2.2 Conventional Programming Display in Offline Mode ............................................................. 10
2.2.3 S/N Programming Display ...................................................................................................... 11
2.2.4 Limited Programming Count Display ..................................................................................... 12
2.2.5 Description for Display Names on SC LINK PRO OLED ...................................................... 14
2.2.6 Description for Error Code of Programming .......................................................................... 14
2.3 SC LINK PRO Simulation ................................................................................................................. 15
2.3.1 Configurations before Simulation ........................................................................................... 15
2.3.2 SC LINK PRO Simulation Operations .................................................................................... 15
2.3.3 Simulation Run Operations .................................................................................................... 17
2.3.4 View and Modify Variables ..................................................................................................... 22
2.3.5 Descriptions for External Power Supply Simulation .............................................................. 25
2.3.6 Notes for Simulation ............................................................................................................... 26
2.4 Instructions for SC LINK PRO Programming ................................................................................... 27
2.4.1 Firmware Upgrading............................................................................................................... 27
2.4.2 Steps for Online Programming............................................................................................... 27
2.4.3 Steps for Offline Programming ............................................................................................... 28
2.4.4 Comparison ............................................................................................................................ 29
2.4.5 Instruction for S/N .................................................................................................................. 30
2.4.6 Descriptions for External Power Supply Programming ......................................................... 30
2.4.7 Instructions for Connecting Programmer ............................................................................... 31
2.4.8 Notes for Programming .......................................................................................................... 32
2.4.9 Instruction for EEPROM Area Programming ......................................................................... 32
2.4.10 Instruction for LDROM Area Programming .......................................................................... 35
2.4.11 Multi-code Management ....................................................................................................... 36
2.4.12 Automatic Upgrading Detection ........................................................................................... 40
2.5 Frequently-asked Questions and Answers ...................................................................................... 42
3. Programmer & Simulator SC LINK ............................................................................................................ 43
3.1 Hardware Description ....................................................................................................................... 43
3.1.1 Specifications ......................................................................................................................... 43
3.1.2 Descriptions............................................................................................................................ 43
3.2 Instructions for SC LINK Simulation ................................................................................................. 45
3.2.1 Configurations before Simulation ........................................................................................... 45
3.2.2 SC LINK Simulation Operations............................................................................................. 45
Page 2 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
3.2.3 Simulation Run Operations .................................................................................................... 47
3.2.4 View and Modify Variables ..................................................................................................... 52
3.2.5 Descriptions for External Power Supply Simulation .............................................................. 55
3.2.6 Notes for Simulation ............................................................................................................... 56
3.3 Instructions for SC LINK Programming ............................................................................................ 56
3.3.1 Firmware Upgrading............................................................................................................... 56
3.3.2 Steps for Online Programming............................................................................................... 57
3.3.3 Steps for Offline Programming ............................................................................................... 58
3.3.4 Comparison ............................................................................................................................ 59
3.3.5 Instruction for S/N .................................................................................................................. 60
3.3.6 Descriptions for External Power Supply Programming ......................................................... 60
3.3.7 Instructions for Connecting Programmer ............................................................................... 61
3.3.8 Notes for Programming .......................................................................................................... 62
3.3.9 Instruction for EEPROM Area Programming ......................................................................... 62
3.3.10 LDROM Area Programming Description .............................................................................. 64
3.3.11 Multi-code Management ....................................................................................................... 66
3.4.1 Exceptions and solutions ....................................................................................................... 70
3.4.2 SC LINKV3.XX Firmware Upgrade ........................................................................................ 70
4. SOC Programming Tool ............................................................................................................................. 72
4.1 Overview ........................................................................................................................................... 72
4.2 Install SOC Programming Tool ......................................................................................................... 72
4.3 Software Interface ............................................................................................................................ 77
4.4 Function Descriptions ....................................................................................................................... 79
4.4.1 Descriptions for S/N ............................................................................................................... 79
4.4.2 MCU Library Upgrading ......................................................................................................... 79
4.4.3 Firmware Upgrading............................................................................................................... 80
4.4.4 Check Offline Programming Options ..................................................................................... 80
4.4.5 Security Encryption ................................................................................................................ 80
4.5 ICP Online Programming ................................................................................................................. 82
5 Keil C Plug-ins ............................................................................................................................................ 85
5.1 Install Simulation Plug-ins ................................................................................................................ 85
5.2 Set Keil Interface .............................................................................................................................. 88
5.3 Notes for Keil C Plug-ins .................................................................................................................. 90
6 Revision History ........................................................................................................................................ 91

Page 3 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Statement
The User Manual mainly describes the operating instructions for SOC LINK Series
Programmer & Simulator. Before use SOC LINK simulation or mass production development,
please carefully read the user manual of related products and timely update programmer
firmware and development tools to the latest version.
The Company reserves the right of final interpretation of all products.
Please refer to the following link for the latest specification of related products:
http://www.socmcu.com/
Please visit the following link for the latest development tools:
http://www.socmcu.com/

Page 4 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

1. Introduction to Programmer & Simulator


Tools
Self-developed by Shenzhen SinOne Microelectronics Co., Ltd. (hereinafter referred to as “SOC”),
SOC MCU development/mass production tools are composed of online development tools, mass
production programmers and PC software. Online development kits are used for developing and debugging,
and mass production programmer is used for batch programming of chips.
Before using the tool, it is recommended to visit http://www.socmcu.com to obtain the latest user
manual and read it carefully.
For any problems, suggestions or comments during the use, please contact 0755-26652552 or email to
SOC_support@socmcu.com.
The following table lists the similarities and differences between SC LINK PRO and SC LINK:
Type SC LINK PRO SC LINK
Programming
SOC Programming Tool
Tool

Keil C Plug-ins SOC_KEIL_Setup

Applicable
SC95F,SC92F,SC93F
product

Simulation √ √

Online
√ √
programming
Offline
√ √
programming

ISP √ ×

OLED display √ ×

Output voltage Software control Manual control

Multi-code 40 10

Page 5 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

1.1 Programmer & Simulator: SC LINK PRO

Name All Models Function Description


⚫ SOC programmer & simulator
⚫ Applicable to online and offline programming and
simulation for SOC 8051 series and debugging
of Touch Key chips
SC LINK ⚫ Automatic IC inspection without any action
SC LINK PRO + 4PIN/5PIN Cable
PRO ⚫ Available to connect programmer interface
⚫ ISP upgrade
⚫ OLED display
⚫ Multi-code management
⚫ Programming in partition

Page 6 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

1.2 Programmer & Simulator: SC LINK

Name All Models Function Description


⚫ SOC programmer & simulator
⚫ Applicable to online and offline
programming and simulation for SOC 8051
series and debugging of Touch Key chips
SC LINK SC LINK + 4PIN Cable
⚫ Automatic IC inspection without any action
⚫ Available to connect programmer interface
⚫ Multi-code management
⚫ Programming in partition

Page 7 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2. Programmer & Simulator SC LINK PRO


2.1 Hardware Description

2.1.1 Specifications

Parameter Name Min Max Unit Test Conditions


Operating Voltage 4.5 5.5 V
Operating Current (idle) - 70 mA Operating Voltage=5.0V

Output Current - 400 mA Operating Voltage=5.0V


Supply Current≥500mA
Supply Voltage of Programming Equal to Supply V
Interface (5V) Voltage
Supply Voltage of Programming 3.2 3.4 V Operating Voltage≥4.5V
Interface (3.3V)
Length of External Programming Cable - 60 cm Operating Voltage≤5.0V
Capacitance Range between VDD and - 1000 uF Operating Voltage≤5.0V
VSS upon Programming on Board

2.1.2 Descriptions
SC LINK PRO is designed for SOC 8051 series IC offline/online programming & simulation and TouchKey
debugging.

 USB Interface: Used for connecting PC and power supply


 Programming buttons: Programming start in offline programming mode; Keep holding and power on will
enter firmware upgrading mode RUN Lamp: Red light indicates power on
 Busy Lamp: Red light, lamp flashes means IC programing in offline programming mode or firmware
upgrading
 OK Lamp: Blue light indicates programming completed
 NG Lamp: Red light means programming failed
 Cable Interface: The cable interface below is sorted subject to the actual sequence with the function
category distinguished by the font color: blue for programming interface, black for programmer interface and
Page 8 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
red for power output interface
VDD DIO VSS CLK RST VUSB
GND OK NG Busy Start 3.3V

2.1.2.1 Function Description for Programming Interface


(1) Use 4PIN cable for ICP programming, details are shown in Figure 2.1.2-1.
Table 2.1.2-1
Descriptions for ICP Programming Interface
Name Function Description

VDD,VSS
Power and ground (pin) of programmed IC
CLK,DIO Programming signal interface, connecting tCLK and tDIO of target IC
(2) Use 5PIN cable for ISP programming, details are shown in Table 2.1.2-2.
Table 2.1.2-2
Description for ISP Programming Interface
Name Function Description
VDD,VSS Power and ground (pin) of programmed IC
CLK,DIO UART communication interface, connecting RX and TX of target IC
RST Control target IC reset in ISP mode

2.1.2.2 Description for Programming Voltage


The voltage can be switched automatically by programmer based on the upper computer, which becomes
valid only upon Programming/Null Checking/Erasing.

2.1.2.3 Function Descriptions for Programmer Interface


Name Function Descriptions
GND SC LINK PRO signal ground
OK Programming status interface, low level indicates programming is completed
NG Programming status interface, low level indicates programming failed
Busy Programming status interface, low level indicates programming is in progress
Start Programming start signal interface, low level indicates valid
3.3V Programmer power supply, Note: Only 3.3V rather than 5V can be selected!

Page 9 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.2 SC LINK PRO OLED Display


SC LINK PRO programmer comes with an OLED display for programming information.
Supported functions are as follows:
(1) Display USB connection status and the UID of current programmer after connecting to
PC;
(2) Display the name of currently programmed IC in offline programming mode;
(3) Display the programming Option checksum of the loaded code;
(4) Display CRC checksum of the loaded code;
(5) Display the programming state after offline programming is completed;
(6) Display the programming count allowed in limited programming mode after power-on;
(7) Save the limited programming count and sequence number after power-down;
(8) Display the voltage of current programming in online mode;

2.2.1 Display Connection Status in Online Programming Mode


When SC LINK PRO is in online programming mode, OLED will display “LINK: USB” to
indicate that it is currently connected to PC, and will display SOC LOGO, the unique ID (UID)
of current programmer and currently default programming voltage, as shown in Figure 2.2.1.

Figure 2.2.1 SC LINK PRO Display View

2.2.2 Conventional Programming Display in Offline Mode


In offline programming mode of SC LINK PRO, OLED will display the downloaded project
file that has been preloaded, including IC name, CRC Checksum (CS), Programming Option
(OP) and Programming Status (SA). Figure 2.2.2 shows the display with programming
succeeded, in which OK is displayed and blue light is on.

Page 10 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Figure 2.2.2 SC LINK PRO Display under Conventional Offline Programming

2.2.3 S/N Programming Display


(1) First download the project code checked with limited programming to SC LINK PRO,
then use offline programming mode to display IC name, CRC Checksum (CS), Programming
Option (OP) and Programming Status (SA) during power-on and programming process.
Figure 2.2.3-1 shows programming in progress; once the programming is completed, the S/N
currently written in will be displayed, as shown in Figure 2.2.3-2.
(2) S/N programming supports power-off memory function.

Figure 2.2.3-1 SC LINK PRO S/N Offline Programming in Progress

Page 11 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Figure 2.2.3-2 SC LINK PRO S/N Offline Programming Completed

2.2.4 Limited Programming Count Display

(1) First download the project code checked with limited programming to SC LINK PRO, every time
when programming button is pressed, OLED will display the remaining programming counts until the
maximum is used up, and then Error status will appear, as shown in Figure 2.2.4-1 and 2.2.4-2.
(2) Limited programming mode supports power-off memory function.

Figure 2.2.4-1 Programming with Limited Counts Completed

Page 12 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Figure 1.2.4-2 Programming Failed with Limited Counts Used Up

Page 13 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.2.5 Description for Display Names on SC LINK PRO OLED


A variety of code names are displayed on SC LINK PRO OLED with related interpretations
and meanings shown as follows:

Code Name Meanings


IC IC name of currently loaded project
CRC Checksum of currently loaded
CS project (Refer to the SOC Programming
Tool for this checksum)
The programming option code of
OP currently loaded project (Refer to the
programming software for this checksum)
SN S/N currently written in
Remaining programming counts for
LN
currently loaded project
Current programming status
SA
(BUSY/OK/ERR)
U Currently programming voltage
LINK Link
ID The Unique ID of current programmer

Iap Update Enter IAP mode for firmware upgrading

2.2.6 Description for Error Code of Programming


When MCU programming fails, NG indicator will light on with error type displayed on OLED. Meanings

for error codes are shown as follows:


Error
Descriptions for Error Code Solutions
Code
1. Check if MCU is placed correctly or if the
The connection between SC LINK PRO
pin is shorted or disconnected;
ERR_1 and the signal pin of programmed IC is
2. Check if the programming cable is
abnormal and unable to enter JTAG
connected improperly;

ERR_2 Programming error Please try again;

ERR_3 The limited count of programming is 0; Please download the project file again;

Please check if the address programming is out


ERR_5 S/N programming error
of range

ERR_6 Error in Flash data downloaded Please replace SC LINK PRO and try again

Page 14 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.3 SC LINK PRO Simulation

2.3.1 Configurations before Simulation


SC LINK PRO provides MCU online simulation for SOC 92/93/95 series, which is available for debugging,
step debugging, step-over debugging and RST operations for up to 8 breakpoints (7 for users, and 1 as hidden
breakpoint), to view and modify RAM and SFR and debug the program in development stage. Before using,
complete the following configurations.

2.3.2 SC LINK PRO Simulation Operations


After above configurations are completed, user can perform simulation for up to 8 breakpoints, 7 for users
and 1 as hidden breakpoint. For the convenience of description, a specific example is given here to complete
breakpoint simualtion based on the following steps.

2.3.2.1 Set/Delete Breakpoint


Breakpoint Setup: Double click the left mouse on source program line of the preset breakpoint, or press “F9”
button, or click the shortcut icon “Insert/Remove breakpoint” (on the right of “Debug” button). When the red block
appears on the left of the line, the setting is succeeded.
Breakpoint Cancel: Before pre-cancelling the breakpoint, double click the left mouse, or press “F9” button, or
click the shortcut icon “Insert/Remove breakpoint” (on the right of “Debug” button). When the red block
disappears on the left of the line, the setting is succeeded.

Note: Before simulation, it is required to pre-set the breakpoint. The breakpoint can be set/deleted
during the simulation process, as shown in the figure below:

2.3.2.2 Download Program


After the programming is completed, click the shortcut icon “Download” to complete the code programming.
The programming depends on “ProgramSetting” in “Programming Option”, check “Programming” and “Verifying”
to program and then verify “Download” process and output relevant information in “Build OutPut” Window.

Note: If Download fails, an error message is displayed. Or else, Download succeeds.

Page 15 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.3.2.3 Enter/Exit Simulation


After the program Download succeeds, click the shortcut icon “Start/Stop Debug Session” button, or press
the shortcut key “Ctrl+F5” or click “Debug-> Start/Stop Debug Session”, as shown in the figure below. After
entering correctly, “D” button is in sunk state indicating it is open; click it again to exit the debug and “D” button is
in smooth state indicating it is closed. After entering the simulation debugging interface, debug-related menus will
be added on the toolbar, including Reset, Run, Stop, Pause, Step, Step Over, Step Out, Run to Cursor Line,
Show Next Statement, Command Window, Disassembly Window, Symbol Window, System Register Window,
Call Stack Window, Observation Window, Memory Window and Serial Port Window, etc. Menus in the toolbar
mentioned above can be found in current “Debug” menu bar. For ease of operations, subsequent operations are
performed from the toolbar.

Page 16 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

If it fails to enter the debugging interface, please check if the configuration is correct before simulation.

2.3.3 Simulation Run Operations


Once entering the simulation status, you can perform a series of simulation operations, including Full-speed
Run to Breakpoint (Run), Step Track (Step), Step Over, Run to Cursor Line and Reset.

2.3.3.1 Full-speed Run to Breakpoint (Run)


Set up the breakpoint before entering the simulation status, click the shortcut icon “Run” button or “F5” to run
to the breakpoint at full speed, as shown in the figure below:

In the figure above, when running at full speed to the first breakpoint and stopping at this breakpoint, a
yellow debugging arrow appears to the left of the breakpoint, pointing to the current stop line. If you open the
Disassembly window, such yellow debugging arrow also appears, pointing to the PC address of current program.
After entering the simulation status, the program will stop at 0x00 address by default, that is, PC points to
Page 17 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
0x00. When running at full speed to the first breakpoint, it will run from this address to the first breakpoint before
stopping. Compared with other simulation operations, the execution speed is the fastest.

2.3.3.2 Step Track (Step)


Step Track means the program stops after executing a line each time.
 Click the shortcut icon “Stop” button or press the shortcut key “F11”, the program will run one step at a
time. It should be noted that the step running process will be different in C Source Program window for
“Disassembly” window to be open or closed by default. It is recommended to keep “Disassembly”
window in open state during the Step process.
 Open/close “Disassembly” window. Click the shortcut icon “Disassembly Window”, the sunk state
indicates on, “Disassembly” window will appear at this time, and disassemble the current program line;
the smooth state incidates off, “Disassembly” window will disappear

 Open the “Disassembly” window and run Step


The current program stops at the function body Timer0Init(), press F11 to execute the program line that
current yellow arrow points to, and then the arrow will point to the next line. The result is shown below. Press F11
repeatedly to execute the program line by line.
Open the “Disassembly” window and execute the disassembly line by default; To execute the source
code line, left click the source code interface.

Page 18 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.3.3.3 Step Over


When executing the program to a subfunction or CALL/LCALL in the assembly, the operation will run the
subfunction at full speed to the next command rather than stepping into the subfunction.

Note:
 If the position where the program is executed is not a subfunction, the operation will obtain
the same result as that of step track;
 If any breakpoint exists in the subfunction, the program will stop at the breakpoint first.
Click the shortcut icon “Step Over” or the shortcut key “F10”.
Still take the current breakpoint stopping at Timer0Init() as an example, press F10, keep the cursor outside
the function and run this function at full speed, then the yellow arrow will point to the next line, as shown in the
figure below:

Page 19 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Continue pressing F10 and observe the Disassembly window, its running results will be the same as that of
Step Track, as shown in the figure below:

2.3.3.4 Run to Cursor Line


If the simulation efficiency between breakpoints through Step Track or Step Over is low and expected to run
to the source line directly, run Run to Cursor Line.
Press the shortcut icon “Run to Cursor Line” or the shortcut key “Ctrl+F10”.
For example, as shown in Figure 3.2.2, select “Run to Cursor Line” to directly stop the program at the last
line of Timer0Init() function.
Position Cursor: Left click the program line preset and a blue arrow appears indicating the line is selected,
as shown in the figure below:
Note: The preset program line must be operable from the line with current yellow arrow, otherwise running to
the cursor will become invalid.

Page 20 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Press Ctrl+F10 and run to the cursor line at full speed before stopping, then the yellow arrow will appear at
positioned cursor line, as shown in the figure below:

2.3.3.5 Reset
Click “Reset” button to reset the program with the yellow arrow pointing to the address 0x00, as shown in the
figure below:

Page 21 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.3.4 View and Modify Variables


2.3.4.1 Use Watch Windows to View and Modify Variables
In simulation debugging mode, view or modify current variable by Watch Windows
 Open Watch Windows
Click the shortcut icon “Watch Windows” to show 3 optional windows: Locals,Watch1,Watch2. Any
Window icon with light yellow background indicates it is checked, and a sub-window appears at the bottom
of KEIL interface, as shown in Figure 2.2.4-1; When clicking “Watch1” or “Watch2”, a Watch interface
appears at the bottom of KEIL interface, as shown in Figure 2.2.4-2

Fig. 2.2.4-1

Fig. 2.2.4-2
 Fill in the variable to be pre-viewed/pre-modified
In the "Name" column, enter the Name of a variable that must exist in the source code, otherwise it is
invalid. At this time, the value of current variable appears in corresponding “Value” column, as shown in
Figure 2.2.4-3

Page 22 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Fig. 2.2.4-3
In the figure above, add the variable GlobalVar_Idata and GlobalVar_Xdata, the values in Watch1 are
0x0010 and 0x30 respectively.
Besides, in C source code interface, when the mouse moves over the variable name, its value, type
and address will appear as well, as shown in Figure 2.2.4-4.

Fig. 2.2.4-4
① Modify the value of variable
In the “Value” column of the variable to be modified, double click and modify the value, then click the left
mouse at any position, the variable column will turn to dark color, as shown in Figure 2.2.4-5.

Fig. 2.2.4-5
In the figure above, the value of GlobalVar_Xdata is modified as 0x22.

2.3.4.2 Use Memory Window to View and Modify Variable


① Open Memory Windows
Click “Memory Windows” to show 4 optional windows: Memory1 - Memory4, as shown in Figure 2.2.4-6.
Any Window icon with light yellow background indicates it is checked, and a sub-window appears at the
bottom of KEIL interface; when clicking any window, a Memory interface appears at the bottom of KEIL
interface, as shown in Figure 2.2.4-7.

Page 23 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Fig. 2.2.4-6

Fig. 2.2.4-7
 View/modify variable by address
In Memory interface, the Address column is used to input the starting address of memory to be
displayed. If the address and memory area of current variable are known, perform the following commands.
Ram data area: D:xx; RAM idata area: I:xx; Ram Xdata area: X:xx.
After completing the commands above, the value of variable beginning with Start Address will be
displayed, and you can also double-click to modify it.
Take GlobalVar_Xdata as an example, use 0x27 as the Start Address and view the value of Xdata area,
as shown in Figure. 2.2.4-8.

Fig. 2.2.4-8
In the figure above, the address value of X:0x000027 is 0x30, that is, the value of GlobalVar_Xdata is 0x30,
same as the results observed in Watch1, as shown in Figure 2.2.4-3.
Likewise, you can also modify the value of variable here, shown as follow:
1. Double click the value of the address in Memory to modify, as shown in Figure 2.2.4-9

Fig. 2.2.4-9
2. Fill in a new value and click at any position to complete, as shown in Figure 2.2.4-10

Page 24 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Note: If the variable address is not clear, we recommend using Watch Windows.

2.3.4.3 View and Modify SFR


 Open Watch Windows
Same as the Watch window opened in viewing and modifying variables
 Fill in SFR name to be pre-viewed/pre-modified
Fill in SFR name to be operated in “Name” column, this SFR must exist in the head file, otherwise it is
invalid. At this time, the value of this SFR appears in corresponding “Value” column, as shown in Figure
2.2.4-11.

Fig. 2.2.4-11
In the “Value” column of the SFR to be modified, double click and modify the value, then click the left
mouse at any position, the variable column will turn to dark color, as shown in Figure 2.2.4-12.

Fig. 2.2.4-12

2.3.5 Descriptions for External Power Supply Simulation


Steps for external power supply simulation:
 Power on the target board with external power supply;
 Connect the target board with SC LINK PRO in power-off state;
 Connect SC LINK PRO to PC via USB;
 Open KEIL software, configure the programming options and click “Download”;
 Disconnect the power to the target board once Busy lamp of SC LINK PRO starts flashing;

Page 25 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

power-off

power

Disconnect the power to the target


board when the Busy lamp Blink
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

target board

power-on

power

Disconnect the power to the target


board when the Busy lamp turn-off
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

target board

 Connect the power to target board until Busy lamp turns off; when Busy lamp turns on, it enters Download
mode;
After Download is completed, you can enter the simulation mode without powering on again.

2.3.6 Notes for Simulation


 The programming interface CLK and DIO will be occupied during the simulation process, and do not
operate these 2 IOs in the simulated code area;
 During the simulation process, do not disconnect USB or programming interface directly to avoid Keil
breakdown. To disconnect USB or programming interface, exit Debut mode first.
 For notes of external power supply simulation, see 2.2.5 Descriptions for External Power Supply
Simulation.

Page 26 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.4 Instructions for SC LINK PRO Programming

2.4.1 Firmware Upgrading


The firmware of SC LINK PRO features online upgrading to add new functions or correct problems. Specific
methods for firmware upgrading are shown below:
 For better experience, please visit http://www.socmcu.com to download the latest firmware files;
 There are 2 ways to enter IAP update mode. You are advised to select Mode 1 for there is no need to
plug SC LINK PRO:

(1) Mode 1: After connecting SC LINK PRO to PC, open SOC Programming Tool and click “Upgrade
Programmer Firmware” on “Programmer Information” menu. At this time, Busy lamp on SC LINK
PRO (red) will flash, indicating that it enters Firmware Upgrading mode;
(2) Mode 2: In power-off state of SC LINK PRO, long press “Programming” button, connect it to PC USB,
at this time, Busy lamp on SC LINK PRO (red) will flash, indicating that it enters Firmware Upgrading
mode;
1. In “Open File” dialog box, locate the firmware file (.iap file) and click “Open”;
2. Pop up the dialog box to display the current version and the version to be updated, and click “OK”
button;
3. After the update is completed, SC LINK PRO will exit Firmware Upgrading mode automatically;
4. View the version information of upgraded firmware in “Programmer Information”.

Note: During the process of firmware upgrading, you are not advised to perform other operations.

2.4.2 Steps for Online Programming


 Connect SC LINK PRO with the programming interface of target board;
 Connect SC LINK PRO to PC via USB cable, open SOC Programming Tool and select IC model from the
drop-down list of “Chip Select”;

Page 27 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
 Check the target area to be programmed and click “Load” to load the code file to be programmed
(HEX/BIN file);
 Configure IC option in “option” tab;

 Select programming voltage and check Erasing, Programming and Verifying, etc.;
 Click “Auto Programming” button to perform corresponding programming and verifying;

2.4.3 Steps for Offline Programming


 Connect SC LINK PRO to PC via USB cable, open SOC Programming Tool and select IC model from the
drop-down list of “Chip Select”;

 Check the programming area, click “Load” to load the code file to be programmed (HEX/BIN file);
 Check the operation checkbox in “ProgramSetting”, such as Program + Verify;
 Select Programming mode: Check “Auto Programming” for automatic programming mode, and uncheck
for manual programming mode:
Page 28 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
1. In manual programming mode, press the button to program;
2. In auto programming mode, SC LINK PRO will complete IC detection and programming
automatically after power-on.
 Configure IC option in “option” tab;

 Click “Download” button and download the code file to SC LINK PRO;
 Disconnect SC LINK PRO with PC USB, and use the external power supply via USB to power SC LINK
PRO to start programming.

2.4.4 Comparison
To confirm if the programming code and configured items loaded by SC LINK PRO are correct, connect SC
LINK PRO to PC via USB and open SOC Programming Tool, and then click “Compare” button to check if the
current programming configurations and programming codes loaded consistent with the contents loaded in SC
LINK PRO.

Page 29 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.4.5 Instruction for S/N

 S/N function is available for SC LINK PRO in offline mode.


 Low S/N data is stored in low address, for example, write 32BITS S/N 0XAABBCCDD in 0X0F10, the
value written for 0X0F10 is 0XDD, the value written for 0X0F11 is 0XCC, the value written for 0X0F12 is
0XBB and the value written for 0X0F13 is 0XAA.
 The S/N must be 4 bytes in length with the start address of a multiple of 4 (such as 0F10H, 0A04H, etc.),
otherwise, an error will be reported upon programming.
 It is recommended to set the S/N address outside the program space so as to avoid the program code
from being covered by S/N data, resulting in being unable to perform verifying operation after programming.
 S/N supports power-off memory function.

2.4.6 Descriptions for External Power Supply Programming


Steps for external power supply programming:
 Power on the target board with external power supply;
 Connect the target board with SC LINK PRO in power-off state;
 Connect SC LINK PRO to PC via USB;
 Open SOC Programming Tool, configure the programming options and click “Programming”;
 Disconnect the power to the target board once Busy lamp of SC LINK PRO starts flashing;

Page 30 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
power-off

power

Disconnect the power to the target


board when the Busy lamp Blink
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

target board

power-on

power

Disconnect the power to the target


board when the Busy lamp turn-off
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

target board

 Connect the power to target board once Busy lamp turns off; when Busy lamp turns on, it enters
 After programming is completed, disconnect the target board to ensure that the programmed IC exits
Programming mode.

2.4.7 Instructions for Connecting Programmer


For ease of operation, we use programmer control interface to control IC programming with software
programming instead of manual programming.
 Please use manual programming mode with unchecking “Auto Programming” option when downloading
the programming program in SOC Programming Tool.
 Start in programmer control interface is the start input channel for programming and valid in low level.
It is recommended to release the pull-down operation of start after detecting low level of busy interface
signal is output when starting the programming for start;
 After decrease the level for start, detect NG signal interface, OK signal interface and busy signal interface;
low level in NG signal interface indicates programming is failed, low level in OK signal interface indicates
programming is succeeded and low level in busy signal interface indicates programming in progress; only
one signal interface can be output in low level at a time; if more than two signal interfaces have low levels at
the same time or all single interfaces have high levels, programming shall be stopped .
 Programmer programming-related parameters are set as follows:

Page 31 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.4.8 Notes for Programming


 Overload protection and reminds:
1. A maximum output current of SC LINK PRO is 400mA; if the load exceeds this range, self-resettable
fuse will be enabled;
2. If overload occurs, please perform IC programming in external power supply mode
 For notes of programming in offline programming mode, see 2.3.6 Descriptions for External Power
Supply Programming;
 In any programming mode, any pin of programmed IC connected to other power-on system will result in
programming failure;
 For IC on-board programming, you are advised to remove the peripheral capacitance of programming pin
CLK and DIO.
 For 95 series Flash-type IC programming, please check “Sector Block or Full Erase” for
programming, otherwise it may result in programming failure.

2.4.9 Instruction for EEPROM Area Programming


 Select the programming area:
1. If both APROM and EEPROM are programmed, check “APROM+EEPROM” at the same time
2. If only EEPROM is programmed, only check “EEPROM”
APROM+EEPROM is used as the example for subsequent instructions

Page 32 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Select EEPROM tab and configure the start address of EEPROM, this address determines the start
address for programming in EEPROM. Select corresponding start address, the code programmed to
EEPROM will be written from this start address. As shown in the figure below, if the start address is 0x0060,
the first byte for this code (0x00) will be written in 0x0060 in EEPROM and the second byte (0x01) will be
written in 0x0061 in EEPROM , and so forth until all codes are written in EEPROM.

Note: If the offset address is 0x0000, EEROPM length will be limited by the software; if the offset
address is the non-zero address, the offset address + length is composed of 128 bytes at most
with the former being the integer multiple of 4.

 If the length of the code programmed into EEPROM is not a multiple of 4, the address less than a multiple
of 4 will be added with 0 automatically. As shown in the figure below, the address of last 3 bytes less than a
multiple of 4 is added with 0 automatically.

Page 33 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Load APROM and EEPROM file respectively, where, HEX file loaded in EEPROM is the file to be
programmed in EEPROM (You can generate the file by the example project “EEPROM Project” provided by
SOC)

 After the files are loaded, confirm the code checksum and option

Page 34 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Connect SC LINK PRO, check “Program + Verify” and click “Auto”

2.4.10 Instruction for LDROM Area Programming


① Programming area selection:
1. If you need APROM area and LDROM area to burn at the same time, you need to check
APROM+LDROM at the same time, specific IC LDROM need to see the specification to
determine, some IC can directly tick LDRAM for programming, such as 95F861X. Some ics
need to select the size of LDRAM above OPTION before they can be used, such as 95F873X
2. If only the LDROM area is program separately, only select LDROM

The following uses APROM+LDROM, IC 95F8736 as an example.

② Load APROM and LDROM files respectively, where: HEX file loaded in LDROM area is the file to
be program in LDROM area.

Page 35 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

③ File loading is complete, confirm the code checksum is correct, confirm option is correct
④ Connect SCLINK, select fan eraser for erasing, check "programming + Verification", and click
"Automatic"

2.4.11 Multi-code Management


2.4.11.1 Introduction to Multi-code Management

Multi-code management function supports storing multiple project on SC LINK PRO so as to facilitate
batch programming for multiple project codes. Before using multi-code management, please confirm the
following:

(1) Preparations: ① SC LINK PRO; ② SOC Programming Tool v0.10 or later; ③ Firmware V0.1 and

later.

(2) Before using multi-code programming mode, please carefully read 2.3.10 Notes for Multi-code

Management.

2.4.11.2 Instructions for Multi-code Management


1. Add Multiple-code Project List
(1) Open SOC Programming Tool v0.10 or later, as shown in the figure below, select the target chip model,
load the target programming code to APROM or other area and confirm the project ProgramSettings, then
click “Programming Project List Management” button to enter Multi-code Management page. (Note: It is
unable to enter multi-code management in Partition Programming Mode; To exit the Partition
Programming mode, refer to 2.3.11.3 Operating Procedures for Partition Programming)

Page 36 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

(3) Then enter “Multi-code Management” page, it is empty for first use (no project list), as shown in the
figure below.

(4) As shown in the figure below, input the project name to be saved in “Project Name” column (English
character with no more than 11 characters), then fill in the No. in “No. Range”, and click “Add Code Project”
to save the loaded project to SC LINK PRO.

Page 37 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

(5) After adding the code project, you can see the information of the added project (including project No.,
project name, IC name and CRC of target code project, etc.).
(6) For SC LINK Pro users, up to 40 Code projects can be added, all of which can be saved to the external
memory of the programmer.
2. Activate Multi-code Project List
(1) If at least one Code project is added to the project list, select this project and click “Activate Selected
Project” (Note: In offline programming mode, priority to programming shall be given to the activated
project in multi-code project list), then you can see the information of activated project in the text box at
the upper of the project list; if the text box is empty, no project is activated. A project is activated as shown in
the figure below.

3. Delete Multi-code Project List


(1) Delete the selected project. For multiple project lists, you can delete unnecessary multi-code projects;
select a project and click “Delete Selected Project” to delete the selected code project from the memory of
Page 38 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
the programmer.
(2) Delete all projects. For multiple project lists, you click “Delete All Projects” to delete all multiple-code
projects added.
4. Read Multi-code Project List
After the programmer has added and stored multiple-code projects, you can click “Read Project List”
through online programming tool to obtain the information of added project list.
5. Compare Multi-code Project List
After a project is added to the multi-code project list, select the project to be compared and then click
“Compare Selected Project” to compare it with the current loaded project or project code. If yes, the data is
the same. If not, it indicates that the data of currently activated project is inconsistent with that of loaded
project code. Besides, you can also compare the CRC in the project list with the checksum of the loaded
project code.
6. Exit Multi-code Management
When multi-code management is not required, delete the activated multi-code projects or all projects to
exit multi-code management and restore the normal programming mode.
7. Programming Multi-code Project
For the multi-code project already activated, you can program and check the target project in offline
programming mode.
As shown in the figure below, black characters on the white background are displayed on OLED,
indicating that it enters Multi-code Project Programming mode. After pressing “Programming” button, you
can see the programming is succeeded. At this time, the project code activated in Multi-Code project list has
already been programmed to the target IC.

Offline Programming in Multi-Code Programming Mode

Page 39 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Offline Programming Succeeded in Multi-Code Mode

2.4.11.3 Notes for Multi-Code Management


1. Before using the multi-code management, close the partition programming first (For partition
programming, please refer to 2.3.11 Partition Programming).
2. If there is no activated project or no project at all in Multi-code Project list, the multi-Code management is
invalid. At this time, it is in ordinary programming mode, and the project code downloaded offline will be
programmed.
3. If there is any activated project in multi-code project list, this activated project will be programmed offline.
4. In each Code project downloaded, APROM and LDROM support a maximum of 128KB and 4KB
respectively.
5. When the black characters on the white background are displayed on OLED in offline programming
mode, it indicates it is currently the multi-code in activated state and will program this activated project code;
Displaying the white characters on the black background on OLED indicates that it is in normal
programming mode currently.

2.4.12 Automatic Upgrading Detection


SOC Programming Tool supports featuring online upgrade detection, can automatically detect the

version of programming tool, MCU library and SC LINK PRO firmware under the circumstance of user PC

connecting to the network; when a new version is found, the system will prompt user the new version

detected and provide the download address. The figure below shows the popped-up online detection

update dialogue box.

Page 40 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Page 41 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2.5 Frequently-asked Questions and Answers


SC LINK PRO Cause Solution
Abnormalities
The programming cable is Check if four programming cables are
connected abnormally connected properly
The programming cable is too The length of SC LINK PRO programming
long cable can not exceed 60cm
CLK or DIO pins of the chips The capacitance on the programming signal
have 100pF capacitance to interface may cause programming timing
GND error, when programming by using SC LINK
Online programming
PRO, the capacitance to GND of the
display: “Please
programmed CLK and DIO shall be within
connect MCU with the
100pF
programmer”, or the
Resistance exists between Try to avoid series resistance between the
offline programming is
SC LINK PRO programming lead-out point of programming and the chip;
failed
interface and the chip if it is unavoidable, guarantee the series
programming interface resistance value does not exceeds 100R,
and minimize the programming cable upon
programming
CLK and DIO of chips are In circuit design, try to avoid connecting CLK
connected to the same digital and DIO of the chip to the same digital tube
tube
Four indicators flash at Short circuit in VDD and VSS Troubleshoot before programming
the same time of programming target
board/chip
Busy lamp keeps SC LINK PRO enters Upgrade firmware
flashing in online Firmware Upgrading mode
programming mode
Running lamp keeps The supply voltage is Check if the supply voltage of SC LINK PRO
off after power-on abnormal is not less than 4.5V

Page 42 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3. Programmer & Simulator SC LINK


3.1 Hardware Description

3.1.1 Specifications

Parameter Name Min Max Unit Test Conditions


Operating Voltage 4.5 5.5 V
Operating Current (idle) - 70 mA Operating
Voltage=5.0V
Output Current - 400 mA Operating
Voltage=5.0V
Supply
Current≥500mA
Supply Voltage of Programming Equal to V
Interface (5V) Supply Voltage
Supply Voltage of Programming 3.2 3.4 V Operating
Interface (3.3V) Voltage≥4.5V
Length of External Programming - 60 cm Operating
Cable Voltage≤5.0V
Capacitance Range between VDD - 1000 uF Operating
and VSS upon Programming on Board Voltage≤5.0V

3.1.2 Descriptions
SC LINK is suitable for offline/online writing, simulation and TouchKey debugging of SOC 8051 series IC.

① USB Interface: Used for connecting PC and power supply


② Programming buttons: Programming start in offline programming mode; Keep holding and power on will
enter firmware upgrading mode
③ RUN Lamp: Red light indicates power on
④ Busy Lamp: Red light, lamp flashes means IC programing in offline programming mode or firmware
upgrading
⑤ OK Lamp: Blue light indicates programming completed
⑥ NG Lamp: Red light means programming failed
⑦ Cable Interface: The cable interface below is sorted subject to the actual sequence with the function
category distinguished by the font color: blue for programming interface, black for programmer interface
Page 43 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
and red for power output interface
⑧ Select short tap cap for firing voltage tap

VDD DIO VSS CLK 3.3V voltage tap 5V


GND OK NG Busy Start 3.3V 5V

3.1.2.1 Function Description for Programming Interface


Use 4PIN cable for ICP programming, details are shown in Figure
Name Function Description
VDD,VSS Power and ground (pin) of programmed IC
CLK,DIO Programming signal interface, connecting tCLK and tDIO of target IC

3.1.2.2 Description for Programming Voltage


The user can select the firing voltage according to the tap voltage of the short-circuit cap and the
corresponding corresponding, the following is specific:
Name Function Description
The IC voltage tap can be selected by pin, and the tap cap can be used to select
Voltage
the voltage tap
Short-circuited with "voltage tap", the firing voltage is the supply voltage of SC
5V
LINK
3.3V Short-connected with "voltage tap", the firing voltage is 3.3V
The figure on the left below is the connection mode of 5V voltage tap cap, and the figure on the right is the
connection mode of 3.3V voltage tap cap

3.1.2.3 Function Descriptions for Programmer Interface


Name Function Descriptions
GND SC LINK PRO signal ground
OK Programming status interface, low level indicates programming is completed
NG Programming status interface, low level indicates programming failed
Busy Programming status interface, low level indicates programming is in progress
Start Programming start signal interface, low level indicates valid
3.3V Programmer power supply, Note: Only 3.3V rather than 5V can be selected!
Page 44 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.2 Instructions for SC LINK Simulation

3.2.1 Configurations before Simulation


SC LINK provides MCU online simulation for SOC 92/93/95 series, which is available for debugging, step
debugging, step-over debugging and RST operations for up to 8 breakpoints (7 for users, and 1 as hidden
breakpoint), to view and modify RAM and SFR and debug the program in development stage. Before using,
complete the following configurations. For details about how to install the Keil plug-in, see 5.1 Install Keil C
Plug-in . After installing the Keil plug-in, configure the Keil. 5.2 Set Keil Interface.
Programing and simulation interface 3.3 Instructions for SC LINK Programming .After the above
configuration is complete, you can continue the simulation.

3.2.2 SC LINK Simulation Operations


After above configurations are completed, user can perform simulation for up to 8 breakpoints, 7 for users
and 1 as hidden breakpoint. For the convenience of description, a specific example is given here to complete
breakpoint simualtion based on the following steps.

3.2.2.1 Set/Delete Breakpoint


Breakpoint Setup: Double click the left mouse on source program line of the preset breakpoint, or press “F9”
button, or click the shortcut icon “Insert/Remove breakpoint” (on the right of “Debug” button). When the red block
appears on the left of the line, the setting is succeeded.
Breakpoint Cancel: Before pre-cancelling the breakpoint, double click the left mouse, or press “F9” button, or
click the shortcut icon “Insert/Remove breakpoint” (on the right of “Debug” button). When the red block
disappears on the left of the line, the setting is succeeded.

Note: Before simulation, it is required to pre-set the breakpoint. The breakpoint can be set/deleted
during the simulation process, as shown in the figure below:

3.2.2.2 Download Program


After the programming is completed, click the shortcut icon “Download” to complete the code programming.
Page 45 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
The programming depends on “ProgramSetting” in “Programming Option”, check “Programming” and “Verifying”
to program and then verify “Download” process and output relevant information in “Build OutPut” Window.

Note: If Download fails, an error message is displayed. Or else, Download succeeds.

3.2.2.3 Enter/Exit Simulation


After the program Download succeeds, click the shortcut icon “Start/Stop Debug Session” button, or press
the shortcut key “Ctrl+F5” or click “Debug-> Start/Stop Debug Session”, as shown in the figure below. After
entering correctly, “D” button is in sunk state indicating it is open; click it again to exit the debug and “D” button is
in smooth state indicating it is closed. After entering the simulation debugging interface, debug-related menus will
be added on the toolbar, including Reset, Run, Stop, Pause, Step, Step Over, Step Out, Run to Cursor Line,
Show Next Statement, Command Window, Disassembly Window, Symbol Window, System Register Window,
Call Stack Window, Observation Window, Memory Window and Serial Port Window, etc. Menus in the toolbar
mentioned above can be found in current “Debug” menu bar. For ease of operations, subsequent operations are
performed from the toolbar.

Page 46 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

If it fails to enter the debugging interface, please check if the configuration is correct before simulation.

3.2.3 Simulation Run Operations


Once entering the simulation status, you can perform a series of simulation operations, including Full-speed
Run to Breakpoint (Run), Step Track (Step), Step Over, Run to Cursor Line and Reset.
Page 47 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.2.3.1 Full-speed Run to Breakpoint (Run)


Set up the breakpoint before entering the simulation status, click the shortcut icon “Run” button or “F5” to run
to the breakpoint at full speed, as shown in the figure below:

In the figure above, when running at full speed to the first breakpoint and stopping at this breakpoint, a
yellow debugging arrow appears to the left of the breakpoint, pointing to the current stop line. If you open the
Disassembly window, such yellow debugging arrow also appears, pointing to the PC address of current program.
After entering the simulation status, the program will stop at 0x00 address by default, that is, PC points to
0x00. When running at full speed to the first breakpoint, it will run from this address to the first breakpoint before
stopping. Compared with other simulation operations, the execution speed is the fastest.

3.2.3.2 Step Track (Step)


Step Track means the program stops after executing a line each time.
 Click the shortcut icon “Stop” button or press the shortcut key “F11”, the program will run one step at a
time. It should be noted that the step running process will be different in C Source Program window for
“Disassembly” window to be open or closed by default. It is recommended to keep “Disassembly”
window in open state during the Step process.
 Open/close “Disassembly” window. Click the shortcut icon “Disassembly Window”, the sunk state
indicates on, “Disassembly” window will appear at this time, and disassemble the current program line;
the smooth state incidates off, “Disassembly” window will disappear

 Open the “Disassembly” window and run Step


Page 48 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
The current program stops at the function body Timer0Init(), press F11 to execute the program line that
current yellow arrow points to, and then the arrow will point to the next line. The result is shown below. Press F11
repeatedly to execute the program line by line.
Open the “Disassembly” window and execute the disassembly line by default; To execute the source
code line, left click the source code interface.

3.2.3.3 Step Over


When executing the program to a subfunction or CALL/LCALL in the assembly, the operation will run the
subfunction at full speed to the next command rather than stepping into the subfunction.

Note:
 If the position where the program is executed is not a subfunction, the operation will obtain
the same result as that of step track;
 If any breakpoint exists in the subfunction, the program will stop at the breakpoint first.
Click the shortcut icon “Step Over” or the shortcut key “F10”.
Still take the current breakpoint stopping at Timer0Init() as an example, press F10, keep the cursor outside
the function and run this function at full speed, then the yellow arrow will point to the next line, as shown in the
figure below:

Page 49 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Continue pressing F10 and observe the Disassembly window, its running results will be the same as that of
Step Track, as shown in the figure below:

3.2.3.4 Run to Cursor Line


If the simulation efficiency between breakpoints through Step Track or Step Over is low and expected to run
to the source line directly, run Run to Cursor Line.
Press the shortcut icon “Run to Cursor Line” or the shortcut key “Ctrl+F10”.
For example, as shown in Figure 3.2.2, select “Run to Cursor Line” to directly stop the program at the last
line of Timer0Init() function.
Position Cursor: Left click the program line preset and a blue arrow appears indicating the line is selected,
as shown in the figure below:
Note: The preset program line must be operable from the line with current yellow arrow, otherwise running to
Page 50 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
the cursor will become invalid.

Press Ctrl+F10 and run to the cursor line at full speed before stopping, then the yellow arrow will appear at
positioned cursor line, as shown in the figure below:

3.2.3.5 Reset
Click “Reset” button to reset the program with the yellow arrow pointing to the address 0x00, as shown in the
figure below:

Page 51 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.2.4 View and Modify Variables


3.2.4.1 Use Watch Windows to View and Modify Variables
In simulation debugging mode, view or modify current variable by Watch Windows
 Open Watch Windows
Click the shortcut icon “Watch Windows” to show 3 optional windows: Locals,Watch1,Watch2. Any
Window icon with light yellow background indicates it is checked, and a sub-window appears at the bottom
of KEIL interface, as shown in Figure 3.2.4-1; When clicking “Watch1” or “Watch2”, a Watch interface
appears at the bottom of KEIL interface, as shown in Figure 3.2.4-2

Fig. 3.2.4-1

Fig. 3.2.4-2
 Fill in the variable to be pre-viewed/pre-modified
In the "Name" column, enter the Name of a variable that must exist in the source code, otherwise it is
invalid. At this time, the value of current variable appears in corresponding “Value” column, as shown in
Figure 2.2.4-3

Page 52 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Fig. 3.2.4-3
In the figure above, add the variable GlobalVar_Idata and GlobalVar_Xdata, the values in Watch1 are
0x0010 and 0x30 respectively.
Besides, in C source code interface, when the mouse moves over the variable name, its value, type
and address will appear as well, as shown in Figure 3.2.4-4.

Fig. 3.2.4-4
② Modify the value of variable
In the “Value” column of the variable to be modified, double click and modify the value, then click the left
mouse at any position, the variable column will turn to dark color, as shown in Figure 3.2.4-5.

Fig. 3.2.4-5
In the figure above, the value of GlobalVar_Xdata is modified as 0x22.

3.2.4.2 Use Memory Window to View and Modify Variable


② Open Memory Windows
Click “Memory Windows” to show 4 optional windows: Memory1 - Memory4, as shown in Figure 2.2.4-6.
Any Window icon with light yellow background indicates it is checked, and a sub-window appears at the
bottom of KEIL interface; when clicking any window, a Memory interface appears at the bottom of KEIL
interface, as shown in Figure 2.2.4-7.

Page 53 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Fig. 3.2.4-6

Fig. 3.2.4-7
 View/modify variable by address
In Memory interface, the Address column is used to input the starting address of memory to be
displayed. If the address and memory area of current variable are known, perform the following commands.
Ram data area: D:xx; RAM idata area: I:xx; Ram Xdata area: X:xx.
After completing the commands above, the value of variable beginning with Start Address will be
displayed, and you can also double-click to modify it.
Take GlobalVar_Xdata as an example, use 0x27 as the Start Address and view the value of Xdata area,
as shown in Figure. 3.2.4-8.

Fig. 3.2.4-8
In the figure above, the address value of X:0x000027 is 0x30, that is, the value of GlobalVar_Xdata is 0x30,
same as the results observed in Watch1, as shown in Figure 3.2.4-3.
Likewise, you can also modify the value of variable here, shown as follow:
1. Double click the value of the address in Memory to modify, as shown in Figure 2.2.4-9

Fig. 3.2.4-9
③ Fill in a new value and click at any position to complete, as shown in Figure 3.2.4-10

Page 54 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Note: If the variable address is not clear, we recommend using Watch Windows.

3.2.4.3 View and Modify SFR


 Open Watch Windows
Same as the Watch window opened in viewing and modifying variables
 Fill in SFR name to be pre-viewed/pre-modified
Fill in SFR name to be operated in “Name” column, this SFR must exist in the head file, otherwise it is
invalid. At this time, the value of this SFR appears in corresponding “Value” column, as shown in Figure
3.2.4-11.

Fig. 3.2.4-11
In the “Value” column of the SFR to be modified, double click and modify the value, then click the left
mouse at any position, the variable column will turn to dark color, as shown in Figure 3.2.4-12.

Fig. 3.2.4-12

3.2.5 Descriptions for External Power Supply Simulation


Steps for external power supply simulation:
 In order to prevent SC LINK damage, please be sure to unplug the short-circuit cap of SC LINK
voltage range selection in the simulation mode of external power supply firing!
 Connect the target board to the SC LINK. The target board is powered on, and the SC LINK is powered
off;
 Connect SC LINK to computer through USB cable;
 Open keil software, configure programming options and click Download;
Page 55 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
 Disconnect the power supply of the target board when the power indicator begins to blink.
power-off

power

Disconnect the power to the target


board when the Busy lamp Blink
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

target board

power-on

power

Disconnect the power to the target


board when the Busy lamp turn-off
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

target board

 When the power indicator turns off, power on the target board. When the power indicator turns steady on,
the Download mode is entered. The Download is complete, without electricity again into the simulation.

3.2.6 Notes for Simulation


 The programming interface CLK and DIO will be occupied during the simulation process, and do not
operate these 2 IOs in the simulated code area;
 During the simulation process, do not disconnect USB or programming interface directly to avoid Keil
breakdown. To disconnect USB or programming interface, exit Debut mode first.
 For notes of external power supply simulation, see 3.2.5 Descriptions for External Power Supply
Simulation.

3.3 Instructions for SC LINK Programming

3.3.1 Firmware Upgrading


The firmware of SC LINK features online upgrading to add new functions or correct problems. Specific
methods for firmware upgrading are shown below:
① For better experience, please visit http://www.socmcu.com to download the latest firmware files;
② SC LINK power off Press and hold the programming button, and then connect to the USB port of the
Page 56 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
computer. At this time, the RUN indicator (red light) on SC LINK will blink, indicating that the firmware
upgrade mode has entered.
③ Open SOC Programming Tool and click “Upgrade Programmer Firmware” on “Programmer
Information” menu.
④ In “Open File” dialog box, locate the firmware file (.iap file) and click “Open”;
⑤ Pop up the dialog box to display the current version and the version to be updated, and click “OK” button;
⑥ After the firmware update is complete, disconnect the USB connection between the SC LINK and the PC
to exit the firmware upgrade mode;
⑦ It can be used normally after being powered on again

Note:
1. please confirm before upgrade the firmware to upgrade the firmware file is ready;
2. The upgrade process is interrupted will lead to abnormal SCLINIK;
3. In the process of firmware upgrade, user is not recommended for other operation.

3.3.2 Steps for Online Programming


① Connect SC LINK with the programming interface of target board
② Connect SC LINK to PC via USB cable, open SOC Programming Tool and select IC model from the
drop-down list of “Chip Select”;

③ Check the target area to be programmed and click “Load” to load the code file to be programmed
(HEX/BIN file);
④ Configure IC option in “option” tab;

Page 57 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

⑤ Select programming voltage and check Erasing, Programming and Verifying, etc.;
⑥ Click “Auto Programming” button to perform corresponding programming and verifying;

3.3.3 Steps for Offline Programming


① Connect SC LINK PRO to PC via USB cable, open SOC Programming Tool and select IC model from
the drop-down list of “Chip Select”;

Page 58 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
② Check the programming area, click “Load” to load the code file to be programmed (HEX/BIN file);
③ Check the operation checkbox in “ProgramSetting”, such as Program + Verify;
④ Select Programming mode: Check “Auto Programming” for automatic programming mode, and
uncheck for manual programming mode:
1. In manual programming mode, press the button to program;
2. In auto programming mode, SC LINK PRO will complete IC detection and programming
automatically after power-on.
⑤ Configure IC option in “option” tab;

⑥ Click “Download” button and download the code file to SC LINK


⑦ Disconnect SC LINK with PC USB, and use the external power supply via USB to power SC LINK to
start programming.

3.3.4 Comparison
To confirm if the programming code and configured items loaded by SC LINK are correct, connect SC LINK
PRO to PC via USB and open SOC Programming Tool, and then click “Compare” button to check if the current
programming configurations and programming codes loaded consistent with the contents loaded in SC LINK.

Page 59 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.3.5 Instruction for S/N

① S/N function is available for SC LINK in offline mode.


② Low S/N data is stored in low address, for example, write 32BITS S/N 0XAABBCCDD in 0XFE00, the
value written for 0XFE00 is 0XDD, the value written for 0XFE01 is 0XCC, the value written for 0XFE02
is 0XBB and the value written for 0XFE03 is 0XAA.
③ The S/N must be 4 bytes in length with the start address of a multiple of 4 (such as 0F10H, 0A04H, etc.),
otherwise, an error will be reported upon programming.
④ It is recommended to set the S/N address outside the program space so as to avoid the program code
from being covered by S/N data, resulting in being unable to perform verifying operation after
programming.
⑤ S/N supports power-off memory function.

3.3.6 Descriptions for External Power Supply Programming


Steps for external power supply programming:
① To prevent SC LINK from being damaged, remove the short-circuit cap for SC LINK voltage tap
selection in external power supply programming mode.
② Connect the target board to the SC LINK. The target board is powered on, and the SC LINK is powered
off.
③ Connect SC LINK to computer through USB cable;
④ Open SOC Programming Tool, configure the programming options and send the programming
command;
⑤ Disconnect the power supply of the target board when the power indicator begins to blink.

Page 60 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual
power-off

power

Disconnect the power to the target


board when the Busy lamp Blink
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

⑥ target board



power-on

power

Disconnect the power to the target


board when the Busy lamp turn-off
POWER

4 PIN Cable
Run Busy OK NG
U
Program
S SC LINK PRO/SC LINK Interface MCU
B

⑨ target board

⑩ When the power indicator is off, switch on the power supply of the target board. When the power
indicator turns steady on, it enters the programming mode.
⑪ After the programming is completed, the target board needs to be completely powered off to ensure
that the IC has been program out of the programming mode.

3.3.7 Instructions for Connecting Programmer


For ease of operation, we use programmer control interface to control IC programming with software
programming instead of manual programming.
① Please use manual programming mode with unchecking “Auto Programming” option when downloading
the programming program in SOC Programming Tool.
② Start in programmer control interface is the start input channel for programming and valid in low level. It
is recommended to release the pull-down operation of start after detecting low level of busy interface
signal is output when starting the programming for start;
③ After decrease the level for start, detect NG signal interface, OK signal interface and busy signal
interface; low level in NG signal interface indicates programming is failed, low level in OK signal interface
indicates programming is succeeded and low level in busy signal interface indicates programming in
progress; only one signal interface can be output in low level at a time; if more than two signal interfaces
have low levels at the same time or all single interfaces have high levels, programming shall be stopped .
④ Programmer programming-related parameters are set as follows:

Page 61 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.3.8 Notes for Programming


① Overload protection and reminds:
1. A maximum output current of SC LINK PRO is 400mA; if the load exceeds this range,
self-resettable fuse will be enabled;
2. If overload occurs, please perform IC programming in external power supply mode
② For notes of programming in offline programming mode, see 2.3.6 Descriptions for External Power
Supply Programming;
③ In any programming mode, any pin of programmed IC connected to other power-on system will result in
programming failure;
④ For IC on-board programming, you are advised to remove the peripheral capacitance of programming
pin CLK and DIO.
⑤ When you program an IC with a Sector partition ROM, select Erasing or erasing the Sector block
in the erasing option. Otherwise, the program may fail.

3.3.9 Instruction for EEPROM Area Programming


① Select the programming area:
1. If both APROM and EEPROM are programmed, check “APROM+EEPROM” at the same time
2. If only EEPROM is programmed, only check “EEPROM”
APROM+EEPROM is used as the example for subsequent instructions

Page 62 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

② If the length of the code program into the EEPROM is not a multiple of 4, the address that is less than a
multiple of 4 is automatically added with 0. As shown in the figure below, the last 3byte of the code
automatically fills 0 for the address whose multiple is less than 4.

③ Load APROM and EEPROM files respectively, where: THE HEX file loaded in the EEPROM area is the
FILE to be program in the EEPROM area (users can generate it through the example Project
"EEPROM Project" provided by SOC)

Page 63 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

④ File loading is complete, confirm the code checksum is correct, confirm option is correct

⑤ Connect SC LINK PRO, check “Program + Verify” and click “Auto”

3.3.10 LDROM Area Programming Description


① Programming area selection:
1. If you need APROM area and LDROM area to burn at the same time, you need to check
APROM+LDROM at the same time, specific IC LDROM need to see the specification to
determine, some IC can directly tick LDRAM for programming, such as 95F861X. Some ics
need to select the size of LDRAM above OPTION before they can be used, such as 95F873X
2. If only the LDROM area is program separately, only select LDROM

The following uses APROM+LDROM, IC 95F8736 as an example.

Page 64 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

② Load APROM and LDROM files respectively, where: HEX file loaded in LDROM area is the file to
be program in LDROM area.

③ File loading is complete, confirm the code checksum is correct, confirm option is correct
④ Connect SCLINK, select fan eraser for erasing, check "programming + Verification", and click
"Automatic"

Page 65 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.3.11 Multi-code Management


3.3.11.1 Introduction to Multi-code Management
Multi-code management function supports storing multiple project on SC LINK so as to facilitate batch
programming for multiple project codes. Before using multi-code management, please confirm the following:
(1)Preparations: ① SC LINK; ② SOC Programming Tool v0.10 or later; ③ Firmware V0.1 and later.

( 2 ) Before using multi-code programming mode, please carefully read 3.3.11.3 Notes for

Multi-Code Management。

3.3.11.2 Instructions for Multi-code Management


1.Add Multiple-code Project List
(1)Open SOC Programming Tool v0.10 or later, as shown in the figure below, select the target chip model, load
the target programming code to APROM or other area and confirm the project ProgramSettings, then click
“Programming Project List Management” button to enter Multi-code Management page.

(2) Then enter “Multi-code Management” page, it is empty for first use (no project list), as shown in the figure
below.

Page 66 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

(3) As shown in the figure below, input the project name to be saved in “Project Name” column (English
character with no more than 11 characters), then fill in the No. in “No. Range”, and click “Add Code
Project” to save the loaded project to SC LINK.

(4)After adding the code project, you can see the information of the added project (including project No., project
name, IC name and CRC of target code project, etc.).
(5)For SC LINK users, up to 40 Code projects can be added, all of which can be saved to the external memory
of the programmer.
2. Activate Multi-code Project List
(1)If at least one Code project is added to the project list, select this project and click “Activate Selected Project”
(Note: In offline programming mode, priority to programming shall be given to the activated project in
multi-code project list), then you can see the information of activated project in the text box at the upper of the
project list; if the text box is empty, no project is activated. A project is activated as shown in the figure below.

Page 67 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3. Delete Multi-code Project List


(1) Delete the selected project. For multiple project lists, you can delete unnecessary multi-code projects;
select a project and click “Delete Selected Project” to delete the selected code project from the memory of
the programmer.
(2) Delete all projects. For multiple project lists, you click “Delete All Projects” to delete all multiple-code
projects added.
4. Read Multi-code Project List
After the programmer has added and stored multiple-code projects, you can click “Read Project List”
through online programming tool to obtain the information of added project list.
5. Compare Multi-code Project List
After a project is added to the multi-code project list, select the project to be compared and then click
“Compare Selected Project” to compare it with the current loaded project or project code. If yes, the data is
the same. If not, it indicates that the data of currently activated project is inconsistent with that of loaded
project code. Besides, you can also compare the CRC in the project list with the checksum of the loaded
project code.
6. Exit Multi-code Management
When multi-code management is not required, delete the activated multi-code projects or all projects to
exit multi-code management and restore the normal programming mode.
7. Programming Multi-code Project
When there is already an active multi-code project, the target project can be program and verified by
offline programming.

3.3.11.3 Notes for Multi-Code Management


1. If there is no activated project or no project at all in Multi-code Project list, the multi-Code management is
invalid. At this time, it is in ordinary programming mode, and the project code downloaded offline will be
programmed.
2. If there is any activated project in multi-code project list, this activated project will be programmed offline.
3.In each Code project downloaded, APROM and LDROM support a maximum of 128KB and 4KB
respectively.

Page 68 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.3.12 Automatic Upgrading Detection


SOC Programming Tool supports featuring online upgrade detection, can automatically detect the
version of programming tool, MCU library and SC LINK PRO firmware under the circumstance of user PC
connecting to the network; when a new version is found, the system will prompt user the new version
detected and provide the download address. The figure below shows the popped-up online detection
update dialogue box.

Page 69 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

3.4 Frequently-asked Questions and Answers

3.4.1 Exceptions and solutions


SC LINK V3.XX Cause Solution
Abnormalities
The programming cable is Check if four programming cables are
connected abnormally connected properly
The programming cable is too The length of SC LINK programming cable
long can not exceed 60cm
The programming cable is Check if four programming cables are
connected abnormally connected properly
CLK or DIO pins of the chips The capacitance on the programming signal
Online programming have 100pF capacitance to interface may cause programming timing
display: “Please GND error, when programming by using SC LINK,
connect MCU with the the capacitance to GND of the programmed
programmer”, or the CLK and DIO shall be within 100pF
offline programming is Resistance exists between Try to avoid series resistance between the
failed SC LINK programming lead-out point of programming and the chip;
interface and the chip if it is unavoidable, guarantee the series
programming interface resistance value does not exceeds 100R,
and minimize the programming cable upon
programming
CLK and DIO of chips are In circuit design, try to avoid connecting CLK
connected to the same digital and DIO of the chip to the same digital tube
tube
Four indicators flash at Short circuit in VDD and VSS Troubleshoot before programming
the same time of programming target
board/chip
Busy lamp keeps SC LINK enters Firmware Power on SC LINK again
flashing in online Upgrading mode
programming mode
Running lamp keeps The supply voltage is Check if the supply voltage of SC LINK is not
off after power-on abnormal less than 4.5V
The version displayed The firmware version is Upgrade the SC LINK firmware. For details,
on the soc incompatible see 3.4.2 SC LINKV3.XX Firmware Upgrade
programming tool is
incompatible

3.4.2 SC LINKV3.XX Firmware Upgrade


The procedure for upgrading to SC LINK V3.xx is as follows:
① Open the SOC Programming Tool and observe the firmware status of SC LINK. If the firmware version is
incompatible as shown in the following figure, download the V3.xx firmware from the Official website of Sin
One.

Page 70 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

② After unplugging the SC LINK, hold down the KEY on the SC LINK and insert it into the USB port of the PC.
At this time, the RUN indicator on the SC LINK keeps blinking and the firmware upgrade mode enters. Click
upgrade programmer firmware of programmer information to upgrade the firmware.

③ Select the firmware downloaded from the official website to update the firmware.
④ After upgrading the firmware, unplug SC LINK and reinsert SC LINK. Then open the SOC Programming
Tool. If it can identify SC LINK, indicates that SC LINK has been successfully updated to v3.xx.

Note: When upgrading firmware, long press the KEY and then insert it into the USB port of the
PC to enter the firmware upgrade mode!

Page 71 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

4. SOC Programming Tool


4.1 Overview
Developed by Shenzhen SinOne Microelectronics Co., Ltd. (hereinafter referred to as “SOC”), SOC
Programming Tool is designed for PC tools of SOC series programming, which shall be used together with
SC LINK PRO&SC LINK.
The software supports windows xp/2000/vista/7/10/11 operating systems. By default, it is installed in
the directory of “C:\Program Files\SOC\SOC Programming Tool” and created in Start Menu and desktop
shortcut, you can modify these default settings during installation.
Your are advised to carefully read the help files before using the software and visit SinOne official
website: http://www.socmcu.com to obtain the latest MCU manual and software version.
For any question, suggestion or opinion, call 0755-26652552 or email to: SOC_support@socmcu.com.

4.2 Install SOC Programming Tool


 Double click SOC Programming Tool vx.x.exe

 Select “SC”, “TC” or “EN”, and click “OK” button

 View the licence, select “I Agree” and then click “Next” button

Page 72 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 View the installation instruction and click “Next” button

 The default installation path is in “C:\Program Files(x86)\SOC\SOC Programming Tool”, and you
can modify it as needed , then click “Next” button

Page 73 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Set the name of this folder on Start Menu with “SOC Programming Tool” by default; you can
modify it as needed, then click “Next” button

 Create desktop shortcut and quick launch bar shortcut by default; you can modify them as
needed, then click “Next” button

Page 74 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Double check all installation options, then click “Install” button

 After installation, related notes will be displayed, click “Next” button

Page 75 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Check/uncheck “Run SOC Programming Tool”, and click “Complete” to complete.

Note: After installation, if any network communication message pops up upon opening SOC
Programming Tool for the first time, please select “Public Network” to avoid missing important
notifications and updates related to the tool!

Page 76 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

4.3 Software Interface

1) Menu Bar and Operation Buttons and Progress Bar Display Area:
Menu Bar and Shortcut button: Load Project, Save, Programming, Verify, Auto, Erasing,
Null Checking and Help.
2) Operating Prompt Bar:
Display the operating prompt information during the operation process.
3) ProgramSetting Interface:
Chip Model Option, File Load, Programming Area, S/N, Auto Programming, Offline
Programming Options, etc..
4) Option Setting Interface
Set corresponding WDT, System Clock and LVR for different MCU model as needed.
5) APROM Code Display Window:
Display the loaded or read code in current APROM.
6) EEPROM Code File Window:
Display the loaded or read code in current EEPROM.

Page 77 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Function
No. Function Descriptions
Name
1 Load Project Load saved project file (with the extension of “. socprj”)
Save Program Code, ProgramSetting (Chip Model, Programming Area, S/N,
2 Save
Programming Options, etc.) as the project file (with the extension of “. socprj”)
3 Null Checking Check if the program code exists in MCU
4 Erasing Erase the code in MCU
5 Programming Program the loaded program code and settings to MCU
6 Verify Check if MCU is programmed correctly
7 APROM Load Load program codes to APROM
8 EEPROM Load Load program codes to EEPROM
9 LDROM Load Load program codes to LDROM
Programming
10 Select programming voltage as needed
Voltage
Perform automatic operations (Null Checking, Erasing, Programming, Check,
11 Auto
Reset and Run) as needed;
Programming Select if it is required to encrypt, write/read CRC and to display the checksum of
12
Option currently loaded project when programming
1. Automatic Programming: Check it to automatically detect MCU in offline
programming mode, and perform programming automatically if detected, with no
Offline
need to press START button.
13 Programming
2. Limit programming counts: Check it to set the limit programming count with
Option
the upper limit of 1,000,000. If the limit is exceeded, the programmer will stop
programming.
Write a group of number in MCU Flash:
Optional
User-defined start value
14 S/N Settings
User-defined step value
User-defined store address
Hexadecimal increment mode by default

EEPROM
15 Offset User-defined the start address to write EEPROM
Address

Option
16 Set MCU programming configurations
Settings

Page 78 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

4.4 Function Descriptions

4.4.1 Descriptions for S/N

 The S/N function is currently available for SC LINK PRO in offline mode only.
 Low S/N data is stored in low address, for example, write 32 BITS S/N 0XAABBCCDD in 0X0F10, the
value written for 0X0F10 is 0XDD, the value written for 0X0F11 is 0XCC, the value written for 0X0F12 is
0XBB and the value written for 0X0F13 is 0XAA.
 The S/N must be 4 bytes in length with the start address of a multiple of 4 (such as 0F10H, 0A04H, etc.),
otherwise, an error will be reported upon programming.
 It is recommended to set the S/N address outside the program space so as to avoid the program code
from being covered by S/N data, resulting in being unable to perform verifying operation after programming.

4.4.2 MCU Library Upgrading


With SOC Programming Tool, IC model programmable and corresponding configuration parameters
can be set by using MCU library file; When any new IC is introduced or the configuration parameters of
current IC are adjusted, SOC will update the library file and publish it on the official website
(http://www.socmcu.com).
To update MCU library:
 Download the latest MCU library file in SinOne official website (http://www.socmcu.com).
 Open SOC Programming Tool and click “Upgrade Chip Library File” on “Programmer
Information” Menu.
 Locate MCU library file (.mculib/.mcux file) in “Open File” dialog box, and click “Open”.
 After upgrading is completed, restart SOC Programming Tool.

Page 79 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

4.4.3 Firmware Upgrading


The firmware of SC LINK PRO features online upgrading to add new features or correct problems.
Firmware upgrading method: For the methods for SC LINK PRO firmware upgrading online, see 2.3.1
Firmware Upgrading

4.4.4 Check Offline Programming Options


Figure 4.4.6 shows settings of SOC Programming Tool offline programming options, only valid in SC
LINK PRO offline mode.

Fig. 4.4.6 Settings of Offline Programming Options


Functions are described as follows:
1. Auto Programming: Check it for the programmer to detect IC automatically; perform programming
automatically if detected without any triggering action.
2. Limit programming counts: Check it to set the limit programming count with the upper limit of 1,000,000. If
the limit is exceeded, the programmer will stop programming.

4.4.5 Security Encryption


4.4.5.1 Security Encryption Functions and Features
All IC of SinnOne have encryption function, among which the 95F series, 92L series and part of 92F
series IC allow users to choose whether to enable the security encryption function, while other series
forcibly enable the security encryption function by default and users cannot disable it. For IC models with
configurable security encryption function, you can select whether to encrypt the IC securely by configuring
the Encryption control in the "ROM Encryption" option on the host computer interface.

Page 80 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Security encryption features of SinOne series IC are as follows (configurable IC for security encryption
function) :
1. Regardless of whether the security encryption function is selected, as long as the user through the
programmer to an encrypted IC to perform programming rewrite, if the operation target is LDROM or
APROM+LDROM, the programmer will be forced to erase APROM and LDROM, and then perform
write operation
2. The only way to enable secure encryption is to check secure encryption and write
3. The only way to disable secure encryption is to turn it off and write
4. Secure encryption does not affect IAP functionality

4.4.5.2 Secure encryption procedure


When the "encryption" option in the chip model IC of the burning interface is lit up, if you want to turn off
the encryption function, you should deselect "encryption"), the configuration interface is as follows:

Left: enable encryption Right: disable encryption


If you want to use encryption, after configuring "encryption", the "programming" operation will be
triggered. The encrypted configuration will be written to the chip by the writer, and the encryption
configuration will be completed. If you want to use encryption, after configuring "encryption", the
"programming" operation will be triggered. The encrypted configuration will be written to the chip by the
writer, and the encryption configuration will be completed.
Page 81 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

4.4.5.3 The relationship between the encryption of the programmed IC and

the erasure of the programming area


1. This relationship applies only to the IC whose security encryption function can be configured.
To prevent users from forgetting to set the secure encryption mode, the "encryption" setting in the ROM
encryption option is automatically checked
2. Whether the burned IC is encrypted or not will have different effects on THE APROM and LDROM of IC,
and the corresponding relationship is as follows:
Programming area
APROM LDROM APROM+LDROM
IC encryption
The LINK will The LINK will forcibly
The LINK will forcibly
forcibly erase erase
Not encrypted erase LDROM before
APROM before APROM+LDROM
rewriting
rewriting before rewriting
The LINK will The LINK will forcibly The LINK will forcibly
forcibly erase erase erase
Encrypted
APROM before APROM+LDROM APROM+LDROM
rewriting before rewriting before rewriting

4.5 ICP Online Programming


Take using SC LINK PRO program SC92F8003 as an example.
 Connect SC LINK PRO to SC92F8003 with 4PIN cables in the right direction.
 Connect online programmer SC LINK PRO to PC with USB cable.
 Open SOC Programming Tool.
 Select the chip model to be programmed at the drop-down list of “Chip Select”, such as
SC92F8003 in the example.

1. After the chip model is selected, its related interface contents (such as programming type,
ProgramSetting, etc.) will be adjusted based on its resources automatically;

Page 82 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

2. Check corresponding programming area, click “Load” and locate the code file to be loaded (.hex
file or bin file) in the popped-up window, then click “Open” to display the program codes in
corresponding area. The figure below shows the HEX file loaded after selecting APROM;

3. Set up S/N function as needed (if no need, skip this step);


4. Click “Programming” button to program the code file and corresponding settings to MCU;
5. SOC Programming Tool will pop up a window, showing the progress of “Programming”. After the
programming is completed, the window will prompt the programming is succeeded.

Page 83 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

6. Programming is completed.

Page 84 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

5 Keil C Plug-ins
5.1 Install Simulation Plug-ins
 Double click SOC_KEIL_Setup Vx.xxx.exe, view the license, select “I agree”, then click “Next”

 View the license, select “I agree”, then click “Next”

 The default installation path is in the directory for Keil installed, you can modify this path, then click
“Next” button

Page 85 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Set the name of this folder on Start Menu with SOC_KEIL_SCLINKPRO in default. You can
modify the name as needed, then click “Next” button

 Confirm the installation path and click “Next” button

Page 86 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 For installation, click “Next” and then click “Install” to complete the installation, and read related help
information

Page 87 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

Note: After installation, if any network communication message pops up upon opening KEIL
software for the first time, please select “Public Network” to avoid missing important notifications
and updates related to the tool!

5.2 Set Keil Interface


 Open Keil project file, click the shortcut icon “Target Option”, select “Debug” in “Target Option”
interface, click “Use” and select “SOC 8051 Driver”, and then check “Run to main(), as shown in the
figure below:

 Click “Utilities” and select “SOC 8051 Driver” from “Use Target Driver for Flash Programming”, as
shown in the figure below:

Page 88 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

 Click “Settings” to enter “Programming Option Information Interface”, as shown in the figure below:

 Programming Option Information Configuration.


1. Chip Select: Select IC name for pre-programming or simulation.
2. ProgramSetting: Select automatic programming, including erasing, programming, verifying, etc.
3. Programming Options: Set Code Option as needed.
4. Programming Area: APROM or EEPROM
5. Upgrade: Upgrade the library file.
6. Help: Version-related information.
Note: If the required IC model is not found in chip option or the corresponding model found can
not be simulated, it is required to click “Upgrade” to enter the upgrade interface.

Upgrade MCU Library: Upgrade “.socmculib” library file provided by SOC. Select “Upgrade MCU
Library”, select the library file to be upgraded, and click “Open” to complete the upgrading.
Upgrade Firmware: Upgrade the firmware of programmer provided by SOC.

 DownLoad shortcut key


“DownLoad” will perform IC operations according to programming Option configurations, not only
programming code and Code Option selected , but also erasing, programming and verifying according
to ProgramSetting shown in the figure below.
Page 89 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

5.3 Notes for Keil C Plug-ins


 Before using Keil C to create SOC MCU project, please visit SinOne official website
(http://www.socmcu.com) to download and install the latest SOC Keil C library file. After installation,
SOC MCU model library file, MCU head file and Demo program will be stored in SOC folder under Keil
C installation directory.
 SOC MCU head file already contains the common name of SFR, so please uncheck “Define 8051
SFR Names” in A51 column of project setting when using Keil C to create SOC MCU project to avoid
error reporting.

Page 90 of 91 V0.1
http://www.socmcu.com
SOC LINK Series Programmer & Simulator
SinOne User Manual

6 Revision History
Revision Changes Date
V0.1 Initial Release. March 2022

Page 91 of 91 V0.1
http://www.socmcu.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy