ST7MDT20-EVY/US STMicroelectronics, ST7MDT20-EVY/US Datasheet

no-image

ST7MDT20-EVY/US

Manufacturer Part Number
ST7MDT20-EVY/US
Description
BOARD EVALUATION/TRAINING/PROGRM
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7MDT20-EVY/US

Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
497-2898
ST7 FAMILY
ST7MDT20 EVALUATION BOARD
EXERCISE MANUAL
Release 1.8
Ref: DOC-ST7MDT20-EVx

Related parts for ST7MDT20-EVY/US

ST7MDT20-EVY/US Summary of contents

Page 1

... ST7 FAMILY ST7MDT20 EVALUATION BOARD Ref: DOC-ST7MDT20-EVx EXERCISE MANUAL Release 1.8 ...

Page 2

...

Page 3

... ST7 FAMILY ST7MDT20 EVAL BOARD EXERCISE MANUAL REF- DOC-ST7MDT20-EVx July 2002 1 ...

Page 4

... 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 ...

Page 5

... DB389 adaptor device (with the DB379 adaptor). The “xx” stands for the power supply type (EU US). ST7MDT20-EVC/xx: that’s the new board with the CAB socket mounted on it, avoiding to I use adaptors to work in emulation mode or device mode. The CAB socket is also delivered with the EMU3 emulators supporting the TQFP64 14*14 package ...

Page 6

... INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1 ST7 MDT20 EVAL BOARD DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.1 OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.2 POWER SUPPLY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.3 CONNECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.3.1 ST7MDT20-EVY/xx (Yamaichi socket 1.3.2 ST7MDT20-EVC/xx (CAB socket 1.4 OSCILLATION SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.5 CAN DEVICE COMMUNICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.6 SPI SERIAL COMMUNICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.7 ISP (IN-SITU PROGRAMMING) CONNECTION . . . . . . . . . . . . . . . . . . . . . . . . 13 1.8 SCI DEVICE COMMUNICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1 ...

Page 7

ST7 ASSEMBLY TOOLCHAIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 8

ST7 MDT20 EVAL BOARD DESCRIPTION 1 ST7 MDT20 EVAL BOARD DESCRIPTION The ST7 MDT20 Eval Board has been designed to support either an emulator probe or an ST7 device (FLASH, ROM TQFP package this, a reset ...

Page 9

POWER SUPPLY This board is supplied with an AC/DC converter and a 5-volt regulator (V ence voltage can be changed by removing jumper J2 and connecting the new reference voltage as shown in Figure 2. Figure 2. How to ...

Page 10

... ST7 MDT20 EVAL BOARD DESCRIPTION 1.3 CONNECTION 1.3.1 ST7MDT20-EVY/xx (Yamaichi socket) This board is delivered with a Yamaichi socket (IC149). All connectors required for an emula- tion strategy are included either in the emulator package (DB407, DB389 the develop- ment kit package (DB404). In order to use the MDT20 in Device mode, contact your nearest ST sales office and order the DB379 connector ...

Page 11

... ST7MDT20-EVC/xx (CAB socket) This board is delivered with a CAB socket. This socket has been chosen for EMU3 generation of emulators because they avoid the user to use different adaptors to work in emulation mode or in device mode. In emulation mode, the user has just to remove the socket top and to plug the emulator probe on the CAB socket mounted on the board ...

Page 12

... ST7 MDT20 EVAL BOARD DESCRIPTION 1.4 OSCILLATION SYSTEM The ST7MDT20 Eval Board is designed to be used with an on-board 16-MHz crystal. But an- other clock signal can be used by connecting the corresponding oscillator to the OSCIN pin this, remove jumper J4 and connect the external clock signal generator to the OSCIN pin as shown in Figure 3 ...

Page 13

Figure 4. How to Use the SPI Connection Using the embedded SPI EEPROM GND ST7 SPI MOSI pins MISO SCK PB3 MDT20 Eval Board Install all the jumpers on the SPI connector. 1.7 ISP (IN-SITU PROGRAMMING) CONNECTION The ISP connector ...

Page 14

ST7 MDT20 EVAL BOARD DESCRIPTION 1.8 SCI DEVICE COMMUNICATION The DB9 connector can be used to link the ST7 MDT20 Eval Board to a PC, for example. A “MAX232” component is used to fit the ST7 TTL output to the ...

Page 15

Table 3. Port D Alternate Functions PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 1.9.5 Port E This port is connected to both the SCI transceiver (ST232 or MAX232) and the CAN trans- ceiver (available only on ST72511, ST72512, ST72532), ...

Page 16

ST7 MDT20 EVAL BOARD DESCRIPTION 1.10.3 Jumper J5 - SCI Enable/Disable In order to use the SCI peripheral device, these 2 jumpers must be connected; otherwise recommended that they be removed from the board. Please refer to 1.10.4 ...

Page 17

SOFTWARE INSTALLATION The following software packages must be installed in order to do the exercises: – ST7 Assembly Toolchain, – STVD7 Debugger, – C-Compiler (Hiware and Cosmic Evaluation versions). 2.1 ST7 ASSEMBLY TOOLCHAIN The ST7 Assembly Toolchain can be ...

Page 18

TRAINING EXERCISES 3 TRAINING EXERCISES 3.1 EXERCISE 1: ASSEMBLER SYNTAX The purpose of the first exercise is to improve your knowledge of ST7 Assembler syntax and the STVD7 environment. 1. Launch the STVD7 Simulator: Configure the Toolchain paths as requested. ...

Page 19

Figure 6. Assembler Syntax Resource Files TRAINING EXERCISES 19/33 ...

Page 20

TRAINING EXERCISES Figure 7. STVD7 New Workspace Project Settings 20/33 ...

Page 21

EXERCISE 2: USE OF THE 16-BIT TIMER IN ASSEMBLY LANGUAGE Starting with a similar program frame (New Project: File, New Workspace), design a software program for the ST72334N4 that: 1. Generates a PWM signal on pin PF4 (40-kHz frequency, ...

Page 22

TRAINING EXERCISES The following timing diagram should be obtained: Figure 8. PWM Timing Diagram PF4 PF0 0 The hardware registers and mapping file (ST72334.asm) are printed in the appendix. The la- bels of the hardware registers are also listed in ...

Page 23

Figure 10. C-Language Timer Resource Files The linker parameter file (enviro.prm) and the makefile (enviro.mak) file have been placed in the working directory editor such as Winedit is used in place of the STVD7 program, please refer to ...

Page 24

TRAINING EXERCISES Write an interrupt function in itenviro.c file that: I – Toggles pin PFO. – Clears interrupt flags ICF1 and ICF2. 3.3.2 How to Use the Hiware C Demo Program The Hiware C Compiler demo can be directly installed ...

Page 25

Figure 12. ADC Resource Files Only the “main.c” program must be completed, according to the explanatory comments. Table “tab[16]” contains the configuration for the 7-segment LED displays. When addressing I tab[i], the corresponding digit i is accessed when PDDR is ...

Page 26

TRAINING EXERCISES You have to complete the “main.c” and “itenviro.c” programs, according to the explanatory comments. The first step is to send “value[3]” into the EEPROM, starting at the address 0x00. Each value has to be displayed on the 7-segment ...

Page 27

APPENDIX 1: ST72334 REGISTER AND MEMORY MAPPING FILE The following lists the content of the hardware register file: ST72334.asm. st7/ ;************************************************************************ ; TITLE: ST72334.ASM ; AUTHOR: CMG Microcontroller Application Team ; DESCRIPTION: ST72334 Register and memory mapping ; Define ...

Page 28

APPENDIX 1: ST72334 Register and Memory Mapping File ********************************************************************** ; Miscellaneous 1 register ;********************************************************************** .MISCR1 DS miscellaneous register 1 ;********************************************************************** ; SPI registers ;********************************************************************** .SPIDR DS SPI data register .SPICR DS SPI control register ...

Page 29

DS timer B input capture 1 low register .TBOC1HR DS timer B output compare 1 high register .TBOC1LR DS timer B output compare 1 low register .TBCHR DS timer B counter ...

Page 30

APPENDIX 1: ST72334 Register and Memory Mapping File segment byte at C000-FFDF 'rom' #endif ;********************************************************************** ;********************************************************************** segment byte at FFE0-FFFF 'vectit' ;********************************************************************** end 30/33 ...

Page 31

APPENDIX 2: SCHEMATIC DIAGRAMS Figure 15. MDT20 Eval Board (Part 1) . GND 2 APPENDIX 2: SCHEMATIC DIAGRAMS GND GND 31/33 ...

Page 32

APPENDIX 2: SCHEMATIC DIAGRAMS Figure 16. MDT20 Eval Board (Part 2) 32/33 ...

Page 33

... 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 ...

Related keywords