You are on page 1of 9

Translated from Chinese (Simplified) to English - www.onlinedoctranslator.

com

UM0116
SDK-HC89S003AF4Development Tools User Manual

Introduction

This user manual mainly describesSDK-HC89S003AF4The hardware and software development tools used, the installation and use instructions of the development tools,

The development and debugging method steps and precautions are designed to help usersHolychip Flash MCU HC89S003AF4developers of fast

Quickly and easily develop applications.

- This application note applies to chips:HC89S003AF4

- Relevant data sheets, tools and technical documents download website:http://www.holychip.cn/ .

1/9
http://www.holychip.cn
UM0116

Table of contents

1, Development Tools Overview................................... ................................................... ...................................................3

1.1Development Tools Hardware ................................................ ................................................... ...................................3

1.1.1button................................................. ................................................... ...................................................4

1.1.2indicator light................................................ ................................................... ................................................4

1.1.3Test pin................................................ ................................................... ................................................4

1.1.4External Clock ................................................ ................................................... ...................................4

1.1.5On-Board Debug Module Interface................................... ................................................... ................................4

1.1.6Jumper settings................................................ ................................................... ................................................4

1.1.7 USBinterface................................................. ................................................... ...................................5

1.2Development tool software................................... ................................................... ...................................5

2, Development Tool Installation Instructions................................... ................................................... ...................................6

2.1Operating environment................................................ ................................................... ................................................6

2.2Hardware installation ................................................ ................................................... ................................................6

2.3Software Installation................................................ ................................................... ................................................6

2.3.1 IDEsDevelopment environment installation................................... ................................................... ................................6

2.3.2 HC-LINKDriver and software installation................................... ................................................... .........6

3,SDK-HC89S003AF4Introduction to use................................... ................................................... ..........7

3.1 SDK-HC89S003AF4Register version example................................... ...................................................7

3.1.1Use of the Register Version Example................................... ................................................... ..........7

3.1.2Minimal System Engineering1-ExampleProject ................................................... ................................................ 7

4, Application Notes................................... ................................................... ...................................................8

5, Release Notes................................... ................................................... ...................................................9

2/9
http://www.holychip.cn
UM0116

1, Overview of Development Tools

1.1 development tool hardware

SDK-HC89S003AF4is based onHC89S003AF4designed for rapid development tools,SDK-HC89S003AF4Include

MCUDevelop circuits and debug modules on-board.MCUdevelop the circuit for debuggingHC89S003AF4provides the necessary peripheral configuration, the on-board

The debugging module is used as a debugger and a programmer, and the hardware configuration of the two is as follows:

On-Board Debug Module

MCUdevelopment circuit

On-Board Debug Module MCUdevelopment circuit

1 Offline programming button 2 test needle

3 Burning interface 4 test needle

5 User LED (P00)


6 RSTPin header (need to be shorted when using external reset)

7 RSTbutton

3/9
http://www.holychip.cn
UM0116

1.1.1button

SDK-HC89S003AF4configuration2Two physical buttons: offline programming button and reset button. Offline programming button for on-board debugging

Offline programming of the module; the reset button is used as the hardware reset button of the chip.

silk screen pin function connect device

K1 Offline programming On-Board Debug Module

K2 hardware reset MCUreset pin

1.1.2indicator light

SDK-HC89S003AF4configuration4The two indicators are respectively used for: power-on indicator, offline programming button indicator and reset button indicator

lights. The offline programming button is used for offline programming of the on-board debugging module; the reset button is used as a hardware reset of the chip. Both pass the test pin

pin connected to theMCU.

1.1.3test needle

SDK-HC89S003AF4configuration2Group2*10test pin, connect toMCUAll pins for user testing or extended functionality

able.

1.1.4external clock

SDK-HC89S003AF4Reserved2A set of external clock interfaces, which are low-frequency crystal oscillator and high-frequency crystal oscillator. When using an external crystal, the

The user should solder the corresponding crystal oscillator and crystal oscillator capacitor by himself (recommended value is20PF),2The group crystal oscillator can be connected to theMCU.

silk screen pin function connect device

X2 P1.0 32.768KHZcrystal oscillator

P1.1
X3 P1.0 4-20Mcrystal oscillator

P1.1

1.1.5On-Board Debug Module Interface

SDK-HC89S003AF4ofMCUThe development circuit reserves a two-wire simulation programming interface; the on-board debugging module reserves two groups of simulation programming interfaces.

recording interface, including two-wire, four-wire andISPinterface.

1.1.6jumper settings

SDK-HC89S003AF4There is a set of skipping stitchesJ13, you need to confirm the status of the jumper pin before powering on. The specific settings are as follows:

silk screen Function set up default

J13 RST External low level reset disconnect

4/9
http://www.holychip.cn
UM0116

1.1.7 USBinterface

SDK-HC89S003AF4 supply1GroupMicroUSBinterface, through which the5Vpower supply and withPCmachine communication

Function.

1.2 development tool software

HC89S003AF4be usableKeilThe development tool performs functions such as program editing, compiling and linking, debugging and downloading.

5/9
http://www.holychip.cn
UM0116

2, Development Tools Installation Instructions

2.1operating environment

The development tools need to run in the following configuration and environment:

- SDK-HC89S003AF4, includingUSB cable(micro-B)

- SDK-HC89S003AF4Related Drivers, Documentation, Software and Toolkits

- bringUSBinterfacePC,Windows7and above operating system

2.2hardware installation

Hardware for development tools includesSDK-HC89S003AF4circuit board andUSB Cable (micro-Bdata line), when using theUSB

cableone end connectionSDK-HC89S003AF4circuit boardmicro-B, the other end is connected toPCmachineUSBmouth.

2.3Software Installation

useSDK-HC89S003AF4The following software needs to be installed:

- KEIL IDEdevelopment environment

- HC-LINKDrivers and Software

- HC-ISPDrivers and Software

2.3.1 IDEsDevelopment environment installation

HC89S003AF4Series chips support third-partyIDEsdeveloped, availableKeil MDKDevelopment tools for program editing and compiling

Link and debug download and other functions.

Keil MDKDevelopment environment:

please go toKeilOfficial website: (https://www.keil.com/ ) to download the latest version of theKeil MDKAnd follow the official tutorial

IDEsand the installation and setup of the corresponding components (make sure the version isV9.0or higher):

2.3.2 HC-LINKDriver and software installation

When implementing the compiler and programmer functions through the on-board debugging module, it is necessary to installHC-LINKdrive andKEILplugin. please go toHolychip

official website (http://www.holychip.cn/kfgj/info_14.aspx?itemid=390 ) to download or contact relevant technical support personnel to obtain the emulator driver

Move andKEILplug-in, decompress the obtained emulator driver andKEILplug-in, find the "HC-LINK_Tool User Manual_Ver1.0x_cn",

Please refer to "HC-LINK_Tool User Manual_Ver1.0x_cn".

6/9
http://www.holychip.cn
UM0116

3,SDK-HC89S003AF4Introduction

3.1 SDK-HC89S003AF4Register version example


in okIDEs,HC-LINKAfter the software and drivers are installed, useUSBline willPCandSDK-HC89S003AF4connect,

go toHolychipofficial website (http://www.holychip.cn/cpzxSI/info_47.aspx?itemid=173) Download the latest version of the sample program or link

Contact relevant technical support personnel to obtain it.

3.1.1Example use of the register version

The main structure of the example of the register version The main structure example can refer to the figure below

Put the basic header files

Place project project files

Place usage routines

Notice:useKEILWhen debugging and downloading as a development tool, you can use theOption—Utilities—SettingConfigure according to your needs

For related download options, please refer to "HC-LINK_Tool User Manual_Ver1.0x_cn" .

3.1.2Minimal System Engineering1-ExampleProject

1-ExampleProjectMainly provide the modelMCUThe corresponding minimum project of the system does not need to create a project from scratch, and can be used directly

Use this project to develop applications.

7/9
http://www.holychip.cn
UM0116

4, application notes

1, Simulation port during simulationSDA,SCKnot controlled by software

2, Emulation cannot be performed in low power consumption mode

3, external power supply, the highest voltage5.5V

8/9
http://www.holychip.cn
UM0116

5, release notes

Version date describe

V1.00 2021/6/8 first edition

HOLYCHIPThe company reserves the right to further explain the improvements in reliability, function and design of all the following products.

HOLYCHIPDo not assume any responsibility arising from the application and use of the products or circuits involved in this manual,HOLYCHIPproducts are not

are specifically designed for use in surgical implants, life support and anyHOLYCHIPProduct malfunctions can cause personal injury or even death

field of. if willHOLYCHIPproducts are used in the above fields, even if these are made byHOLYCHIPNegligence in product design and manufacture

The user shall indemnify all costs, losses, reasonable personal injury or death, direct or indirect attorneys' fees incurred, and

Customer GuaranteeHOLYCHIPand its employees, subsidiaries, affiliates and sellers have nothing to do with the above matters.

Xinsheng Electronics

2021Year6moon

9/9
http://www.holychip.cn

You might also like