Home
MDT2 LOW COST ST7 DEVELOPMENT KIT GETTING STARTED
Contents
1. 13 2 2 WORKING WITH THE DEVELOPMENT 14 3 Getting Started peed Pee tee m REA onsen 15 3 1 HARDWARE INSTALLATION 15 3 1 1 Antistatic Requirements 15 3 1 2 Powering Up the Development Board 15 3 2 SOFTWARE INSTALLATION 16 3 3 USING THE ST ASSEMBLY 20 3 4 STARTING THE WGDB7 21 3 5 PROGRAMMING ST7 22 3 51 Target Devices od eR B aa pl edem RS 22 3 6 DEVIGE INSTALLATION 0042994003200 xe 22 3 6 1 Starting the Windows Epromer 23 3 6 2 Configuring the Epromer 23 4 Hardware Features non hn x mm on A Rm 27 41 EMULATOR 3 2 2204 A at 27 4 1 4 General Layout 222255203 ee Ron s doa ee bee 27 4A2 CPU 27 29 ANA
2. EET te fee en ves 57 55 rore eme vac fe PWM fool fo Fe ve iit n e MAC Low Voltage ea SG ADC PWM 4 12 3 INTRODUCTION Device RAM EEPROM x8 x8 Watch 16 bit Serial dog Timers fe fret ff co Ca ST72511R4 5172511 6 SS Additional Features SDIP56 TH TQFP64 mee p epe DR Lem e n Suse ap zm s 5 Sa E E ST72671N4 16K 12 Y SDIP56 USB DAC with ST72671N6 ew Ee PWMoutpo Not yet available Contact sales office for data and availability Abbreviations ADC Analog to Digital Converter DAC Digital to Analog Converter 1 C PWM Pulse Width Modulation SCI SPI Serial Peripheral Interface USB WDG Watchdog Controller Area Network 2 Multimaster Serial Communications Interface Universal Serial Bus Packages DIP Dual In Line SO Small Outline QFP Quad Flat Pack S Shrink T Thin 5 12 INTRODUCTION INTRODUCTION The ST7 Industry Standard microcontroller family offers a wide range of MCU solutions for industrial automotive CAN computer peripherals USB and consumer applications The ST7 has been used for m
3. 33 Hiware C Compiler Chain 43 VO MES 30 Input WHS Lise siio eisiaa 33 2 aras 29 L LD2 LED prance 28 LEDS 28 Link to PO aped 40 Main menu of debugger 28 MAP NES terti core 082 42 Memory 30 Environment Variable 19 Miscellaneous Register 29 Modes of operation CPU 27 Index N Normal mode clock 29 Nylon clothing esses 15 Operating modes clock 29 P i is croco Mem d 7 Parallel VO BOIS 30 PATH option AUTOEXEC BAT 19 PG GOD IDE sa cau x sona dad dad 8 PG parallel mcn ini tns 40 Pin Assignment for Probe Connection34 35 Power 40 Power supply complementary 41 Programmable 25 40 Pulse mode external signal 34 Pulse waveforms 30 Pulse width modulation 30 P eR cot 30 R ROM SIZE end aeos 30 S sr 31 SDIP 42 1 22 SDIPS5 device reyes 22 SDIP56 p
4. Goes 30 4 1 5 On Chip Peripherals 30 4 1 6 Hardware Breakpoint Capabilities 33 E NAMUR PIT 33 4 1 8 External Output 34 4 2 CONNECTION TO EXTERNAL USER RESOURCES 34 424 Pin Description itm be ee eee Pr RA EUR aeg fads 34 4 2 2 Supplying Power to the Application Board 38 4 23 Limitations ative Cea pp oe aa ale ee eet a el ee eas 38 4 3 DEVICE PROGRAMMER 40 4 3 1 General Layout ines e i per Eu d X MERE ee ewes S 40 4 3 2 Vanes ce e Re Dee a RC RE REAL A 40 4 4 LINK TO 5555 Ree adt ur ERE Phe ede RR xd E RS 40 4 5 POWER SUPPLY suck doa RR CR 40 2147 57 16 Table of Contents 5 Software Features 42 bd TOOLS 42 5 2 ST ASSEMBLY CHAIN FOR ST7 FAMILY 42 5 3 COMPILER DEMONSTRATION 43 54 51 SIMULATOR UU at ew mea 43 5 5 ST7 WINDOWS DEBUGGER 43 5 6 EPROMER FOR
5. eoe Tr 22 477 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 ST Microelectronics The ST logois a registered trademark of STMicroelectronics 1998 STMicroelectronics All Rights Reserved Purchase of I C Components by STMicroelectronics conveys a license under the Philips 12 Patent Rights to use these components in an system is granted provided that the system conforms to the 12 Standard Specification as defined by Philips STMicroelectronics Group of Companies Australia Brazil Canada China France Germany Italy Japan Korea Malaysia Malta Mexico Morocco The Netherlands Singapore Spain Sweden Switzerland Taiwan Thailand United Kingdom U S A http ww w st com 61
6. 8 AUTOEXEC BAT TIG a tee iens 19 B Breakpoints hardware 33 C C Compiler Chain Hiware 43 Cable for PC Connection 8 855 cn esu aan OSEE Sedat 29 Clock BY onec iin tere na 29 GEOG CIN BID uu tied 29 Complementary power 41 D Debugger main menu 28 Debugging simulation aided 43 Device Reset Upon Halt 32 Devices in ST72331N4 7 Devices to be programmed 25 DISABLED option Timers 31 DOS4G Environment Variable 19 437 Index E EEPROM uae 32 Emulation aided debugging 43 ENABLED option Timers 31 Environment Variables 19 eaa 23 45 Epromer for ST7 5 42 Error Messages 46 Events breakpoints 33 External Clock 28 emet 29 External Output 34 F GIF Ub sese 39 Footprint for TQFP64 devices 22 H Halt and 32 Hardware breakpoints
7. 2 aras 29 L LD2 LED prance 28 LEDS 28 Link to PO aped 40 Main menu of debugger 28 MAP NES terti core 082 42 Memory 30 Environment Variable 19 Miscellaneous Register 29 Modes of operation CPU 27 Index N Normal mode clock 29 Nylon clothing esses 15 Operating modes clock 29 P i is croco Mem d 7 Parallel VO BOIS 30 PATH option AUTOEXEC BAT 19 PG GOD IDE sa cau x sona dad dad 8 PG parallel mcn ini tns 40 Pin Assignment for Probe Connection34 35 Power 40 Power supply complementary 41 Programmable 25 40 Pulse mode external signal 34 Pulse waveforms 30 Pulse width modulation 30 P eR cot 30 R ROM SIZE end aeos 30 S sr 31 SDIP 42 1 22 SDIPS5 device reyes 22 SDIP56 passive probe 8 SDIPSG 42 packages 7 Serial Communications Interface 31 Ser
8. 23 47 37 ST7MDT2 DVP The name of the device to be programmed is displayed here ST ES31MA SDIPSS FF FF FF FF FF Details stored in the Epromer buffer for the Space corresponding to the currently selected tab FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF Information area 3IP 55 plugged gt Progress bar progress of the current task being executed by the Epromer Cursor position in the display area Origin of the display area contents 1 Start your programming session For more information on how to use the Windows Epromer click the Help command in the main menu bar 24 47 38 4 ST7MDT2 DVP 4 HARDWARE FEATURES 4 1 Emulator 4 1 1 General Layout Breakpoints settings User memory Mapping definition Trigger Dut settings converter External Power Supply PLD 1 test 258 xor A 0 08 User Application area program source variables staci Parallel Port Interface PC HOST System Monitor area variables staci System Monitor code 10 20 pld programming file System User modes automaton Addresses decoding Chips select management PC interface control registers
9. after a halt instruction the watchdog timer if enabled causes a device reset to be performed A dia log box lets you disable this function by specifying NORESET 256 bytes of EEPROM data memory are available for non volatile storage The EEPROM memory can be reprogrammed many times while retaining data integrity 30 47 44 ST7MDT2 DVP 4 1 6 Hardware Breakpoint Capabilities With the ST7MDT2 DVP Development Kit you can define hardware breakpoints that cause your program to stop whenever a defined event occurs An event can be e The occurrence of a memory access via a read operation e The occurrence of a memory access via a write operation e The occurrence of an opcode fetch e The occurrence of a write operation in a write protected location e The occurrence of a write operation in a reserved location e The occurrence of a stack overflow underflow The occurrence of an access to a reserved memory area e The occurrence of a external input signal triggered break feature The signal is conveyed via a mini wrapping pin located on the board next to the passive probe flat connector 4 1 7 Input Trigger The development board of the ST7MDT2 DVP Development Kit provides a special input pin TRIGIN Ref TP21 that can be used to transmit a signal to stop the execution of your appli cation upon the occurrence of an external event In this case the program is stopped after the execution of the current instruction The corresp
10. Cable for PC Connection 8 855 cn esu aan OSEE Sedat 29 Clock BY onec iin tere na 29 GEOG CIN BID uu tied 29 Complementary power 41 D Debugger main menu 28 Debugging simulation aided 43 Device Reset Upon Halt 32 Devices in ST72331N4 7 Devices to be programmed 25 DISABLED option Timers 31 DOS4G Environment Variable 19 437 Index E EEPROM uae 32 Emulation aided debugging 43 ENABLED option Timers 31 Environment Variables 19 eaa 23 45 Epromer for ST7 5 42 Error Messages 46 Events breakpoints 33 External Clock 28 emet 29 External Output 34 F GIF Ub sese 39 Footprint for TQFP64 devices 22 H Halt and 32 Hardware breakpoints 33 Hiware C Compiler Chain 43 VO MES 30 Input WHS Lise siio eisiaa 33
11. EMU2 SDIP56 TQFP64 ST72311N4 ST72311N6 1 22 STMDTS EMU2 SDIP56 TQFP64 ADC EEPROM 577235175 577233124 SDIP42 TQFP44 ST72331N2 SDIP56 TQFP64 ST72331N4 ST72331N6 1 Ps STZMDT3 EMU2 SDIP56 TQFP64 ADC DAC ST72272K2 ST72272K4 SDIP32 SDIP42 SO34 51723724 STMDTEEMUZ SDIP56 TQFP64 ST72371N4 12C ST72251G1 ST72251G2 ST7MDT 1 DVP ST7MDT1 EMU2 SDIP32 SO28 CAN 1 ST72512N2 ST72512N2 ST72511R6 T7MDTS3 EMU2 TQFP64 SDIP ST72532N2 S ST72531R4 ST72531R6 USB ST72671N4 SDIP32 5034 SDIP42 ST72671N6 GENE S MD SDIP56 TQFP64 1 Contact Sales Office 11 12 11 INTRODUCTION ST7 Family Programming Tools Overview ROM EPROM 3 OTP 3 STARTER KIT DVP KIT EPB BASIC AAE ST72E251G2D0 ST7MDT1 KIT ST7MDT1 DVP ST7MDT1 EPB 577210102 0102 51727110102 0102 sree 5772121 2 104005 ST72T121J25 KIT ST7MDT2 DVP ST7MDT2 EPB ST72121J4 ST72T121J48 HEEL ST72E251G2D0 ee KIT ST7MDT1 DVP ST7MDT1 EPB 517221202 262 5772721202 262 ane 142 ae 142 5772311 4 144 57727311345 1045 ST72T91148 ST7MDT2 KIT ST7MDT2 DVP ST7MDT2 EPB 1N2 ST72bE311N4DO ST72T311N2S ST72311N4 S 57727311 45 1345 ST72311N6 ST72E531R6D0 Sate 1N6 E or ST7MDT3 EPB ADC EEPROM 5772331 2 ST721331J28 ST72331J4 8726831 400s ae T7MDT2 KIT T7MDT2 DVP T7MDT2 EPB ST
12. Windows Debugger and a third party Debugger Software Development Tools A full range of development software tools is available for the ST7 family of Microcontrollers This currently comprises four principal product groups an Assembly Language suite SOFTWARE TOOLS for the ST7 Family m a proprietary Debugger WGDB7 Windows GNU Debugger for the ST7 Family m athird party C Language suite HIWARE C TOOLCHAIN for the ST7 Family m athird party Debugger HIWARE SOURCE DEBUGGER for the ST7 Family The available products are listed below together with the relevant upgrade versions DOS Macro Assembler Linker Library Ar 0 Software Tools for the ST7 Family chiver and Executable File Formatter for the ST7 Family of MCUs for the ST7 Family Family of MCUs 2 HIWARE Toolchain for the 5 7 Windows based Language Toolchain for ST7 SWCHIW PC UP Family program development ST7 SWDHIW PC Upgrade 5 Detugger fering Windows based ST7 Debugger suite ST7 SWDHIW PC UP y These software suites are supplied as standard issue with the ST7 Emulator 4 10 12 10 INTRODUCTION ST7 Family Development Tools Overview EMULATOR Emulator Probes BASIC 577210181 ST7MDT1 DVP ST7MDT1 EMU2 SDIP32 SO28 ST72101G2 ST72121J2 SDIP42 TQFP44 ST72121J4 ee SDIP56 TQFP64 ADC 517221301 ST7MDT1 DVP ST7MDT1 EMU2 SDIP32 SO28 577221282 ST72311J2 ST72311J4 SDIP42 TQFP44 ST72811N2 ST7MDT2 DVP ST7MDT2
13. a selection of ST7 EPROM or OTP mi crocontrollers Audience This book is intended for persons who wish to evaluate how to design and test applications using ST7 microcontrollers who want to use the ST7MDT2 DVP Development Kit to meet their actual application development needs Related Publications The following publications contain useful complementary information ST7 Family Data Sheets ST7 Family 8 bit MCUs Product Overview Ref BKST7 2 e Software Tools for the ST7 Family Ref Doc ST7ASMLK SW ST7 Family Programming Manual Windows Debugger for the ST7 Family Doc ST7 WGDB7 This manual will help you debug and finalize your programs Rev 1 0 November 1998 1 47 15 Table of Contents STZMDI2Z DVP tm rino team emis 3 1 Structure of the Development eee eee 7 1 1 A WIDE RANGE OF 6 7 1 2 PACKAGE DESCRIP HON unes IB REG 8 1 3 BOARD FUNCTIONAL 5 10 1 4 DEVELOPMENT BOARD 1 12 2 What the Development Kit Offers 13 2 1 OVERVIEW 5 i444 eek eh bas 3 3 13 2 1 1 Connecting and Powering Up the Development 13 2 1 2 Installing and Setting Up the
14. control status registers PLD 2 EPFIOK20 Control Bus 4 1 2 CPU The board is equipped with an ST72331 CPU that can operate in two different modes the USER mode and the SYSTEM mode 25 47 39 ST7MDT2 DVP 4 1 3 Clock The development board is shipped with a 16 MHz TTL in ternal clock Current micro 517233144 You may also use an external clock TTL compatible max 16 MHz whose signal is supplied the mini wrapping HALT_AND_WAT Option Value CLOCKIN located on the board INTERNAL next to the passive probe flat EXTERNAL connector ref TP22 Caution In normal mode Miscellaneous Register slow mode bit 0 ac ceptable CLOCKIN frequencies can take any value between 16 MHz and 250 kHz In slow mode Miscellaneous Register slow mode bit 1 the CLOCKIN frequency must take values between 16 Mhz and 8 Mhz Note that the board cannot operate with clock signals received from the application board via the OSCIN pin of the probe You must use the CLOCKIN input instead By contrast the application board can use the development board clock via the OSCOUT pin of the probe In this case you must place a solder spot on G1 see Table 5 Probe Pin Assign ment SDIP56 on page 35 A debugger dialog box lets you choose the clock type internal or external as a microcontrol ler configuration option You access
15. process Continue installation process Click Next to continue 1 In the next window Select Components you will select the software components that are to be copied from the CD ROM into the folder directory you specified be fore NOTE f you select the Development Kit it is not necessary to select the HDS Emulator at the same time don t check the corresponding box 4 16 47 30 ST7MDT2 DVP Selecting the WGDB7 Debugger select a component cause these subcomponents heck the appropriate box gdb Debugger 4524 PHOS Emulator ST Assembly Chain 0 Development Kit windows i Simulator Select the Development Kit version of the WGDB7 Debugger Abort installation process Continue installation process Return to previous window Click Next to continue 1 The next window Check Setup Information displays the settings you have speci fied e Destination folder directory e Components to be installed Click Next to confirm Click Back to change any settings 1 The copying process takes place A progress indicator keeps you informed of the status of the operation When the copying process terminates and if you didn t select the ST Assembly Chain as a component for the installation you are directed to the Setup Complete window see further on If you selected the ST Assembly Chain you are prompted to modify your AUTOEXEC BAT file or your system registry The
16. programs for the ST7 microcontroller refer to the Software Tools for the ST7 Family User Manual included in the CD ROM 3 4 Starting the WGDB7 Debugger The WGDB7 debugger is installed in the installation root directory By default you will find it in C NSt7tools To start WGDB7 just click the WGDB7 Development Kit icon or name in the cascading men us in the Windows desktop The WGDB7 Introductory window appears NOTE To start WGDB7 with the simulator you would only click the WGDB7 Simulator icon or name in the cascading menus in the Windows desktop Similarly to start WGDB7 with the emulator you would only click WGDB7 Emulator in the Windows desktop The debugging session starts a few seconds later To get accustomed to the product you may start one of the sample programs provided with the package via the File Open debugger menu chain The sample programs can be found in C lt install folder Nsample where install folder is the installation root folder directory St 7tools by default For more information on how to use the WGDB7 Debugger refer to the WGDB7 Windows De bugger for the ST7 Family User Manual included in the CD ROM 19 47 33 ST7MDT2 DVP 3 5 Programming ST7 Devices 3 5 1 Target Devices Once bug free and ready for operation the program you just developed needs to be down loaded into an ST7 MCU program space With the ST7MDT2 DVP Development Kit you may program EPROM or OTP versions of
17. these dialog boxes via the following debugger command sequence WGDB7 Main Menu Commands menu Micro Configuration command see Windows Debugger for the ST7 Family User Manual 27 47 41 ST7MDT2 DVP 4 1 3 Clock The development board is shipped with a 16 MHz TTL in ternal clock Current micro 517233144 You may also use an external clock TTL compatible max 16 MHz whose signal is supplied the mini wrapping HALT_AND_WAT Option Value CLOCKIN located on the board INTERNAL next to the passive probe flat EXTERNAL connector ref TP22 Caution In normal mode Miscellaneous Register slow mode bit 0 ac ceptable CLOCKIN frequencies can take any value between 16 MHz and 250 kHz In slow mode Miscellaneous Register slow mode bit 1 the CLOCKIN frequency must take values between 16 Mhz and 8 Mhz Note that the board cannot operate with clock signals received from the application board via the OSCIN pin of the probe You must use the CLOCKIN input instead By contrast the application board can use the development board clock via the OSCOUT pin of the probe In this case you must place a solder spot on G1 see Table 5 Probe Pin Assign ment SDIP56 on page 35 A debugger dialog box lets you choose the clock type internal or external as a microcontrol ler configuration option You access these dialog boxes via the following
18. 72331N2 ST72E331N4D0 ST72T331N2S 5 ST72331N4 5 5 27331 45 ST72331N6 1 ST72E531R6GO ST72T331N6 ST7MDT3 EPB UTER DAC reme esee EE ST72372J4 ST72E671J4D0 ST72T371J4 sr7mora SIT SOE ERS ST72371N4 ST72E671N4D0 ST72T371N4 577225161 5772125161 T72E251G2D T7MDTi KIT ST7MDTi DVP ST7MDT1 EPB ST72512N2 So 2N2 Sa 1R4 ST72511R6 E 1R6 T72E531R T7MDT3 EPB 2 ST72532N2 3 8 1 2 R4 R4 R6 HERES R6 ST72671N4 ST72T671N4 ST72671N6 ST72E671N6D0 78172167186 Ne ST7MDT4 KIT ST7MDT4 EPB 1 Contact Sales Office 2 ST7MDT2 EPB can be Used 3 5 is an optional character sales types without final 5 refer to devices without the safe reset LVD option For Gang Programmers Please Contact Third Parties 12 12 12 4 DEVELOPMENT KIT MDT2 VERSION Notes 14 1971 ST7MDT2 DVP DEVELOPMENT FOR ST72121J2 J4 ST723114J2 J4 5 72311 4 ST72331J2 J4 AND ST72331N2 N4 MCUs PREFACE Purpose of the Manual This manual describes how to start and use the ST7MDT2 DVP Development Kit for the ST72331N4 series MCUs allowing you to get acquainted with the ST7 microcontroller world and become familiar with the methods for developing and debugging ST7 driven applications The ST72331N4 series covers the ST72121J2 J4 ST72311J2 J4 5 72311 2 4 ST72331J2 J4 and ST72331N2 N4 MCUs The manual also provides guidance for programming
19. ST7 5 45 6 TROUBLESHOOTING 46 6 1 ERROR MESSAGES kage Ee 46 ky 3 47 17 ST7MDT2 DVP Standard Compliance This product conforms to the 89 336 EEC Directive It complies with the EN55022 emissions standard for ITE and generic 50082 1 immunity standards WARNING The ST7MDT2 DVP Development Kit board is a Class A apparatus It should not be used in a residential area as it may cause radioelectrical disturbances Also the The ST7MDT2 DVP Development Kit board is not contained in an outer casing consequently it is not immune against electrostatic discharges ESD It should therefore be handled only in static safe work ing areas See also Antistatic Requirements on page 13 4 47 18 4 ST7MDT2 DVP 1 STRUCTURE OF THE DEVELOPMENT KIT 1 1 A Wide Range of Functions ST7MDT2 DVP Development for the ST72331N4 series MCUs contains all the neces sary resources that will help you e design e develop e debug ST7 application software running in a real environment e and program ST72121J2 J4 ST72311J2 J4 ST72311N2 N4 ST72331J2 J4 and ST72331N2 N4 devices in both EPROM and OTP modes NOTE These functions are currently available for devices with SDIP42 and SDIP56 packag es You may however program and only program devices with TQFP64 packages
20. ST7 FAMILY DEVELOPMENT MDT2 VERSION GETTING STARTED 517 8 BIT MCU FAMILY DEVELOPMENT KIT Release 1 0 NOVEMBER 1998 DOC ST7MDT2 DVP USE IN LIFE SUPPORT DEVICES OR SYSTEMS MUST 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 2 critical component is any component of a life which a are intended for surgical implant into support device or system whose failure to the body or 6 support or sustain life and perform can reasonably be expected to cause whose failure to perform when properly used in the failure of the life support device or system accordance with instructions for use provided or to affect its safety or effectiveness with the product can be reasonably expected to result in significant injury to the user TABLE OF CONTENTS ST7 PRODUCT FINDER ST7 INTRODUCTION ST7 FAMILY OVERVIEW CPU CORE ARCHITECTURE ON CHIP PERIPHERALS DEVELOPMENT AND SUPPORT DEVELOPMENT KIT MDT2 VERSION INTRODUCTION ST7 PRODUCT FINDER gt 1 Comm Comm High Package Additional Sync Async Current AR E Woe oce Roe DIP42 mwe w no EL us pep eI e ppm Yes mms e me De n
21. TOR TO PC WGDB7 DEBUGGER CONNECTOR TO USER ST7 PROGRAM BOARD MING SOCKET E TO USER WINDOWS SDIP 56 42 APPLICATION BOARD EPROMER ST7 SIMULATOR OTHER HARDWARE ELEMENTS Figure 2 ST7MDT2 DVP Development Kit General Configuration Power Supply Parallel Link ST7MDT2 DVP Board x Dual Flat Cable Microcontroller to be Programmed Debugging Chip Programming Windows Epromer WGDB7 Windows Debugger with Emulator Passive Probe WGDB7 Windows Debugger Software Tools with Simulator Assembler Macro Assembler WGDB7 Windows Debugger Linker with Development Kit Formatter Librarian 7 47 21 ST7MDT2 DVP 1 3 Board Functional Configurations The development board of the ST7MDT2 DVP Development Kit can be used as an ST7 MCU Emulator or as an ST7 MCU Programming Board as shown in the figures next page Figure 3 Using the Development Board as an ST7 MCU Emulator P ower Supply Parallel link 888 E 3 ST7MDT2 DVP Board Dual Flat Cable Windows Debugger Passive probe Emulated ST7 MDT2 Chip Location on Application Board Application Board 4 8 47 22 ST7MDT2 DVP Figure 4 Using the Development Board as an ST7 MCU Programming Board Power Supply Parallel Link SDIP56 SDIP42 Programming Socke ST7MDT2 GP Device to be Programmed ST7MDT2 DVP Boar
22. an Thailand United Kingdom U S A http ww w st com 61 ST7MDT2 DVP 6 TROUBLESHOOTING 6 1 Error Messages The following messages may be displayed on your screen when starting or operating the MDT2 Development Kit Message WGDB7 Communication error Explanation The board is not powered or no parallel link has been established between the board and the Message Cannot find map symbol file Explanation The file you have loaded for the debugging session is not a s19 or a abs Message Invalid session Emulator power off detected Please reload your application Explanation A temporary power off occurred during a degugging session Message Monitor not ready Explanation The parallel link between the board and the PC has been disrupted during a debugging ses sion 4 44 47 58 Symbols asm files feos WES MPO EAT 42 42 42 inc files 42 OBI ET 42 SU TIS 42 ODJ TES 42 E 42 SYM files SNP ceee A2 A ADCO 31 Analog to Digital Converter 31 Antistatic 1 15 Application 8 AUTOEXEC BAT TIG a tee iens 19 B Breakpoints hardware 33 C C Compiler Chain Hiware 43
23. any years in high volume dedicated applications such as monitors and car radios Based industry standard 8 bit architecture extended by STMicroelectronics to better accommodate high level language programming the ST7 is designed to target small and medium sized applications with the requirements of excellent system price performance short application development cycle and outstanding quality and reliability The powerful on chip peripherals add functionality to the ST7 core and a range of different versions and package sizes to allow the user select the device that best matches the needs of the application Figure 1 ST7 Multipurpose Microcontrollers Package Size ST72311 ST7237x 5772331 ADC 2 TIM ST7221x ST72272 Functionality 4 6 12 INTRODUCTION ST7 FAMILY OVERVIEW The range of six SMD and pin through packages are available 28 32 42 44 56 or 64 pin with a broad mix of on chip resources giving designers considerable choice when selecting components and determining overall hardware cost All devices are available in a wide range of program and data memory sizes ROM program memory is available for high volume production On ROM devices the customer s program code is mask programmed by STMicroelectronics during the device manufacture OTP One Time Programmable versions are particularly adapted to small and medium production volumes as well as to products using different firmware versions or with code
24. assive probe 8 SDIPSG 42 packages 7 Serial Communications Interface 31 Serial Peripheral Interface 31 Simulation aided debugging 43 Slow mode 1 29 SI aicut 31 ST Assembly 20 42 46 47 60 ST7 Simulator 42 ST7 Windows Debugger 42 ST72331N4 Series Summary 7 Structure of the Development Kit 9 Supplying the Application Board 38 SYSTEM OS i pac 27 T Target devices to be programmed 40 Technology in use ue 39 GSU 38 pi OT Orc 7 TRO TON 30 TOFPO4 devi68S et tinte 22 TQFP64 packages e 7 Triggered break feature 33 jn co uate 33 TTL compatible technology 39 U User application connection 8 USER mod nnne 27 W Watchdog 39 Watchdog TIME eiecit tee 32 Waveform mode external signal 34 WDOGF 39 WGDB7 21 WGDB7 21 WGDB7 Sm Gl 21 Windows ss c
25. by adding the appropriate socket on the board See Development Board Layout on page 10 Table 1 ST72331N4 Series Summary on pee pee De pe mem pem D pe De e 5 47 19 ST7MDT2 DVP 1 2 Package Description The ST7MDT2 DVP Development Kit package contains Hardware One development board with a cable for PC connection Ref MB 242 B One SDIP56 passive probe Ref DB 347 A and two 50 pin flat cables for user application connection One 5 V external DC power supply with cable One adapter SDIP56 SDIP42 Ref DB326 One CD ROM and disks for documentation and software The board is connected through a parallel port interface to a PC used to monitor debugging and device programming operations Software and Documentation The CD ROM and the disks contain 6 47 20 The present guide An emulator aided debugger Software Tools comprising a source level debugger operating with the development board or an ST7 simulator an assembler a linker ST7 eprom programmer associated user documentation A basic C compiler for demonstration purposes only A device epromer ST7 application notes with sources 4 ST7MDT2 DVP Figure 1 Software Hardware Structure of the ST7MDT2 DVP Development Kit SOFTWARE HARDWARE ASSEMBLY TOOLCHAIN ST7 EMULATOR CONNEC
26. d Windows Epromer 9 47 23 ST7MDT2 DVP 1 4 Development Board Layout Other Power Input Board Power Supply Power On Control RAM Emulation RAM EPROM SDIP56 SDIP42 ZIF Device Progra mming Socket Space for TQFP64 ZIF Device Progra mming Socket 2 x 50 pin HE10 4 Application Connectors 10 47 24 LED green If you want to supply power to your application directly from the board via the application con nector place a solder spot here G2 VCC APP Max 100 mA Parallel Port Connector User Appli Prog Run LED red External Trigger Output External Trigger Input 4 ST7MDT2 DVP 2 WHAT THE DEVELOPMENT KIT OFFERS YOU 2 1 Overview Let s suppose that you have just unpacked your ST7MDT2 DVP Development Kit Now you are ready to try it 2 1 1 Connecting and Powering Up the Development Board 1 Connect the development board P2 connector to the parallel port LPT1 or LPT2 of your PC via the appropriate cable 1 Connectthe probe to the board J1 and J2 connectors using the two flat cables that have been supplied in the package 1 Powerup the board by connecting the power supply that can be found in the pack age P1 connector The green POWER LED lights up 2 1 2 Installing and Setting Up the Software 1 Insert the delivery CD ROM into your CD ROM drive 1 Using Windows Explorer open the root directory of your CDROM drive 1 Double click WELCOME PDF The Welcome Windo
27. debugger command sequence WGDB7 Main Menu Commands menu Micro Configuration command see Windows Debugger for the ST7 Family User Manual 27 47 41 ST7MDT2 DVP 4 1 4 Memory The memory mapping for Emory the emulated device is also Current micro 5T72331N4 configurable You access 0040 RESERVED this dialog boxes via the fol 0057 PERIPH lowing debugger mand sequence WGDB7 Main Menu 00 first address of the area 2 last address of the area Commands menu Memory Configuration command map see Windows Debugger for the ST7 Family User Manual This feature would enable you for instance to tempo rarily increase the ROM size during the develop ment phase of your appli cation i FFFF VECTORS In the example ROM area has been mapped to the 1000h BFFFh part of a reserved area ODOOh BFFFh for the target device ST72331N4 4 1 5 On Chip Peripherals Parallel I O Ports 32 multifunction bidirectional I O lines are supported The I O lines can be shared between other on chip peripherals alternate functions and any general purpose function defined by the application Data is input and output via data registers one for each port Data Direc tion and Option registers allow each line to be individually configured to the application s re quirem
28. e lines can be shared between other on chip peripherals alternate functions and any general purpose function defined by the application Data is input and output via data registers one for each port Data Direction and Option registers allow each line to be individually configured to the application s requirements 16 Bit Timer The 16 bit timer can be used for a wide range of standard timing tasks It has a 16 bit free running counter with programmable prescaler Each timer can have up to 2 input capture and 2 output compare pins with associated registers This allows applications to measure pulse intervals or generate pulse waveforms Timer overflow and other events are flagged ina status register with optional interrupt generation Watchdog Timer The watchdog timer consists of a 7 bit reloadable downcounter that triggers a device reset if it reaches a predefined value During normal operation the application reloads the counter at regular intervals to prevent a reset occurring By this means if the application hangs the condition is automatically cleared by resetting the MCU The software watchdog is enabled by software The hardware watchdog is permanently enabled by hardware Analog to Digital Converter The ADC peripheral multiplexes up to 8 analog input channels It converts the analog input to 8 bit value using monotonic successive approximation The analog input voltage must lie within the supply voltage ran
29. e The SPI peripheral is a synchronous serial interface for Master and Slave device communica tions Single master and multimaster mode systems are supported for communication with ex ternal peripherals or other microprocessors Dedicated registers and interrupts allow full soft ware control and user defined protocols SCI Serial Communications Interface The Serial Communications Interface SCI offers a flexible means of full duplex data ex change with external equipment requiring an industry standard NRZ asynchronous serial data format A wide range of baud rates are available using dual baud rate generator systems on both receive and transmit channels Transmitter and receiver circuits are independent and can operate at different baud rates 29 47 43 ST7MDT2 DVP Watchdog Timer The watchdog timer consists of a 7 bit reloadable downcounter that triggers a device reset when it reaches a prede fined value During normal operation the application reloads the counter at regular intervals to prevent a reset occurring By this means if the application hangs the con dition is automatically cleared by reset ting the MCU The watchdog timer can be enabled by software or by hardware The choice is a microcontroller configuration option Device Reset Upon Halt EEPROM Configuration Current micro 5T72331H4 CLOCK INTERNAL TIMER_A DISABLED TIMER B DISAB Option Value Normally
30. eneral Layout DCDC converters External Power Supply t Port Catia i Parallel Inter PC HOST 54 1 12V Powers control Programming Data Control Bus Microcontrollers to program SDIP 42 156 2 Board 44 64 Programming Socket 4 3 2 Targets The development board provides you with the necessary resources to program ST7 device belonging to the ST72331N4 series ST72121J2 or J4 ST72311J2 or J4 ST72311N2 or N4 ST72331J2 J4 ST72331N2 4 4 Link to PC The ST7MDT2 DVP Development Kit board communicates with your PC via the P2 connector connected to the PC parallel port LPT1 or LPT2 Centronics bidirectional EPP and EPC configurations are supported 4 5 Power Supply A plug in power supply pack is supplied with the ST7MDT2 DVP Development Kit to be con nected to the P1 female jack connector This power supply must be plugged into the appropri 38 47 ky 52 ST7MDT2 DVP ate AC source Specific sales types indicate the corresponding mains AC voltage supported 220V 110V US or 240V UK Provided DC power specifications are as follow Voltage 5 V Current 1 A A complementary power supply input ref JP1 is provided with the same specifications When using this power supply take care to respect the polaritie
31. ents 16 Bit Timers Two 16 bit timers Timer A and Timer B are available They consist of a 16 bit free running counter driven by a programmable prescaler Both timers feature output compare pulse width modulation PWM and input capture functions with associated registers This allows applica tions to measure pulse intervals or generate pulse waveforms Timer overflow and other events are flagged in a status register with optional interrupt generation 3 28 47 42 ST7MDT2 DVP A debugger dialog box lets you en able disable the clocks for timer A or timer B as a microcontroller con figuration option When the DISABLED option is cho sen the timer is frozen as long as HALT AND WAT the CPU operates in SYSTEM Value DISABLED mode see CPU on page 25 For instance you would use this option to check whether the timer has reached a specified value When the ENABLED option is cho sen the timer is continuously oper ating even in SYSTEM mode An example of use of this option is for an application in which the PWM pulse width modulation output of the timer drives a motor that must keep running Analog to Digital Converter The ADC peripheral multiplexes up to 8 analog input channels It converts the analog input to 8 bit value using monotonic successive approximation The analog input voltage must lie with in the supply voltage range which is used as the analog reference SPI Serial Peripheral Interfac
32. eti 23 Windows mode external signal 34 23 2 Zero insertion force socket 22 eoe Tr 22 477 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 ST Microelectronics The ST logois a registered trademark of STMicroelectronics 1998 STMicroelectronics All Rights Reserved Purchase of I C Components by STMicroelectronics conveys a license under the Philips 12 Patent Rights to use these components in an system is granted provided that the system conforms to the 12 Standard Specification as defined by Philips STMicroelectronics Group of Companies Australia Brazil Canada China France Germany Italy Japan Korea Malaysia Malta Mexico Morocco The Netherlands Singapore Spain Sweden Switzerland Taiw
33. ge which is used as the analog reference Digital to Analog Converter The Digital to Analog converter generates 10 bit pulse width modulated signals with a software programmable duty cycle These signals with external RC filtering can be used to replace potentiometers and analog voltage control sources A 12 bit channel is available on some devices Asynchronous Serial Communications The Serial Communications Interface SCI offers a flexible means of full duplex data exchange with external equipment requiring an industry standard NRZ asynchronous serial data format A very wide range of baud rates are available using to dual baud rate generator systems on both receive and transmit channels Transmitter and receiver circuits are independent and can operate at different baud rates SPI Serial Peripheral Interface The SPI peripheral is a synchronous serial interface for Master and Slave device communications Single master and multimaster mode systems are supported for communication with external peripherals or other microprocessors Dedicated registers and interrupts allow full software control and user defined protocols USB Interface The USB is standard serial bus intended primarily for PC peripherals such as monitors keyboards joysticks multimedia devices scanners etc It allows such devices to be connected or removed without rebooting or installing drivers The ST7 peripheral implements the USB low speed function interface Data t
34. ial Peripheral Interface 31 Simulation aided debugging 43 Slow mode 1 29 SI aicut 31 ST Assembly 20 42 46 47 60 ST7 Simulator 42 ST7 Windows Debugger 42 ST72331N4 Series Summary 7 Structure of the Development Kit 9 Supplying the Application Board 38 SYSTEM OS i pac 27 T Target devices to be programmed 40 Technology in use ue 39 GSU 38 pi OT Orc 7 TRO TON 30 TOFPO4 devi68S et tinte 22 TQFP64 packages e 7 Triggered break feature 33 jn co uate 33 TTL compatible technology 39 U User application connection 8 USER mod nnne 27 W Watchdog 39 Watchdog TIME eiecit tee 32 Waveform mode external signal 34 WDOGF 39 WGDB7 21 WGDB7 21 WGDB7 Sm Gl 21 Windows ss ceti 23 Windows mode external signal 34 23 2 Zero insertion force socket 22
35. lication board Table 3 J1 Pin Assignment for Probe Connection 50 pin HE10 9 om p o p oo ome ow 13 14 om x9 ST7MDT2 DVP Table 3 J1 Pin Assignment for Probe Connection 50 pin HE10 _ 0 6 we gt Tw Ground C2 Port Table 4 J2 Pin Assignment for Probe Connection 50 pin HE10 ST7MDT2 DVP Table 4 J2 Pin Assignment for Probe Connection 50 pin HE10 EN e wee 4 34 47 48 ST7MDT2 DVP Table 5 Probe Pin Assignment SDIP56 ee o f e f l 35 47 49 ST7MDT2 DVP Table 5 Probe Pin Assignment SDIP56 Pin name Description Probe Pin Name Description _ Application Vcc Application Voc 26 31 The emulator clock is connected to OSCOUT only when a solder spot is placed in G1 on the development board Application voltage 4 5 to 5 5 V only 4 2 2 Supplying Power to the Application Board There are three ways in which you may supply your application board 1 By using the two test pins located in TP19 GND and TP18 5V on the development board Then the current should not exceed 100 mA 1 Viathe VDD pin in the J2 probe connector after a solder spo
36. ll and setup the ST7MDT2 DVP Development Kit software follow these steps 1 Insert the delivery CD ROM into your CD ROM drive 1 Using Windows Explorer open the root directory of your CD ROM drive Table 2 Software Installation Procedure Acrobat Reader is already installed on your system Double Click WELCOME pdf When the Welcome screen is displayed click ST7 TOOLS 4 14 47 28 ST7MDT2 DVP Table 2 Software Installation Procedure Acrobat Reader is not yet installed on your system 1 Open the PROGRAM folder ACROBAT3 2 Select and install the appropriate language version of Acrobat for more details refer to the readme txt in the CDROM root directory 3 When Acrobat is installed Double Click WELCOME pdf When the Welcome window is displayed click ST7 TOOLS WELCOME TO ST7onCD Click here The ST7 Tool Chain Setup introductory window appears on your screen referring to the three software components of the ST7MDT2 DVP Development Kit e WGDB7 Debugger ST Assembly Chain for the ST7 Family 577 Epromer Click Next to continue 437 15 47 29 ST7MDT2 DVP 1 In the next window Choose Destination Location you will specify the folder or di rectory where to copy the whole ST7MDT2 DVP Development Kit software Use the default folder or directory or choose another folder or directory Click here to select another path his is the default path Return to previous window Abort installation
37. o display the epromer configuration window Ares does not exist for that chip Note that as long as the programming board and the device to be programmed are not specified the display area is blank 3 6 2 Configuring the Epromer Follow these steps 1 In the main window tool bar click the icon to select the epromer configuration window ky 21 47 35 ST7MDT2 DVP ST HDT1 KIT ST7HMDT2 KIT 1 In the list select the programming board for this ST7MDT2 DVP Development Kit ST7MDT2 DVP 1 Click the Select Chip tab to display the list of the devices that can be programmed with this ST7MDT2 DVP Development Kit The list box shown in the Select chip window appears 4 22 47 36 ST7MDT2 DVP Epromer Configuration T72311 J4 SDIP42 T72331N2 TOFPE4 Tf2331N4 SDIP56 1 In the list select the device to be programmed ST72121 J2 or J4 ST72311 J2 or J4 ST72311 N2 or N4 ST72331 J2 or J4 ST72331 N2 or N4 Click OK to confirm The list box closes The memory mapping of the specified device now appears in the display area of the main window It is made up of FFs as one may expect since programming has not taken place yet To view in turn the memory mapping of a selection of devices plugged in open the config uration window again then the Select Chip list box and click Apply The display area of the main window changes while the list box stays open for you to choose another chip if necessary
38. onding diagram is as follows 2222 RIGIN active on rising edge Application LD2 red LED on Operating Mode System LD2 red LED off A debugger dialog box lets you choose the waveform mode for the external signal Pulse mode or Windows mode as a microcontroller configuration option see Windows Debug ger for the ST7 Family User Manual 31 47 45 ST7MDT2 DVP 4 1 8 External Output Trigger The development board of the ST7MDT DVP Development Kit features a special output pin through which an external signal can be triggered out The signal is conveyed via a mini wrap ping pin located on the board next to the passive probe flat connector ref TP20 A debugger dialog box lets you choose the waveform mode for the external signal Pulse mode or Windows mode as a microcontroller configuration option see Windows Debug ger for the ST7 Family User Manual 4 2 Connection to External User Resources 4 2 1 Pin Description You may connect an application board to the ST7MDT DVP Development Kit board for eval uation or debugging in linked emulation mode The J1 and J2 connectors in the development board provide all the I O pins needed for the communication Signals are transmitted via a passive probe to be plugged in the application board at the location of the emulated device The following tables show the pin assignment for the J1 and J2 connectors development board and the probe app
39. ransfer is performed by DMA The USB ky yn INTRODUCTION peripheral has an integrated 3 3V voltage regulator and a transceiver Suspend and Resume operations are supported 12 Bus Interface The 12 bus is a synchronous serial bus for connecting multiple devices using a data line and a clock line The ST7 I C interface operates in multimaster or slave mode and supports speeds of up to 400 KHz Bus events Bus busy slave address recognised and error conditions are automatically flagged in peripheral registers and interrupts are optionally generated The interface supports 7 and 10 bit addressing CAN Bus Interface The Controller Area Network CAN protocol is becoming more and more widely accepted in Europe and throughout the world It enables the creation of networks inside a vehicle or an industrial system with high tolerance to error in noisy environments The Controller area network peripheral conforms to the CAN Specification 2 0 active and 2 0B passive The interface has three 10 bit transmit receive buffers and two 12 bit message acceptance filters The Baud rates are programmable up to 1 Mbit sec DEVELOPMENT amp SUPPORT Full Hardware and Software Development Support A full range of development tools is available including In Circuit Emulators OTP EPROM programming boards and Gang programmers for each device Software development tools include Assembly Language and C Language programming suites as well as a proprietary
40. s marked next to the two pole connector 39 47 53 ST7MDT2 DVP 5 SOFTWARE FEATURES 5 1 Tools To help you design code and debug your applications and program them on chip the follow ing software has been included in the ST7MDT2 DVP Development Kit e ST Assembly Chain ST7 Simulator ST7 Windows Debugger e Epromer for ST7 MCUs A stand alone ST7 instruction help file is also available In many circumstances it will help you select the most suitable code for your programs and improve the overall performance of your applications 5 2 ST Assembly Chain for ST7 Family The ST Assembly Chain is a cross development system for ST7 driven applications It in cludes an assembler a linker a formatter and a librarian The information flow is summarized in the chart below YOUR SOURCE CODE IN ASSEMBLER Assembler 18 Linker cod sym grp map Formatter 519 Debugger with Emulator Simulator EPROM Programmer 40 47 54 Symbols asm files feos WES MPO EAT 42 42 42 inc files 42 OBI ET 42 SU TIS 42 ODJ TES 42 E 42 SYM files SNP ceee A2 A ADCO 31 Analog to Digital Converter 31 Antistatic 1 15 Application
41. se changes affect the PATH option where the path for the components of the Assembly Chain should be added the METAI and DOS4G environment variables that have to be set to the following val ky 17 47 31 ST7MDT2 DVP ues respectively SET METAI C lt install folder gt asm where install folder is the installation root folder directory St7tools by default SET DOS4G QUIET You may let the system proceed to the changes or make the changes by yourself In any case for the modifications to be effective you will have to reboot the system If you make the changes by yourself the values to be typed can be found in C lt install folder NasmNMSt7vars bat where install folder is the installation root folder directory St7tools by default For more information refer to the ST7 Software Tools for the ST7 Family User Manual You are then directed to the Setup Complete window By checking the appropriate box you may display a Release Note for the WGDB7 Debug ger and or start a debugging session immediately after the installation is completed 3 3 Using the ST Assembly Chain The ST Assembly Chain components are installed in a subdirectory of the installation root di rectory named asm By default you will find all the software development tools that constitute the ST Assembly Chain in C NSt7toolsNasm 4 18 47 32 ST7MDT2 DVP For more information on how to develop applications or
42. t has been placed in G2 on the development board Again the current should not exceed 100 mA This method is not recommended 1 Byusing your own power supply 4 2 3 Limitations e The minimum CPU operating internal frequency of the development board is 250 kHz for more details see Clock on page 27 e The application supply voltage should take a value between 4 5 and 5 5 V different from the 3 6 V range for the devices When an SDIP42 device is used reset values for complementary SDIP56 pins are impre dictable Also the value of the bits associated with the unconnected pins can be different from the values of the register bits for the SDIP42 device itself 4 36 47 50 ST7MDT2 DVP e f the probe is unplugged the watchdog flag WDOGF cannot be updated unless a solder spot has been placed in G2 VccApp e f any of the PC1 or PF4 ports are to be used a PWM output itis recommended to insert an FCT circuit between the output pin and the application side as in the following example 74FCT 244 Analog Output CAUTION Electrical levels and behaviour on 1 0 port pins depend on the technology used in the PLD Programmable Logic Device referred to as EPF 10K20 on the development board The technology used is TTL compatible different from the ST72331 chip technology CMOS Consequently electrical high state levels on I O pins are limited to 3 3 V 37 47 51 ST7MDT2 DVP 4 3 Device Programmer 4 3 1 G
43. that is frequently updated OTP devices are programmable by the customer using STMicroelectronics or third party EPROM programmers EPROM versions can be used during development and prototyping as the program memory can be erased and programmed as often as required Available on chip peripherals include a 16 bit Timer Watchdog timer A D converter D A converter asynchronous communications interface SPI 12C USB and CAN interfaces On chip EEPROM is available on some devices Figure 2 ST7 Integrated Microcontroller Solutions ST72531 7 ST72671 CAN ADC USB Package Size ST72251 12C ADC 2 TIM Functionality 7 12 INTRODUCTION CPU CORE ARCHITECTURE The industry standard 8 bit accumulator based architecture features 6 internal registers including a 16 bit program counter The instruction set has 63 instructions with 17 addressing modes offering 8x8 bit unsigned multiply true bit manipulation various bit byte transfer modes and powerful branching logic Peripheral resources are handled via dedicated interrupts and registers Figure 3 577 CPU Registers ACCUMULATOR X INDEX REGISTER Y INDEX REGISTER STACK POINTER 15 0 PROGRAM COUNTER 0 CONDITION CODE REGISTER H NZ C 4 8 12 INTRODUCTION ON CHIP PERIPHERALS Parallel I O Ports The bidirectional parallel I O lines are generally grouped as ports of 8 lines each The number of I O lines depends on the specific device pinout Th
44. these MCUs ST72121 J2 or J4 ST72311 J2 or J4 ST72311 N2 or N4 ST72331 J2 or J4 ST72331 N2 or N4 This list is subject to modification 3 6 Device Installation Place the device into the zero in sertion force socket mounted on the board location U9 for SDIP56 devices with the erasure window on top and pin 1 matching the un colored circle No 1 on the board You may also place SDIP 42 de vices on the same socket in this case the pin 1 of the device should match the solid filled circle No 1 as shown in the diagram opposite Footprint for TQFP64 device programming You may also program TQFP64 de vices by adding the appropriate ZIF socket on the footprint provided at the board location U19 Place the TQFP64 Device HE10 Probe Connectors device as indicated in the second di agram The reference number of the socket not supplied with the Kit is ENPLAS OTQ64 08 02 4 20 47 34 ST7MDT2 DVP CAUTION Placing the device into a socket without care may damage the device or the board Never insert or remove devices when supplied Devices are supplied only during read or write operations 3 6 1 Starting the Windows Epromer The Windows Epromer Winee is installed in the epromer directory By default you will find it in C St7tools epromer To start the Windows Epromer just click the corresponding icon or name in the cascading menus in the Windows desktop The Epromer main window appears Click here t
45. tting Started will provide you with more detailed information on how to 12 47 26 start a session and how to activate the tools 4 ST7MDT2 DVP 3 GETTING STARTED 3 1 Hardware Installation 3 1 1 Antistatic Requirements 3 1 1 1 Testers and Tools Any tester equipment or tool used at any production step or for any manipulation of semi conductor devices must have its shield connected to GROUND 3 1 1 2 Antistatic Equipment An antistatic equipment should comprise conductive table top made of steel or clean aluminium or covered by an antistatic sur face superficial resistivity equal to or higher than 0 5 Megohm cm2 grounded through a ground cable conductive cable from protected equipment to ground isolated through a 1 Megohm resistor placed in series e Anantistatic floor covering grounded through a conductive ground cable with serial resis tor between 0 9 and 1 5 Megohm 3 1 1 3 Manipulation of the Development Kit Hardware Manipulation the development kit hardware must be made at a grounded worktable is mandatory to wear an antistatic wrist or ankle strap connected to the antistatic floor cov ering or to the grounded equipment It is mandatory to wear antistatic gloves or finger coats Nylon clothing is prohibited during manipulation of parts The worktable must be free of any non antistatic plastic objects The wearing of the antistatic strap must be controlled every day 3 1 2 Powering Up the De
46. velopment Board Proceed as follows 1 Connect the development board P2 connector to the parallel port LPT1 or LPT2 of your PC via the appropriate cable NOTE The supplied interface cable has been tested in order to operate properly on most PCs Do not use any other cable especially if it is longer than the one provided by STMicroelectronics the board may not operate properly The cable should be connected directly to the DB 25 female connector of the PC par allel port This connector is similar to the one installed on the board Do not insert any 13 47 27 ST7MDT2 DVP additional cables or switchboxes between the PC and the board a malfunctioning of the board may result If a dongle is mounted on the PC parallel port it should not interfere with the program ming board Should you notice a dysfunctioning of the board remove the dongle and restart the installation procedure 1 Connectthe probe to the board J1 and J2 connectors using the two flat cables that have been supplied in the package 1 Powerup the board by connecting the power supply that can be found in the pack age P1 connector NOTE The board can also be fed via the JP1 connector by an external stabilized power sup ply 0 25 V 1 A not provided with the Kit If the board is fed via the JP1 two point connector make sure that the right feeders lead to the right polarities The green POWER LED lights up 3 2 Software Installation To insta
47. w opens WELCOME TO 5 Click here 11 47 25 ST7MDT2 DVP 1 Click ST7 TOOLS on the Welcome window The ST7 Tool Chain Setup introductory window appears on your screen Click Next to continue In the next window Choose Destination Location Click Next to continue using the default folder or directory for the software to be loaded to In the next window Select Components click the Wgdb7 Debugger and Develop ment Kit ST Assembler Chain and Windows Epromer check boxes Leave other check boxes empty Click Next to continue The next window Check Setup Information displays the settings you have speci fied Click Next to confirm The copying process takes place A progress indicator keeps you informed of the status of the operation When the copying process terminates you are directed to the Setup Complete window 2 2 Working with the Development Kit From now on you can do whatever you want in the scope of your development activities You can Code your applications using the ST Assembly Chain Debug your applications using the WGDB7 Debugger with either the ST7 Simulator no hardware needed the Emulator or the Development Board Program any ST72331N4 series device with the application you just developed using the Windows Epromer software To start any of these tools just click the corresponding icon or name in the cascading menus in the Windows desktop NOTE Chapter 3 Ge
Download Pdf Manuals
Related Search
Related Contents
Marantz DV9600 DVD Player User Manual Cardio Perfect Resting ECG, Quick Reference Guide Samsung CM1089 User Manual 69-2263EFS-01 - Totaline® Smart 1H/1C and 2H/2C Fiche d`information de Werthenstein BioPharma GmbH Sharp PN-Y425 Brochure Dell P2314H Monitor User's Manual ACTION! SAMPLER CJ2H-CPU6@-EIP Copyright © All rights reserved.
Failed to retrieve file