ST6/BOX [ETC]
COMPLETE ST6 STARTER KIT ; 完整ST6入门工具包\n型号: | ST6/BOX |
厂家: | ETC |
描述: | COMPLETE ST6 STARTER KIT
|
文件: | 总53页 (文件大小:468K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
ST622x Starter Kit
User Manual
for ST620x, ST621x
and ST622x
Release 3.0
November 2000
Ref: DOC-E-ST622XSKUM
USE IN LIFE SUPPORT DEVICES OR SYSTEMS MUST BE EXPRESSLY AUTHORIZED.
STMicroelectronics PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN
LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF
STMicroelectronics. As used herein:
1. Life support devices or systems are those
which (a) are intended for surgical implant into
the body, or (b) support or sustain life, and whose
failure to perform, when properly used in
accordance with instructions for use provided
with the product, can be reasonably expected to
result in significant injury to the user.
2. A critical component is any component of a life
support device or system whose failure to
perform can reasonably be expected to cause the
failure of the life support device or system, or to
affect its safety or effectiveness.
Table of Contents
Chapter 1: Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1
1.2
1.3
1.4
1.5
Overview .......................................................................................................
Possible Uses of the Starter Kit ....................................................................
Where to go from here... ...............................................................................
Getting Assistance ........................................................................................
Instructions for use - Warning .......................................................................
5
7
8
9
9
Chapter 2: Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1
2.2
2.3
2.4
Your System Requirements ........................................................................ 11
Installing the Hardware ............................................................................... 11
Installing WGDB6 and other ST6 Software Tools ....................................... 11
Launching WGDB6 .....................................................................................
13
Chapter 3: Hardware Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1
3.2
The ST6 Microcontrollers ............................................................................ 15
The Starter Kit Board .................................................................................. 15
Chapter 4: Running the Demos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1
4.2
What the Demos Do ...................................................................................
25
Running the Demonstration Programs ....................................................... 27
Chapter 5: Connecting External Resources to the Starter Kit Board . . . . 31
Chapter 6: Using The Starter Kit Board as a Hardware Simulator . . . . . . . 33
6.1
6.2
6.3
6.4
6.5
The Data Transmission Driver .................................................................... 34
Technical Limitations .................................................................................. 34
To use the Starter Kit board as a hardware simulator: ............................... 35
Error Messages ..........................................................................................
Troubleshooting ..........................................................................................
36
36
Chapter 7: Programming ST6 Microcontrollers . . . . . . . . . . . . . . . . . . . . . . 37
7.1
7.2
7.3
7.4
7.5
Programming Signals ................................................................................. 37
Setting Up the Starter Kit Board ................................................................. 37
In-Circuit Programming ............................................................................... 40
Application Board Connections ................................................................... 40
Setting Up the Starter Kit Board for In-Circuit Programming ...................... 42
3/53
Table of Contents
Chapter 8: Running Your Own program on the Starter Kit Board . . . . . . . 45
Appendix A: Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Product Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Getting prepared before you call...............................................................................
Contact List...............................................................................................................
49
49
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
4/53
ST622x Starter Kit User Manual
1 - Introduction
1
INTRODUCTION
The ST622x Starter Kit provides you with all you need to start designing,
developing and evaluating programs for ST620x, ST621x and ST622x
microcontrollers immediately.
Note:
If you come across any terms or abbreviations you do not understand, you can check their
meaning in the Glossary on page 47.
1.1
Overview
The ST622x Starter Kit includes:
•
The ST6 Starter Kit board, which serves as a demonstration board and low-
cost debugging tool.
•
•
Two ST62E25, two ST62E20 and one ST62E01 microcontrollers.
The MCU on CD CD-ROM which contains the following:
-
-
-
-
The ST6 assembler and linker, AST6 and LST6.
The ST6 Windows debugger, WGDB6.
The Windows ST6 microcontroller programmer, Epromer.
Some demonstration programs that show how ST6 microcontrollers use the
Starter Kit board resources.
-
Some example programs of typical ST6 applications for the ST622x family.
•
A complete set of paper documentation and online help.
The demonstration programs, that come pre-loaded on an ST62E25
microcontroller, show how the powerful features of ST6 microcontrollers operate in
a real environment. The demonstration programs use the hardware resources
provided on the Starter Kit board, which include reset and data control buttons,
LED indicators, a resistance trimmer, a temperature control circuit and an RS-232
interface. The source files of these demos are also included on the MCU on CD
CD-ROM and are installed by default in the following directory:
C:\Program Files\Stm\ST6toolchain\StarterKit\sk622xli
Using the ST6 assembler and linker, AST6 and LST6, you can assemble and link
ST6 programs. The AST6/LST6 User Manual will guide you through the steps of
developing, assembling and linking programs for ST6 microcontrollers.
5/53
1 - Introduction
ST622x Starter Kit User Manual
The Starter Kit software includes a set of example programs of typical ST6
applications. These example programs are included in the MCU on CD CD-ROM
and are installed by default in the following directory:
C:\Program Files\Stm\ST6toolchain\StarterKit\Samples\exos
Once you have developed your ST6 program, you can use the ST6 Windows
debugger, WGDB6, together with the Starter Kit board, as a low-cost but powerful
debugging tool. WGDB6 includes an ST6 simulator, that simulates the execution of
your program, and uses the ST6 that is plugged into the Starter Kit board to
emulate all transactions that are performed with the data space. Thus, using the
Starter Kit board with WGDB6, you can view how the microcontroller peripherals
behave when your program is executed. WGDB6 includes powerful debugging
features, such as source-level debugging, instruction and conditional memory
access breakpoints and selective trace recording. The WGDB6 Getting Started
manual and online help will lead you through the debugging process using
WGDB6.
In addition to the ST WGDB6 debugger, Raisonance’s RIDE-ST6 Windows -
compatible software package is supported by the ST6 Family Starter Kits.
Raisonance’s software suite is an integrated development environment that
includes a highly optimized ANSI C Compiler, a powerful Macro-Assembler, a
Linker and a fully integrated Simulator/Debugger. The advantage of Raisonance’s
software suite is that everything you need to evaluate, debug, edit and re-compile
your application is integrated in a single, consistent and user-friendly interface.
This software is included in the MCU-on-CD CD-ROM provided with your emulator
kit, or can be downloaded from Raisonance’s web site at:
http://www.raisonance.com
Once your program is ready, Epromer provides you with an easy-to-use Windows
interface, which lets you prepare executable code, then write it to the ST6
microcontroller that is plugged into either one of the DIL sockets on the Starter Kit
board, or your own in-circuit application board that is connected to the Starter Kit
board.
To observe and evaluate the consequences of your program on the resources it
controls, you can run it on an ST6 microcontroller that is plugged into the Starter Kit
board. If it controls a resource that is not included on the Starter Kit board, you can
connect your own resource to the board.
6/53
ST622x Starter Kit User Manual
1 - Introduction
1.2
Possible Uses of the Starter Kit
The following diagram summarizes the possible uses of the Starter Kit board and
the hardware setup required for each one.
To program ST6 MCUs on your own in-circuit programming board:
In-circuit
programming board
PC running
Epromer
Starter Kit
board
Parallel port
connected to P1
J1 connector
To program ST6 MCUs using the Starter Kit board:
PC running
Epromer
ST6 MCU to be
programmed
Starter Kit board
Parallel port
connected to P1
To run the demonstrations:
To run your own program:
ST6 MCU Programmed with
DEMOK25.HEX
Starter Kit board
ST6 MCU programmed
with program to run
To use the Starter Kit board as a software simulator:
PC running
WGDB6 Simulator
ST6 MCU Programmed with
DEMOK25.HEX
Parallel port
connected to P1
7/53
1 - Introduction
ST622x Starter Kit User Manual
1.3
Where to go from here...
The following table directs you to where you should look for further information
concerning how to use the ST6 Starter Kit.
To:
Refer to:
Install the Starter Kit software, and
connect the power supply to the board.
Chapter 2: Getting Started on page 11 of
this book.
Find out about the Starter Kit board and
ST6 microcontrollers provided with the kit.
Chapter 3: Hardware Features on page 15
of this book.
Find out what the demonstration
applications do, and run them.
Chapter 4: Running the Demos on
page 25 of this book.
Connect your own hardware resource to
the Starter Kit board.
Chapter 5: Connecting External
Resources to the Starter Kit Board on
page 31 of this book.
Learn how to develop source code for
AST6 and LST6.
AST6/LST6 Assembler and Linker for the
ST6 Family -User Guide.
Install WGDB6, and learn how to use it for
debugging your programs.
WGDB6 Windows Debugger for the ST6
Family - Getting Started.
Prepare the Starter Kit board for use as an
ST6 hardware simulator with WGDB6.
Chapter 6: Using The Starter Kit Board as
a Hardware Simulator on page 33 of this
book.
Learn how to use Epromer for
The Epromer online help.
programming ST6 microcontrollers.
Prepare the starter kit board for
programming ST6 microcontrollers using
Epromer.
Chapter 7: Programming ST6
Microcontrollers on page 37 of this book.
Prepare the Starter Kit board for
connecting your own in-circuit
programming board.
Section 7.5: Setting Up the Starter Kit
Board for In-Circuit Programming on
page 42 of this book.
Run your own program on an ST6
microcontroller using the Starter Kit board.
Chapter 8: Running Your Own program on
the Starter Kit Board on page 45.
8/53
ST622x Starter Kit User Manual
1 - Introduction
1.4
Getting Assistance
For more information, application notes, FAQs and software updates on all the ST
microcontroller families, check out the CD-ROM or our website:
http://mcu.st.com
For assistance on all ST microcontroller subjects, or if you need help with using
your emulator, refer to Product Support on page 49. We’ll be glad to help you!
1.5
Instructions for use - Warning
This product conforms with the 89/336/EEC directive; it also complies with the
EN55022 emissions standard for ITE, as well as with generic 50082-1 immunity
standards.
The product is a Class A apparatus. In a residential environment this device may
cause radioelectrical disturbances which may require that the user adopt
appropriate precautions.
The product is not contained in an outer casing, and cannot therefore be immune
against electrostatic discharge (ESD): it should therefore only be handled at
static safe work stations.
9/53
1 - Introduction
ST622x Starter Kit User Manual
10/53
ST622x Starter Kit User Manual
2 - Getting Started
2
GETTING STARTED
2.1
Your System Requirements
To run/install the software provided on the MCU on CD CD-ROM, you must have a
PC running either Microsoft Windows 95, Windows 98 or Windows NT .
2.2
Installing the Hardware
2.2.1
Connecting the Power Supply
If you have an AC mains supply, connect the jack plug on the power supply cable
provided to the J3 input socket, then connect the mains plug to a mains source.
If you have DC mains supply, connect the male plug on the power supply cable
provided to the J3 input socket, then connect the mains plug to a mains source with
the following characteristics:
•
•
Voltage: 16 V min./20 V max.
Current: 100 mA min.
Note:
To avoid a short circuit, always connect the power input cable to the starter kit board before
connecting it to a mains power supply.
If you use your own 3.5 mm power supply plug, its polarity must be as follows:
-
+
JACK PLUG
2.3
Installing WGDB6 and other ST6 Software Tools
Your starter kit comes with the MCU on CD CD-ROM which contains a number of
ST6 software tools. To install them, follow these steps:
1
Place the MCU on CD CD-ROM in your CD-ROM drive. The CD-ROM’s
autorun feature opens up a welcome screen on your PC.
If the autorun feature does not work, use Windows Explorer to browse to the
CD-ROM’s root folder, and double-click on welcome.exe.
2
3
Select Install Your Development Tools from the list of options. A new screen
appears listing the different families of STMicroelectronics MCUs.
Use your mouse to place the cursor over the ST6 TOOLS option. Choose ST
TOOLS and ST6 TOOLCHAIN from the lists that appear.
11/53
2 - Getting Started
ST622x Starter Kit User Manual
4
The install wizard is launched. Follow the instructions that appear on the
screen.
You can choose the package you wish to install. To install the complete ST6
Toolchain for your starter kit, select Complete Toolchain for Starter Kit. This
option installs the WGDB6 debugger version for your starter kit, as well as a
Windows Epromer and ST6 Assembler-Linker software.
Alternatively, you can choose to perform a custom installation where you
choose which of the available software applications you wish to install.
Note:
In order to configure your starter kit, you must, as a minimum, install the ST6 WGDB6 for
Starter Kit
If you do not choose any options, but click Next>, the ST6 Assembler-Linker will be installed
by default.
5
6
Follow the instructions that appear on your screen. You will be prompted to
select the parallel port you wish to connect the emulator to, as well as the
program folder that the software will be installed to.
If you are installing WGDB6 on a Windows NT platform, you must install the
Windows NT parallel port driver supplied on the CD-ROM.
A window pops up if you have not already installed this driver (parstm.sys).
7
Click OK. The following window appears:
12/53
ST622x Starter Kit User Manual
2 - Getting Started
8
Click Install. The following window appears:
9
Click OK, the installation is now complete. The following window appears.
10 Choose to read the Release Notes or start WGDB6, then click the Finish
button.
2.4
Launching WGDB6
From Windows 95, 98 or Windows NT, click the Start button, point to Programs
-> ST6 Tool Chain -> Development Tools, then choose WGDB6 StarterKit.
Refer to the WGDB6 Windows Debugger for the ST6 Family User Manual for full
instructions on how to use WGDB6. This manual is available in PDF format on the
MCU on CD CD-ROM.
13/53
2 - Getting Started
ST622x Starter Kit User Manual
14/53
ST622x Starter Kit User Manual
3 - Hardware Features
3
HARDWARE FEATURES
This section describes the ST6 microcontrollers and the Starter Kit board that
come with the ST6 Starter Kit. Figure 3 on page 18 shows a full schematic of the
Starter Kit board.
3.1
The ST6 Microcontrollers
The Starter Kit includes two ST62E25, two ST62E20 and one ST62E01
microcontrollers.
The ST62E25 microcontroller labelled DEMOK25 is pre-loaded with the
Demok25.hex code, which includes the demonstration programs (see Chapter 4:
Running the Demos on page 25), as well as the communications protocol program,
that enables you to use the Starter Kit board as a simulator (see Chapter 6: Using
The Starter Kit Board as a Hardware Simulator on page 33). The other ST6
microcontrollers are blank.
The Demok25.asm file is also provided on the MCU on CD CD-ROM and is
installed in the ...\ST6toolchain\StarterKit\sk622xli directory, so that if you erase
it from the ST62E25, you can re-program it following the instructions given in
Chapter 7: Programming ST6 Microcontrollers on page 37.
3.2
The Starter Kit Board
The Starter Kit board includes the following resources (described in more detail
later in this chapter):
•
•
•
•
•
•
•
•
Oscillator.
Reset button.
Data control buttons.
LED indicators.
Resistance trimmer.
Temperature control circuit.
RS-232 interface.
Demonstration program selector jumpers.
It comes with its own power supply unit that can be plugged into an AC mains
source, or a DC source with the following characteristics:
•
Voltage: 16 V min./20 V max., Current: 100 mA min.
15/53
3 - Hardware Features
ST622x Starter Kit User Manual
It includes the following connectors:
•
•
•
•
A parallel port connector (P1) for connection to the host PC when it is used as
a hardware simulator or for programming.
A remote resource I/O interface connector (J2) to which you can connect your
own hardware resource.
An RS-232 connector, which you can use for observing RS-232
communication control using an ST6.
A connector for your own in-circuit ST6 programming board. See Application
Board Connections on page 40 for further details.
A block diagram of the Starter Kit board is shown in Figure 1..
POWER
TEMPERATURE
DAC
LEDs
SUPPLY
UNIT
TRIMMER
CONTROL
RS232
P2
J3
JP1
IN-CIRCUIT
PROGRAMMING
J1
EPROM
PROGRAMMER
ST62E25
PARALLEL CONNECTION
TO PC AND
SOFTWARE SIMULATOR
P1
ST622x I/O CONNECTION
J2
USER APPLICATION
Figure 1: Block diagram of Starter Kit board
16/53
ST622x Starter Kit User Manual
3 - Hardware Features
A photo of the Starter Kit board is shown in Figure 2.
Figure 2: Starter Kit board
17/53
3 - Hardware Features
ST622x Starter Kit User Manual
The layout of the Starter Kit board is shown in Figure 3.
19
18
17
16
15
14
13
12
11
10
1
W1
W2
2
3
4
5
6
7
W3
W4
W5 W6
W8
W7
W9
8
9
W10
Figure 3: Starter Kit board layout
1
2
3
4
5
6
7
8
In-circuit programming connector (J1). 11
RESET button.
8 Mhz oscillator.
12
13
14
15
16
17
18
Demonstration routine selector.
RS232 interface circuit and connector.
10 KΩ trimmer.
PC connector P1.
4 LEDs.
Heater resistor LED indicator LD6.
Power supply JACK connector J3.
Heater resistor.
DIL 20-28 ZIF MCU socket.
DIL 16 ZIF MCU socket.
Remote resource I/O interface connector J2.
Power supply LED indicator LD5.
ST6220 or ST6225 device selection jumpers
W1.
9
Thermistor.
19
“Programming” or “User” operating mode
selection jumpers W2.
10
“+” and “-” buttons.
18/53
ST622x Starter Kit User Manual
3 - Hardware Features
3.2.1
Oscillator
An oscillator feeds the ST6225 OSCIN input with an 8 MHz clock signal. You can
disconnect the oscillator by removing the two jumpers W2 (marked 19 on the
Starter Kit board diagram on page 18).
8 MHz
OSCILLATOR
USER
OSCin
JUMPER W2
PROG
PROGRAMMING CLOCK FROM P1
(only when programming microcontrollers)
3.2.2
3.2.3
Reset Button
The Reset button activates the ST6225 RESET input when pressed. A power-on
reset circuit is also provided.
+ And - Buttons
The + and - buttons are connected to PB3 and PB4 pins on the microcontroller
respectively. They drive the PB3 and PB4 inputs down to GND when pressed.
You can disconnect PB3 by removing the W8 jumper, and PB4 by removing the
W9 jumper.
W9-PB4
PB4
ST6225
W8-PB3
PB3
JUMPERS
19/53
3 - Hardware Features
ST622x Starter Kit User Manual
3.2.4
LED Indicators
Four LEDs are used for level indication in the demonstration routines. They are
connected to the ST6225 pins: PA0 to PA4 (when programmed as outputs) to
demonstrate direct LED-driving capability.
The 4 LEDs can be disconnected by removing the W3-PA0 to 3 jumpers.
W3
JUMPERS
V
DD
RESISTOR
ARRAY
ST6225
PA3
PA2
PA1
PA0
3.2.5
Resistance trimmer
A 10 KΩ resistance trimmer feeds the ST6225 PA5 I/O pin (when programmed as
an A/D Converter input) with a variable voltage (0 V to 5 V DC). It is used for A/D
conversion demonstration/evaluation.
The trimmer can be disconnected from the I/O pin by removing the W4-PA5
jumper.
V
DD
ST6225
PA5
W4
TRIMMER
JUMPER
GND
20/53
ST622x Starter Kit User Manual
3 - Hardware Features
3.2.6
Temperature Control Circuit
This circuit demonstrates temperature control, using the on-chip A/D converter.
A heater resistor circuit (150 Ω, 1 Watt) is driven by the TIMER output of the
ST6225 microcontroller. The heat level can be controlled by varying the duty cycle
of a PWM signal present on the TIMER output.
The heater circuit can be disconnected from the TIMER output pin by removing the
W6-TIMER jumper.
A thermistor bridge (Negative Temperature Coefficient) is connected to the PA4 I/
O pin, which is programmed as an A/D converter input. The voltage value at the A/
D converter input decreases as the thermistor temperature increases.
The thermistor circuit can be disconnected from PA4 by removing the W5 jumper.
The thermistor is located in close proximity to the Heater resistor on the Starter Kit
board, so that it can be used as a sensor to detect the temperature of the resistor
body.
Demonstration 6 shows how this circuit is used as a feedback loop that controls the
temperature level (see Running the Demos on page 25).
15 V-DC
POWER
V
DD
W5-PA4
JUMPER
PA4
HEATER
INDICATOR
LED
HEATOR
RESISTOR
(1 W)
THERMISTOR
BRIDGE
ST6225
W6-TIMER
JUMPER
TIMER
OUT
74HC04
3.2.7
RS-232 Interface
The RS-232 interface enables you to communicate with the pre-programmed
ST6225 microcontroller provided with the Starter Kit. It includes an RS-232 buffer
circuit that is connected to a standard PC-compatible RS-232 SUBD-9 connector.
21/53
3 - Hardware Features
ST622x Starter Kit User Manual
The following table lists the RS-232/ST6 pin connections:
Signal Name
SUBD-9 Pin
ST6 Pin
Data Transmission (TX)
Data Reception (RX)
Request to Send (RTS)
Clear to Send (CTS)
2
3
8
7
PC7
PC6
PC5
PC4
You can disconnect these by removing the corresponding jumpers from W7.
Figure 4 shows the RS-232 connections and line allocations:
W7
ST6225
PC7
10 K
JUMPERS
+12 V
1
2
6
7
TX
CTS
RX
RS232
LINE
BUFFER
PC4
PC6
3
4
RTS
PC5
8
9
SUBD - 9 POINT
CONNECTOR
5
Figure 4: RS-232 connections and line allocations
TX, RX, CTS and RTS are defined so that the board is used as a slave. To use the
board as a master, swap both the RX and TX and the CTS and RTS pin
connections on the cable.
3.2.8
Demonstration Selector Jumpers
The demonstration selector is made up of a 6-position jumper W10 (marked 12 on
the Starter Kit board diagram on page 18), with each jumper connected to a
resistor. Each resistor generates a different voltage.
After reset, the voltage value generated by the resistor whose jumper is installed is
sent to PA3 on the ST6225. PA3 is programmed as an A/D converter. The program
22/53
ST622x Starter Kit User Manual
3 - Hardware Features
installed on the ST6225 uses the input from PA3 to select the appropriate demo.
The following table lists the voltage values generated by each resistor:
Resistor value:
Theoretical voltage value:
RT: 10 KΩ
R1: 680 Ω
R2: 750 Ω
R3: 820 Ω
R4: 1 KΩ
No JUMPER: 5 V
JUMPER-D1: 0 V
JUMPER-D2: 333 mV
JUMPER-D3: 666 mV
JUMPER-D4: 999 mV
JUMPER-D5: 1.332 V
R5: 1.2 KΩ
The same principle can be used for keyboard decoding. For a complete example of
this, refer to the STMicroelectronics application note: AN431: Using ST6 Analog
Inputs for Multiple Key Decoding.
You can disconnect the demonstration selector from PA7 by removing the PA7
jumper from W10 (marked 12 on the Starter Kit board diagram on page 18).
ST6225
JUMPER W10
GND
D6
D5
D4
D3
D2
D1
W10-PA7
JUMPER
PA7
R5
R4
R3
R2
R1
RT
V
CC
23/53
3 - Hardware Features
ST622x Starter Kit User Manual
24/53
ST622x Starter Kit User Manual
4 - Running the Demos
4
RUNNING THE DEMOS
This section describes the demonstration programs that are provided with the
Starter Kit and explains how to run them.
4.1
What the Demos Do
The following paragraphs describe the demos that come pre-loaded with the ST6
Starter Kit demos. See Running the Demonstration Programs on page 27 for
details on how to select and run a demo.
The source files of these demos are also included on the MCU on CD CD-ROM
and are installed in the following directory:
...\Stm\ST6toolchain\StarterKit\sk622xli .
4.1.1
Demo 1 - Button/LED Indicator Control
1
Initializes the pins as follows:
This pin:
Is initialized as:
PB3
Input with pull-up and interrupt. Connected to + button.
Input with pull-up and interrupt. Connected to - button.
PB4
PA0 to PA3
Push-pull outputs. Connected to the four LEDs (as
marked on board).
2
Performs a task relating to your actions:
When you do this:
The program does this:
Press the + button
Jumps to an interrupt subroutine that lights up each led
in turn, from LD4 to LD1.
Press the - button
Jumps to an interrupt subroutine that lights up each led
in turn, from LD1 to LD4.
25/53
4 - Running the Demos
ST622x Starter Kit User Manual
4.1.2
Demo 2 - Voltage trimming and LED level indication
1 Initializes the pins as follows:
This pin:
Is initialized as:
PA5
Analog input. Connected to the trimmer.
PA0 to PA3
Push-pull outputs. Connected to the four LEDs (as
marked on board).
2
Reads the A/D converter data register, and turns on a LED according to the
Voltage value input by the trimmer:
This voltage:
Turns this LED on:
0 to 1
1 to 2
2 to 3
3 to 4
4 to 5
none
LD1
LD2
LD3
LD4
Adjusting the voltage trimmer (marked 9 on the Starter Kit board diagram on
page 18) turns on the appropriate LED. Pressing the + or - buttons has the same
effect as increasing or decreasing the voltage.
4.1.3
Demo 3 - Temperature Control
1
Initializes the pins as follows:
This pin:
Is initialized as:
PA4
Analog input. Connected to the thermistor circuit.
TIMER
Push-pull output. Connected to the Heater Resistor cir-
cuit.
PB3
Input with pull-up and interrupt. Connected to + button.
PA0 to PA3
Push-pull outputs. Connected to the four LEDs (as
marked on board).
26/53
ST622x Starter Kit User Manual
4 - Running the Demos
2
3
Reads and stores the A/D converter data register value. This value indicates
the temperature at reset.
Reads and stores the A/D converter data register value at regular intervals. If
this value exceeds the value that was stored at reset, a LED is turned on
indicating the difference between the two values. The higher the difference is
between the stored value and the read value, the higher LED number is turned
on (roughly in steps of LD(n+1) for each additional degree difference).
You can either increase the temperature by touching the thermistor (marked 14
on the Starter Kit board diagram on page 18) or pressing the + button.
4.1.4
Demo 5 - Fuzzy Logic Heater Control
This demonstration shows how a heater control application can be developed
using a Fuzzy Logic description. The application was developed using the
fuzzyTECH explorer development tool. For more information about this
demonstration, see the Fuzzykit text file, this is supplied on the MCU on CD CD-
ROM and is installed in the following directory:
...\Stm\ST6toolchain\StarterKit\sk622xli .
4.2
Running the Demonstration Programs
The ST62E25 microcontroller labelled DEMOK25 is programmed with the
demonstration software. The Demok25.asm file is also provided on the MCU on
CD CD-ROM and is installed in the ...\Stm\ST6toolchain\StarterKit\sk622xli
directory, so that if you erase it from the ST62E25 microcontroller, you can re-
program it following the instructions given in Chapter 7: Programming ST6
Microcontrollers on page 37.
To run the demonstrations:
1
2
Power down the Starter Kit board.
Make sure that the pre-programmed ST62E25 is plugged into the DIL
connector, and that the DEVICE jumpers W1 (marked 18 on the Starter Kit
27/53
4 - Running the Demos
ST622x Starter Kit User Manual
board diagram on page 18) are set to ST6225 as shown in the following
diagram:
ST6225
D
E
W
1
V
I
C
E
ST6220
3
Select the USER mode using the jumpers marked W2 (marked 19 on the
Starter Kit board diagram on page 18), as shown in the diagram below:
USER
M
O
W
2
D
E
PROG
4
5
Disconnect the cable from the parallel port (P1) connection, if it is connected.
Power up the Starter Kit board.
28/53
ST622x Starter Kit User Manual
4 - Running the Demos
6
Install the demonstration program jumper marked PA7, as shown in the
diagram below:
W10
PA7
D1
D2
D3
D4
D5
D6
DEMO SELECTION
7
Select the demo you want to run, by installing the appropriate jumper on W10
(marked 12 on the Starter Kit board diagram on page 18), as indicated on the
diagram below:
W10
D1 Selects demo 1 - Push Button/LED Indicator Control
D2 Selects demo 2 - Voltage trimming and LED level indication
D3 Selects demo 3 - Temperature Control
D4 Selects demo 4 - RS-232 Communications
D5 Selects demo 5 - Fuzzy Logic Heater Control
D6
Not used
DEMO SELECTION
For example, in the above diagram demo 3 is selected.
Press the reset button.
8
9
The selected demo is now run.
To run a different demo, repeat steps 7 and 8.
29/53
4 - Running the Demos
ST622x Starter Kit User Manual
30/53
ST622x Starter Kit User Manual
5 - Connecting External Resources to the Starter Kit Board
5
CONNECTING EXTERNAL RESOURCES TO THE STARTER KIT
BOARD
You can connect your own external resources to the pre-programmed ST62E25 to
debug or evaluate your programs, using the connector J2 (marked 17 on the
Starter Kit board diagram on page 18).
To be able to connect your own resources to the Starter Kit board, you must
disconnect the resources that are already connected to the ST62E25 (to avoid
conflicts between external resources and Starter Kit board resources).
The following table lists the Starter Kit board resources and the corresponding J2
connections, and indicates the jumper that disconnects each resource.
On-board
resource
Jumper to
disconnect
ST6225
I/O
ST6225
I/O
Jumper to
disconnect
On-board
resource
PIN
PIN
+5 V Supply
-
V
1
2
28
27
V
-
GND
DD
SS
Heater resis.
control
W6-TIMER
TIMER
OSCIN
OSCO
NMI
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PB0
PB1
W3-PA0
LED
Indicator
8 MHz OSC.
W2
3
26
25
24
23
22
21
20
19
18
W3-PA1
W3-PA2
W3-PA3
W5-PA4
W4-PA5
-
LED
Indicator
none
-
4
LED
Indicator
System tasks
(Simulator link)
(*)
5
LED
Indicator
RS232 Driver
TX Output
W7-PC7
W7-PC6
W7-PC5
W7-PC4
W2
PC7
6
Thermistor
Trimmer
none
RS232 Driver
RX Input
PC6
7
RS232 Driver
RTS Output
PC5
8
RS232 Driver
CTS Input
PC4
9
W10-PA7
(*)
Routine
selector
System tasks
(Programming)
V
10
11
System task
(Simul. link)
PP
Reset Button
-
RESET/
(*)
System task
(Simul. link)
31/53
5 - Connecting External Resources to the Starter Kit Board
ST622x Starter Kit User Manual
On-board
resource
Jumper to
disconnect
ST6225
I/O
ST6225
I/O
Jumper to
disconnect
On-board
resource
PIN
PIN
System tasks
(Programming)
W2
W2
W2
PB7
PB6
PB5
12
17
PB2
PB3
PB4
(*)
System task
(Simul. link)
System tasks
(Programming)
13
14
16
15
W8-PB3
W9-PB4
+ Button
System tasks
- Button
(Programming)
*) This is not available if the Starter Kit board is connected to a host PC.
Note:
Some of the signals on the J2 connector are used during ST6 programming, thus you must
disconnect any external resource that is connected to J2 before using the Starter Kit board for
programming.
32/53
ST622x Starter Kit User Manual
6 - Using The Starter Kit Board as a Hardware Simulator
6
USING THE STARTER KIT BOARD AS A HARDWARE SIMULATOR
WGDB6, the ST6 debugger that runs under Windows, lets you test your programs
without having to program the EPROM of your target ST6. Depending how much
information you want, and how close to real life you want your test environment to
be, you can use WGDB6 in one of three ways:
•
As a software simulator. If you use WGDB6 as a simulator, you need not attach
any additional hardware to your PC. The ST6 simulator program, that comes
with WGDB6 and is run when you run WGDB6/Simulator, simulates the
execution of your program, letting you step through the code and see what
happens as the program runs. WGDB6 simulator includes Wave Form Editor,
which simulates the output of the pins on your target ST6 in relation to inputs
that you define, enabling you to see how its peripherals react to the inputs they
receive.
•
With an ST6 hardware emulator. Emulators are hardware systems that act as
your target microcontroller, at the same time capturing detailed information,
such as which areas of memory are accessed by the program and what
happens when they are accessed. In this case, WGDB6/Emulator provides an
interface between the emulator and your PC, displaying data captured by the
emulator and letting you implement the WGDB6 features in the emulator, such
as software or hardware breakpoints.
•
With the Starter Kit board as a hardware simulator. This is a cross between the
above two. The WGDB6 software simulator simulates the execution of your
program, but each time the data space is accessed, it accesses that of the ST6
that is plugged into your Starter Kit board. Thus, using the Starter Kit board
with WGDB6, you can view how the real microcontroller peripherals behave
when your program is executed.
This section describes the third option, how to use the Starter Kit board as a
hardware simulator.
You can use the Starter Kit board to emulate any ST620x, ST621x or ST622x
microcontroller. Note, however that you must use the pre-programmed ST62E25
microcontroller, labelled DEMOK25 supplied with the kit for hardware simulation.
Thus, when simulating programs designed for other microcontrollers, make sure
that you do not use resources that are not available on the microcontroller your
application is designed for.
33/53
6 - Using The Starter Kit Board as a Hardware Simulator
ST622x Starter Kit User Manual
6.1
The Data Transmission Driver
Data is transferred between the simulated peripheral registers and the ST620x,
ST621x and ST622x registers via the host PC’s parallel port. The Demok25.hex
program, with which the ST62E25 microcontroller that is plugged into the Starter
Kit board must be loaded includes the transmission driver.
The data transfer driver uses the following bits:
PC parallel port
D2
ST6225
PB2
WGDB6 Use
Synchronization
D3
D4
PB1
Write data to MCU
RESET
Hardware reset of
peripherals
D6
NMI
PB0
Initiates data trans-
fer
SDOP
Read data from
MCU
6.2
Technical Limitations
The Starter Kit board has the following limitations when used with WGDB6 as a
hardware simulator:
•
•
Real-time program execution is not supported.
Resetting the ST6225 by power on, pressing the Reset button or external reset
does not reset the simulated ST6 core. To perform a complete simulated reset,
use the WGDB6 reset command instead.
•
•
Interrupts sent by the ST62E25 microcontroller are not supported by the
WGDB6 simulator.
The pins: NMI, PB0, PB1 and PB2 on the ST62E25 microcontroller are used
for communications with the host PC, and are thus not available for simulation.
Note:
Do not connect any external resources to the corresponding J2 connector pins when using
the Starter Kit board as a peripheral emulator.
34/53
ST622x Starter Kit User Manual
6 - Using The Starter Kit Board as a Hardware Simulator
6.3
To use the Starter Kit board as a hardware simulator:
1
2
Power down the Starter Kit board.
Make sure that the ST62E25 labelled DEMOK25 is plugged into the DIL28
socket, and that the DEVICE jumpers W1 (marked 18 on the Starter Kit board
diagram on page 18) are set to ST6225 as shown in the following diagram:
ST6225
D
E
W
1
V
I
C
E
ST6220
3
Select the USER mode using the jumpers marked W2 (marked 19 on the
Starter Kit board diagram on page 18), as shown in the following diagram:
USER
M
O
W
2
D
E
PROG
4
5
Connect the Parallel port P1 on the Starter Kit board to a spare parallel port on
your PC using the cable provided with the Starter Kit.
Power up the Starter Kit board.
35/53
6 - Using The Starter Kit Board as a Hardware Simulator
To run WGDB6:
ST622x Starter Kit User Manual
From Windows 95, 98 or NT click Start > Programs > ST6 Tool Chain >
Development Tools > Wgdb6 StarterKit.
Refer to the WGDB6 Windows Debugger for the ST6 Family User Manual for full
instructions on how to use WGDB6. This manual is available in PDF format on the
MCU on CD CD-ROM.
6.4
Error Messages
The following table lists the error messages you may encounter when using
WGDB6 with the Starter Kit board:
Error message
Description
Error 116 Port B protected when using board. This means that WGDB6 tried to access the PORT
B registers. These are used for communications
with the board.
Error 117 Communication error with ST620x/
ST621x/ST622x board.
This means that a problem occurred during commu-
nications between the host PC and the board. Per-
form the checks listed below.
6.5
Troubleshooting
If there is a communications problem between WGDB6 and the Starter kit board,
the title “WGDB6 Simulator” appears in the WGDB6 title bar. In this case, you
should check the following:
•
•
•
•
•
That the Starter Kit board is correctly powered up.
That the parallel port cable is correctly connected.
That the device jumpers (W2) are in the USER position.
That the device type selection jumpers (W1) are in the ST6225 position.
That an ST6225 is plugged into the Starter Kit board, and it is programmed
with Demok25.hex.
36/53
ST622x Starter Kit User Manual
7 - Programming ST6 Microcontrollers
7
PROGRAMMING ST6 MICROCONTROLLERS
You can use the Starter Kit board, in conjunction with the ST6 Epromer, to program
ST620x, ST621x or ST622x microcontrollers. You can also perform in-circuit
programming of ST620x, ST621x or ST622x OTP/EPROM microcontrollers using
your own board, connected to the Starter Kit board via the connector J1 (marked 1
on the Starter Kit board diagram on page 18).
7.1
Programming Signals
The following table shows the programming signals and states and their
corresponding pin numbers.
MCU DIL28
Programming Programming MCU pin J2
MCU DIL20
MCU DIL16
MCU pin
J2
MCU pin
J2
signals
states
connector
Pin 12
Pin 13
Pin 14
NC
connector
Pin 12
Pin 13
Pin 14
Pin 10
Pin 7
connector
Pin 12
Pin 13
Pin 14
Pin 10
Pin 7
PB7
High
Pin 12
Pin 13
Pin 14
Pin 10
Pin 3
Pin 8
Pin 9
Pin 7
Pin 8
Pin 9
Pin 5
Pin 2
Pin 6
NC
PB6
High/Low
High/Low
5 V/12 V
High/Low
High/Low
High
PB5
Pin 10
Pin 6
TEST
OSCIN
RESET
PB3
Pin 3
Pin 14
Pin 16
Pin 12
Pin 11
Pin 16
Pin 11
Pin 16
Pin 11
Pin 16
Pin 11
NC
Note:
Some of the signals on the J2 connector are used during ST6 programming, thus if you have
connected an external resource to J2, you must disconnect it before using the Starter Kit
board for programming.
This section describes how to set up the Starter Kit board for programming
microcontrollers, and lists the connection requirements for in-circuit application
boards.
7.2
Setting Up the Starter Kit Board
1
Power down the Starter Kit board.
37/53
7 - Programming ST6 Microcontrollers
ST622x Starter Kit User Manual
2
Plug the ST6 microcontroller you want to program into the U3 or U4 ZIF
connector, according to the following diagram:
U4
28
27
26
25
24
23
1
U3
2
ST62x25
ST62x15
3
1
2
3
4
5
6
7
8
16
15
14
4
5
1
2
3
4
5
6
7
8
9
20
19
18
17
16
6
ST62x00
ST62x01
ST62x03
13
12
11
10
9
22
21
7
8
ST62x08
ST62x09
ST62x10
ST62x20
20
19
18
17
16
15
9
10
11
12
13
15
14
13
12
11
14 10
3
Set the DEVICE jumpers W1 (marked 18 on the Starter Kit board diagram on
page 18) for the microcontroller that you want to program according to the
following table:
Device Type
W1 position
ST6200
ST6201
ST6203
ST6208
ST6209
ST6210
ST6220
ST6220
ST6220
ST6220
ST6220
ST6220
38/53
ST622x Starter Kit User Manual
7 - Programming ST6 Microcontrollers
Device Type
W1 position
ST6220
ST6215
ST6225
ST6220
ST6225
ST6225
As shown in the following diagram:
To select ST6220:
To select ST6225:
ST6225
ST6225
D
E
V
I
D
E
V
I
W
1
W
1
C
E
C
E
ST6220
ST6220
4
Select the PROG mode using the jumpers marked W2 (marked 19 on the
Starter Kit board diagram on page 18), as shown in the following diagram:
USER
M
O
W
2
D
E
PROG
39/53
7 - Programming ST6 Microcontrollers
ST622x Starter Kit User Manual
5
6
Connect the Parallel port P1 on the Starter Kit board to a spare parallel port on
your PC using the cable provided with the starter kit.
Power up the Starter Kit board.
You can now use Epromer to program the microcontroller that is plugged into the
Starter Kit board.
To run Epromer from Windows 3.x, double-click the Epromer icon in the ST6 Tools
group.
To run Epromer from Windows 95, 98 or NT click Start > Programs > ST6 Tool
Chain > Development Tools > Winee.
For instructions on how to operate Epromer, click Help in the Epromer main
window.
7.3
7.4
In-Circuit Programming
You can perform in-circuit programming of ST620x, ST621x or ST622x OTP/
EPROM microcontrollers using your own board, connected to the Starter Kit board
via the connector J1 (marked 1 on the Starter Kit board diagram on page 18).
Application Board Connections
The following paragraphs specify the connection requirements between your
application board and the Starter Kit board.
The application board must have a suitable 16-way connector (8x2 header HE10)
to be connected via a 16-way cable to connector J1 (marked 1 on the Starter Kit
board diagram on page 18) on the Starter Kit board.
The following table shows the required pin connections:
ST620x, ST621x and ST622x Pins
Connector Pins
PB6
PB5
Pin 1
Pin 3
Pin 5
Pin 7
Pin 9
Pin 13
OSCin
PB7
RESET
V
/TM
PP
V
Pin 14, 15
DD
40/53
ST622x Starter Kit User Manual
7 - Programming ST6 Microcontrollers
ST620x, ST621x and ST622x Pins
Connector Pins
V
Pin 2, 4, 6, 8, 10
SS
V
DD
Use of the V connection is optional, depending on whether the application board
DD
supply can or cannot be disconnected. If the application board supply is
disconnected, you can supply it through pins 14 an 16 of the connector, as long as
the total load current does not exceed 100 mA, and the capacitive load is less than
50 µF.
If the application board has its own power supply, its voltage must be set to 5 V, so
that logic levels are compatible with those of the Starter Kit board.
OSCin
Synchronizes the programming operations using a clock generated by the
programming tool. OSCin is located on the application board, and must be directly
connected to Pin 5 on the 16-way connector. No isolation is needed as long as a
quartz crystal or ceramic resonator is used in the application. If an external clock
generator is used in the application, it must be disconnected during in-circuit
programming.
RESET
Controls the programming mode entry. To prevent signal level contention, RESET
must be directly connected to Pin 9 on the 16-way connector, and must be isolated
from other nodes on the application board. Any direct connection to V , V or an
DD SS
output must be avoided. This pin can be connected to a CMOS input, a 2 KΩ pull-
up, a 10 KΩ pull-down or left open (Internal pull-up). The capacitive load of the
RESET pin should not exceed 1 µF.
Pins 1 and 7 on the 16-way connector are used to establish communications
between the programming tool and the microcontroller.
To prevent signal-level contention, Pins 1 and 7 must be directly connected to PB6
and PB7 on the 16-way connector, and must be isolated from other nodes on the
application board. Any direct connection to V , V or an output must be avoided.
DD SS
These pins may be connected to a CMOS input, a 2 KΩ pull-up, a 10 KΩ pull-down
or left open (Internal pull-up).
If pin 3 on the 16-pin connector is connected to the target device, the same applies.
Connection to pin 3 is not necessary if a high voltage level is guaranteed by the
board design.
41/53
7 - Programming ST6 Microcontrollers
ST622x Starter Kit User Manual
Some I/O pins are not connected to the 16-way connector and must be set to a
high level during programming. This is normally achieved by the RESET signal
sent by the programming tool through the 16-way cable, setting the I/O pins as
inputs with an internal 300 KΩ pull-up. To keep these I/O lines high, direct
connection of these pins to GND or to any other signal at low level (even
temporarily) must be avoided. Only connections to another CMOS input, to an
external pull-up or a 10 MΩ pull-down is allowed.
The signals on PB3 and PB5 (if not directly biased through pin 3 of the 16-way
connector) must be kept at a high voltage level.
The V /TM pin must not be directly connected to GND/V
on the application
SS
pp
board, to avoid any conflict with the programming voltage provided by the
programming tool via pin 13 on the connector. This pin should be pulled down by a
resistor with minimum value of 10 KΩ. You must add a 100 nF ceramic capacitor
between V /Test and V
.
pp
SS
7.5
Setting Up the Starter Kit Board for In-Circuit Programming
1
2
Power down the Starter Kit board.
Set the DEVICE jumpers W1 (marked 18 on the Starter Kit board diagram on
page 18) to ST6225, as shown in the following diagram:
ST6225
D
E
W
1
V
I
C
E
ST6220
42/53
ST622x Starter Kit User Manual
7 - Programming ST6 Microcontrollers
3
Select the PROG mode using the jumpers marked W2 (marked 19 on the
Starter Kit board diagram on page 18), as shown in the diagram below:
USER
M
O
W
2
D
E
PROG
4
5
6
Connect the Parallel port P1 on the Starter Kit board to a spare parallel port on
your PC using the cable provided with the starter kit.
Connect your application board to the connector J1 (marked 1 on the Starter Kit
board diagram on page 18) on the Starter Kit board.
Power up your Starter Kit board.
You can now use Epromer to program the microcontroller that is plugged into the
Starter Kit board.
To run Epromer from Windows 3.x, double-click the Epromer icon in the ST6 Tools
group.
To run Epromer from Windows 95, 98 or NT, click Start, Programs, ST6 Tools,
then Epromer.
For instructions on how to operate Epromer, click Help in the Epromer main
window.
Note:
If your application board is not powered by the Starter Kit, you must connect it to a 5 V DC
power supply before you start programming.
43/53
7 - Programming ST6 Microcontrollers
ST622x Starter Kit User Manual
44/53
ST622x Starter Kit User Manual
8 - Running Your Own program on the Starter Kit Board
8
RUNNING YOUR OWN PROGRAM ON THE STARTER KIT BOARD
You can run your own programs on the Starter Kit board, using any of the Starter
Kit resources:
•
•
•
•
•
8 Mhz oscillator
10 KΩ trimmer
+ and - buttons
Thermistor bridge
Heater resistor control circuit
Note:
You can only run applications on the Starter kit board using ST6225 microcontrollers. If your
application is designed for another microcontroller, you must change its port definitions to
match those of the ST6225.
You can also use your own hardware resource by connecting it to the J2 connector
(see Connecting External Resources to the Starter Kit Board on page 31).
To run your own program on the Starter Kit board:
1
2
Power down the Starter Kit board.
Program the microcontroller with the application you want to run following the
instructions given in Programming ST6 Microcontrollers on page 37.
3
Make sure that the programmed microcontroller is plugged into the DIL
connector, and that the DEVICE jumpers W1 (marked 18 on the Starter Kit
board diagram on page 18) are set to ST6225, as shown in the following
diagram:
ST6225
D
E
W
1
V
I
C
E
ST6220
45/53
8 - Running Your Own program on the Starter Kit Board
ST622x Starter Kit User Manual
4
Select USER mode using the jumpers marked W2 (marked 19 on the Starter Kit
board diagram on page 18), as shown in the diagram below:
USER
M
O
W
2
D
E
PROG
5
6
Disconnect the cable from the parallel port (P1) connection, if it is connected
Disconnect the demonstration program selector by removing the jumper
marked PA7 in the Demonstration Selector circuit marked 12 in the Starter Kit
board diagram on page 18.
7
8
If you are using your own hardware resources connected to J2 (marked 17 on
the Starter Kit board diagram on page 18), disconnect any Starter Kit board
resources that use the same pins, following the instructions given in Connecting
External Resources to the Starter Kit Board on page 31.
Power up the Starter Kit board.
46/53
ST622x Starter Kit User Manual
Appendix A: Glossary
APPENDIX A:GLOSSARY
AST6
AST6 is a macro-assembler that translates files that are written in assembler
language into either executable files or object files.
DIL or DIP
Dual In Line, also known as Dual In Line Package. These two abbreviations
designate a type of device package with two rows of pins for thru-hole mounting.
EPROM
Erasable Programmable Read-Only Memory. A non-volatile type of memory that
can be erased by exposure to an ultra-violet light source. MCUs that have EPROM
are easily recognized because the package has a quartz window to allow exposure
to the UV light. If the EPROM MCU is packaged in an opaque plastic package, it is
called a OTP (One-time Programmable) MCU because there is no way to expose
the EPROM to a UV light source.
EPROMER
Epromer is a ST6 microcontroller program for Windows that lets you view, edit and
save executable files in the Hex (Intel) and .S19 (Motorola) formats, generated by
the Assembler, Linker or C Compiler for ST microcontrollers. It also enables you to
program executable files into ST microcontrollers and to view and verify a
microcontroller’s memory contents.
GNU
Acronym for Not UNIX. Name of a project developed by the Free Software
Foundation.
LST6
MCU
The ST6 family linker. It links relocatable objects (assembled source file modules)
into a single, executable file that can be loaded into the ST6 memory.
Microcontroller Unit. Otherwise referred to as the “target device” throughout this
manual. This is the core product (or family of products) for which the Starter Kit is
designed to act as an emulator or simulator. In general terms, an MCU is a
complete computer system, including a CPU, memory, a clock oscillator and I/O on
a single integrated circuit.
47/53
Appendix A: Glossary
OTP
ST622x Starter Kit User Manual
One Time Programmable. Also referred to as OTPROM (One Time Programmable
Read-Only Memory). A non-volatile type of memory that can be programmed but
cannot be erased. An OTP ROM is an EPROM MCU that is packaged in an
opaque plastic package—it is called a one-time programmable MCU because
there is no way to expose the EPROM to a UV light source.
RS-232 Interface
An interface that enables you to communicate with the pre-programmed ST6225
microcontroller provided with the Starter Kit.
Starter Kit
A printed circuit board for microcontroller evaluation and programming. It has the
ability to program one DIP EPROM or OTP part at a time. Different starter kits are
available for programming different ST6 devices.
WGDB6
Windows GNU Debugger for ST6. This is a software tool running under Windows.
It is the main user interface when operating the ST6-HDS2 emulator, and is part of
the ST6 software development tool chain (editor, assembler, linker and debugger).
WGDB6 is supplied on the CD-ROM with the ST6-HDS2 emulator and must be
installed on your development PC.
48/53
ST622x Starter Kit User Manual
Product Support
PRODUCT SUPPORT
If you experience any problems with this product or if you need spare parts or
repair, contact the distributor or ST sales office where you purchased the product:
Getting prepared before you call
Collect the following information about the product before contacting ST or your
distributor:
1
2
3
Name of the company where you purchased the starter kit.
Date of purchase.
Order Code: Refer to the side of your starterkit box. The order code will depend
on the region for which it was ordered (i.e. the UK, Continental Europe or the
USA).
4
5
Serial Number: The serial number is located on a label on the starter kit board.
Target Device: The sales type of the ST6 microcontroller you are using in your
development.
Contact List
Note:
For American and Canadian customers seeking technical support the US/Canada is split
in 3 territories. According to your area, contact the following sales office and ask to be
transferred to an 8-bit microcontroller Field Applications Engineer (FAE).
Canada and East Coast
STMicroelectronics
Lexington Corporate Center
10 Maguire Road, Building 1, 3rd floor
Lexington, MA 02421
Phone: 781-402-2650
Mid West
STMicroelectronics
1300 East Woodfield Road, Suite 410
Schaumburg, IL 60173
Phone: 847-517-1890
49/53
Product Support
ST622x Starter Kit User Manual
West coast
STMicroelectronics, Inc.
30101 Agoura Court
Suite 118
Agoura Hills, CA 91301
Phone: 818-865-6850
Europe
France (33-1) 47407575
Germany (49-89) 460060
U.K. (44-1628) 890800
Asia/Pacific Region
Japan (81-3) 3280-4120
Hong-Kong (852) 2861 5700
Sydney (61-2) 9580 3811
Taipei (886-2) 2378-8088
50/53
Index
D
O
data transmission driver................................ 34
demok25 ............................ ..................... 15,27
demonstration programs................................. 5
running............................................ 25, 27
demonstration selector.................................. 22
driver
oscillator ........................................................19
OSCin............................................................41
OTP
definition of ............................................48
P
NT ......................................................... 12
programming
E
ST6 microcontrollers..............................37
programming signals .....................................37
error messages............................................. 36
external resources
R
connecting............................................. 31
Raisonance...................................................... 6
RESET...........................................................41
reset button....................................................19
resistance trimmer......................................... 20
RS-232 interface............................................21
F
fuzzy logic heater control .............................. 27
G
S
getting assistance ................................. .......... 9
ST6 microcontrollers
programming .........................................37
ST620x ............................................................5
ST621x ............................................................5
ST622x ............................................................5
starter kit
H
hardware
features................................................. 15
hardware simulator ....................................... 33
uses......................................................... 7
starter kit board
I
as a hardware simulator........................ 33
block diagram ........................................ 16
layout..................................................... 18
limitations...............................................34
resources...............................................15
running programs on ............................. 45
setting up for programming....................37
starting WGDB6.............................................13
support
in-circuit programming .................................. 40
preparing for.......................................... 42
L
LED Indicators ........................................ 20, 25
LED level indication ...................................... 26
contact numbers for.......................... .....49
for development kit ................................49
information required...............................49
N
NT driver ............................ ........................... 12
T
temperature control .................................21, 26
51/53
Index
troubleshooting ............................................. 36
W
V
WGDB6
starting...................................................13
Windows 3.x .................................................. 11
Windows 95...................................................11
Windows 98...................................................11
Windows NT ..................................................11
VDD .............................................................. 41
voltage trimming............................................ 26
52/53
5
3
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the
consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use.
No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this
publication are subject to change without notice. This publication supersedes and replaces all information previously supplied.
STMicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written
approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics.
Intel is a U.S. registered trademark of Intel Corporation.
Microsoft , Windows and Windows NT are U.S. registered trademarks of Microsoft Corporation.
2000 STMicroelectronics - All Rights Reserved.
Purchase of I2C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an
I2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips.
STMicroelectronics Group of Companies
Australia - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain
Sweden - Switzerland - United Kingdom - U.S.A.
53
相关型号:
ST60-18P/4(50)
Telecom and Datacom Connector, 18 Contact(s), Male, Right Angle, Surface Mount Terminal, Receptacle, ROHS COMPLIANT
HRS
ST60-36P(30)
Telecom and Datacom Connector, 36 Contact(s), Male, Right Angle, Surface Mount Terminal
HRS
©2020 ICPDF网 联系我们和版权申明