ST SGS-Thomson ST624x-KIT Series Manual
ST SGS-Thomson ST624x-KIT Series Manual

ST SGS-Thomson ST624x-KIT Series Manual

Starter kit for st624x mcu family

Advertisement

Quick Links

查询ST624x-KIT供应商
R
HARDWARE FEATURES
Immediate
evaluation
demonstration examples
Program debugging within the user's real
application environment
On board programming of ST62E46 and
ST62T46
In-circuit
programming
ST62T4x devices on the user's application
board
February 1998
STARTER KIT FOR ST624x MCU FAMILY
SOFTWARE FEATURES
of
ST6240
with
of
ST62E4x
and
捷多邦,专业PCB打样工厂,24小时加急出货

ST624x-KIT

Software simulator including LCD display and
I/O read/write
Assembler, linker, debugger
EPROM/OTP programming utilities
Application examples
1/49
5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SGS-Thomson ST624x-KIT Series and is the answer not in the manual?

Questions and answers

Summary of Contents for ST SGS-Thomson ST624x-KIT Series

  • Page 1: St624X-Kit

    查询ST624x-KIT供应商 捷多邦,专业PCB打样工厂,24小时加急出货 ST624x-KIT STARTER KIT FOR ST624x MCU FAMILY HARDWARE FEATURES SOFTWARE FEATURES Immediate evaluation ST6240 with Software simulator including LCD display and demonstration examples I/O read/write Program debugging within the user’s real Assembler, linker, debugger application environment EPROM/OTP programming utilities On board programming of ST62E46 and Application examples ST62T46...
  • Page 2: Table Of Contents

    Table of Contents ST624x-KIT ......... 1 1 INTRODUCTION .
  • Page 3 Table of Contents 9 LCD INTERFACE ............36 9.1 ST6240 LCD DRIVER OVERVIEW .
  • Page 4: Introduction

    Introduction 1 INTRODUCTION The ST624x Starter Kit provides you with all you need to start designing, developing and eval- uating programs for ST624x microcontrollers immediately. The ST624x Starter Kit includes: • The ST6 assembler and linker, AST6 and LST6. • The ST6 Windows debugger, WGDB6. •...
  • Page 5 Introduction Software development tools AST6, LST6, WGDB6" User Manual and online help will lead you through the debugging process using WGDB6. When 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 ST62E46B microcontroller that can be plugged into the SDIP56 ZIF socket on the Starter Kit board, or your own in-circuit ap- plication board that is connected to the Starter Kit board.
  • Page 6 Introduction The following diagram summarises the possible uses of the Starter Kit board and the hard- ware setup required for each one. To program ST6s on your own in-circuit programming board: In-circuit Starter Kit PC running programming board board Epromer Parallel port P1 connector connected to P2...
  • Page 7: Where To Go From Here

    Introduction 1.1 Where to go from here... The following table directs you to where you should look for further information about using the ST6 Starter Kit Refer to: Find out about the Starter Kit board and ST6 “The Starter Kit Hardware” on page 8 of this book. microcontrollers provided with the kit.
  • Page 8: The Starter Kit Hardware

    The Starter Kit Hardware 2 THE STARTER KIT HARDWARE This section describes the ST6 microcontrollers and the Starter Kit board that come with the ST6 Starter Kit. A full schematic of the Starter Kit board is provided in “Hardware Information” on page 47.
  • Page 9 The Starter Kit Hardware It includes the following connectors: • A parallel port connector (P2) for connection to the host PC when it is used as a hardware simulator or for programming. • A remote resource I/O interface (J1). • An in-circuit ST6 programming board connector (P1). •...
  • Page 10 The Starter Kit Hardware ST624x Starter Kit Board 10/49...
  • Page 11 The Starter Kit Hardware The following diagram shows the layout of the Starter Kit board. ST62T40B ST6246B SOCKET DISPLAY In-circuit programming connector P1. Remote resource I/O interface J1. “Programming” or “User” operating mode Remote LCD interface connector J2. selection jumper JP1. 8 Mhz oscillator.
  • Page 12: Mhz And 32 Khz Oscillators

    The Starter Kit Hardware 2.3 8 MHz and 32 KHz Oscillators An oscillator feeds the ST62T40B OSCIN input with an 8 MHz clock signal. A 32 KHz oscillator is delivered with the board. The required components: crystal XT1 and ca- pacitors C5, C6 are connected to the ST62T40B as described in the ST6240 Data Book.
  • Page 13 The Starter Kit Hardware The following table lists the Resistor array values and their corresponding voltage/key values: Resistor Array Values Theoretical Voltage Values RT: 1K NO KEY: 5V Ω R0: 68 K0: 0V Ω R1: 75 K1: 0.312V Ω R2: 82 K2: 0.625V Ω...
  • Page 14: Resistance Trimmer

    The Starter Kit Hardware Analog Keyboard diagram: 2.8 Resistance trimmer A 10 KΩ resistance trimmer feeds the ST62T40B PA4 I/O pin (when programmed as an A/D Converter input) with a variable voltage (0 to 5V DC). It is used for A/D conversion demonstra- tion/evaluation.
  • Page 15: Installing The Starter Kit

    Installing the Starter Kit 3 INSTALLING THE STARTER KIT 3.1 Hardware and Software Requirements To be able to install and run the ST6 Starter Kit, you need a PC with: • A 3 1/2” Floppy Disk Drive • A free Centronics compatible parallel port connector •...
  • Page 16 Installing the Starter Kit If you use your own 3.5 mm power supply plug, its polarity must be as follows: JACK PLUG 16/49...
  • Page 17: Running The Demos

    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.
  • Page 18: Running The Demonstration Programs

    Running the Demos 4.2 Running the Demonstration Programs The ST62T40B microcontroller labelled DEMOKIT2 is programmed with the demonstration software. To run the demonstrations: 1 Power down the Starter Kit board. 2 Make sure that the ST62E46B is not plugged into the SDIP56 ZIF MCU socket. 3 Select the USER mode using the jumpers marked JP1 (marked 2 on the Starter Kit board diagram on page 11), as shown in the diagram below: PROG...
  • Page 19: Connecting External Resources To The Starter Kit Board

    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 ST62T40B to debug or evaluate your programs, using the connector J1 (marked 17 on the Starter Kit board diagram on page 11).
  • Page 20 Connecting External Resources to the Starter Kit Board 3. PB0 is connected to Analog Keyboard Array output. It can be disconnected by removing jumper JP4. 4. PB1 may be connected to Analog Keyboard reference voltage input (for interrupt mode). It can be disconnected by removing jumper JP5.
  • Page 21 Connecting External Resources to the Starter Kit Board Signal Pin Number Pin Number Signal Unused Unused Unused COM2 COM4 COM1 COM3 VLCD VLCD1/3 VLCD2/3 NOTE: 1. The combi-port PC0-7 can be accessed on J2. It is normally connected to the LCD pins but, however, these LCD pins can be disconnected with JP2 jumper in order to use the combi-port.
  • Page 22: Using The Starter Kit Board As A Hardware Simulator

    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: •...
  • Page 23: The Data Transmission Driver

    Using The Starter Kit Board as a Hardware Simulator 6.1 The Data Transmission Driver Data is transferred between the simulated peripheral registers and the ST62T40B registers via the host PC’s parallel port. The DEMOKIT2.HEX program, which is in the ST62T40B mi- crocontroller that is soldered on the Starter Kit board includes the transmission driver.
  • Page 24 Using The Starter Kit Board as a Hardware Simulator To use the Starter Kit board as a hardware simulator: 1 Power down the Starter Kit board. 2 Make sure that the ST62E46BF1 is not plugged into the SDIP56 ZIF MCU socket. 3 Select the USER mode using the jumper JP1 (marked 2 on the Starter Kit board diagram on page 11), as shown in the diagram below: PROG...
  • Page 25: Error Messages

    Using The Starter Kit Board as a Hardware Simulator 6.3 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 A protected when using board. This means that WGDB6 tried to access the PORT A registers.
  • Page 26: Exercises

    Exercises 7 EXERCISES This section describes two exercises, in which you use your ST6 Starter Kit board as a hard- ware simulator with WGDB6: • In the first excercise, you’re going to learn how to use WGDB6 to reset the LCD on your Starter Kit board then display the letter A on it.
  • Page 27 Exercises 5 Reset the simulated program: on the Commands menu, click Reset. The disassembler window opens, displaying the line 0xffe, which is set by the reset vector. The LCD panel on the Starter Kit board is now clear, indicating that the WGDB6 simulator performed a physical reset of the ST62T40B plugged into the starter kit board.
  • Page 28 Exercises You are now going to locate the register LMCR, and change its value: 1 In the WGDB6 main window, on the Windows menu, click Browser. The Browser dialog box opens: 2 From the Type drop down list, choose data, as shown above (LMCR is a data address). 3 In the Filter field, type LMCR, as shown above.
  • Page 29 Exercises You are now going to change the value of LMCR to 36: 1 In the Inspect window, select the value ‘0’, then on the Edit menu, click Modify, and over- type the value 0 with 36, and click Set. The contents of the inspect window are now 36 ‘$’, indicating that the new LMCR value is 36.
  • Page 30: Exercise 2

    Exercises 3 To build the letter A, in the Dump window overtype the values 00 with the following values: At this address: Which corresponds to this Type this value: value: COM1 COM2 COM3 COM4 Look at the LCD: the character ‘A’ is now displayed at digit 0. Now try writing some of your own characters, using the information provided in “LCD Interface”...
  • Page 31 Exercises on the m_disp address: program execution will now stop when the PC reaches this ad- dress. 5 In the Disassembler window, on the Commands menu, click Reset. 6 Type init in the top right field, next to the Page field, and press the Enter key on your PC keyboard.
  • Page 32: Programming St6 Microcontrollers

    Programming ST6 Microcontrollers 8 PROGRAMMING ST6 MICROCONTROLLERS You can use the Starter Kit board, in conjunction with the program Epromer, to program ST62E46B or ST62T46B microcontrollers. You can also perform in-circuit programming of ST62E4X or ST62T4X OTP/EPROM microcontrollers using your own board, connected to the Starter Kit board via the connector P1 (marked 1 on the Starter Kit board diagram on page 11).
  • Page 33: In-Circuit Programming

    Programming ST6 Microcontrollers 4 Connect the Parallel port P2 on the Starter Kit board to a spare parallel port on your PC us- ing the cable provided with the starter kit. 5 Power up the Starter Kit board. You can now use Epromer to program the microcontroller that is plugged into the Starter Kit board.
  • Page 34 Programming ST6 Microcontrollers Use of the V connection is optional, depending on whether the application board supply can or cannot be disconnected. If the application board supply is disconnected, you can supply it through pins 14 and 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.
  • Page 35: Setting Up The Starter Kit Board For In-Circuit Programming

    Programming ST6 Microcontrollers 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 Vpp/Test and V 8.3 Setting Up the Starter Kit Board for In-Circuit Programming 1 Power down the Starter Kit board.
  • Page 36: Lcd Interface

    LCD Interface 9 LCD INTERFACE 9.1 ST6240 LCD DRIVER OVERVIEW This is a quick summary of the features of the ST6240 LCD driver. Refer to the ST6240 data book for more detailed information. The ST6240 LCD driver comprises LCD control logic, a programmable prescaler, a 24-byte wide dedicated LCD RAM, 45 segments and 4 common outputs.
  • Page 37: Starter Kit Lcd Panel Interface

    LCD Interface 9.2 STARTER KIT LCD PANEL INTERFACE The following paragraphs describe how the starter kit LCD panel interfaces with the ST62T40B microcontroller. The LCD panel used on ST62T40B Starter Kit board has 8 alphanumeric digits. Each digit is based on a 16-segment matrix operating in multiplexed mode (1/4 duty) so that only 4 segment pins are required per digit.
  • Page 38 LCD Interface Each digit is made up of 16 segments (A,B,C,D and so on) as shown by the following diagram: VR001879 Each segment can be set to ON or OFF, depending on the state of its dedicated Segment and Common lines, according to the boolean equation: segment ON = Seg_line and Com_line active Each DIGIT requires 4 SEG lines X 4 COM lines to be completely defined.
  • Page 39 LCD Interface The following table shows the mapping between graphic elements set and the segment/com- mon pins. Table 4. Digit Matrix to Segment/COM Pins Mapping SEGMENTS SEGMENTS SEGMENTS For example, the graphic element 7J (J of digit 7) is driven by SEG line S2 (pin 2) and COM line C2 (pin 19).
  • Page 40: Interfacing The Lcd Panel With The St6240 Lcd Driver

    LCD Interface 9.3 Interfacing The LCD Panel with the ST6240 LCD Driver When assigning the LCD panel segments to the LCD RAM bits, the mapping used will depend on the LCD you are using. It is recommended that you define the character mapping after de- fining your software architecture.
  • Page 41 LCD Interface The following table lists the location of each digit definition in the ST6 RAM. Note that the memory is not entirely used. Table 5. Digit Locations in LCD RAM LCD RAM Address D7 D6 D5 D4 D3 D2 D1 D0 Digit 1 Digit 0 Digit 3...
  • Page 42: Character Definition Examples

    LCD Interface 9.4 Character Definition Examples The following examples show the definition of characters using the previously described meth- 9.4.1 Character A Definition The following diagram represents the ‘A’ character to be displayed on the LCD panel. VR0C1879 The following table gives the corresponding bit pattern to be set in the LCD RAM to display the character ‘A’...
  • Page 43: Character 3 Definition

    LCD Interface 9.4.2 Character 3 Definition The following diagram shows the character 3 to be displayed on the LCD. VR0D1879 The following table gives the corresponding bit pattern to be set in the LCD RAM to display the character ‘3’ on the LCD panel. value COM1 COM2...
  • Page 44: Starter Kit Lcd Panel Character Set Software Model

    LCD Interface 9.5 Starter Kit LCD Panel Character Set Software Model As described in the previous paragraphs, LCD connection and character mapping drive a soft- ware model of the LCD-displayable objects. These objects are available for DISPLAY routines to drive LCD panel display during program execution. The following paragraphs describe three methods of displaying characters on the LCD.
  • Page 45: Complete Message Display

    LCD Interface For the ST6240 Starter Kit demo routines, the character set is defined as follows (for example character A): CHAR_A. .byte 22 .byte EE .byte 77 .byte 00 The character is displayed using the following routine: disp_A_0 ldi RWSR, CHAR_A.w;set Data ROM Window register ldi X, CHAR_A.d ;X set to point to CHAR_A call disp_0...
  • Page 46 LCD Interface For example characters @, A, B through O, whose ASCII codes are 40,41,42 through 4F (Hex) respectively, represent the ASCII code page 4, and fill a Data ROM window as shown below: .ORG x00;beginning of a window CHAR_@.byte 22;address 0 in the window .byte AA .byte BB .byte 44...
  • Page 47: Hardware Information

    Hardware Information 10 HARDWARE INFORMATION 10.1 Part List Part Device Part Device 74LS244 R1, R16 100Ω 8MHz oscillator R2, R11, R28 1KΩ ST62T40B MCU 47Ω ST62E46B MCU socket R4, R26 390Ω 74LS04 R5, R8 10KΩ LCD panel Not connected U7, U8 78L05 Voltage Regulator R7, R9 4.7KΩ...
  • Page 48 Hardware Information 48/49...
  • Page 49 Hardware Information Notes: Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics 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 SGS-THOMSON Microelectronics.

Table of Contents