Home

ST7MDT1-DVP

image

Contents

1. Events breakpoints 29 External clock ssss 26 External Output Trigger 30 F FIBISI GO OOS nexa cece ca tias demens 12 H Hardware breakpoint 29 Hiware C Compiler Chain 37 2 C Bus Interface 29 Input Trigger 30 internal COCK oeste i re etate 26 L MB zi D or 25 EES LD M MT 25 M Main menu of debugger 25 MAP NS PR MET ROCHE NM 36 Memory mapping eeeene 27 METAI Environment Variable 16 Miscellaneous Register 26 Modes of operation CPU 25 N Normal mode clock 26 INVIONCIOLMIN Gl PT ERREUR 12 Index e d EEPE EIE E A ETE E 28 O ST Assembly Chain 17 36 S T7 Simulator 36 Operating modes clock 26 ST7 Windows Debugger 36 TO SG8172251G2 Series Summary 5 P Structure of the ST7MDT1 DVP Develop DO DESI osservare ari ed Sein 6 PACK ACCS i ai k quies N fex eam 5 SYSTEM mode 25 Parallel IO T6llS suisse barreras 27 Parallel port of your PC 34 T PATH option AUTOEXEC BAT 16 FC CONMCC ION me TEUER 5 Test pins evalua
2. a clock line The ST7 2 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 condi tions are automatically flagged in peripheral registers and interrupts are optionally generated The interface supports 7 and 10 bit addressing 12 C Bus Interface 4 1 6 Hardware Breakpoint Capabilities With the ST7MDT1 DVP Development Kit you can define hardware breakpoints that cause your program to stop whenever a defined event occurs An event can be e he occurrence of a memory access via a read operation e he occurrence of a memory access via a write operation he occurrence of an opcode fetch e he occurrence of a write operation in a write protected location e he occurrence of a write operation in a reserved location he occurrence of a stack overflow underflow e he occurrence of an access to a reserved memory area e he 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 Ky 29 42 43 ST MDT1 DVP 4 1 7 Input Trigger The evaluation board of the ST7MDT1 DVP Development Kit provides a special inlet TRI GIN Ref TP18 that can be used to transmit a signal to stop the execution of your application upon the occurrence of an external event In this case the program is stopped after the exe cution of the current instruc
3. Selecting any of these commands in the Windows Debugger main window causes the CPU to switch to the USER mode Selecting this command causes the CPU to switch to the SYSTEM mode All other Windows Debugger commands execute in SYSTEM mode only STA 25 42 39 ST MDT1 DVP 4 1 3 Clock The development board is shipped with a 16 MHz TTL in Micro Lonfiguration X ternal clock Current micro 517210161 You may also use an external CLOCK INTERNAL clock TTL compatible max 16 TIMER_A DISABLED MHz whose signal is supplied WATCHDOG 5 Tai via the mini wrapping pin CLOCKIN located on the board next to the passive probe flat EY TERNAL connector ref TP18 Option Value Caution In normal mode Miscellaneous Cancel Register slow mode bit 0 ac ceptable CLOCKIN frequencies can take any value between 16 Modify pu 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 inlet 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 G2 see Table 4 Probe Pin Assign ment SDIP32 on page 32 A debugger dialog box lets you choose the clock type internal or e
4. a Be ee ode roto ole i E adr ete eee 34 45 POWER GUPPEN uia ein a o e UE I cH nen d hec o e soda aca RP qun Qi Rc dona 35 2 42 ky 16 5 1 5 2 5 3 5 4 5 5 5 6 Table of Contents E E cates eats A E eee ae E eevee T E E E N E E E 36 OO RSS hd es See eee es Sen a a a ee me EI ma ue 36 ST ASSEMBLY CHAIN FOR ST7 FAMILY 0 002 002 36 HIWARE C COMPILER DEMONSTRATION CHAIN 002000 000000 37 ST SIMULATOR 2 incase iip iena ieu ee aS PPP Sasa eer a RAE 37 SI WINDOWS DEBUGGER saps 2x 5d ana sii E e e CE pew ee EAR Ide E DO E a an 37 EPROMER FORSTA MOUS simetria eee ee eee EA N DEA 39 3 42 17 ST MDT1 DVP Standard Compliance This product is conform to the 89 336 EEC Directive It complies with the EN55022 emissions standard for ITE and generic 50082 1 immunity standards Organization of the Manual This manual comprises five chapters and an index Chapter 1 WHAT THE DEVELOP MENT KIT AF FORDS YOU provides a general description of the components of the Development Kit Chapter 4 HARD WARE FEA TURES introduc es you to the Emu lator and the De vice programmer Chapter 2 WHAT YOU CAN DO WITH THE DEVELOP MENT KIT is a quick introduction to the Develop ment Kit Chapter 5 SOFTWARE FEA TURES discusses the soft ware tools that are included in the De velopment Kit Chapter 3 GETTING START ED explains how to in stall and use the components of the Develop
5. any 12 42 ky 26 ST7MDT1 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 2 Connect the probe P3 connector using the flat cable that has been supplied in the package 3 Power up the board NOTE The board can also be fed via the JP1 connector by an external stabilized power sup ply 5V 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 install and setup the ST7MDT1 DVP Development Kit software follow these steps 1 Insert the delivery CD ROM into your CD ROM drive 2 Using Windows Explorer open the root directory of your CDROM drive Table 2 Acrobat Reader is already installed on your system Double Click WELCOME pdf When the Welcome screen is displayed click ST7 TOOLS Acrobat Reader is not yet installed on your system 1 Open the PROGRAM folder ACROBAT 3 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 screen is dis
6. just click the corresponding icon or name in the cascading menus in the Windows desktop The Epromer main window appears ky 19 42 33 ST MDT1 DVP Click here to display the epromer configuration window 5THMicroelectronf s Windows Epromer File Edit Frajec Configure Read Program veri View Help ei 8 5 J a Ea ca Fa Fa a Ed a a 2 F1 Area does not exist for that chip m Note that as long as the programming board and the device to be programmed are not specified the display area is blank EPROM 4 EEPROM j Options j Chip Information Mo configuration restored define configuration before using the epromer r E nknown User defined Peal 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 20 42 34 lt ST7MDT1 DVP Epromer Configuration ee Select Hardware amp Port Select Chip Attached EPROMER hardware Connected an S5 T 7MDTI KIT LPT1 5T ZHDT2 KIT 5 T ZHDTA KIT 5TZHDTI EPB S5 T 7HMDT2 EPB S5 T7HDT3 EPB 5T 7MDTA EPB STZMDT1 DYFP Epromer 5 TZHDTI DVvP Fort LPTI Chip S17 72101G61 SD1IP32 anoi 2 2lnthe list select the programming board for this ST7MDT1 DVP Development Kit ST7MDT1 DVP 3 Click the Select Chip tab to display the list of the devices that can be programmed with this ST7MDT1 DVP Development Kit The list box shown bel
7. 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 Interface 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 28 42 STA 42 ST7MDT1 DVP Watchdog Timer The watchdog timer consists of a 7 bit reloadable downcounter that triggers a Current micro ST 210161 device reset if it reaches a predefined CLOCK INTERNAL value TIMER_A DISABLED mE WATCHDOG Siew OPTION During normal operation the application reloads the counter at regular intervals Option Value to prevent a reset occurring By this SOFT 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 Cancel Modify Close Thel2 C bus is a synchronous serial bus for connecting multiple devices using a data line and
8. to use the WGDB7 Debugger refer to the WGDB7 Windows De bugger for the ST7 Family User Manual included in the CD ROM 18 42 STA 32 ST7MDT1 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 trans ferred into an ST7 MCU program space With the ST7MDT1 DVP Development Kit you may program these MCUs 172101 G1 or G2 ST72212 G2 ST72213 G1 5172251 G1 or G2 This list is subject to modifications We recommend that you practise device programming using one of the sample MCUs provid ed with the ST7MDT1 DVP Development Kit 3 6 Device Installation Place the device into the zero insertion force socket ZIF socket mounted on the board loca tion U19 for SDIP32 devices with the erasure window on top and pin 1 matching the mark on the board NOTE You may also use SO28 devices by adding the appropriate ZIF socket on the board on the footprint provided at location U17 The reference number of the socket not supplied with the Kit is EMPLAS OTS 28 1 27 04 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 NSt7toolsNepromer To start the Windows Epromer
9. you also develop and test your application s long before your hardware is finished or available Although it is more hardware dependent than the sim ulation option because emulators have components specific to various microcontroller fami lies it presents the major advantage of supporting real time testing and debugging in the user application board environment Also it supports the tracing and logic analyser debugging fea tures that can be used in conjunction with the emulators STA 37 42 51 Description ST7MDT1 DVP Table 6 Development Kit Emulator and Simulator Debugging Features Description Simulating Pin Input Output Signals Time Management Output Trigger Management Stack Overflow Underflow Stop Non existent Memory Stop Write Protect Memory Stop Input Trigger Stop Fore more information on how to debug with any of the above tools see Windows Debugger for the ST7 Family User Manual 5 6 Epromer for ST7 MCUs Epromer is a Windows interface that lets you View edit and save executable files in the Hex Intel and S19 Motorola formats gener ated by the Assembler Linker or C Compiler for ST microcontrollers Program executable files into ST microcontrollers e View and verify a microcontroller s memory contents Note that Epromer is not device dependent Fore more information on how to use Epromer See Programming ST7 Devices on page 27 lt 39 42 5 CO Symbols ASM file
10. Contiguring the EDpromer i ea ter cem op ESI One de ote piod uen gue d 20 4 Hardware Features 6 5 esr pu RR bee GOUCOS be dco S ub Pe ue e OY VR ES Ee 24 d EMUEA TOR uec ap asaa mens Pad ri RIA are 2 elo inane hee Bae adu IIR 24 4T General Layouts esses ds dae ee eee oat heen eee be ERR Ns DH dee eee 24 d 1 2 CRW m ea geniis tm gue ae ee ee eee mole da lees meom be nat Bee ea eee B 25 Ako OOCK pariske Ghee oat aera eee re vet arene EE it ae ee 26 WE MEMON aers dieen ot vic teins Bk dealt of we Ge ae ee Gn ee Gh See Bake Bg ee Ss teh Bg BS SB et 27 4 1 5 On Chip Peripherals sd ERES REV EXUCETWZERe eee YS EEAPARE Eus 27 4 1 6 Hardware Breakpoint Capabilities 2 llle 29 4 ODE DEO QE 5c aa nei ga e ag cece a CI x Tu toS Qe Ti ie Io aun cras di lo tae d asc too a ra eat 30 4 1 8 External Output Trigger llle 30 4 2 CONNECTION TO EXTERNAL USER RESOURCES 00000002 30 4 2 Tan DesctipIIORi s c4 sta axe aae rad ec as ot de ors c a S ED IO death A alae eicere 30 4 2 2 Supplying the Application Board llle 32 2 25 TAOS htc ere M eI Ete Sept te SE E oe RU ae uA EE UE CAU I EHI a EAS NU ut 33 49 DEVICEPROGRAMMIER 3 332 3 ndum act m gon m Ee S S Rob dos e x PR ae 34 4 31 General Layout iuuursu diu ou o E esta sua ERO EG IIO Meu M Iul R A 34 4 93 2 Tal gel5 25 9 c sts PATE dr det o sao dde dod torba doa dear Vd ca ta hes 34 Ard UNK TOPO scion wants Ing ete icta Soldi ol
11. F FF FF FF F FF F FF FF FF FF PE EF BE FF FF FF FE FF ER FF FF FF FF FF EE FF FF FF FF FF FE FF FF FF FF FF FF Details stored in the Epromer buffer for the space corresponding to the currently selected tab The EPROM has been selected FF FF FF FF FF FF FF FEF FF FF FF FF FF FF EF FF FF FF FF FF FF FF Chip Information FF FF FF Information area infine Hardware configuration set to S T MDT D vP on LPT1 with ST 7210161 85028 plugged in r o Ow JUser defined a Progress bar progress of the current task being executed by the Epromer Origin of the display area contents Cursor position in the display area 5 Start your programming session For more information on how to use the Windows Epromer click the Help command in the main menu bar lt 23 42 37 ST MDT1 DVP 4 HARDWARE FEATURES 4 1 Emulator 4 1 1 General Layout On board clock ui 6 6 External Power Supply Breakpoints settings User memory Mapping definition Trigger Out settings ay PLD 1 id A Stest Max 7256 pld xor A 0x08 N 1 User Application area program source variables stack PC Parallel Port Interface PC HOST System Monitor area variables stack Control Bus system Monitor code Flex10k30 programming file SYSTEM USER Automaton PLDQj mcu address decoding 4 Hext0K30 p
12. e Assembly Chain should be added e the METAI and DOS4G environment variables that have to be set to the following val 16 42 STA 30 ST7MDT1 DVP ues respectively SET METAI C lt install folder gt asm where install folder is the installation root folder directory St 7tools 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 NasmMSt7vars 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 Setup Complete Setup has finished installing 5T Toolchain on your computer Setup can launch the Release Mates file and WODB Debugger Choose the options you want below Launch WGDE Debugger Click Finish to complete Setup By checking the appropriate box you may display a Release Note for the WGDB7 Debug ger Version 2 0 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 so
13. e I O function de fined 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 Timers Two 16 bit timers Timer A and Timer B are available ST72212 G2 and ST7225 G1 G2 only the other devices supported by the ST7MDT1 DVP Development Kit use Timer A only They consist of a 16 bit free running counter driven by a programmable prescaler Both timers fea ture output compare pulse width modulation PWM and input capture functions with associ ated registers This allows applications to measure pulse intervals or generate pulse wave Ky 27 42 41 ST MDT1 DVP forms Timer overflow and other events are flagged in a status register with optional interrupt generation eU E able disable the clocks for timer A l or timer B as a microcontroller con Current micro STZ210161 figuration option TIMER A DISABLED When the DISABLED option is cho WATCHDOG 5 HEW OPTION sen the timer is frozen as long as PT the CPU operates in SYSTEM dicic DISABLED mode For instance you would use ENABLED this option to check whether the timer has reached a specified val ue When the ENABLED option is cho Cane sen the timer is continuously oper ating even in SYSTEM mode An example of use of this option is for Modify Close an application in which the PWM pulse width modulation
14. equently it cannot be immune against elec trostatic discharges ESD It should therefore be handled only in static safe working areas z 9 42 23 ST MDT1 DVP 2 WHAT YOU CAN DO WITH THE DEVELOPMENT KIT 2 1 Preliminary Contacts Let s suppose that you have just unpacked your ST7MDT1 DVP Development Kit You re eager to try it Try it now 2 1 1 Connect and Power 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 2 Connect the probe P3 connector using the flat cable that has been supplied in the package 3 Power up the board Watch the green POWER LED lights up 2 1 2 Install and Setup the Software 1 Insert the delivery CD ROM into your CD ROM drive 2 Using Windows Explorer open the root directory of your CDROM drive 3 Double click WELCOME PDF Watch the Welcome Window opens SH WELCOME TO ST7onCD T m pA ng ACROB Click here 10 42 STA 24 5 ST7MDT1 DVP 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 em
15. ftware development tools that constitute the ST Assembly Chain in ky 17 42 31 ST MDT1 DVP C NSt7toolsNasm For more information on how to develop applications or 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 About WGDB ES WGODE Beta 2 2 June 16 1998 Please wait while connecting with the development kit STMicroelectronics 1998 Free System Resources na L urrent Time 15 39 52 Memory 32264 KB Free 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 7t ools by default For more information on how
16. gged into the appropri 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 inlet ref JP1 is provided with the same specifications When using this power supply take care of the polarities marked nearby the two point connector Ky 35 42 49 ST MDT1 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 ST7MDT1 DVP Development Kit e ST Assembly Chain e ST7 Simulator e SI7 Windows Debugger 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 Debugger with Emulator or Simulator EPROM Programmer 36 42 AS 90 ST7MDT1 DVP For more information about the components of the ST7 Assembly Chain refer to the Software Tools for the ST7 Family User Manual 5 3 Hiware C Compiler Demonstra
17. ky e ST7MDT1 DVP DEVELOPMENT KIT FOR S172251G1 C2 ST7210161 G2 9172212G2 AND ST72213G1 MCUs PREFACE Purpose of the Manual This manual describes how to start and use the ST7MDT1 DVP Development Kit for the 172251G2 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 ST72251G 2 covers the ST72101G1 G2 ST72212G2 ST72213G1 and ST72251G1 G2 MCUs The manual also provides a guidance for programming a selection of ST7 microcontrollers in EPROM or One Time Programmable OTP mode Audience This book is intended for persons who wish to evaluate how to design and test applications using ST7 microcontrollers e who want to use the ST7MDT1 DVP Development Kit to meet their actual application development needs No preliminary knowledge in the field of microcontrollers is required Related Publications The following publications contain useful complementary information e ST7 Family Data Sheets e ST7 Family 8 bit MCUs Product Overview Ref BKST7 2 e Software Tools for the ST7 Family Ref Doc ST7ASMLK SW e ST7 Family Programming Manual e Windows Debugger for the ST7 Family Doc ST7 WGDB7 This manual will help you debug and finalize your programs Rev 1 01 July 1998 1 42 15 Table of Contents SIZMDTI DVP s io ardor dub OR RHRCRUE GR ED H3 Hd EE Rol aos 1 1 What the Development Kit Afford
18. l 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 An antistatic 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 Finish Goods Manipulation of finish goods must be made at a grounded worktable It 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 Evaluation Board Proceed as follows 1 Connect the evaluation 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
19. ld Chips select management TELE PC interface registers DVF Control atatus registers Trace Ram future extension STI2ESSME Emulation mode ST MDT1 DVP Board Trigger External out Clock Trigger In oh ohe ee Passive Probe ll External rebuilt Peripherals Flat Cable 2C Fot A B C Watchdog Micro Internal peripherals SPI TimerA B ADC USER Application Board n NEM 24 42 38 lt ST7MDT1 DVP 4 1 2 CPU The board is equipped with an ST72331E CPU that can operate in two different modes the USER mode and the SYSTEM mode When in USER mode the CPU is entirely devoted to the processing of your application code It therefore behaves as the CPU of the target microcontroller you speci GT72101G1 fied beforehand via the appropriate GT z2101 1 debugger command sequence sT72101G2 WGDB7 Main Menu Oo 517221262 5172213561 Micro Name Current Micro Commands menu Micro Name command Specifying the target microcontroller po EM see Windows Debugger for the ST7 Family User Manual When your application program is running the LD1 red LED lights up When in SYSTEM mode the CPU is used to execute all other tasks When you select a command in the main menu of the debugger you cause the CPU to auto matically switch from one mode to the other jel 577210161 Development Kit sample abs Wej xi File Windows Commands Sources Help
20. ment Kit INDEX ST7MDT1 DVP 1 WHAT THE DEVELOPMENT KIT AFFORDS YOU 1 1 A Wide Range of Functions The ST7MDT1 DVP Development Kit for the ST72251G2 series MCUs contains all the nec essary resources that will help you design develop e debug ST7 application software running in a real environment e and program ST72101G1 G2 ST72212G2 ST72213G1 and ST722516G1 G2 devices in both EPROM and OTP modes NOTE These functions are currently available for devices with SDIP32 packages You may however use devices with SO28 packages by adding the appropriate ZIF socket on the board See Development Board Layout on page 9 Table 1 ST72251G2 Series Summary o Lu oe Te me To Te ST72251G2 se 6x8 bits 2x16 bits 1 2 Package Description The ST7MDT1 DVP Development Kit package contains Hardware One development board with a cable for PC connection Ref MB 212 B e One SDIP32 passive probe Ref DB 320 A and one 34 pt flat cable for user application connection e One 5 V external DC power supply with cable STA 5 42 19 ST MDT1 DVP 2 9172251G2 MCU samples 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 The present guide An emulator aided debugger ooftware Tools comprising a source level debugger o
21. n Assignment for Probe Connection 34 pin HE10 een omae wee Sn wm 3 0 3 99 99 1 3 o9 ww 3 9 9 AS 31 42 45 ST MDT1 DVP Table 4 Probe Pin Assignment SDIP32 9m 3 9 wm op 3 9 ow 9 wm 3 9 ow9 9 The emulator clock is connected to OSCOUT only when a solder spot is placed in G2 on the evaluation board Application voltage 4 5 to 5 5 V only 4 2 2 Supplying the Application Board There are two ways in which you may supply your application board directly from the evalua tion board 32 42 ky 46 ST7MDT1 DVP By using the two test pins located in TP 14 GND and TP15 5V on the evaluation board Then the current should not exceed 100 mA Via the VDD pin in the P3 probe connector after a solder spot has been placed in G1 on the evaluation board This method is not recommended 4 2 3 Limitations The minimum CPU operating internal frequency of the development board is 250 kHz for more details see Clock on page 26 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 If any of the PB1 or PC1 ports are to be used for a PWM output it is recommended to insert an FCT circuit between the output pin and the application side as in the following example 74FCT244 Analog Output CAUTION Electrical levels and behaviour on I O port pins depend on the technology
22. nics 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 trademark of STMicroelectronics 1998 STMicroelectronics All Rights Reserved Purchase of IC Components by STMicroelectronics conveys a license under the Philips IC Patent Rights to use these components in an I C system is granted provided that the system conforms to the IC 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 42 42 yr 56
23. ow appears ky 21 42 35 ST MDT1 DVP Epromer Configuration Select Hardware amp Port Select Chip Chip plugged in 17210161 SDIP32 S5T72101G2 5DIP32 5T7221252 5DIP32 5T72213G1 5DIP32 5T7225151 5DIP32 5T72251G2 5DIP32 E promer STYHDT1 Db P Port LPTI Chip S17 7210161 SBIP3 2 4 In the list select the device to be programmed ST72101G1 or G2 172212G2 ST72213G1 ST72251G1 or G2 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 22 42 ky 36 ST7MDT1 DVP The name of the device to be programmed is displayed here OT Microelectronics File OOFOOO OOFO10 OOFO20 OOFOS0 OOFO40 OOFOSO OOFO6D OOFO O OOFOSO OOFO9O OOFOAQ OOFOBO UOFOCU OOFODO OOFOED OOFOFO OOFLOO OOF110 OOFL20 OOFL30 OOP140 OOFLS0 OOF160 OOF1 O MUST Edit io er aman o n n PP FF FF FF FF FE FE FF FF FE FFE FEF FE FE FEF BE Project Coa tiqure Read Program erty wiew Help Lee FF FF FF FF FF FF F
24. ox 15 42 29 ST MDT1 DVP x Selecting the WGDB7 Debugger To select a component omponents pou want to install clear the compone et a na subcomponents check the appropriate box iu to be displayed Components Select Components m gdb Debugger 4524 K JST Assembly Chan UK Windows Epramer OF HOS Emulator Development Kit Simulator Select the Development Kit version of the WGDB7 Debugger Description Select this component if you have a Development Kit and want ta configure qdb for it Space Required 4524 F Space Available 10872 FK Back Cancel TE Return to previous window Abort installation process Continue installation process Click Next to continue 5 The next window Check Setup Information displays the settings you have speci fied e e Destination folder directory e Components to be installed Click Next to confirm Click Back to change any settings 6 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 These changes affect e the PATH option where the path for the components of th
25. perating with the development board or an ST7 simulator an assembler a linker an ST7 eprom programmer and associated user documentation A basic C compiler for demonstration purposes only A device epromer ST7 application notes with sources Figure 1 Software Hardware Structure of the ST7MDT1 DVP Development Kit 20 SOFTWARE HARDWARE ASSEMBLY TOOLCHAIN P ST7 EMULATOR CONNECTOR TO PQ id NE WGDB7 DEBUGGER Happen WINDOWS ST7 PROGRAM CONNECTOR TO USER EPROMER m MING SOCKET APPLICATION BOARD ST7 SIMULATOR 6 42 STA ST7MDT1 DVP Figure 2 ST7MDT1 DVP Development Kit General Configuration Po rro d Parr c a bie Emulation Chip Programming Windows Debugger Soe Wind cae Eprommer ezriwere Fab Simulation hers Windas zimuasir Soe Ocoambler Wagn maom accembler Linker Formater Librarian Arnhl ver BTTMDT1 L vP Ce velopment Kit Board 1 3 Board Functional Configurations The development board of the ST7MDT1 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 7 42 21 ST MDT1 DVP Figure 3 Using the Development Board as an ST7 MCU Emulator Windows Debugger Software WGDB Power tuppl Parallel link TS ninish baiah mimi uit mininiz mi p Flat cable a Pastlye probe Emulated ST MDT1 chip location on application board User Application Board Figure 4 Using the Developmen
26. played click ST7 TOOLS ky 13 42 2 ST MDT1 DVP 28 Ve WELCOME TO ST7onCD mI Search Click here The ST7 Tool Chain Setup introductory window appears on your screen referring to the three software components of the ST7MDT1 DVP Development Kit e WGDB7 Debugger e ST Assembly Chain for the ST7 Family SI7 Epromer Click Next to continue In the next window Choose Destination Location you will specify the folder or di rectory where to copy the whole ST7MDT1 DVP Development Kit software Use the default folder or directory or choose another folder or directory 14 42 AS ST7MDT1 DVP Choose Destination Location Setup will install ST Toolchain in the following folder To install to this Folder click Nest To install to a different folder click Browse and select another folder You can choose nat to install ST Toolchain by clicking Cancel to exit Setup Click here to select another path Browse C Skr tools Back Cancel Return to previous window Abort installation process Continue installation process Click Next to continue 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 lt the same time don t check the corresponding b
27. pty 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 Watch A progress indicator keeps you informed of the status of the operation When the cop ying process terminates you are directed to the Setup Complete window 2 2 Start 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 ST72251G2 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 Getting Started will provide you with more detailed information on how to start a session and how to activate the tools ky 11 42 25 ST MDT1 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 e A conductive table top made of stee
28. s You 2 0 c ce ees 5 1 1 A WIDE RANGE OF FUNCTIONS 33 0 ove Rn E oet cene CUR Role Ree etes 5 1 2 PACKAGE DESGRIPTION oy wasn dute Suae uten d aree acd eam dp toa tomas 5 1 3 BOARD FUNCTIONAL CONFIGURATIONS sseeeeeee eee 7 L4 DEVELOPMENT BOARD LAYOUT eh taataa e ade ee E Etats 9 2 What You Can Do with the Development Kit 2 0000 e eee ees 10 2 1 PRELIMINARY CONTACTS 24224 ces aat tueE E ee up Ec back CER RE ROS ees ee 10 2 1 1 Connect and Power Up the Development Board 0 0 00 0 0c eee 10 2 1 2 Install and Setup the Software 0 0 eee 10 2 2 START WORKING WITH THE DEVELOPMENT KIT eene 11 3 Gelling Started und Ee E a ace b S X Sero Ex ar EH EO oa Ec E e SER Rc eh 12 3 1 HARDWARE INSTALLATION 4 wc 2522 nates bee mb Pra ep dee ob helene SUR HIR RR nes 12 3 1 1 Antistatic Requirements llle 12 3 1 2 Powering Up the Evaluation Board llle 12 22 SOFTWARE INSTALLATION 3 33 hU ee ERE RR ehe EUR race m SUR e ee 13 3 3 USING THE ST ASSEMBLY CHAIN sese RR RR I ars 17 3 4 STARTING THE WGDB7 DEBUGGER iz zz bReeex R RE bee eet e ERES 18 3 5 PROGRAMMING ST7ZDEVIGOES miere 248 iiie REIS eb RS ERIT EE 19 3 DT Target DEVICES ci eu 6d den wad Da ps oC Rad Pee eee eet Ores ober Rb MEET 19 2 5 DEVICE INSTALLATION perena abr tow Dodd EO RD generi ch n EE 19 3 6 1 Starting the Windows Epromer l l 19 3 6 2
29. s extra etiectirat needa nics Reaemnndaesaeath ide 36 COG TCS PH 36 PORE TIES utter I vies aetna yiatebet 36 grp FICS ccccccessseceeeeeecssssaeeeeeeessrseees 36 Mex PPM 36 Jew cce 36 AIS i os tutte e benc nn ere nS 36 JOD CS 36 SLO MNES m E TE E 36 SYM files ooo ccccceessececeececsssaeeeseeensrsenees 36 A 1D gc 28 Analog to Digital Converter 28 Antistatic equipment 12 Application connection 5 AUTOEXEC BAT III titres 16 B Breakpoints hardware 29 BUS EVENS sso deis pesecec nint en viet 29 C C Compiler Chain Hiware 97 Cable for PC Connection 5 Sion WT ER 26 GIOCK AY OG sastar i e d deett 26 GEOGISIN DIIS ducentes on 26 Complementary power supply 35 D Debugger main menu 25 Debugging simulation aided 37 Debugging Features 38 Devices in ST72251G2 Series 5 DISABLED option Timers 28 DOS4G Environment Variable 16 40 42 54 Index E Emulation aided debugging 37 ENABLED option Timers 28 Environment Variables 16 Epromer re 19 39 Epromer for ST7 MCUS 36
30. t Board as an ST7 MCU Programming Board Windows Epromer Software Povr iuppis Parrallel link SES abah babah ni nb nbuk minbubu LA ST MDT1 GP microcontroller to program ST MDT1 OVP Board Programming Socket 8 42 22 lt ST7MDT1 DVP 1 4 Development Board Layout External Power Supply RHONE Parallel Port Connector Emulation RAM EPROM SDIP32 ZIF Device Program ming Socket EFPRTTEAEB3RHLZH rL SDIP17 PR ERAMJIMJSOLEET 4 C ne l ST72331E Space for CPU SO28 ZIF Device Progra mming Socket m E IEEE ISSF IBAF emen mc nes ent G d Gir SYSTEM ASF paip PSII FEE roun Tenu LDI LGT mI Pla TPIB ReD aMM a oo Lo BPP PROBE CONKECTOR C EA qM BH Hr A EBEE8 E he 5V Power Outlet for V Demonstration Board Supply 34 pin HE10 External 11 DEwvELOH E Trigger EUN User Appli Cv gcrTed Application Connector Output beche ie ss Prog Run LED red S078 SOLFET AITSz8 S028 PRIDRAMMIME SOCKET TPTRE TRIGDUA TPIBL LLDEF fria ev If you want to supply your application External directly from the board via the appli Trigger Board cation connector place a solder spot Input Power On here G1 VCC APP LED green Max 100 mA WARNING The ST7MDT1 DVP Development Kit board is a Class A apparatus In a residential environ ment it may cause radioelectrical disturbances Also the The ST7MDT1 DVP Development Kit board is not contained in an outer casing cons
31. tion The corresponding diagram is as follows PHI 1 JALILILILILILILIL opcode TRIGIN Har c Application Monitor 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 TRIGIN active on rising edge 4 1 8 External Output Trigger The evaluation board of the ST7MDT DVP Development Kit features a special outlet through which an external signal can be triggered out The signal is conveyed via a mini wrapping pin located on the board next to the passive probe flat connector ref TP16 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 evaluation board for evaluation or debugging in linked emulation mode The P3 connector in the evalua tion board provides 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 30 42 AS 44 ST7MDT1 DVP Table 2 shows the pin assignment for the P3 connector evaluation board and the probe ap plication board Table 3 P3 Pi
32. tion Chain The Hiware C Compiler Chain for ST7 is also available It makes it possible to develop ap plications that will be run debugged at source level or programmed using the Development Kit A demonstration version of the Hiware C Compiler Chain is included in the ST7MDT1 DVP Development Kit package for evaluation purpose only 5 4 ST7 Simulator The ST7 Simulator is a program that simulates the execution of ST7 programs instruction by instruction The behaviour of the peripherals is also simulated Note that in this case no external hardware is required You may then debug any of your pro grams without using the evaluation board of the ST7MDT1 DVP Development Kit 5 5 ST7 Windows Debugger You can run the WGDB7 debugger using either of the following ST7 Simulator ST7 Emulator ST7 Development Kit Simulation aided debugging lets you develop and test your application s before your hard ware is finished or available This could save time and provide you with some flexibility regard ing your own application development plans Also this debugging method relieves you from any premature undesirable hardware dependency Lastly this is the cheapest solution some real time debugging features such as the tracing facility and the logic analyser function are not available either Nevertheless you will benefit from new other features such as time measurement and time dependent break management Emulation aided debugging lets
33. tion boaroaQ 33 PO parallel POM usso gopio 34 TESTS ae aaea e etaed 12 Pin Assignment for Probe Connection 31 ENEI Ee S T EEA AEE T AA 27 POWer SUDDIY csset bra i as 35 toole ANa iiir ecr op ia 4 Power supply complementary 35 Triggered break feature 29 Pulse mode external signal 30 Inc 30 Pulse waveforms seuuusss 27 Pulse width modulation 27 U FeV Vil usos eodd the D ADU P rt do 27 User application connection 5 R USER MOdE toss ttt ceca 25 ROM SIZ a scuasntiratiie inden Cres tdt a dit oc 27 W S Watchdog Timer eeeee 29 Waveform mode external signal 30 oDIP32 packages 5 WGDB debugger 18 oDIP32 passive probe 5 WGDB7 EmulaltoE au ttd 18 Serial Peripheral Interface 28 WGDB7 Simulator 18 oimulation aided debugging 37 Windows Epromer eeee 19 Slow mode clock 26 Windows mode external signal 30 9029 deVICeS amid dst ian tette 19 Uc 19 O29 PACKAGES nouns 5 Ky 41 42 55 ST MDT1 DVP Notes Information furnished is believed to be accurate and reliable However STMicroelectro
34. used in the PLD Programmable Logic Device referred to as EPF 10K30 on the development board The technology used is TTL compatible different from the ST72251 chip technology CMOS Consequently electrical high state levels on I O pins are limited to 3 3 V ky 33 42 47 ST MDT1 DVP 4 3 Device Programmer 4 3 1 General Layout i PC Parrallel Port Interface u O I Q D 4V i 12V Powers control Programming Data Control Bus Microcontroller to program ST MDT1 DVP Board Programming Socket 4 3 2 Targets The evaluation board provides you with the necessary resources to program an ST7 device belonging to the ST72251G2 series ST72101G1 or G2 ST72251G1 or G2 ST722136G1 or 172212G2 The sample device supplied with the ST7MDT1 DVP Development Kit is accommodated by the SDIP32 Zero Insertion Force ZIF socket mounted on the board Ref U19 4 4 Link to PC The ST7MDT1 DVP Development Kit evaluation board communicates with your PC via the P2 connector connected to the PC parallel port LPT1 or LPT2 NOTE The parallel port of your PC should have been configured as a Centronics parallel 34 42 ky 48 ST7MDT1 DVP port BIOS settings The Development Kit does not support EPP ECP or bidirection al parallel port configurations 4 5 Power Supply A plug in power supply pack is supplied with the ST7MDT1 DVP Development Kit to be con nected to the P1 female jack connector This power supply must be plu
35. xternal as a microcontrol ler configuration option You access 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 26 42 ky 40 ST7MDT1 DVP 4 1 4 Memory The memory mapping for Memory Configuration X the emulated device is Current micro 5T7225162 also configurable You access this dialog boxes DU2F 0030 RESERVED E via the following debug 0031 OO3F PERIPH l 0040 0040 RESERVED ger command sequence akt NEW MAP WGDB7 Main Menu 0070 DU Commands menu 0072 Ul first address of the area Dun gen i eh Memory Configura Tey last address of the area DFFF tion command EO FF Wind Deb FFE4 FF maptype ROM see Windows Debug FFEB FF Th B ger for the ST7 Family FFEE Ff RAM User Manua FFF FF __ RESERVED iii i This feature would ena FFF8 FFFF VECTORS ble you for instance to temporarily increase the Modify Hew Area Close ROM size during the de velopment phase of your application In the example a ROM area has been mapped to the DOOOh DFFFh part of a reserved area 0180h DFFFh for the target device ST72212G2 4 1 5 On Chip Peripherals Parallel I O Ports 22 bidirectional parallel I O lines with interrupts are supported The I O lines can be shared be tween other on chip peripherals alternate functions and any general purpos

Download Pdf Manuals

image

Related Search

ST7MDT1 DVP

Related Contents

Samsung MT1099STD دليل المستخدم  BRENNTAG Química, S.A. Área Industrial PRODUCTO: ÁCIDO  "取扱説明書"  1. - Vivitek  Canon imageRUNNER ADVANCE 6255 Guide for Mac  Radica Games 76002 User's Manual  Sewatec, Suporte do rolamento S01 - S04  Owners Manual - Winchester Safes  取扱説明書    

Copyright © All rights reserved.
Failed to retrieve file