Home

TECICE- HC05 USER`S MANUAL 68HC05 In Circuit Emulator

image

Contents

1. 1 5 EQUIPMENT REQUIRED IBM PC BASED SYSTEMS System Requirements At least a 486 class PC running Windows NT Windows 95 or Windows 3 1 with at least 8MB ram 4 MB of free hard disk space a 3 5 floppy disk drive and one serial port configured as COMI or COM2 An SVGA monitor is recommended Also required is a serial port cable that connects from your COMI or COMZ serial port and has a male DB 25 connector for mating with the TECICE HCOS5 Standard modem cables will work with the TECICE HCOS5 OTHER HOST COMPUTER SYSTEMS Other host computers must have an RS 232 serial port and terminal emulation software that is capable of making a direct connection to the RS 232 serial port at 9600 baud 8 data bits one or two stop bits one stop bit and no parity This software must send characters that are typed at the keyboard out the serial port and display incoming characters from the emulator on the video screen The software must also be capable of downloading standard text object code files to the emulator Most standard modem communication programs will work Also required is a serial port cable that connects from the serial port and has a male DB 25 connector for mating with the TECICE HCOS5 Standard modem cables will work with the TECICE HC0S Instead of connecting the cable to a modem it is connected to the emulator You may use the WASMOS Editor Macro Cross Assembler Program or another text editor and 68HCO5 cross assembler program The te
2. 5 TABLE OF CONTENTS INTRODUCTION 4 141 IMPORTANT NOTICES treten tree eer ten ee te ete re bee etie eet ep eee re bee eet enn M4 1 2 TECE BUG POLICY erede ere decet Ee TRESE uate redu tete EEEE Weide a I 5 13 GENERAL DESCRIPTION here ete ete cede eH eL ene Ee ne eoe PE e de E ER eee ee ERE Eee s 5 1 4 TECICE HC05 EMULATOR SPECIFICATIONS essent nennen nennen enne 5 1 5 EQUIPMENT REQUIRED eter reete eet Hee Hee eere ee Her ere a 6 o 7 Li SOFTWARE PREPARATION oeu a A AAAA EAA A st I 7 2 1 1 Installing WASMO5 And WTTO5 comode eet aoe ae C un UU ee p iet UE I7 2 1 2 Uninstalling WAS MOS amp WINS S aat tc teen d cm Mi EM M LIA ur eee EE M Rl Ws 2 2 HARDWAREPREPARATION 5 nnne EPIO TEN ARE er A eee eid I 8 2 3 WASMO5 amp WITOS TUTORA Die AAEE EAE AE A I AA tenente tenente tenent nnne Mo E A E AS OEE hee E A E D ML D LL MU DE aca CDM I 9 CEMENTO UT RD RP IV 70 2 3 3 Converting Tasm05 Projects To Wasm095 Projects eese nene eene 14 TECICE HCO05 USER S GUIDE eee eese eee enn en nn en natn atus enata sesta seen seen seen seen aeta sen aetas soto aetas etn ain 15 3 1 GENERAL CIRCUIT DESCRIPTION c ccecccesssessesecesecesecesecssecececceccecseceasecaeceaecceceseseaeseaeeaeees 15 3 1 1 Physical Description ei eee eset e
3. use FilelSave Project As to save the project Remember a projects must be saved with the 05P file extension and b the main source code file of the project must have the same file name as the project file with an extension of ASM This is how the assembler knows which file to assemble first Example If the project file name is DEMO 05P then the main source code file must be named DEMO ASM All other project files may have any name extension PAR TECE The Engineers Collaborative Inc Page 14 of 38 TECICE HC05 USER S MANUAL 3 TECICE HC05 USER S GUIDE 3 1 GENERAL CIRCUIT DESCRIPTION 3 1 1 Physical Description The circuitry of the TECICE HCOS5 is contained on two 7 X 9 double sided printed circuit boards mounted one on top of the other inside the emulator housing These pcb s are called the top and bottom boards The bottom board contains the I O ports power supply RS 232 serial port circuits clock generator reset circuit and operator control switches and indicators The top board contains the control processor emulation processor memory address decoder breakpoint logic map switch logic configuration jumpers and emulation probe connections In normal use the user does not need access to the bottom board All user configurable options are accessible on the top board 3 1 2 Electrical Description Schematic diagrams of the two emulator circuit boards are included in Appendix A The emulator consists of two 68HCO
4. 38 TECICE HC05 USER S MANUAL 3 4 2 Rear Panel MADE IN THE U S A RS 232 o WENN o External TP BP FIGURE 2 EMULATOR REAR PANEL CLOCK FREQUENCY SELECTOR SWITCH The clock frequency selector switch is a ten position rotary switch which selects the emulation processor clock rate For instructions on how to select a given clock rate please see Section 3 5 6 Changing the Clock Frequency later in this manual EXTERNAL CLOCK The external clock input provides the clock input connection when the clock frequency selector switch is in the external position switch position 7 CLOCK TP This is a clock test point It provides a convenient place to attach an oscilloscope or frequency counter in case the user needs to verify what clock rate has been selected RS 232 This is a DB 25 female connector that connects the serial port of the host computer to the emulator The bottom board schematic diagram Sheet 2 of 6 shows how this connector is wired For IBM PCs the same serial cable that is used with external modems can be used Also 25 conductor flat ribbon cables with no cross overs or loopbacks work The cable should have a connector that mates with the serial port of the host computer on one end and a DB 25 male connector on the other end for mating with the emulator EXTERNAL BP This is the external breakpoint input The user can have external circuitry cause a breakpoint when emulating by pulling this TTL input low The br
5. Only one of the two processors on the Test Board schematics may be in place at one time A switch on D port MUST be opened when using that pin as an output otherwise a high output may be shorted to ground In the test program this means all but switch 1 Port D bit 0 must be open Switch one will control what is displayed on the other three ports PAR TECE The Engineers Collaborative Inc Page 29 of 38 TECICE HC05 USER S MANUAL 4 WASM05 amp WTT05 USER S GUIDE 4 1 INSTALLING WASMOS5 amp WTTO05 The software is supplied on a 3 1 2 inch floppy diskette The file supplied on this diskette is named SETUP EXE This is a self installing Windows executable file that will install all of the necessary files when invoked To install the software place the distribution diskette in a floppy drive and run the program A SETUP EXE or B SETUP EXE from within Windows and follow the on screen instructions Important Notice If you have trouble running SETUP EXE try running the program with the M command line switch as follows gt A SETUP EXE M lt enter gt This is the manual installation mode which will prompt you for the location of needed directories etc After running SETUP EXE you should find the following files in the installation directory C WASM05 is the default WASMOS EXE Editor Macro Assembler executable file WASMOS HLP Editor Macro Assembler on line help file WASMOS INI Editor Macro Assembler initializat
6. installation mode which will prompt you for the location of needed directories etc After running SETUP EXE you should find the following files in the installation directory C WASM035 is the default WASMOS EXE Editor Macro Assembler executable file WASMOS HLP Editor Macro Assembler on line help file WASMOS INI Editor Macro Assembler initialization file WTTDEMO 05P Demo 68HCO5 project file WTTDEMO ASM Demo 68HC05 project source code file WTTDEMO LST Demo 68HCOSisting file ITEST INC Demo 68HCO5 project include file D68HC065 05P Project file for showing WASMOS source code examples D68HCO05 ASM File showing WASMOS source code examples UNWISE EXE Uninstall executable INSTALL LOG Installation log file required by the uninstall program WTTOS EXE Emulator control program executable file PAR TECE The Engineers Collaborative Inc Page 7 of 38 TECICE HC05 USER S MANUAL WTTOS HLP Emulator control program online help file WTTOS INI Emulator control program initialization file Important Notice FONT SIZE If the text is not displayed as desired the font size may be changed from within WASMOS by clicking OptionslFont and changing the font size 2 1 2 Uninstalling WASMOS amp WTTOS5 To uninstall the software double click on the UNWISE EXE program in the installation directory This program will read the INSTALL LOG file and remove all files that were installed with the SETUP EXE p
7. of populating the correct emulation processor socket PAR TECE The Engineers Collaborative Inc Page 15 of 38 TECICE HC05 USER S MANUAL Instead of using the emulation processor in its normal single chip mode of operation TECICE HC05 forces the emulation processor into a special mode which allows the address data and control busses to come outside the chip This allows the address and data busses and memory to be accessed by the emulator for program debugging purposes The address data and control busses come out of the emulation processor on what would normally be I O ports A B and C These I O ports are reconstructed by the I O port circuitry on the bottom board of the emulator Emulator Memory Schematic Sheet 5 of 8 U25 is an 8K X 8 eprom that contains the emulation processors control program This eprom is located in the monitor memory map The emulation processor runs this program when it is in the monitor mode when the emulator is performing commands issued by the host computer U26 is a 32K X 8 static ram memory chip Part of this chip is used for user ram memory and user pseudo rom This is where the users program resides during emulation The other part of this chip is used for scratch pad ram and stack space for the monitor program Also on this schematic sheet the stack capture register U19 is used by the emulator to find the value of the stack pointer during debugging The SWI jammer U22 is used by the breakpoint
8. the target system it must be a square wave at TTL signal levels The diagram below shows the jumper in the position that selects the emulator s internal clock generator EXIAL C8 C9 JUMPER J3 This jumper determines where the emulator will look for the processor s reset and interrupt vectors in the memory map The C8 position assumes vectors at 1FFF The C9 position assumes vectors at 3FFF This jumper is shown on top board schematic diagram sheet 4 of 8 The jumper should be placed in the C9 position only when emulating the 68HCO5C9 chip and in the C8 position for all other chips The diagram below shows the jumper in the C8 position PAR TECE The Engineers Collaborative Inc Page 26 of 38 TECICE HC05 USER S MANUAL C8 1 2 C9 3 13 B6 JUMPER J4 The B6 jumper J4 allows reading and writing to the emulation processors internal eeprom memory This jumper is shown on top board schematic diagram sheet 4 of 8 If you are emulating B6 devices and want to enable the internal eeproml then this jumper should be placed in the B6 position The diagram below shows the jumper in the normal not B6 position J5 JUMPER This jumper should be in place for emulation processors with an 8K byte memory map and should be removed for emulation processors with a 16K byte memory map The jumper should be in place unless the emulation processor is a C9 or B16 device When removed the A13 address line is enabled This jumper is shown on
9. top board schematic diagram sheet 3 of 8 B6 TYPE JUMPER J6 This jumper is used to enable the feature of the B6 chip that allows the E clock to appear on PORT C bit 2 by writing to the ECLK control register at address 07 This jumper is shown on top board schematic diagram sheet 2 of 8 To enable this feature place the jumper in the B6 TYPE position The diagram below shows the jumper in the position that disables this feature B6 TYPE 1 PAR TECE The Engineers Collaborative Inc Page 27 of 38 TECICE HC05 USER S MANUAL IRQ SENSITIVITY JUMPER J7 The IRQ sensitivity jumper J7 converts an emulation processor that has edge and level IRQ sensitivity to negative edge sensitivity only This jumper should be left in the position shown when emulating the 68HC805C4 68HC705C8 68HC805B6 processors because the IRQ sensitivity is determined by the user through use of the option register The jumper should be placed in the EDGE position only when the emulation processor has fixed edge and level sensitivity and the user application calls for negative edge only IRQ SENSITIVITY 1 EDGE PAR TECE The Engineers Collaborative Inc Page 28 of 38 TECICE HC05 USER S MANUAL 3 6 EMULATOR SELF TESTS The TECICE HCO5 has a memory test and a port test In addition to these two tests the emulator maintains checksums on communications with the host computer and between its two processors The test and the checksums are provided to g
10. vectors equ ffc0 ram equ 0 start of ram area program equ F800 start of program area registers equ 1000 port c equ registers 3 port_c_ddr equ registers 7 D org ram ram variables count up rmb 1 count down rmb 1 A org program start of program memory power on reset lds ff load stack pointer ldaa 11111111 program starts here after reset staaa port_c initialize port A with 1 s staa port c ddr set port A to an output port clr count up clear clr count_down the ram variables main loop com port c compliment port A inc count up increment count up bsr decrement byte increment a word inca A decb i bra main_loop loop forever include itest inc an include file dummy isr rts should never be called org irq vectors interrupt service routine vectors dw dummy isr reserved dw dummy isr reserved 1 dw dummy isr reserved 2 dw dummy isr reserved 3 dw dummy isr reserved 4 dw dummy isr reserved 5 dw dummy isr reserved 6 dw dummy isr reserved 7 dw dummy isr reserved 8 dw dummy isr reserved 9 reserved 10 sci serial system spi serial transfer complete pulse accumulator input edge pulse accumulator overflow timer overflow timer output compare 5 timer output compare 4 dw dummy isr dw dummy isr dw dummy isr dw dummy isr dw dummy isr dw dummy isr dw dummy isr dw dummy isr PAR TECE The Engineers Collaborative Inc Page 36 of 38 TECICE HC05 USER S MANUAL dw dummy
11. 5 USER S MANUAL 1 2 TECI BUG POLICY TECI will NOT ship a product that has a known bug that prevents the product from performing its intended function However sometimes there are bugs in a product that may be a nuisance to the user but do not prevent the product from performing its intended function Furthermore the risk of introducing new more serious and unknown bugs into the product by performing a quick fix may not justify an immediate and untested fix TECI will sometimes ship a product that has these so called nuisance bugs if we feel that an acceptable workaround exists and we feel that the benefit to the user far outweighs the nuisance 1 3 GENERAL DESCRIPTION TECICE HCOS5 is a real time in circuit emulator designed to emulate most members of the Motorola 68HCO5 family of single chip microcontrollers TECICE HCOS is an acronym made up from the letters TECI ICE and HC05 TECI stands for The Engineers Collaborative Inc ICE stands for in circuit emulator and HCO5 stands for the Motorola MC68HC05 family of microcontrollers TECICE HCOS can be used with any host computer running terminal emulation software with the ability to download files over a directly connected RS 232 interface at 9600 baud TECICE HCO5 is controlled by standard ASCII commands and could be used with just a dumb terminal if it weren t for the fact that some means of downloading object code files generated from compilers assemblers is required by real applicat
12. 5 control processors the control processor and the emulation processor Control Processor Schematic Sheet 2 of 8 The control processor U5 is a 605HC705CS8 single chip microcontroller that controls the emulator by performing all communications with the host computer via the RS 232 port communicating with the emulation processor via U20 and U21 controlling the breakpoint circuits and interfacing with the front panel controls and indicators The control processor receives commands from the host computer checks the commands for errors executes commands by passing instructions and data to and from the emulation processor or other circuits and reports the results of the commands back to the host computer Emulation Processor Schematic Sheet 3 of 8 The emulation processor has two functions to perform and two memory maps one memory map for each function 1 The emulation processor runs user programs from the user memory map 2 The emulation processor executes commands issued to it from the control processor It performs this function from the monitor memory map The emulator has map switch logic to switch between the two memory maps There are two sockets on the top board for the emulation processors U29 is a 40 pin dip socket for the C series processors and U30 is a 52 pin PLCC socket for the B series processors Only on of these sockets may be occupied at a time Configuring the TECICE HCOS5 to emulate a specific processor consists in part
13. C373 E26 74HC273 S TAHCAOT cm 27064 43256120 o7 u32 u33 u34 u35 36 u97 0 c23 RIB 0 u38 us9 usa m ms IRQ SENSITIV 74HC20 y4Hco0 Be IYPE 19 12K ce B ROA EDGE 12K E TY 18CV6 PT J5 R21 1 5K c R22 12K jM zcvos RIS 560 173 74HC373 7AWCOB 744032 A EMULATION PROBE CONNECTORS FIGURE 3 TOP BOARD COMPONENT PLACEMENT 3 5 3 Changing Emulation Processors There are two sockets for emulation processors Only one of them can be populated at a time Damage to the emulator might occur if both sockets are populated and power is applied U29 is the socket for 40 pin dip emulation processors and U30 is the socket for 52 pin plec processors To change emulation processors 1 remove the present processor and install the new one in the appropriate socket 2 make sure that the appropriate emulation probe is installed 3 check the option jumpers described below to insure that they are in the correct position and 4 make sure that the clock speed setting and clock source are correct 3 5 4 Changing Emulator Probes Currently four types of emulation probes are supported by TECICE HCO5 They are 1 40 PIN DIP 2 44 PIN PLCC 3 52 PIN PLCC and 4 48 PIN DIP To change an emulation probe PAR TECE The Engineers Collaborative Inc Page 23 of 38 TECICE HC05 USER S MANUAL 1 Remove the two screws that hold the front panel of the emulator in place remove the aluminum front panel and set it aside 2 Slide the housing cover toward
14. EDGE NOT EDGE NOT EDGE NOT EDGE 3 5 2 Changing The Configuration Changing some of the configuration options requires removal of the housing cover to provide access to the top board of the emulator To do this remove the two screws from the rear panel remove the rear panel and bezel then slide the housing cover toward the rear until it can be detached from the extruded aluminum base Figure 3 shows component placement on the top board with important configuration components noted PAR TECE The Engineers Collaborative Inc Page 22 of 38 TECICE HC05 USER S MANUAL CA C5 x2 5 7 ks n XI aue i X R2 m 1 10M 27pF RA 7407 A 4HCA0108 4HCA0108 74HC193 ug vo u12 UE ula 7AHC273 A 74HC273 i a m RB RS R25 Ps a ce c cia eu cig 74HCT74 7AHC7A qi T4HCU2 J2 T 0 0 ele Geyer Q 5 16 U6 ul7 Uia ule u2a 21 u22 18CV6 BRK A CENE las ry J2 EXTAL p2 Pa P 4 74HC 38 dd eu RI2 74HC688 74HC6BE 74HC373 74HC244 74HC373 74HC244 J 1126 ca ci U29 J 1 u27 u24 CB OR C9 d 74HC373 u23 PA u28 ust 74H
15. TECICE HC05 USER S MANUAL 68HCO95 In Circuit Emulator TECIE The Engineers Collaborative Inc 616 West Shore Road West Glover Vermont 05875 Phone 802 525 3458 Web www tec i com E Mail Sales tec i com TECICE HC05 USER S MANUAL IMPORTANT WARRANTY AND LIABILITY INFORMATION This product is guaranteed against defects in material or workmanship for a period of 180 days from the date of shipment If it should become necessary to return a product for service or repair within the warranty period contact the factory first for return authorization The returned item will be repaired or replaced Except as indicated above there are no other warranties expressed or implied No warranty of fitness for a particular purpose is offered The user is advised to test the product and software thoroughly before relying on it The user assumes the entire risk of using the product The total liability of The Engineers Collaborative Inc is limited to the purchase price of the product and does not cover any lost profits special incidental or consequential damages or any claim against the purchaser by any party SOFTWARE LICENSE STATEMENT The software supplied with this product is protected by US copyright law and international treaty provisions Therefore you must treat this software just like a book with the following exception The Engineers Collaborative Inc authorizes you to make archival copies of the softwar
16. _isr timer output compare 3 dw dummy_isr timer output compare 2 dw dummy isr timer output compare 1 dw dummy isr timer input capture 3 dw dummy isr timer input capture 2 dw dummy isr timer input capture 1 dw dummy isr real time interrupt dw dummy isr IRQ external pin or parallel I O dw dummy isr xirq pin dw dummy isr SWI dw dummy isr illegal opcode trap dw dummy isr COP failure reset dw dummy isr COP clock monitor fail PAR TECE The Engineers Collaborative Inc Page 37 of 38 TECICE HC05 USER S MANUAL TECICE HC05 SCHEMATICS PAR TECE The Engineers Collaborative Inc Page 38 of 38
17. circuits to force a software interrupt which causes a map switch from the user map to monitor map for debugging purposes The option register U24 is used to emulate the dynamic ram rom memory switching capability of the 68HC05C8 chips The A B buffer U20 the B A register 21 the A B and B A flags are used for communications between the control and emulation processors Breakpoint Circuits Schematic Sheet 6 of 8 The breakpoint control circuit of the emulator consists of a 16 bit address comparator U17 amp U18 a 16 bit pass counter U3 amp U4 an SWI detector U10 and programmable logic device U9 This circuit allows the emulator for example to break on the 65000th pass around a loop Map Switch Top Board Schematic Sheet 7 of 8 There are two map switches a temporary map switch U13 and a permanent map switch U12 When a user program is running the memory map is permanently switched to the user map When a breakpoint is reached in the user program the memory map is permanently switched to the monitor map During the execution of commands from the host computer it is sometimes necessary for the emulation processor to switch memory maps for only a few cpu cycles This is called a temporary map switch A temporary map switch would occur for example during the modify memory command Temporary map switches occur when the emulation processor fetches an instruction from the monitor map executes the instruction in the user map the
18. ckbox then click OK Click the es 6805 button again and note that after assembly there are now four files loaded into the editor The two new files were the files created by the assembler and are WTTDEMO LST the listing file and WTTDEMO S109 the object code file in Motorola S record format Click on their tabs to view these files The WTTDEMO LST file is used by the WTTO5 program to control the emulator and the WTTDEMO S19 file is used to program 68HCO05 chips when the program is debugged We are now ready to use the WTTOS program and the TECICE HCO5 emulator to run and test the WTTDEMO program 2 3 2 Using WTTO5 To invoke WTTO05 from WASMOS click on the D run debugger speed button The Debugger Command Line under OptionslProject Options menu in WASMOS determines which program runs when this button is pressed If you installed these programs in the default directories the Debugger Command Line entry should be c teci wtt05 exe c XeciWttdemo lst Important Notice FONT SIZE If the text is not displayed as desired the font size may be changed from within either program by clicking OptionslFont and changing the font size PAR TECE The Engineers Collaborative Inc Page 10 of 38 TECICE HC05 USER S MANUAL Connect the emulator to your PC with a standard serial cable such as would be used with an external modem or serial printer The emulation probe should NOT be plugged into a target system for this tut
19. e bar of the main program window If the program doesn t come up with the WTTDEMO 05P project loaded you can load it with the FilelOpen Project menu item At this time the project consists of two files the WTTDEMO ASM main source file and one include file named ITEST INC You can switch the editor back and forth between these files by clicking on the file tabs Try It To see what each of the speed buttons on the button bar do move your mouse pointer over each button and hold it there for about a second A yellow help hint box should appear near the mouse pointer describing the button function A little more detailed description appears on the status bar at the bottom of the screen Once you get used to what the speed button functions are you can turn the help hints and status line help hints off by unchecking the appropriate Option menu items The operation of the text editor portion of WASMOS is similar to most Windows text editors so we won t go into how to edit text here You can use the online help for this purpose or better yet just experiment on your own If you always click on the Save Project speed button before exiting the program WASMOS will come up configured exactly as it was when you last used it Before we get too far into the tutorial we need to check something We are going to run the WTTDEMO program on your emulator during this tutorial by calling the emulator control program WTTO5 from WASMOS To make sure that this works prop
20. e for the sole purpose of backing up our software and protecting your investment from loss By saying just like a book The Engineers Collaborative Inc means that the software can not be used by two different people in two different places at the same time OTHER The information contained in this manual has been carefully checked and is believed to be accurate and complete at the time of printing However no responsibility is assumed for errors that might appear The Engineers Collaborative Inc reserves the right to make changes to the product and or the manual at any time without notice Furthermore The Engineers Collaborative Inc assumes no liability arising out of the use or application of any of its products No part of this document may be copied or reproduced in any form or by any means without prior written consent of The Engineers Collaborative Inc Trademarks IBM IBM PC XT AT PS 2 PC DOS are registered trademarks of the IBM Corp Microsoft and MS DOS are registered trademarks of Microsoft Corporation Motorola is a registered trademark of Motorola Inc C Copyright 2002 The Engineers Collaborative Inc 616 West Shore Road West Glover Vermont 05875 USA Phone 802 525 3458 Fax 802 525 3451 All rights reserved Printed in the U S A This manual was last revised on January 30 2002 PAR TECE The Engineers Collaborative Inc Page 2 of 38 TECICE HC05 USER S MANUAL 1 r9 io 4
21. eakpoint will occur on the first LIR load instruction register cpu cycle after the external bp input goes low This input must remain low until the LIR cycle about 26 clock cycles worst case and must go back high before the emulator reenters the user mode after the breakpoint has occurred 12 VAC PAR TECE The Engineers Collaborative Inc Page 20 of 38 TECICE HC05 USER S MANUAL This is the power input It normally has 12 volts AC at 60 50 cycles from the wall mounted transformer supplied with the emulator The connector inside the emulator is a 2 5mm mono phone jack that accepts standard 2 5mm mono phone plugs PAR TECE The Engineers Collaborative Inc Page 21 of 38 TECICE HC05 USER S MANUAL 3 5 CONFIGURING THE EMULATOR 3 5 1 Factory Default Configuration TECICE HCOS is shipped from the factory in one of the following configurations depending on the emulation processor ordered CONFIGURATION 68HC705C8A 68HC805B6 68HC705C9A 68HC805B 16 OPTION EMUL PROC EMUL PROC EMUL ROC EMUL ROC Emulation Probe 40 PIN DIP 52 PIN PLCC 40 PIN DIP 52 PIN PLCC Clock Frequency 4 0 Mhz 4 0 Mhz 4 0 Mhz 4 0 Mhz J1 Jumper Position C8 OR C9 NOT C8 OR C9 C8 OR C9 NOT C8 or C9 J2 Jumper Position NOT EXTAL NOT EXTAL NOT XTAL NOT EXTAL 13 Jumper Position 14 Jumper Position NOT B6 NOT B6 J5 Jumper Position INSTALLED INSTALLED REMOVED REMOVED J6 Jumper Position NOT B6 TYPE B6 TYPE NOT B6 B6 TYPE TYPE J7 Jumper Position NOT
22. ect file name is DEMO 05P then the main source code file must be named DEMO ASM All other project files may have any name extension The figure below shows some of the more commonly used controls and features of the WASMOS program Most of the speed buttons perform normal text editing functions Refer to the online help file for complete descriptions of these speed buttons Three of the speed buttons are specifically for program development work The e 6805 speed button assembles the project files and creates an object code file a listing file and a map file The D speed button calls your favorite debugging program We recommend the WTTOS EXE emulator control program another TECI 68HC05 development tool The P speed button calls your programmer software Which programs the D and P buttons invoke depends on what you specify under the Options Project Options dialog box You can set up these buttons to call any program you like by entering the command line parameters for your program in the edit box provided PAR TECE The Engineers Collaborative Inc Page 32 of 38 TECICE HC05 USER S MANUAL WASM05 MAIN SCREEN Open Project Cut Save Project Copy Add File to Project Paste Find and Replace Remove File from Project Undo Exit Create Blank Editor Page Redo Assemble Project Files Save Current File Find Run Debugger Print Current File Find Next Run Programmer Sle eee ERES i 7 V V Ra x mem m i tem
23. egration with the editor assembler and more Important Notice FONT SIZE If the text is not displayed as desired the font size may be changed from within either program by clicking OptionslFont and changing the font size PAR TECE The Engineers Collaborative Inc Page 34 of 38 TECICE HC05 USER S MANUAL WTT05 MAIN SCREEN Run prog from current location Run prog from current location to highlighted line of code Reset MPU and run prog Reset MPU and run prog to highlighted line of code Click to stop Single Step Click to open a watch window Click to set the PC value to that of th highlighted line oi running user code program Click to download code Condition Code Reg Click on a flag to toggle its value CPU register display A and X registers are shown in Hex Dec and Binary To change WTT11 C 1HC11DEMOWTTDEMO a register value just edit the registers Eile Options Communications Help current ucc Ceiraop pe rrrr rr Bp pun SXHINZVC Sp oorr l1Y oo0o FFF LST n X OEREN POLERNE BJFF 255 E 11111111 Click here to set rong org program start of program memory dd de F800 sEOOFF power on reset lds HSff load stack pointer M E F803 86FF ldaa 511111111 program starts here aft Current program F805 B71003 staa port c initialize port with counter location E B71007 staa port c ddr set port A to an output co
24. en seen seen seta seen seen ain 30 4 1 INSTALLING WASMOS amp WTTO5 essere AO 30 4 2 UNINSTALLING WASMOS amp WTTOS5 issssseeseeeseeeeeeeeeenee nennen nennen nnne nnne t rne ret enne e rne ren eren enne 31 4 3 WASMO5 PROGRAM OVERVIEW csscssscesseeseesseeeeceseceeeeseeeseeeseceseeeeeeseeeseeeseesseeeneeeeeeteeeeenee 32 4 44 WTTO05 PROGRAM OVERVIEW eeseeeeeeeeeeeetenenenennnen nne T eret eret rettet reser nnne 34 jn 36 Sb TUTORIAL LUSTING FILE iyinin ieoa et te t ee et hc tet ee e ti Ee 36 52 TECICE HC05 SCHEMATIGS eene eire dedere dried terrere 38 PAR TECE The Engineers Collaborative Inc Page 3 of 38 TECICE HC05 USER S MANUAL 1 INTRODUCTION Thank you for choosing the TECICE HCO5 emulator development tool We think that as you become familiar with the product you will feel that you have made a sound investment one that will pay for itself over and over again on a wide variety of development projects Please keep in mind that we welcome your feedback regarding your experiences using the product and your suggestions for improvements Please keep in touch and let us know what your doing with the TECICE HCOS 1 1 IMPORTANT NOTICES Make sure that you have read the warranty liability and software license statements on page 2 of this manual Any use of this product constitutes acceptance of the terms and conditions of those statements If you do
25. erived X1 is a standard type of clock oscillator that can be obtained in many frequencies If the standard frequencies do not meet user requirements X1 can be replaced with a version that has a more appropriate frequency Alternately switch position 7 can be selected and the correct clock rate applied to the external clock input on the rear panel AS SHIPPED CLOCK FREQ X1 FREQ X1 FREQ SWITCH NUM 8 0 Mhz USER X1 USER XI USER X1 2 USER X1 4 USER X1 8 USER X1 16 USER X1 32 USER X1 64 7 EXTERNAL SED UNUSED PAR TECE The Engineers Collaborative Inc Page 25 of 38 TECICE HC05 USER S MANUAL 3 5 6 Setting The Option Jumpers C8 OR C9 JUMPER J1 The C8 or C9 jumper J1 determines whether or not the option register U24 can be written to for the purpose of controlling the RAMO and RAMI dynamic ram rom memory mapping features of the 68HC05C8 and 68HC05C9 chips This jumper is shown on top board schematic diagram sheet 5 of 8 This jumper should be in the C8 OR C9 position when emulating a C8 or a C9 chip and in the other position when emulating all other devices The diagram below shows J1 in the C8 OR C9 position J1 1 2 C8 ORC9 3 EXTAL JUMPER J2 The EXTAL jumper J2 determines whether the emulation clock source is from the emulators internal clock generator or from the target system via the emulation probe This jumper is shown on top board schematic diagram sheet 3 of 8 If the clock comes from
26. erly we may need to change the program depending on your emulator configuration So please read the IMPORTANT NOTICE message that appears in the header at the beginning of the WTTDEMO ASM file and follow the instructions there It is now assumed that if your emulator is configured for a 68HCO5 chip that has a 16K byte memory map you have set the target has 16k equate to 1 in the WTTDEMO ASM file as instructed above If you haven t your emulator will not run the WTTDEMO program properly WASMOS source code files use standard Motorola 6805 op code mnemonics and source file syntax with a few industry standard enhancements See the online help for complete documentation Also a project named D68HC05 05P was included in the distribution files This is a project that shows the proper usage of all 685HC05 mnemonics pseudo ops and source file syntax Now let s assemble the WTTDEMO project To do this click the large 26805 speed button on the button bar Two errors were intentionally left in the project files to show what happens when PAR TECE The Engineers Collaborative Inc Page 9 of 38 TECICE HC05 USER S MANUAL errors are encountered by the assembler Note that an error window opened that has a list of the errors The first error is an unrecognized opcode mnemonic error in line 40 of file WTTDEMO ASM Also note that the cursor in the WTTDEMO ASM file was placed at the beginning of line 40 the line that contai
27. f the WTTOS speed buttons are disabled except for STOP This indicates that the emulator is running a user program A Running user program message appears in the communication window Click on the STOP button and note that the emulator Running light goes OFF the Ready light goes ON and the WTTOS speed buttons become active again This indicates that the emulator and the WTTOS5 program are ready for commands Click the Run button then the STOP button several times and note that each time the STOP button is pressed the Code Window is updated to show where the program stopped The blue PC arrow graphic points to the next program instruction that will be executed when the program is again allowed to run Also note that the register display on the left side of the button bar is updated to show the current value of all the CPU registers Press the STEP button This sends a single step command to the emulator Note that WTTOS5 executes a single program instruction and then updates the screen Press the STEP button several times to step the program through its main loop and one subroutine call PAR TECE The Engineers Collaborative Inc Page 11 of 38 TECICE HC05 USER S MANUAL Press the ANIMATE button to see an animation of the program Animate is a continuous sequence of single steps Press the STOP button Highlight the power on reset line in the code window by clicking on it Then
28. imultaneously in a tabbed editor environment To switch between files just click on the tab with the name of the file that you want to edit Each of the 255 files can be up to 16MB in size and several files can be grouped together and associated with one another Thus all of the files required for a programming project can be loaded and or saved with a single command WASMOS is a project oriented program Each project is specified by a unique project file name Project files have an extension of 05P which stands for HCO5Project When a project file is opened all of the files that comprise that project are loaded into the editor at once Each file is assigned its own unique editor tab and the name of the file appears on that tab A file is selected for editing by clicking on its tab When a project is saved all of the files that are open in the editor are saved as part of the project Among others the program has speed buttons for opening and saving projects and adding or removing files from the current project so that managing projects is very easy and natural However Important Notice There are two project management details that the user is responsible for getting correct 1 Projects must be saved with the 05P file extension and 2 the main source code file of the project must have the same file name as the project file with an extension of ASM This is how the assembler knows which file to assemble first Example If the proj
29. ion file WTTDEMO 05P Demo 68HCO5 project file WTTDEMO ASM Demo 68HCO5 project source code file WTTDEMO LST Demo 68HCOSisting file ITEST INC Demo 68HCO5 project include file D68HC065 05P Project file for showing WASMOS source code examples D68HCO05 ASM File showing WASMOS5 source code examples UNWISE EXE Uninstall executable INSTALL LOG Installation log file required by the uninstall program WTTOS EXE Emulator control program executable file WTTOS HLP Emulator control program online help file WTTOS5 INI Emulator control program initialization file Important Notice FONT SIZE If the text is not displayed as desired the font size may be changed from within WASMOS by clicking OptionslFont and changing the font size PAR TECE The Engineers Collaborative Inc Page 30 of 38 TECICE HC05 USER S MANUAL 4 2 UNINSTALLING WASMOS5 amp WTTO5 To uninstall the software double click on the UNWISE EXE program in the installation directory This program will read the INSTALL LOG file and remove all files that were installed with the SETUP EXE program PAR TECE The Engineers Collaborative Inc Page 31 of 38 TECICE HC05 USER S MANUAL 4 3 WASM05 PROGRAM OVERVIEW WASMOS is a windows hosted text editor and 68HC05 macro cross assembler The program is a general purpose text editor that has special enhancements for managing assembly language programming projects WASMOS can edit 255 files s
30. ion window A complete list of emulator commands is in the Help File Click in the code window in the margin to the left of any code generating line of code for example click on the power_on_reset line at address 800 Note that a STOP sign graphic appears in the margin A breakpoint is now set on this line of code Set additional breakpoint at addresses 810 and 814 Press the Reset amp Run button and note that program execution stops at the first breakpoint Press the Run button and note that the program stops at address 814 the next breakpoint encountered Press the Run button again to have the program stop at the address 810 breakpoint If one or more of the breakpoints are not shown on the screen you can cycle through them by pressing the STOP button The STOP button stops program execution of the user program if the user program is running and cycles through the breakpoints if the user program is not running Up to 5 breakpoints may be set this way To remove breakpoints just click on the stop signs Remove all breakpoints now WTTO5 has a neat feature called the Watch Wizard The Watch Wizard is an intelligent watch point that is used to display the present value of program variables The Watch Wizard data appears on the status line at the bottom of the screen However status line help hints overwrite the Watch Wizard data so to make sure that the data is in view you must not position the cu
31. ions The emulator can be configured by the user to emulate most members of the 68HCO5 family of microcontrollers To change the configuration of the emulator the user must install the proper emulation processor and emulation probe and choose the proper internal jumper options for his her application For those users that will be using the emulator with IBM PCs or compatibles a cross assembler program and a special terminal emulation program is provided The cross assembler program is called WASMOS EXE and the terminal emulation program is called WTTOS EXE These programs are fully described in the WASMO5 amp WTTOS Manual WASMOS is a Windows hosted Text Editor 68HC05 Macro Cross Assembler WTTO5 is a Windows hosted Emulator Control Program with Source Level Debugging Both of these programs are part of an integrated set of software and hardware tools provided by TECI to facilitate the development of 68HCO05 single chip microcontroller applications The example demo programs assembled in the WASMOS5 amp WTTOS and the GETTING STARTED sections of this manual assume use of the WTTOS5 program 1 4 TECICE HC05 EMULATOR SPECIFICATIONS Dimensions 7 3 Wide X 9 5 Deep X 1 5 High Weight 4 pounds PAR TECE The Engineers Collaborative Inc Page 5 of 38 TECICE HC05 USER S MANUAL Power Requirements 12 Volts AC 50 60 Hz at 1 AMP Interface RS 232 9600 Baud 8 data bits 1 start bit 1 or 2 stop bits no parity
32. ite ennt ee iae couceassevedsdeceseceauecnededoestecceueds 15 3 1 2 Electrical Description 3 e dte de de dee c ense diete He echte irte Cp eint eh RES 15 3 2 TARGET SYSTEM CONNECTION i ceietecienecretteceti eee ne ener een Re N TEET 17 33 EIMITATIONS eoneeneeieheetene nene nigneneeenidiecotenenietecnienenteticcnienmieten ies I 18 34 CONTROLS INDICATORS AND EXTERNAL CONNECTIONS cce cceseeeseeeseceseeeseceeeenseeeneeeneeeneees 19 3 4 1 Front Panel E 19 3 4 2 Re r Panel ad t e er tebe tide eed IR Basia da tn debe Re tite eite ede ete 20 3 5 CONFIGURING THE EMULATOR eterne tere ene retenti enirn E tete eee eere ATE E 22 3 5 1 Factory Default Configuration eese eene eene nne eene ethernet nennen nenne 22 3 5 2 Changing The Configuration eese eese eene nenen nne nene enne tenen nennen 22 3 29 39 Changing Emulation Processors essent eenen neret nene entrent en neret 23 3 5 4 Changing Emulator Probes eese esee nennen nennen enne et nenen nene enneenens en nes enne 23 3 5 5 Changing The Clock Frequency eee e sese ense E estne E nennen nennen tentent 25 3 5 6 Setting The Option Jumpers eese eene nnne nnne nennen ene en tenen neret ETENEE EEEak 26 3 6 EMULATOR SELE TESTS ederet eee ee etre E reae etre eere 29 WASMO0S amp WTTO05 USER S GUIDE eere eene eene ennt en natn natn natns tons sensa tn asta se
33. ive the user means to determine if the emulator is functioning properly and isolate any malfunction so it can be repaired The memory test is performed whenever the emulator is powered up and when the TeST command is used The memory test only tests the parts of the memory that are used by the TECICE HC05 The port test first tests the internal operation of ports A B and C This is done by setting each port in turn as outputs writing a pattern to it and reading it back If the emulation pod is connected to something or pins are shorted together the test will fail even if the chips inside the emulator are all good Afterwards writes and reads between ports are made The port test is only done with the TeST command is used See Error Messages section for an explanation of test errors Special Test Programs In Appendix B there are two test program listings CSTEST for C8 chips and B6TEST for B6 chips These test programs give the input output circuits of the emulator a good workout They are to be run with the emulation probe connected to a test board shown on the Test Board schematic The test board is designed to be general purpose It can be useful anytime viewing the contents of the ports and providing inputs in real time as desired When the board is used with test programs C8TEST MIK or B6TEST MIK JP1 and JP2 should be shorted although not to each other See the program listings and schematics for more details Warnings
34. microcontroller chip in the target system Four types of emulation probes work with TECICE HCOS5 1 40 pin DIP 2 44 pin PLCC 3 52 pin PLCC and 4 48 pin DIP See the CONFIGURING THE EMULATOR section for more information on this subject PAR TECE The Engineers Collaborative Inc Page 17 of 38 TECICE HC05 USER S MANUAL 3 3 LIMITATIONS In some ways the emulator will not behave exactly like the 68HC05 microcontroller chip that is being emulated The user must be aware of these differences and allow for them No memory limitation checking is done to assure that the user program will fit in the amount of RAM ROM space available in the device being emulated The user must know the memory map of the device being emulated and make sure that only valid RAM ROM memory locations are used The emulator uses 74HC126 and 74HC244 CMOS TTL type logic devices to reconstruct I O ports A B and C as shown on bottom board schematic diagram sheets 3 4 and 5 These devices present a different amount of loading to the I O pins and have different drive capability than the actual 628HCO05 chip Also the emulator I O ports are wired differently than an actual 68HCO5 chip in such a way that during a read operation of an I O port pin that has been set up as an output the emulator will read a logic one or zero depending on the actual voltage level on the I O pin and the threshold of the 74HC244 device This differs from actual chip performance in that the re
35. n plugs into a 52 pin plcc socket on the target system 48 PIN DIP EMULATION PROBE You can change from a 52 pin plcc probe to a 48 pin dip probe by changing the adapter on the target system end of the two 26 conductor ribbon cables without opening the emulator housing The 48 pin dip probe consists of the same two 26 conductor ribbon cables as the 52 pin plcc probe and they attach to the emulator board at the same points Only the adapter is different PAR TECE The Engineers Collaborative Inc Page 24 of 38 TECICE HC05 USER S MANUAL 3 5 5 Changing The Clock Frequency Changing the clock frequency usually consists of setting the clock freq selector switch to the desired divider value The TECICE HCOS5 is shipped from the factory with an 8 Mhz oscillator installed in the X1 socket on the top board X1 may be changed by the user to obtain other clock rates as shown in the chart below Clock FIGURE 4 CLOCK FREQUENCY SELECTOR SWITCH The clock frequency selector switch is a ten position rotary switch which selects the emulation processor clock rate To select a given clock rate find the desired rate in the chart below and rotate the switch until the desired number is next to the alignment dot Note that X1 is the clock oscillator that is located in the upper right hand corner of the top board As shipped from the TECI factory X1 is an 8 0 Mhz oscillator from which the clock rates shown in the second column of the chart are d
36. n returns to the monitor map for the next instruction Clock Circuit Bottom Board Schematic Sheet 2 of 6 The emulation processor clock must be a TTL level signal Therefore it can not come from the target system if the target system uses the crystal clock or RC clock options If clock frequency is critical to proper target system operation then the emulation processor clock must be the same as the target system clock would be when there is an actual 68HCO5 in the target system instead of the emulation probe TECICE HC05 provides four ways to generate the clock signal 1 The clock can be derived from the emulator s 8MHZ oscillator and divider X1 on the top board and U6 amp U7 on the bottom board The divider value can be selected by the Clock Freq rotary switch on the rear panel of the PAR TECE The Engineers Collaborative Inc Page 16 of 38 TECICE HC05 USER S MANUAL emulator Using this method 8Mhz 4Mhz 2Mhz 1Mhz 5Mhz 25Mhz and 125Mhz clock frequencies can be selected 2 The clock source can be from the External Clock input on the rear panel of the emulator 3 The clock source can be from the target system provided that this clock is a TTL level signal 4 The emulators clock oscillator X1 can be replaced by the user to match his specific requirements 3 2 TARGET SYSTEM CONNECTION Connection from the TECICE HCO5 emulator to the user target system is made via the emulation probe The emulation probe replaces the 68HCO5
37. not agree with these terms and conditions return the product at once The purchase price will be refunded FOLLOW THE INSTRUCTIONS IN SECTION 2 GETTING STARTED This will take only afew minutes but it will save you a tremendous amount of time and trouble later on USE A COMMON POWER STRIP FOR BOTH THE TECICE AND YOUR TARGET SYSTEM Care must be taken to insure that both the TECICE and your target system are powered on off together to prevent CMOS latch up a condition that causes a CMOS chip to draw a large amount of current and possibly damage the chip or other chips connected to it CMOS latch up occurs when a CMOS chip gets an input voltage that exceeds the power pin voltage of the chip When either the TECICE or your target system is powered on and the other is off CMOS latch up can occur THIS CAN BURN OUT CHIPS INSIDE THE EMULATOR OR ON YOUR TARGET SYSTEM Follow this procedure to get the best results Use a common power strip for both the TECICE and your target system Turn the power on off using the switch on the power strip so as to turn everything on off at once IF CMOS LATCH UP OCCURS TURN ALL POWER OFF IMMEDIATELY The TECICE HCO5 monitor program has no provisions to update the COP watchdog timer Therefore if you enable the watchdog timer the system will reset and lock up TO GET OUT OF THIS LOCK UP PRESS THE MASTER RESET PAR TECE The Engineers Collaborative Inc Page 4 of 38 TECICE HC0
38. ns the first error If you click on the GoTo Next Error button the editor cursor goes to the next error which is in line 7 of the include file ITEST INC When errors are encountered you can find and fix them easily by using the GoTo Next Error button and the information in the error window Now lets fix the errors and reassemble the project Click on the GoTo Next Error button until the editor cursor is at the line containing the first error line 40 of file WTTDEMO ASM Note that the op code mnemonic in that line is staaa an improper 6805 mnemonic Obviously the proper 6805 mnemonic is sta so change staa to sta Click on the GoTo Next Error button This is another unrecognized opcode mnemonic error in line 7 of ITEST INC Here the opcode mnemonic reads rts instead of rts Change rts to rts and click on the GoTo Next Error button This error just informs the user that the assembler could not complete its second pass because of errors encountered during pass one We do not have any corrections to make associated with this error Click the es 6805 speed button to reassemble the project Note that this time no error window appears so no errors were encountered and the project assembled correctly To view the files created by the assembler click on the Options menu then on the Project Options submenu The Project Options dialog box opens Check the Auto Load Output Files che
39. orial The first time you run WTTOS you must configure a serial port for WTTOS to use to communicate with the emulator You do this by entering the Com Setup dialog box under the Communications menu Select a com port and click OK To check communications with the emulator plug the wall transformer that powers the emulator into a power strip with an ON OFF switch and power the emulator on Each time the emulator is powered on the following message should appear in the WTTO05 Communications Window TECICE HC05 Version x x Checking Emulator Memory Memory is functioning The Checking Emulator Memory self test is only done on a cold start up So you will have to leave the emulator off for several seconds to get this message If you get this message at least one way communications is established Press the Download speed button if two way communication is working you should see activity in the communications window as the object code file is downloaded to the emulator You can find the Download button by moving the cursor over each button until the help hint box appears Under the WTTO5 Options menu make sure the WASMOS Yellow Hint Boxes and Status Line Help Hints options are checked Click on the Download button to download the WTTDEMO program to the emulator Click on the Reset amp Run button to run the WTTDEMO program Note that the emulator Ready light goes OFF the Running light goes ON and the all o
40. p accum rnb Note The last ram location not counting the stack is at BF org rom start of program memory pover on reset lda 1280160801818 reset sta port a init port a clr port b lda 1211881111 init port c sta port c lda 12511111111 sta port a ddr sta port b ddr sta port c ddr ldx ram lda 176 clear ram clr IR zero ram incx x s L1 Ep Line 176 Insert File Lines 2506 File Bytes 134197 EER File Modified Column Number Line Number Insert Overwrite File Lines File Size Current Time File Tabs Click to change file PAR TECE rhe Engineers Collaborative Inc Page 33 of 38 TECICE HC05 USER S MANUAL 4 4 WTT0OS5 PROGRAM OVERVIEW WTTO5 is a Windows emulator control program for TECT s TECICE HCOS5 in circuit emulators It takes the place of the older DOS TT program The graphic below shows several of the most salient features of WTTO5 Some major enhancements over the older emulator control program are as follows 1 2 3 4 5 6 7 A dynamic listing file window that follows code execution The ability to set or remove breakpoints simply by clicking on a listing file line The ability to change register or memory values in the emulator simply by changing them in Windows style edit boxes A Watch Wizard to quickly show you the current value of any program variable Speed buttons to automate common tasks Much closer int
41. press the Reset and Run to Highlighted Line button This performs a user reset of the CPU to put all internal registers and I O ports in a known state and sets a breakpoint at address 800 After execution the PC arrow should go to this line indicating that the operation was successful Now highlight the main loop line by clicking on it then press the Run to Highlighted Line button This runs the program from where the PC was 800 to the highlighted line 80A without resetting the CPU Now highlight the bra main loop at address 810 then press the Set PC to highlighted value button Note that this sets the PC value to 810 There are other ways to change the PC value You can just edit its value in the register display area at the left side of the button bar If you have entered a valid PC value the code window will be updated to show the code at the new PC value You can change all CPU register values by editing their values in the register display edit boxes If you want to change one of the condition code flags the Z flag for example just click on its present value and the value will toggle The Manual Commands window is for entering emulator commands that don t have a corresponding speed button For example to send a display memory dm command to the emulator click inside the Manual Command window and type dm 0 20 lt enter gt A memory dump from address 0 to address 20 will appear in the communicat
42. rogram 2 2 HARDWARE PREPARATION After unpacking the emulator inspect the emulation probe to make sure none of the pins are bent or shorted together Make sure that there are no loose components rattling around inside the emulator which would indicate mishandling during shipping Then plug the power connector from the wall mounted transformer into the back of the emulator where it is marked 12 VAC and plug the transformer into a 120 VAC outlet The Ready lamp on the front panel should come on If it does not you should open the emulator housing and make a closer visual inspection for components that may have shaken loose during shipping The Ready lamp should go off when the Master Reset switch is pressed and come back on when the Master Reset switch is released Connect the emulator to the host computer via an RS 232 serial cable the same type of cable used for external modems will work For the example session it will not be necessary to connect the emulation probe to any target system PAR TECE The Engineers Collaborative Inc Page 8 of 38 TECICE HC05 USER S MANUAL 2 3 WASM0S amp WTTO05 TUTORIAL 2 3 1 Using WASMOS First invoke the WASMOS5 editor assembler program by clicking on its chip icon The first time you use the program it should come up with the WTTDEMO 05P project already loaded into the editor This is an example project for use with this tutorial The project name and active editor file name are shown in the titl
43. rsor PAR TECE The Engineers Collaborative Inc Page 12 of 38 TECICE HC05 USER S MANUAL over a control that activates a status line help hint Or you may disable status line hints by unchecking it in the Options manu The Watch Wizard shows the variable address its name and its present value in hex decimal and binary The variable that is displayed depends on which line of code is highlighted in the code window To change the present value of the Watch Wizard variable simply edit its value in one of the value edit boxes Click on the inc count up line at address 80C to highlight that line of code Note that the Watch Wizard now displays the value of the count_up variable at address 50 Now click on the dec count_down line at address 812 to highlight that line of code Note that the Watch Wizard now displays the value of the count_down variable at address 51 When you highlight a line of code that references a variable the current value of that variable is shown by the Watch Wizard Click on the inc count up line at address 80C again to highlight that line of code and press the Reset and Run to Highlighted Line button The Watch Wizard should show the current value of count up to be zero Now repeatedly press the Run to Highlighted Line button and note that the value of count up increases by one after each press of the button At each button press the program starts running at address 80C and run
44. s completely around the main loop stopping back at the inc count up line at address 80C where the Watch Wizard displays the changed value of count up If you want to look at more than one Watch Point at a time use the Watch Window speed button on button bar instead of the Watch Wizard at the bottom of the screen You have now completed the WASMOS amp WTTOS Tutorial From this point on you should be able to utilize both programs successfully with the assistance of the online Help program Important Notice If you are using the C6805 C Compiler with WTT05 you must select the compiler listing file option that places both C and the generated assembly code in the listing file You must also check the C6805 option under the WTTOS5 Options menu PAR TECE The Engineers Collaborative Inc Page 13 of 38 TECICE HC05 USER S MANUAL 2 3 3 Converting Tasm05 Projects To Wasm05 Projects Before going any further in this section it is very important that you complete the Tutorial and become familiar with the basics about WASMOS Having accomplished this if you have developed project s in TECT s TASMOS5 Cross Assembler Program you may follow these steps to convert each project to WASMOS 1 Invoke WASMOS and open a New Project FilelNew Project 2 Click on the Add File to Project speed button Find the directory your TASMOS files are in and add each file one at a time 3 Once you have added all of your files
45. sult of a read operation under this circumstance in the actual chip is not dependant on I O pin loading as it is in the emulator The following is a comparison of the I O pin characteristics of a typical 68HCO5 chip and the emulator TYPICAL 68HC05 CHIP EMULATOR Output Low Voltage 0 4 v max Q 1 6ma 0 33 v max Q 6ma Output High Voltage 4 2 v min 0 8ma 4 6 v min Q 6ma Input Low Voltage 1 0 v max Input High Voltage 3 2 v 1 5 v max mi n 3 2 V mi n Breakpoints are implemented by forcing an SWI to occur This puts five bytes on the user s stack This leaves only 59 bytes of usable stack space instead of 64 The emulator does not use power from the target system Therefore the power consumption of the target system will differ under emulation than it is when an actual microcontroller chip is used The emulator does not use the target system clock source when the target system uses the crystal or RC clock modes Therefore if the emulator s clock frequency has not been configured to match that of the target system program timing may be different when emulating PAR TECE The Engineers Collaborative Inc Page 18 of 38 TECICE HC05 USER S MANUAL 3 4 CONTROLS INDICATORS AND EXTERNAL CONNECTIONS 3 4 1 Front Panel TECH TECICE HC05 The Engineers Collaborative Inc Master User Abort Emulator Probe Running eae e Reset Reset FIGURE 1 TECICE HC05 FRONT PANEL Figure 1 shows the front panel emula
46. the front until it is free of the aluminum base of the housing and set the housing cover aside 3 Disconnect the old emulation cable s from the top board by unplugging it them from top board connectors P2 and P3 or P4 4 Slide the old emulation cable s through the opening in the bezel and set the old cable s aside 5 Thread the new emulation probe cable s through the opening in the bezel and attach the connector s to the appropriate top board connectors as described below 6 Replace the housing cover Replace the bezel and aluminum front panel with the front panel screws 40 PIN DIP EMULATION PROBE This probe has a 40 conductor ribbon cable with a 40 pin dip connector on one end for plugging into the target system processor socket On the other end it has a connector that attaches to P4 on the emulator top board 44 PIN PLCC EMULATION PROBE This probe consists of an adapter that attaches to the target system end of the 40 PIN DIP EMULATION PROBE and converts from 40 pin dip to 44 pin plcc This adapter just plugs onto the 40 pin dip probe there is no need to open the emulator housing to install this adapter 52 PIN PLCC EMULATION PROBE This probe consists of two 26 conductor ribbon cables with connectors on one end that attaches to P2 the longer cable and P3 the shorter cable on the emulator board On the target system end of these cables there are connectors that attach to a 52 PIN PLCC EMULATION PROBE adapter that in tur
47. tor each of the controls and indicators are described below MASTER RESET SWITCH This is a momentary action pushbutton switch that when pressed resets the control and emulation processors the target system and user I O places the emulator in the monitor mode and sends the monitor prompt to the host computer USER RESET SWITCH This is a momentary action pushbutton switch that when pressed and released resets the emulation processor the target system and user I O and forces a map switch to the user memory map the emulation processor fetches the reset vector from the user map and begins execution of the user s program ABORT SWITCH This is a momentary action pushbutton switch that when pressed and released forces a return to the monitor mode from the user mode provided proper operation of user code The abort switch works like a manual breakpoint The abort switch does nothing when the emulator is in the monitor mode RUNNING LAMP This is an LED that is ON when the emulator is in the user mode and OFF when the emulator is in the monitor mode It indicates when the users program is running READY LAMP This is an LED that is ON when the emulator is in the monitor mode and the control processor is ready to receive a command from the host computer The READY lamp is OFF when a user program is running or when the control processor is executing a command from the host computer PAR TECE The Engineers Collaborative Inc Page 19 of
48. unt up Code window follows code F80E 7F0001 clr count down the ram variables amp F811 731003 main loop com port c compliment port execution F814 7c0000 inc count up increment count up F817 8D04 bsr decrement byte increment a word Code window F819 4C inca z Automatically F81 5A decb 5 updated follo F81B 20F4 bra main loop sloop forever code execution FF B SXHINZVC FF D FFFF X Target RAM OFF FFFF X Step mode 0000 OVER Interrupt Communications window 4 Manual command window Manual Commands WatchWizard Add Name mepe pps Watch Wizzard Just click on any line of code and the current value of the variable referred to in that line is displayed in hex decimal and binary PAR TECE rhe Engineers Collaborative Inc Page 35 of 38 Animate TECICE HC05 USER S MANUAL 5 APPENDIX 5 1 TUTORIAL LISTING FILE i kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk P WTTDEMO ASM 4 30 97 RBJ P A WASM11 cross assembler and WTT11 emulator demonstration program D k P TECI The Engineers Collaborative Inc Nx P RR 3 Box 8c Pc Barton VT 05822 ak icles Ph 802 525 3458 Fax 802 525 3451 de P email bobj tec i com ak geek KKK de de Fe de de Fe e He Fe Fe de de Fe EK e He He Fe Fe e ec ke de de Fe RE Fe Fe RE Fe Fe de EK EER He EEK Fe Fe e He RE He Fe Fe EKER e ee e e ke e Ke irq
49. xt editor program is used for entering and editing programs in 68HCO5 assembly language The 68HCO05 cross assembler program must create object code files in Motorola S record or Intel HEX format PAR TECE The Engineers Collaborative Inc Page 6 of 38 TECICE HC05 USER S MANUAL 2 GETTING STARTED Please read and follow the directions in this section before you go any further Before you do anything else please take just a few moments to familiarize yourself with this section the WASMOS and WTTOS software and your new emulator We specifically designed this section to give you a lot of information in a very brief period of time Working through the installation and tutorial now will give you a big advantage in understanding how these programs work together to make your emulator a powerful tool 2 SOFTWARE PREPARATION 2 1 1 Installing WASMO5 And WTTO5 The software is supplied on a 3 1 2 inch floppy diskette The file supplied on this diskette is named SETUP EXE This is a self installing Windows executable file that will install all of the necessary files when invoked To install the software place the distribution diskette in a floppy drive and run the program A SETUP EXE or B SETUP EXE from within Windows and follow the on screen instructions Important Notice If you have trouble running SETUP EXE try running the program with the M command line switch as follows gt A SETUP EXE M lt enter gt This is the manual

Download Pdf Manuals

image

Related Search

Related Contents

Mimosín Professional    ___ENTREX USER GUIDE    

Copyright © All rights reserved.
Failed to retrieve file