Home

STARTER KIT USER MANUAL FOR ST625X, ST626X MCUS

image

Contents

1. 14 tay z T TO T aan 2e n x aaa tino En 4 FSU OS 9 509 a S008 Yy sIS Hee YT UIT 899 cad i zo i4 I SE Gan sar Tz QNT 20 T UON SOUR Gen s 15551 su 4 e zc m 5 TT 859 809 INO Em TT T m Sw po x 45 8 T oen b 8554 vu z Sm T recen ano wot aho a9 ii FI ovo Tsu p li Kefe iz 1n 0 I s9 1sa4 00 zio Lio Kd 6254 220082 T 2 ada 3 ano NS THz9Od H09Dd 7 8 d x 6 Be M SeIS TL nw TH QNO HJ AND poss T IB MES pn me DANS T 1 usen Sse I EET wE AL ES NINOSI asi G9 Ad PLOOS 9 Idos Bod E bd Wei toza i03ugdsggi 6 011IS 068 I 4 E89 MIEZIOS fA Y ANidd E doas 2 01908 as9 0vd 782994 T8095d poe b 9 T EY Tom 008 z T LIA T oixeww Ele a seis lo om 1S9 68d gen Le 3 zp ds Foe uu 508 dr TYVIN eT Teast y jo 99 z ead oe pee a T Tora 3 T T T ose XS m ano urstis ost 44001 yy 859 184 p 39 OY DO T ve RT ano mu Hana NSO E T s9 svd 859 094 qon 7 eve xS FOU si Fo Pd T z4 TT 4 CHE UPNTCHE 8 LAT Hd Gene EE EI GOA 5 a Nr B eres Ng ME Sr ly ZAL evi HOO EN HND UE SET ada 8 tDIOTES SN UN ONE oost E oS 9
2. ONU 8 t E ano TYNNE ST ASE LO ANL Y 44001 QNO QNO MYA Pres Ol dI35dH BAAN vo OLXLMWN PN 344001 L tDISIEEHL vy 0 ur 9 wy DA so 3No01 Z T LFOH D OH x HOLSINERHL eH E cdd ano o 14950 9 ose 5 gof 9T y ddANG T anoop C Thy i 28 vos a001 46 s9 svd 999 LV z nm zr QNO m 99 ae ZT TOO Y T BOO M 44004 id TU o d mu Azza 5 Hr 9TS 051 X A 859 508 o Wz QNO ano 3anoo Joseaans aan e Z7 Yr q JJ aan 58 m vost NETS LDIF ES DVLDN n ven 1r D Newe O OW SN INED 899 169 09 n INO ZY anol 8 ho m qo ser g tS 9 BET 8S93291S DITES SAMS ASr dNd azssoa 5 ui ur 959 809 QNO STOOS ST UN yg E roS Seo SOS 91 55 51 1908 g T X 5 aie 5 TOOS ZIT uwjovd dan Le 21908 800 con 5 3 ey UNI SSA e102 SOS om wee d 8 129 uso elo uN Svd ad 3 ScJUs U mo5so uwuvisgd LS S908 OPXMW Ez 5 amp uoSO wowuuvi 8d 1 534 Sad L3 9908 a rca por oo ae ND ino9SO uwilHv 98d UN ZIS TAN Yad 5 5505 She Saeco l3S3H 584 EUS EZ 584 8S9 DA ada 09 15H TW Zag Z SUUS 869809 nL YIS uyrnosiend Sag Ce rele 5 M cod isaudda E 8I0S 8e9 809 00S BOOS SZ uvjuisizod isard LP OOS amp 09 Q6 aTmo 4 846
3. Table of Contents 7 PROGRAMMING ST6 MICROCONTROLLERS eeses eee eene 30 7 4 Programming Signals nea rn 30 7 2 Setting Up the Starter Kit Board 2 2 eee 31 7 9 In Circuit Programming aa rarer aaa Tna L a mln hrs 33 7 3 1 Application Board 6 33 7 4 Setting Up the Starter Kit Board for In Circuit Programming 35 8 RUNNING YOUR OWN PROGRAM ON THE STARTER KIT BOARD 37 9 HARDWARE INFORMATION seseeeee hh hn hm 39 Oli Pans Ler tee Rte ERE Rech es VU tas athe ROI Tales dcn 39 9 2 Starter Kit Board Schematic raskes cieee eh 39 3 41 Introduction 1 INTRODUCTION The ST626x Starter Kit provides you with all you need to start designing developing and eval uating programs for ST6253 ST6255 ST6260 ST6263 and ST6265 microcontrollers imme diately The ST626x Starter Kit includes e The ST6 assembler and linker AST6 and LST6 The ST6 Windows debugger WGDB6 The Windows ST6 microcontroller programmer Epromer The ST6 Starter Kit board which serves as a demonstration board and low cost debug ging tool Some demonstration programs that show how ST6 microcontrollers use the Starter Kit board resources Some example programs One ST62bE60BF1 two ST62E62BF1 and two ST62E65BF 1 microcontrollers Acomplete set of paper documentation
4. using an ST6 Aconnector for your own in circuit ST6 programming board See Application Board Con nections on page 33 for further details Below is a block diagram of the Starter Kit board POWER SUPPLY DAC TRANSDUCER LEDs THERMISTOR TRIMMER UNIT A A A A A RS232 P2 v IN CIRCUIT EPROM ST62E65 PROGRAMMER PROGRAMMING J1 PARALLEL CONNECTION TO PC AND SOFTWARE SIMULATOR P1 ST626x I O CONNECTION J2 v USER APPLICATION ky 9 41 The Starter Kit Hardware c D D n n 9 a a 4 4 4 LJ LI LI LJ LI LI LJ LI a a eeee660 p i ime ety ete ta ST626X STARTER ST626x Starter Kit Board 10 41 RESET w EMO SELECTION 3 The Starter Kit Hardware The following diagram shows the layout of the Starter Kit board 00 oo oo oo oo 8 0 oo oo oo oo SN oo In circuit programming connector J1 20 DIL 16 ZIF MCU socket 8 Mhz Oscillator 19 Digital to analog conversion circuit ST6260 62 or ST6265 device 18 Programming or User operating mode selection jumpers W10 to W13 selection jumpers W1 and W2 4 PC connector P1 17 Five LED level indicators including jumpers WA to W8 5 Audio Transducer circuit 16 DIL 20 28 ZIF MCU socket 6 10 KO trimmer 15 Remote resource I O interface connector J2 7 Power supply JACK connecto
5. 555 879 809 WL dA IOS 9 uid tad 5 5908 3 3 Iv dNoo Ss9US gz909 dn Ind ZOOS TE oad L2 2908 5 QNO L LL dNd oiu woos Be T T90s O1XEMIN zl sol ei Mesias a Az m lo A L EIM rc ih y AV 1319085 NOW 89 13 90S NOW 899x 809x xz291S 899 SOT LN Mere aes ms 6u dio 09 WNS 034 037 40 41 Hardware Information Notes Information furnished is believed to be accurate and reliable However SGS THOMSON Microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use No license is granted by implication or otherwise under any patent or patent rights of SGS THOMSON Microelectronics Specifications mentioned in this publication are subject to change without notice This publication supersedes and replaces all information previously supplied SGS THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of SGS THOMSON Microelectronics 1998 SGS THOMSON Microelectronics All rights reserved Printed in France by Imprimerie AGL Purchase of IC Components by SGS THOMSON Microelectronics conveys a license under the Philips 20 Patent Rights to use these components in an 20 syste
6. ST6265 microcontroller labelled DEMOK65 is pre loaded with the code DEMOK65 HEX which includes the demonstration programs see Running the Demos on page 20 as well as the communications protocol program that enables you to use the Starter Kit board as a simulator see Using The Starter Kit Board as a Hardware Simulator on page 26 The other ST6 microcontrollers are blank The file Demok65 hex is in the directory C st6tools sk626Xi1 so that if you erase it from the ST6265 you can re program it following the instructions given in Programming ST6 Micro controllers on page 30 2 2 The Starter Kit Board The Starter Kit board includes the following resources Reset and data control buttons LED indicators Resistance trimmer Analog to digital converter Audio transducer circuit e RS 232 interface Demonstration program selector jumpers It comes with its own power supply unit that can be plugged into an AC mains source or a DC source with the following characteristics Voltage 16V min 20V max Current 100 mA min 8 41 r The Starter Kit Hardware It includes the following connectors A parallel port connector P1 for connection to the host PC when it is used as a hardware simulator or for programming A remote resource I O interface connector J2 to which you can connect your own hard ware resource e An RS 232 connector which you can use for observing RS 232 communication control
7. and online help The demonstration programs that come pre loaded on an ST62E65 microcontroller show how the powerful features of ST6 microcontrollers operate in a real environment The demon stration programs use the hardware resources provided on the Starter Kit board which in clude reset and data control buttons LED indicators a resistance trimmer temperature con trol circuit and an RS 232 interface Using the ST6 assembler and linker AST6 and LST6 you can assemble and link ST6 pro grams The ST6 Family Software development tools AST6 LST6 WGDBe User Manual will guide you through the steps of developing assembling and linking programs for the ST6 The Starter Kit software includes a set of example programs of typical ST6 applications These are installed in the directory C st6tools sk626Xi1 examples For a fast track solution for developing bug free programs for the ST6 without the hassle of writing assembler code try out the ST6 Realizer program Once you have developed your ST6 program you can use the Windows based ST6 program debugger WGDB6 SIMULATOR together with the Starter Kit board as a low cost but pow erful debugging tool WGDB6 includes an ST6 simulator that simulates the execution of your program and uses the ST6 that is plugged into the Starter Kit board to emulate all transac tions that are performed with the data space Thus using the Starter Kit board with WGDB6 you can view how the microcontroller per
8. letting you implement the WGDB6 features in the emulator such as software or hardware breakpoints With the Starter Kit board as a hardware simulator This is a cross between the above two The WGDB6 software simulator simulates the execution of your program but each time the data space is accessed it accesses that of the ST6 that is plugged into your Starter Kit board Thus using the Starter Kit board with WGDB6 you can view how the real micro controller peripherals behave when your program is executed This section describes the third option how to use the Starter Kit board as a hardware simu lator You can use the Starter Kit board to emulate any ST6252 ST6253 ST6255 ST6260 ST6262 ST6263 or ST6265 microcontroller Note however that you must use the pre pro grammed ST6265 microcontroller labelled DEMOK65 supplied with the kit for hardware sim ulation Thus when simulating programs designed for other microcontrollers make sure that you do not use resources that are not available on the microcontroller your application is de signed for 26 41 p Using The Starter Kit Board as a Hardware Simulator 6 1 The Data Transmission Driver Data is transferred between the simulated peripheral registers and the ST626x registers via the host PC s parallel port The DEMOK65 HEX program with which the ST6265 microcon troller that is plugged into the Starter Kit board must be loaded includes the transmission driv er The data tr
9. mA and the capacitive load is less than 50 uF If the application board has its own power supply its voltage must be set to 5V so that logic levels are compatible with those of the Starter Kit board OSCin Synchronises the programming operations using a clock generated by the programming tool OSCin is located on the application board and must be directly connected to Pin 5 on the 16 way connector No isolation is needed as long as a quartz crystal or ceramic resonator is used in the application If an external clock generator is used in the application it must be discon nected during in circuit programming ky 33 41 Programming ST6 Microcontrollers RESET Controls the programming mode entry To prevent signal level contention RESET must be di rectly connected to Pin 9 on the 16 way connector and must be isolated from other nodes on the application board Any direct connection to Vpp Vss or an output must be avoided This pin can be connected to a CMOS input a 2 pull up a 10 KOhm pull down or left open In ternal pull up The capacitive load of the RESET pin should not exceed 1 UF Pins 1 and 7 on the 16 way connector are used to establish communications between the programming tool and the microcontroller To prevent signal level contention Pins 1 and 7 must be directly connected to PB3 and PB2 on the 16 way connector and must be isolated from other nodes on the application board Any direct connection to Vpp GND
10. played the same way 20 41 p Running the Demos 4 1 3 Demo 3 Voltage trimming and LED level indication 1 Initialises the pins as follows Is initialised as Analog input Connected to the trimmer on board PBO to PB4 Push pull outputs Connected to the five LEDs as marked 2 Reads the A D converter data register and turns on a LED according to the Voltage value input by the trimmer Adjusting the voltage trimmer marked 6 on the Starter Kit board diagram on page 11 turns on the appropriate LED 4 1 4 Demo 4 Temperature Control 1 Initialises the pins as follows Is initialised as Analog input Connected to the thermistor circuit PBO to PB4 Push pull outputs Connected to the five LEDs as marked on board 2 Reads and stores the A D converter data register value This value indicates the tempera ture at reset 3 Reads and stores the A D converter data register value at regular intervals If this value ex ceeds the value that was stored at reset a LED is turned on indicating the difference be tween the two values The higher the difference is between the stored value and the read value the higher LED number is turned on roughly in steps of LD n 1 for each additional degree difference You can increase the temperature by touching the thermistor marked 12 on the Starter Kit board diagram on page 11 STA 21 41 Running the Demos 4 1 5 Demo 5 Digital to Analog Conversion Digita
11. 5 HEX the file is in the st6tools sk626Xi1 directory For details of how to pro gram microcontrollers refer to Programming ST6 Microcontrollers on page 30 22 41 p Running the Demos To run the demonstrations 1 Power down the Starter Kit board 2 Make sure that the pre programmed ST62E65 is plugged into the DIL connector and that the DEVICE jumpers W10 to W13 marked 3 on the Starter Kit board diagram on page 11 are set to ST6265 as shown in the following diagram ST6265 ST6260 62 3 Select the USER mode using the jumpers marked W1 and W2 marked 18 on the Starter Kit board diagram on page 11 as shown in the diagram below 4 Disconnect the cable from the parallel port P1 connection if it is connected 5 Power up the Starter Kit board 7 71 23 41 Running the Demos 6 Install the demonstration program jumper marked PA3 as shown in the diagram below DEMO SELECTION W26 D1 D2 D3 D4 D5 al IU Ooo D6 W31 7 Select the demo you want to run by installing the appropriate jumper W26 to W31 marked 13 on the Starter Kit board diagram on page 11 as indicated on the diagram below Di Selects demo 1 Sound Generation LJ D2 Selects demo 2 Music Box D3 Selects demo 3 Voltage trimming and LED level indication D4 Selects demo 4 Temperature Control mi D5 Selects demo 5 Digital to Analog Conversion DAC D6 Selects demo 6 RS 232 C
12. DEVICE jumpers W10 to W13 marked 3 on the Starter Kit board diagram on page 11 to ST6265 as shown in the following diagram ST6265 ST6260 62 3 Select the PROG mode using the jumpers marked W1 and W2 marked 18 on the Starter Kit board diagram on page 11 as shown in the diagram below 4 Connect the Parallel port P1 on the Starter Kit board to a spare parallel port on your PC us ing the cable provided with the starter kit 5 Connect your application board to the connector J1 marked 1 on the Starter Kit board dia gram on page 1 1 on the Starter Kit board 6 Power up your Starter Kit board You can now use Epromer to program the microcontroller that is on your own board Note Epromer does not work under Windows NT To run Epromer from Windows 3 x double click the Epromer icon in the ST6 Tools group ky 35 41 Programming ST6 Microcontrollers To run Epromer from Windows 95 click Start Programs ST6 Tools then Epromer For instructions on how to operate Epromer click Help in the Epromer main window If your application board is not powered by the Starter Kit you must connect it to a 5V DC pow er supply before you start programming 36 41 p Running Your Own program on the Starter Kit Board 8 RUNNING YOUR OWN PROGRAM ON THE STARTER KIT BOARD You can run your own programs on the Starter Kit board using any of the Starter Kit resourc es 8 Mhz oscillator 10 Kohm trimmer Audio Transducer and but
13. ER UN Es END ST6260 62 3 Select the USER mode using the jumpers marked W1 and W2 marked 18 on the Starter Kit board diagram on page 11 as shown in the diagram below 4 Connect the Parallel port P1 on the Starter Kit board to a spare parallel port on your PC us ing the cable provided with the Starter Kit 5 Power up the Starter Kit board 28 41 p Using The Starter Kit Board as a Hardware Simulator To run WGDB6 e f you are using Windows 95 click the Start button point to Programs then ST6 Tools then click WGDB6 Simulator If you are using Windows 3 x double click the appropriate WGDB6 Simulator icon in the ST6 Tools program group Refer to WGDB6 User Guide in the ST6 Family Software Development Tools AST6 LST6 WGDBe User Manual for full instructions on how to use WGDB6 6 3 Error Messages The following table lists the error messages you may encounter when using WGDB6 with the Starter Kit board Error message Description Error 116 Port A protected when using This means that WGDB6 tried to access the PORT A board registers These are used for communications with the board Error 117 Communication error with This means that a problem occurred during communcations ST626x board between the host PC and the board Perform the checks listed below 6 4 Troubleshooting If there is a communications problem between WGDB6 and the Starter kit board the title WGDB6 Simulator app
14. Ky ST626x KIT STARTER KIT FOR ST625x ST626x MCUs HARDWARE FEATURES SOFTWARE FEATURES m Immediate evaluation of all ST625x and ST626x m Software simulator including I O read write devices with demonstration examples Assembler linker debugger m Software debugging within the user s real OTP and EPROM programming utilities application STIVIroDmenE Application examples and demonstrations m Programming of ST62T5x ST62T6x and ST62E6x devices DIL packages m In circuit programming of ST62T5x ST62T6x and ST62E6x devices on the user s application board all packages eme EAE E rmm ST62 FAMILY STARTER KIT FOR ST625x ST626x February 1998 1 41 Table of Contents ST620 C KITE 3 box EcL REN E DECEM reds 1 TINTRODUCTION m 4 1 14 Where to go from here 0 0 cette eee hne 7 2 THE STARTER KIT HARDWARE esseeeeeee nn n hh hh ht 8 2 1 The ST6 Microcontrollers seus gasaan Ee RR ren 8 22 Ihe Starter Kit Board i e meon ipd uda Pee OUR as aad Ges 8 2 9 Oscillator ice ee EUER REIR vp eese E EE eR RR ee eres 12 24 Reset BUttOn Sor ou eR ne tu cepe pO SEE NM ane 12 2 5 Audio Transducer occus EG es SHE me qc De cc Xs 12 2 6 Digital to Analog Conversion 0 cc eae 13 2 ANd der ai dea bn Pag dide end ig bet E Qupd Reda ab tn 13 2 8 LED Indicators d tem RC RO x Rn bine la alee RC aia Skea Ree 14 2 9 Resistance trimmoer scope vp ER ede Red gae Rs Rm 14 2 10 T
15. am on page 11 with each jumper connected to a resistor Each resistor gen erates a different voltage After reset the voltage value generated by the resistor whose jumper is installed is sent to PA3 on the ST6265 PA3 is programmed as an A D converter The program installed on the ST6265 uses the input from PA3 to select the appropriate demo The following table lists the voltage values generated by each resistor Resistor value Theoretical voltage value R14 10 No JUMPER 5 V R15 680 Q JUMPER D1 0 V R16 750 Q JUMPER D2 333 mV R17 820 Q JUMPER D3 666 mV R19 1 JUMPER D4 999 mV R20 1 2 KQ JUMPER D5 1 332 V The same principle can be used for keyboard decoding For a complete example of this refer to the SGS Thomson application note AN431 Using ST6 Analog Inputs for Multiple Key De coding 16 41 p The Starter Kit Hardware You can disconnect the demonstration selector from PA3 by removing the PA3 jumper from W25 JUMPER ST6265 E I D1 I 4 W25 PA3 PAS JUMPER R14 STA 17 41 Installing the Starter Kit 3 INSTALLING THE STARTER KIT 3 1 Hardware and Software Requirements To be able to install and run the ST6 Starter Kit you need a PC with AG 1 2 Floppy Disk Drive ACDROM Disk Drive 1 5 Mbytes free memory space Afree Centronics compatible parallel port connector MS Windows 3 11 NT or 95 3 2 Installing the Softw
16. ansfer driver uses the following bits PC ST6265 parallel port WGDB6 Use PA2 PA1 Write data to MCU RESET Hardware reset of peripherals D6 NM initiates data transfer SDOP PAO Read data from MCU Note Do not connect any external resources to the corresponding J2 connector pins when us ing the Starter Kit board as a peripheral emulator 6 2 Technical Limitations The Starter Kit board has the following limitations when used with WGDB6 as a hardware sim ulator Real time program execution is not supported Resetting the ST6265 by power on pressing the Reset button or external reset does not reset the simulated ST6 core To perform a complete simulated reset use the WGDB6 reset command instead Interrupts sent by the ST6265 microcontroller are not supported by the WGDB6 simulator The pins NMI PAO PA1 and PA2 on the ST6265 microcontroller are used for communica tions with the host PC and are thus not available for simulation You cannot modify the DO D1 and D2 bits of the DDRA ORA and DRA registers STA 27 41 Using The Starter Kit Board as a Hardware Simulator To use the Starter Kit board as a hardware simulator 1 Power down the Starter Kit board 2 Make sure that the pre programmed ST6265 is plugged into the DIL socket U3 and that the DEVICE jumpers W10 to W13 marked 3 on the Starter Kit board diagram on page 11 are set to ST6265 as shown in the following diagram ST6265 EI
17. are If diskettes are provided you must install the software with them in order to have the latest re lease 1 Place the SK626XI1 diskette into your floppy disk drive 2 In Windows Explorer or File Manager view the contents of the diskette then double click the Setup file or icon 3 Follow the instructions as they appear on screen If only the ST62 CDROM is provided then Place the ST62 CDROM provided into your CDROM disk drive 1 In Windows Explorer or File Manager view the contents of the CDROM browse to st62oncd ftools sk626Xi1 and double click the Setup file or icon 2 Follow the instructions as they appear on screen 3 3 Connecting the Power Supply If you have AC mains supply connect the Jack plug on the power supply cable provided to the J3 input socket then connect the mains plug to a mains source If you have DC mains supply connect the male plug on the power supply cable provided to the J3 input socket then connect the mains plug to a mains source with the following characteris tics Voltage 16V min 20V max Current 100 mA min Note To avoid a short circuit always connect the power input cable to the starter kit board be fore connecting it to a mains power supply 18 41 p Installing the Starter Kit If you use your own 3 5 mm power supply plug its polarity must be as follows T IL 19 41 Running the Demos 4 RUNNING THE DEMOS This section describes the demonstratio
18. can be disconnected from PB7 output by removing the W15 PB7 jumper TEST PIN ANALOG VOLTAGE ST6265 DUE PB7 PB7 ARTIMOUT 2 7 And Buttons These are connected to PB5 and PB6 pins on the microcontroller respectively They drive the PB5 and PB6 inputs down to GND when pressed You can disconnect PB5 or PB6 by removing the appropriate W22 or W23 jumper Sa TP P PES PB6 ST6265 XT ky 13 41 The Starter Kit Hardware 2 8 LED Indicators Five LEDs are used for level indication in the demonstration routines They are connected to the ST6265 pins PBO to PB4 when programmed as outputs to demonstrate direct LED driv ing capability The five LEDs can be disconnected by removing the W4 to W8 PB4 to PBO jumpers WA to W8 JUMPERS RESISTORS eu Vpp ARRAY E ST6265 PB4 PB3 PB2 PB1 PBO 2 9 Resistance trimmer A 10 resistance trimmer feeds the ST6265 PA4 I O pin when programmed as an A D Converter input with a variable voltage 0 to 5V DC It is used for A D conversion demonstra tion evaluation The trimmer can be disconnected from the I O pin by removing the W18 PA4 jumper TRIMMER E PA4 JUMPER GND 14 41 7577 The Starter Kit Hardware 2 10 Thermistor bridge Temperature control A thermistor bridge with a negative coefficient is connected to the ST6265 I O pin PAS which is defined as an analog to digital converter ADC input The voltage va
19. e against elec trostatic discharge ESD it should therefore only be handled at static safe work stations ky s Introduction The following diagram summarises the possible uses of the Starter Kit board and the hard ware setup required for each one To program ST6s on your own in circuit programming board PC running Starter Kit In circuit l Epromer board programming board Parallel port connected to P1 To program ST6s using the Starter Kit board PC running Epromer ST6 to be programmed Starter Kit board Parallel port connected to P1 To run the demonstrations To run your own program ST6265 Programmed with DEMOK65 HEX Starter Kit board ST6 programmed with program to run To use the Starter Kit board as a software simulator PC running WGDB6 Simulator ST6265 Programmed with DEMOK65 HEX Parallel port connected to P1 6 41 Introduction 1 1 Where to go from here The following table directs you to where you should look for further information about using the ST6 Starter Kit Find out about the Starter Kit board and ST6 The Starter Kit Hardware on page 8 of this book microcontrollers provided with the kit Install the Starter Kit software and connect the Installing the Starter Kit on page 18 of this book power supply to the board Find out what the demonstration applications do Running the Demos on page 20 of this book and run them Lea
20. ears in the WGDB6 title bar In this case you shoud check the follow ing That the Starter Kit board is correctly powered up That the parallel port cable is correctly connected That the device jumpers W1and W2 are in the USER position That the device type selection jumpers W10 to W13 are in the ST6265 position That an ST6265 is plugged into the Starter Kit board and it is programmed with DEMOK65 HEX ky 29 41 Programming ST6 Microcontrollers 7 PROGRAMMING ST6 MICROCONTROLLERS You can use the Starter Kit board in conjunction with the program Epromer to program ST6252 ST6253 ST6255 ST6260 ST6262 ST6263 or ST6265 microcontrollers You can also perform in circuit programming of ST6252 ST6253 ST6255 ST6260 ST6262 ST6263 or ST6265 OTP EPROM microcontrollers using your own board connected to the Starter Kit board via the connector J1 marked 1 on the Starter Kit board diagram on page 11 7 1 Programming Signals The following table shows the programming signals and states and their corresponding pin numbers signals states connector connector connector Pes Hihtow Pins Pins Pins Pino Pina Pno T Note The PB2 PB3 OSCIN and RESET signals on the J2 connector are used during ST6 programming thus if you have connected an external resource to J2 you must disconnect these signals before using the Starter Kit board for programming The PB2 PB3 OSCIN and RESET pins are used by the sys
21. ed during ST6 programming thus you must disconnect any external resource that is conencted to J2 before using the Starter Kit board for programming ky 25 41 Using The Starter Kit Board as a Hardware Simulator 6 USING THE STARTER KIT BOARD AS A HARDWARE SIMULATOR WGDBB6 the ST6 debugger that runs under Windows lets you test your programs without having to program the EPROM of your target ST6 Depending how much information you want and how close to real life you want your test environment to be you can use WGDB6 in one of three ways Asa software simulator If you use WGDB6 as a simulator you need not attach any addi tional hardware to your PC The ST6 simulator program that comes with WGDB6 and is run when you run WGDB6 Simulator simulates the execution of your program letting you step through the code and see what happens as the program runs WGDB6 simulator includes Wave Form Editor which simulates the output of the pins on your target ST6 in relation to inputs that you define enabling you to see how its peripherals react to the inputs they receive With an ST6 hardware emulator Emulators are hardware systems that act as your target microcontroller at the same time capturing detailed information such as which areas of memory are accessed by the program and what happens when they are accessed In this case WGDB6 Emulator provides an interface between the emulator and your PC display ing data captured by the emulator and
22. hermistor bridge Temperature control 0 0 0 eee eee 15 2 11 RS 232 Interface close Ae e ey ey E E en ne y 15 2 12 Demonstration Selector Jumpers liselseeeee e 16 3 INSTALLING THE STARTER KIT RR RR IH n n nn 18 3 1 Hardware and Software Requirements l l 18 3 2 lnstallingittie SoftWare bibe be a A E E hh 18 3 3 Connecting the Power Supply eee eae 18 4 RUNNING THE DEMOS eeeeeeeeee nn n hh hn 20 41 Whatthe Demos DO soe eats sages deae eR Exe doe Rosas ORDER Ra edo P 20 4 1 1 Demo 1 Sound Generation 0 0 0 ees 20 4 1 2 Demo 2 MUSIC DO 1 cR eR Roe OE E RR NUR EUR RN 20 4 1 3 Demo 3 Voltage trimming and LED level indication 21 4 1 4 Demo 4 Temperature Control ce eh 21 4 1 5 Demo 5 Digital to Analog Conversion 000 eee eee 22 4 1 6 Demo 6 RS 232 Communications saaa aaaeeeaa 22 4 2 Running the Demonstration Programs lssslleee nh 22 5 CONNECTING EXTERNAL RESOURCES TO THE STARTER KIT BOARD 25 6 USING THE STARTER KIT BOARD AS A HARDWARE SIMULATOR 26 6 1 The Data Transmission Driver os pintre unhe e 27 6 2 Technical Limitations l lleelee e nh 27 6 9 Error Messages s sd Seed eee a eee end Se bee a onte eed 29 64 Troubleshooting ema neris mde eua Rise S 29 2 41 p
23. ipherals behave when your program is executed WGDB6 includes powerful debugging features such as source level debugging instruction and conditional memory access breakpoints and selective trace recording The ST6 Family 4 41 p Introduction Software development tools AST6 LST6 WGDB6 User Manual and online help will lead you through the debugging process using WGDB6 When your program is ready Epromer provides you with an easy to use Windows interface which lets you prepare executable code then write it to the ST6 microcontroller that is plugged into either one of the DIL sockets on the Starter Kit board or your own in circuit application board that is connected to the Starter Kit board To observe and evaluate the consequences of your program on the resources it controls you can run it on an ST6 microcontroller that is plugged into the Starter Kit board If it controls a re source that is not included on the Starter Kit board you can connect your own resource to the board Instructions for use Warning This product conforms with the 89 336 EEC directive it also complies with the EN55022 emis sions standard for ITE as well as with generic 50082 1 immunity standards The product is a Class A apparatus In a residential environment this device may cause ra dioelectrical disturbances which may require that the user adopt appropriate precautions The product is not contained in an outer casing and cannot therefore be immun
24. l to Analog Conversion DAC is performed using an RC integrator circuit connected to the ST6265 Auto Reload Timer output PB7 A PWM signal is generated by the ARTimer at PB7 output The voltage value at the output of the RC integrator circuit is controlled by the PWM duty cycle After RESET the program Generates a 64 KHz frequency PWM signal at the Auto Reload Timer output The duty cycle is initialized at 5096 Decreases increases the duty cycle value each time the or button is pressed 2 steps This modifies the analog voltage at the integrator circuit output For more precise observation position an oscilloscope probe on the ANA test point located in the Digital to Analog circuit marked 19 on the Starter Kit board diagram on page 11 4 1 6 Demo 6 RS 232 Communications This demonstration shows how an RS 232 communication line buffer can be managed using an ST6265 microcontroller To run this demonstration 1 Connect the RS 232 connector on the Starter Kit board to a serial port on your PC using the RS 232 cable provided 2 On the host PC in MS DOS execute the program ST6K232 EXE which is in the st6tools sk626Xi1 directory 3 Follow the instructions as they appear on screen 4 2 Running the Demonstration Programs The ST6265 microcontroller labelled DEMOK65 is programmed with the demonstration soft ware If this software has been erased from the microcontroller you can reprogram it from the file DEMOK6
25. lue at the ADC input decreases when the temperature is increased Demonstration 4 shows how the thermistor is used to indicate temperature levels on the five LEDs see Running the Demos on page 20 The thermistor bridge can be disconnected from the pin PA5 by removing the W24 PA5 jump er M i ST6265 W24 PA5 je fe PA5 JUMPER THERMISTOR GND 2 11 RS 232 Interface The RS 232 interface enables you to communicate with the pre programmed ST6265 micro controller provided with the Starter Kit It includes an RS 232 buffer circuit that is connected to a standard PC compatible RS 232 SUBD 9 connector The following table lists the RS 232 ST6 pin connections Signal Name SUBD 9 Pin ST6 Pin Data Transmission TX PC3 Data Reception RX PC2 Request to Send RTS ie 1 PC1 Clear to Send CTS PCO You can disconnect these by removing the corresponding jumpers from W17 to W21 ky 15 41 The Starter Kit Hardware The following diagram shows the RS 232 connections and line allocations 10K ST6265 24 T PC3 RS232 P LINE co BUFFER PC2 NENNEN PC1 SUBD 9 POINTS CONNECTOR TX RX CTS and RTS are defined so that the board is used as a slave To use the board as a master swap both the RX and TX and the CTS and RTS pin connections on the cable 2 12 Demonstration Selector Jumpers The demonstration selector is made up of 6 jumpers W26 to W31 marked 13 on the Starter Kit board diagr
26. m is granted provided that the system conforms to the 1 C Standard Specification as defined by Philips SGS THOMSON Microelectronics Group of Companies Australia Brazil Canada China France Germany Italy Japan Korea Malaysia Malta Morocco The Netherlands Singapore Spain Sweden Switzerland Taiwan Thailand United Kingdom U S A 3 41 41
27. n programs that are provided with the Starter Kit and explains how to run them 4 1 What the Demos Do The following paragraphs describe the demos that come pre loaded with the ST6 Starter Kit demos See Running the Demonstration Programs on page 22 below for details on how to select and run a demo The source files of these demos are provided with the Starter Kit software in the file C st6tools sk626Xi1 sk626Xli DEMOK65 ASM 4 1 1 Demo 1 Sound Generation After RESET this program generates a PWM signal at the output of the AUTO RELOAD TIM ER peripheral PB7 which is connected to the Audio Transducer The frequency of the PWM signal can be adjusted by pressing the increase or the de crease pushbuttons An oscilloscope probe can be positioned on the W15 PB7 jumper to observe the PWM signal 4 1 2 Demo 2 Music box After RESET this program produces 5 tunes that are played by the Audio Transducer The sound frequencies are generated at the AUTO RELOAD TIMER output peripheral PB7 used in PWM mode The LED that is turned on indicates the tune to be played 1 through 5 To select the tune to play press the button The music starts playing when the button is pressed The tempo of the music can be modified using the voltage trimmer marked 6 on the Starter Kit board diagram on page 11 This is connected to PA4 I O programmed as Analog input Once the music has finished playing another tune can be selected and
28. ommunications W31 DEMO SELECTION For example in the above diagram demo 3 is selected 8 Press the reset button The selected demo is now ran To run a different demo repeat steps 7 and 8 24 41 ky Connecting External Resources to the Starter Kit Board 5 CONNECTING EXTERNAL RESOURCES TO THE STARTER KIT BOARD You can connect your own external resources to the pre programmed ST6265 to debug or evaluate your programs using the connector J2 marked 15 on the Starter Kit board diagram on page 11 To be able to connect your own resources to the Starter Kit board you must dis connect the resources that are already connected to the ST6265 to avoid external re source Starter Kit board resource conflicts The following table lists the Starter Kit board re sources and the corresponding J2 connections and indicates the jumper that disconnects ST6265 JP On board Connector resource W21 RS232 W20 RS232 PC1 RTS W17 RS232 PC2 RX W19 RS232 PC3 TX W16 NMI E System Tasks each resource On board JP ST6265 resource Connector LED W8 LED W7 LED W6 LED W5 LED WA Pushbutton W22 4 PB5 Pushbutton W23 PB6 W15 Audio Transducer System Tasks Reset push OSCOUT System Tasks OSCIN 8MHz Osc PA7 None PA6 Not used W24 W18 W25 Demonstration iiu Selector This is not available if the Starter Kit board is connected to a host PC Note Some of the signals on the J2 connector are us
29. or an output must be avoided These pins may be connected to a CMOS input a 2 pull up a 10 KOhm pull down or left open Internal pull up If pin 3 on the 16 pin connector is connected to the target device the same applies Connec tion to pin 3 is not necessary if a high voltage level is guaranteed by the board design Some I O pins are not connected to the 16 way connector and must be set to a high level dur ing programming This is normally achieved by the RESET signal sent by the programming tool through the 16 way cable setting the I O pins as inputs with an internal 300 pull up To keep these lines high direct connection of these pins to GND or to any other signal at low level even temporarily must be avoided Only connections to another CMOS input to an external pull up or a 10 MQ pull down is allowed The signals on PB3 and PB5 if not directly biased through pin 3 of the 16 way connector must be kept at a high voltage level The Vpp TM pin must not be directly connected to GND Vgg on the application board to avoid any conflict with the programming voltage provided by the programming tool via pin 13 on the connector This pin should be pulled down by a resistor with minimum value of 10 KO You must add a 100 nF ceramic capacitor between Vpp Test and Vss 34 41 y Programming ST6 Microcontrollers 7 4 Setting Up the Starter Kit Board for In Circuit Programming 1 Power down the Starter Kit board 2 Set the
30. r J3 14 RS232 interface circuit and connector 8 Power supply connector J4 13 Demonstration routine selector 9 Power supply LED indicator LD6 12 Thermistor including jumper W24 10 and buttons 11 RESET button 11 41 The Starter Kit Hardware 2 3 Oscillator An oscillator feeds the ST6265 OSCIN input with an 8 MHz clock signal You can disconnect the oscillator by removing the jumper W2 marked 18 on the Starter Kit board diagram on page 11 8MHz OSCILLATOR ST6265 USER PROG _ OSCin JUMPER W2 GND PROGRAMMING CLOCK FROM P1 only when programming microcontrollers 2 4 Reset Button This activates the ST6265 RESET input when pressed A power on reset circuit is also provid ed 2 5 Audio Transducer A piezoelectric audio transducer is connected to the ST6265 Audio Reload Timer PB7 pin It is provided to demonstrate and evaluate the sound generation capabilities The transducer can be disconnected from PB7 pin by removing the W15 PB7 jumper ST6265 AUDIO PB7 TRANSDUCER ARTIMOUT 12 41 p The Starter Kit Hardware 2 6 Digital to Analog Conversion Digital to analog conversion is performed using an RC integrator circuit connected to the ST6265 auto reload timer output PB7 A PWM signal is generated by the ARTimer at PB7 output The voltage value at the output of the RC integrator circuit is controlled by the PWM duty cycle The RC circuit input
31. rd Schematic See next page 3 39 41 Hardware Information QNO QNO vS Z suedun ojeuod ez vostr v0sth TOS a ano ano ano ano QNO ano ano ano ano ano asn asn asn OIXIMW pen XN P 4Nnoor V anoo V 3 noo V Noor V Noor 25451 seas seas fl sea9 zza rosi ERES 1DIDENNCD EN WEED SNI i b L 1 i L i l 5 M aw ada oSA 99 ada ada ada aan ada aan XVI aan b d aan a zi xn Bd z T a r 9L x gzszais vos Lax sea er er 56181 res LZ
32. rn how to develop source code for AST6 and ST6 Family Software development tools AST6 LST6 LST6 WGDBe User Manual Prepare the Starter Kit board for use as an ST6 Using The Starter Kit Board as a Hardware hardware simulator with WGDB6 Simulator on page 26 of this book Learn how to use WGDB6 for debugging your ST6 Family Software development tools AST6 programs LST6 WGDBe User Manual Prepare the Starter Kit board for programming Programming ST6 Microcontrollers on page 30 of ST6 microcontrollers using Epromer this book Prepare the Starter Kit board for connecting your In Circuit Programming on page 33 of this book own in circuit programming board Learn howto use Eprommer for programming ST6 The Epromer online help microcontrollers Connect your own hardware resource to the Connecting External Resources to the Starter Kit Starter Kit board Board on page 25 of this book Run your own program on an ST6 using the Running Your Own program on the Starter Kit Starter Kit board Board on page 37 STA 7 41 The Starter Kit Hardware 2 THE STARTER KIT HARDWARE This section describes the ST6 microcontrollers and the Starter Kit board that come with the ST6 Starter Kit A full schematic of the Starter Kit board is provided in Hardware Information on page 39 2 1 The ST6 Microcontrollers The Starter Kit includes the following microcontrollers Two ST62bE65BF1 One ST62b60BF1 Two ST62E62BF 1 The
33. tem during programming The programming signals are therefore switched to different pins of the DIL 28 socket 30 41 p Programming ST6 Microcontrollers 7 2 Setting Up the Starter Kit Board 1 Power down the Starter Kit board 2 Plug the ST6 microcontroller you want to program into the DIL 28 socket U3 or the DIL 16 socket U4 The DIL 16 socket U4 is only used to program ST6252 and ST6262 devices Use the DIL 28 socket U3 according to the following diagram ST62x65 ST62x55 ST62x53 ST62x60 ST62x63 1 2 3 4 5 6 7 8 9 3 Set the DEVICE jumpers W10 to W13 marked 3 on the Starter Kit board diagram on page 11 for the microcontroller that you want to program according to the following table ST6262 ST6260 62 ST6263 ST6260 62 ST6265 ST6265 ST6260 ST6260 62 ky 31 41 Programming ST6 Microcontrollers 4 As shown in the following diagram To select ST6265 To select ST6260 62 ST6265 ST6265 HE ood ST6260 62 ST6260 62 5 Select the PROG mode using the jumpers marked W1 and W2 marked 18 on the Starter Kit board diagram on page 11 as shown in the diagram below 6 Connect the Parallel port P1 on the Starter Kit board to a spare parallel port on your PC us ing the cable provided with the starter kit 7 Power up the Starter Kit board You can now use Epromer to program the microcontroller that is plugged into the Starter Kit board Note Epromer does not work
34. tons Thermistor bridge Heater resistor control circuit Five LED level indicator Note You can only run applications on the Starter kit board using ST6265 microcontrollers If your application is designed for another microcontroller you must change its port definitions to match those of the ST6265 You can also use your own hardware resource by connecting it to the connector J2 see Con necting External Resources to the Starter Kit Board on page 25 To run your own program on the Starter Kit board 1 Power down the Starter Kit board 2 Program the ST6265 with the application you want to run following the instructions given in Programming ST6 Microcontrollers on page 30 3 Set the DEVICE jumpers W10 to W13 marked 3 on the Starter Kit board diagram on page 11 to ST6265 as shown in the following diagram ST6265 ST6260 62 7 71 37 41 Running Your Own program on the Starter Kit Board 4 Select USER mode using the jumpers marked W1 and W2 marked 19 on the Starter Kit board diagram on page 11 as shown in the diagram below 5 Disconnect the cable from the parallel port P1 connection if it is connected 6 Disconnect the demonstration program selector by removing the jumper marked PA3 in the Demonstration Selector circuit marked 12 in the Starter Kit board diagram on page 11 7 f you are using your own hardware resources connected to J2 marked 17 on the Starter Kit board diagram on page 11 disconnect an
35. under Windows NT To run Epromer from Windows 3 x double click the Epromer icon in the ST6 Tools group To run Epromer from Windows 95 click Start Programs ST6 Tools then Epromer For instructions on how to operate Epromer click Help in the Epromer main window 32 41 p Programming ST6 Microcontrollers 7 3 In Circuit Programming You can perform in circuit programming of ST6252 ST6253 ST6255 ST6260 ST6262 ST6263 or ST6265 OTP EPROM microcontrollers using your own board connected to the Starter Kit board via the connector J1 marked 1 on the Starter Kit board diagram on page 11 7 3 1 Application Board Connections The following paragraphs specify the connection requirements between your application board and the Starter Kit board The application board must have a suitable 16 way connector 8x2 header HE10 to be con nected via a 16 way cable to connector J1 marked 1 on the Starter Kit board diagram on page 11 on the Starter Kit board The following table shows the required pin connections ST626x5x PB3 Pin 1 Connected to P1 Pin 7 Pin 3 OSCin Pin 5 PB2 Pin 7 RESET Pin 9 VPP TM Pin 13 VDD Pin 14 16 VSS Pin 2 4 6 8 10 Vpp Use of the Vpp connection is optional depending on whether the application board supply can or cannot be disconnected If the application board supply is disconnected you can supply it through pins 14 an 16 of the connector as long as the total load current does not exceed 100
36. y Starter Kit board resources that use the same pins following the instructions given in Connecting External Resources to the Start er Kit Board on page 25 8 Power up the Starter Kit board 38 41 p 9 HARDWARE INFORMATION 9 1 Parts List Hardware Information Part Device Part Device BZ1 BUZZER R15 6800 C1 C2 C4 C5 06 C7 C8 C9 C10 100pF R16 7500 C3 4 7MF R17 8200 C11 C12 C13 C16 C17 C18 C22 10MF R18 CTN 4 7K C14 C26 1 0nF RS1 RS4 1500 SIL8 4R C15 C19 C20 C21 C24 C27 C28 CD21 CD22 CD23 CD24 CD25 100nF RS2 100KQ SIL10 9R CD26 CD27 CD28 CD37 C23 22MF 25V RS3 390Q SIL10 9R C25 1 0MF RS5 3 3KQ SIL8 4R D1 BYV 10 20 SCHO RS6 10KQ SIL10 9R D2 1N4004 RV1 10KQ Trimmer D3 D4 D5 1N4148 SW1 SW2 SW3 SW PUSH F1 Not connected T1 T2 BC547B NPN 45V G1 SOLDER BRIDGE T3 BC557B PNP 45V J1 HE10 16DM T4 BD236 PNP 60V J3 JACK TP1 TP3 MW1X1C J4 2nd Supply conn U1 U6 74LS244 L1 2 2uH U2 74LS125 LD1 LD2 LD3 LD4 LD5 LED RED RECT U3 ST6265 LD6 LED RED 5MM U4 DIL 16 ZIF P1 SUBD25 U5 74LS04 P2 SUBD9 U7 U10 78L05 R1 47 U8 LM7805 R2 R5 R8 R12 4 7KQ U9 MAX232 R3 R4 R7 R14 10KQ W1 W2 W10 W11 W12 W13 MW3X1C W4 W5 W6 W7 W8 W15 W16 W17 W18 W19 W20 W21 W22 W23 pe Sonn W24 W25 W26 W27 W28 W29 WEG W30 W31 R9 R20 1 2KQ W9 MW2X14C R10 3 30 XT1 8MHZ OSC R11 Not connected Z1 DZ 8 2V R13 R19 1KQ 9 2 Starter Kit Boa

Download Pdf Manuals

image

Related Search

Related Contents

3com 3C10165D voice network module  SINGER SEWING COMPANY WARRANTY NEW MECHANICAL  Xerox 4050 NPS Printer User Manual  Válvula de borboleta  Unified Services Router Release Notes - D-Link  取扱説明書 - 三菱電機  ShowStar User Guide Aug. 16th, 2011    Certification Report    

Copyright © All rights reserved.
Failed to retrieve file