Home

M68HC11EVM EVALUATION MODULE USER'S MANUAL

image

Contents

1. 0000 0000 0100 0100 1000 1000 ERNAL MCU 103F 103F E REGISTER BLOCK 1040 1040 1 200 DUART A20F U19 MC2681 A210 B400 BYTE SCRATCH PA B5FF RAM U18 6264 B5FF B600 B600 BYTE MCU EEPROM OR U18 6264 RAM FUDO B7FF B800 BFFF C000 16K BYTE DFFF EVMbug MONITOR 016 27128 goes EUDO ROM 17 6264 FFFF EE NOTE 2 FFFF Note 1 EVM shipped with MCU EEPROM selected MCU CONFIG EEON 1 EVM pseudo 018 available if MCU CONFIG EEON 0 EVM pseudo EEPROM disabling accomplished via jumper header J11 Note 2 Pseudo ROM disabling accomplished via jumper header J10 Figure 4 2 EVM AX Memory Map M68HC11EVM D 4 7 FUNCTIONAL DESCRIPTION 0000 1000 103F 1040 AlFF A200 A20F A210 AFFF B400 B5FF B600 C000 FREE MONITOR MAP 0000 1000 103F 1040 DUART 019 MC2681 BYTE SCRATCH PA RAM U18 6264 B5FF B600 B7FF B800 C000 16 EVMbug MONITOR 016 27128 DFFF E000 USER
2. 2 1 2 3 1 Evaluation Mode Select Headers 19 and J19 2 2 2 3 2 Pseudo ROM Disable Header J10 a 2 4 2 3 3 Pseudo EEPROM Disable Header 2 4 234 Clock Input Select Headers J12 and J13 tt ends 2 5 2 3 5 RTS and CTS Signal Enable Headers 14 and J15 2 6 2 3 6 Write Enable Header J16 a 2 7 2 94 Serial Enable Header CUS rds 2 8 2 3 8 SSelect Header J20y n eee te tertie be edere 2 8 2 4 INSTALLATION INSTRUCTIONS 2 iati eee poe thia eene 2 0 2 4 1 Power Supply EVM Interconnection tee cde adel 2 9 242 Terminal EVM Interconnection e o edi bs 2 10 24 3 Host Computer EVM 2 11 2 4 4 Target System EVM Single Chip Mode Interconnection 2 13 2 4 5 Target System EVM Expanded Multiplexed Mode Interconnection 2 13 2 4 6 Target System EVM Operation oe arie 2 13 M68HC11EVM D CONTENTS MOTOROLA CHAPTER 3 OPERATING INSTRUCTIONS J INTRODUCTIONS E Zuna n
3. lt lt lt S31ON 1335OS Nid 09 HOLO3NNOO 3dA1 AANO Dn1d Nid 09 139908 Nid 09 HOLOSNNOO 1 14 1 26 WHO4LV1d W31SAS 1 A es MIIA 598 A 900 90990900000 30 Z HS V 6 006350 9 gt Figure 2 3 Target System Emulation Cable Assembly Diagram Sheet 2 of 2 M68HC11EVM D 2 16 MOTOROLA OPERATING INSTRUCTIONS CHAPTER 3 OPERATING INSTRUCTIONS 3 1 INTRODUCTION This chapter provides the necessary information to initialize and operate the EVM in a target system environment EEPROM MCU programming assembling disassembling and downloading procedures are also provided Information contained in this chapter will be presented in the following order Control switch descriptions e Limitations e Operating procedures EEPROM MCU programming procedures Assembling disassembling procedures e Downloading procedures The monitor is the resident firmware EVMbug for the EVM which provides a self contained programming and operating environment The monitor interacts w
4. ERNAL MCU STER BLOCK BYTE MCU EEPROM OR U18 6264 RAM EUDO ROM 1 015 6264 EUDO ROM 2 6264 EE NOTE 2 Note 1 EVM shipped with MCU EEPROM selected MCU CONFIG EEON 1 EVM pseudo EEPROM U18 available if MCU CONFIG EEON 0 EVM pseudo EEPROM disabling accomplished via jumper header J11 Note 2 4 8 Pseudo ROM 1 disabling accomplished via 015 6264 device removal Pseudo ROM 2 disabling accomplished via jumper header J10 Figure 4 3 EVM EX Memory Map M68HC11EVM D MOTOROLA FUNCTIONAL DESCRIPTION 4 23 Terminal and Host Computer I O Ports The EVM terminal I O port communicates with an RS 232C compatible terminal via the terminal connector J6 and a user supplied cable assembly The MC2681 dual asynchronous receiver transmitter DUART based terminal interface circuitry provides communication and data transfer operations for the EVM and user terminal Auto baud rate generation and selection capabilities and RS 232C drivers receivers are also implemented for this port Refer to Chapter 5 for additional port information A software transparent mode allows direct communications between the terminal and host computer I O ports Also files may be downloaded through the terminal I O port using the LOAD command The EVM ho
5. Set several breakpoints EXAMPLES DESCRIPTION gt BR F830 lt CR gt Set breakpoint at address location Brkpts F830 F830 gt BR F830 F89B FC20 lt CR gt Sets three breakpoints Breakpoints Brkpts F830 F89B FC20 at same address will result in only gt one breakpoint being set Stack pointer must be pointing to a valid RAM address for breakpoint to occur gt BR lt CR gt Display all current breakpoints Brkpts F830 F89B FC20 gt M68HC11EVM D 3 13 OPERATING INSTRUCTIONS MOTOROLA BULK Bulk Erase 3 6 4 Bulk Erase BULK lt 103F gt The BULK command can be invoked with or without an address If the command is invoked without an address a default to location B600 occurs and 512 bytes of EEPROM are bulk erased If an address is specified with the command only the CONFIG register address 103F can be used Specifying the 103F address with the BULK command will erase the CONFIG register and the EEPROM array On MC68HC811A2 devices the BULK command without an address will not erase anything because the default location B600 is not an EEPROM address The BULK command with the address location 103F BULK 103F must be used to bulk erase the CONFIG and the entire EEPROM array Prior to entering this command the user must follow the EEPROM erasing procedure as described in paragraph 3 7 2 This procedure removes the reset condition applied to the MCU and enables the MCU EEPROM to be erased EXAMPLES DESCRIPTION
6. Host Computer Cable Assembly 2 12 2 3 Target System Emulation Cable Assembly Diagram Sheet 1 of 2 2 15 2 3 Target System Emulation Cable Assembly Diagram Sheet 2 of 2 2 16 4 1 EVM Block Diagram uii eei esaet Rh he a ta Opa 4 3 4 2 EVM AX Memory eb ertet 4 7 2 3 EVM Memory 4 8 5 1 EVM Parts Location Diagram u trahi uu das 5 13 0 2 Schematic Diagram y aypan a ae uu S 5 14 TABLES 1 1 SpecifiCatiOms 1 2 1 2 External Equipment Requirements a 1 4 EVMC ntrel SWItch S n 3 2 32 Monitor VY Mbus Commands tients 3 9 5 1 Single Chip Connector J1 Pin Assignments nennen 5 2 5 2 Expanded Multiplexed Connector J3 Pin Assignments esee 5 3 5 3 Input Power Connector J5 Pin Assignments t ptr ie A 5 4 5 4 RS 232C Terminal Port Connector J6 Pin Assignments 5 5 5 5 RS 232C Host Port Connector J7 Pin Assignments 5 6 D O
7. MC68HC24 single chip mode Port Replacement Unit PRU U34 U35 74HC85 U36 74HC374 042 044 U50 051 053 74HC74 043 74HC4002 045 74HC4024 056 socket programming 52 lead PLCC package Plastronics P2052SP 5 10 M68HC11EVM D MOTOROLA SUPPORT INFORMATION Table 5 6 EVM Parts List continued Reference Designation Component Description U57 Voltage detector 3 80 4 20 Vdc Motorola MC34064P or Seiko S 8054HN Y1 Crystal 8 0 MHz ECS 80 or Nymph NYP080 18 Y2 Crystal 3 6864 MHz ECS ECS3686 4 or Nymph NYP037 Fabricated jumper Aptronics 929955 00 use with jumper headers socket 14 pin DIL low profile Robinson Nugent ICL 143 S6 TG for U20 and U21 socket 28 pin DIL low profile Robinson Nugent ICL 286 S7 TG for U14 U18 socket 40 pin DIL low profile Robinson Nugent ICL 406 S7 TG for U19 socket 44 pin PC mount PLCC AMP 821575 1 for U33 socket 52 pin PC mount PLCC AMP 821551 1 for U2 NOTE When ordering use number labeled on part M68HC11EVM D 5 11 SUPPORT INFORMATION MOTOROLA 5 4 DIAGRAMS Figure 5 2 is the EVM schematic diagram 5 12 M68HC11EVM D MOTOROLA SUPPORT INFORMATION aL 4 z e p m J 14 R sc 8 4 Ls ic ac _ e EE no FC s 31 p 3
8. Press a carriage return CR and ignore the Illegal Command Error You may visually verify the download by entering the MD command followed by the address you wish to see For example type MD E000 to see the memory at 000 5 Move switches 54 to RESET and 55 to OFF 6 Insert the MCU to be programmed in U32 or U56 Follow the orientation and 10 11 12 placement information shown in paragraph 3 7 Apply power to the MCU by moving switch S5 from OFF to PWR Depress and release the master reset switch S3 Press a carriage return CR on your keyboard If the board and the PC are communicating correctly you will see the EVMBug prompt and the register display Move switch S4 from RESET to OUT to bring the MCU in the programming socket out of reset in bootstrap mode Enter CHCK command via the terminal keyboard to check the contents of the MCU internal EEPROM EEPROM MCU contents within the specified start and ending address range is checked and the results blank or not blank are displayed on the terminal CRT Remove power to the programming socket by moving switch 54 to RESET and switch S5 to OFF Remove the programmed MCU from the programming socket M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS 3 7 2 Erasing EEPROM MCU erasing is accomplished by the use of either the BULK or ERASE commands These commands allows the user to erase memory locations in the MCU internal EEPROM To perform
9. computer to EVM via terminal port gt LOAD H COPY EXORT LX CN lt CR gt LOAD command entered to download data from EXORciser to EVM through host port EXORT file with copy to terminal implemented Refer to the downloading procedures at the end of this chapter for additional information pertaining to the use of the LOAD command 3 20 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS MD Memory Display 3 6 11 Memory Display MD lt addressl gt address2 where lt address1 gt Beginning address of the memory to be displayed lt address2 gt Ending address of the memory to be displayed The MD command is used to display a section of user memory beginning at address and continuing to address2 If address2 is not entered 16 bytes are displayed beginning at address If address is greater than address2 the display will wrap around the 64k user memory map EXAMPLES gt MD F800 F820 lt CR gt F800 AA AA AA AA AA AA AA AA AA AA F810 AA AA AA AA AA AA AA AA AA AA AA F820 AA AA AA AA AA AA AA AA AA AA gt gt MD F810 lt CR gt F810 AA AA AA AA AA AA AA AA AA AA gt M68HC11EVM D 3 21 OPERATING INSTRUCTIONS 3 6 12 Memory Modify MM address where Memory Modify lt address gt memory locat
10. count number in hexadecimal FFFF max of instructions to execute The T command allows the user to monitor program execution on an instruction by instruction basis The user may optionally execute several instructions at a time by entering a count value up to FFFF Execution starts at the current PC The PC displayed with the event message is of the next instruction to be executed During the tracing operation breakpoints are active and the user program execution stops upon the PC encountering a breakpoint address The user should not try to trace an instruction that branches to itself e g BRA Because the monitor places an SWI instruction on the object of the branch the instruction would never be executed However it would look to the user as if the instruction executed The user may enter a G command while the PC points to this type of instruction as long as the instruction is not a breakpoint address The user should also not trace an RTI instruction with the interrupt enabled and pending The monitor issues an ILLEGAL INSUFFICIENT ENTRY message if the user attempts to trace at an address that contains an invalid opcode For an invalid SP location a STACK POINTER SET TO BAD MEMORY LOCATION message is displayed on the terminal CRT SINGLE TRACE EXAMPLE gt T lt CR gt F805 O1 NOP P F805 1000 2000 B FF C F9 SXHIN C 5 00 MULTIPLE TRACE EXAMPLE gt T 2 lt CR gt F806 O1 NO
11. wu didus h n unan 1 3 2 CONTROL SWITCHES aes 2 3 9 LIMITATIONS qb eee eo 3 34 OPERATING PROCEDURE qani qasataqa aun usa 5 3 5 COMMAND CINE FORMAT L u L au e 7 3 6 MONITOR COMMANDS 8 3 6 1 Asse embler Disassembl r ied ite nds 10 3 6 2 ESO 12 36 35 SBreakpomtSeboeo u RP EE E 13 364 Bulk nanea e N a ataqa 14 nuansa an suan e A a a 15 Re CREOLE E Ud 16 3 62 Erase ES VUES Soiree amata mOn E Numam mast en 17 osos botes cess a Le IS 18 369 Help 19 3 010 Loaders ia ta tse E KE 20 2 0 1 Memory 21 3 6 12 Memory MO by 22 3 60 13 REMOVE Breakpoint oie to Ht Secs os eti Vg tube 23 Proceed e P M 24 3 015 Progra za aa uma io 25 3 0 16 66 uu as as 27 3 6 17 Register 28 SRM Re cci TC 29 306 19 eee ee o E EE ais 30 3 620 Transparen
12. 4 2 1 2 Abort The abort circuitry generates internal abort signals upon the activation of the abort switch S1 A software interrupt opcode is placed on the MCU data bus synchronously with the LIR signal and the memory map is switched to the monitor map NOTE This memory map switching operation assumes proper operation in the user map If the MCU is not operating properly in the user map 1 an illegal opcode or stop instruction executed the abort switch may not cause a map switch 4 2 1 3 64 Cycle Timeout The 64 cycle timeout circuitry is provided to write protect the initialization registers of both the MC68HC24 Port Replacement Unit PRU and the MC68HC11 MCU devices Without this timeout circuitry it would be possible to write to the initialization register of the PRU and not to the MCU after 64 cycles If this occurred the registers duplicated in the PRU may be mapped to a different location than those on the MCU and certain register accesses would prohibit proper EVM operation in the single chip mode If a write occurred to internal RAM which had been mapped over externally by the PRU then the duplicated ports would not function properly To prevent this from happening a 64 cycle timer is used to inhibit write operations to the initialization register 64 cycles after reset If a write to the initialization register is detected after the 64 cycles timeout RAM emulating ROM behaves as normal The initialization register is la
13. All user I O ports are available in the user map for evaluation purposes User pseudo ROM E000 FFFF is actually external RAM This RAM is write protected during user program execution This feature requires all programs to be ROMable and protects against program errors which would otherwise overwrite the program space 4 2 2 3 EX Monitor Map Area As shown in Figure 4 3 the EX family MCU monitor map area is identical to the AX family MCU monitor map area as described above 4 2 2 4 EX User Map Area As shown in Figure 4 3 the EX family MCU user map area is similar to the AX family MCU user map ares described above with only exception This exception applies to the additional 6264 8K byte RAM pseudo ROM 1 device installed at location 015 locations C000 SDFFF The 8K byte RAM at locations 000 is reidentified as pseudo ROM 2 and is still disabled by jumper header J10 NOTE If pseudo ROM 1 disabling is required the user must physically remove the 6264 RAM device located at U15 If pseudo ROM 1 is removed the user must insure that target system RAM is installed at the appropriate memory locations for the EVM to operate properly 4 6 M68HC11EVM D MOTOROLA FUNCTIONAL DESCRIPTION MONITOR MAP
14. OPERATING INSTRUCTIONS Remove Breakpoint The NOBR command is used to remove one or more breakpoints from the internal breakpoint table This command functions oppositely of the BR command After removing the breakpoint the current breakpoint address if any are displayed COMMAND FORMATS DESCRIPTION NOBR Removes all current breakpoints NOBR lt address gt Removes breakpoint EXAMPLES gt NOBR F900 lt CR gt Brkpts FA00 FCOO FDOO gt NOBR 00 0 lt gt Brkpts FD00 gt gt NOBR lt CR gt Brkpts M68HC11EVM D DESCRIPTION Removes breakpoint located at F900 Removes breakpoints located at FA00 and FC00 Removes all breakpoints 3 23 OPERATING INSTRUCTIONS MOTOROLA P Proceed 3 6 14 Proceed P lt count gt where lt count gt The number in hexadecimal FFFF max of times the current breakpoint location is to be passed before the breakpoint returns control to the monitor All other breakpoints are ignored during this command This command is ideal for applications where registers must be examined after a given number of passes within a software loop EXAMPLE DESCRIPTION gt P 5 lt CR gt Current breakpoint location is passed five times before breakpoint returns control to the monitor 3 24 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS PROG Program 3 6 15 Program tg ROG lt starting address gt lt endi
15. lt addr3 gt DESCRIPTION Assembler disassembler interactive Block fill memory with data Breakpoint set Bulk erase EEPROM or CONFIG register Check EEPROM Copy EEPROM to user map Erase individual EEPROM bytes Go execute program Help display commands Load S records from I O port Memory display Memory modify interactive Remove breakpoint Proceed thru breakpoint Program EEPROM via pseudo EEPROM Register display Register modify interactive Baud rate select for host I O port Trace Transparent mode Verify EEPROM against user map 1 Referto Appendix A for S record information M68HC11EVM D 3 9 OPERATING INSTRUCTIONS MOTOROLA ASM Assembler Disassembler 3 6 1 Assembler Disassembler ASM lt address gt where lt address gt is the starting address for the assembler operation The assembler disassembler is an interactive assembler editor in which the source program is not saved Each source line is converted into the proper machine language code and is stored in memory on a line by line basis at the time of entry In order to display an instruction the machine code is disassembled and the instruction mnemonic and operands are displayed All valid opcodes are converted to assembly language mnemonic All invalid opcodes return a Form Constant Byte FCB conversion The ASM command allows the user to create modify and debug MC68HC11 MCU code No provision is made for line numbers
16. 0011 0001 0011 0011 0011 00001 0011 0000 0011 0000 ooog 0011 0010100111 1000 omi mo ood ond 00111001010100 0001 A 4 M68HC11EVM D
17. CN lt CR gt gt LOAD H COPY CN lt CR gt COPY EXORT LX CN 0030000FC 5110001 424547204 4 4144204845524 0 02 110100243130302057494C4C204C4 110200243230302057494C4C204C4 110300243330302057494C4C204C4 110400243430302057494C4C204C4 110500243530302057494C4C204C4 110600243530302057494C4C204C4 110700243530302057494C4C204C4 9030000FC M68HC11EVM D IFA IFA 1741 1741 1741 1741 1741 DESCRIPTION EXORciser initialized into MDOS via TM command to download S records Exit transparent mode LOAD command entered to download data to EVM through host port EXORT file with copy to terminal implemented LOAD command entered to download data Host port will display data data as transferred GI 15 gt G M oO BR PPP PSP AB I P gt P P gt D 3 45 OPERATING INSTRUCTIONS MOTOROLA 3 9 2 IBM PC to EVM Prior to performing any IBM PC operation ensure that both IBM PC and EVM baud rates are identical and that the IBM PC asynchronous port is configured for terminal mode of operation If the asynchronous port is hard wired for host mode of operation and cannot be reconfigured for a terminal mode of operation the use a null modem transmit TxD and receive RxD and associated han
18. gt BULK lt CR gt Erase all EEPROM MCU locations starting at gt B600 Prompt indicates erase sequence completed gt BULK 103F lt CR gt Erase CONFIG location 103F and EEPROM gt Prompt indicates erase sequence completed 3 14 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS CHCK Check 3 6 5 Check CHCK lt starting address gt lt ending address gt The CHCK command allows the user to be sure that the MCU internal EEPROM installed in the programming socket 032 056 is properly erased Prior to entering this command the user must follow the EEPROM content checking procedure as described in paragraph 3 7 1 This procedure removes the reset condition applied to the MCU and enables the MCU EEPROM to be checked The CHCK command is now entered via the terminal keyboard to check the contents of the MCU internal EEPROM EEPROM contents within the specified start and ending address range is checked and the results blank or not blank are displayed on the terminal CRT The erased state of EEPROM is FF EXAMPLES DESCRIPTION B600 B7FF CR Check MCU EEPROM locations B600 thru B7FF Prompt indicates blank EEPROM gt CHCK B600 7 lt gt Check MCU EEPROM locations B600 thru B7FF M68HC11 NOT BLANK Message indicates data stored in specified gt EEPROM locations M68HC11EVM D 3 15 OPERATING INSTRUCTIONS MOTOROLA COPY Copy 3 6 6 Copy COPY lt 1 gt lt address2 gt lt
19. ADDR5 PROG lt START ADDR gt lt RD Register display RM Register modify SPEED BAUD RATE Select host baud rate T lt COUNT gt Trace 1 FFFF instructions T lt CHARACTER VERF START lt EEPROM to user map M68HC11EVM D 3 19 OPERATING INSTRUCTIONS MOTOROLA LOAD Load 3 6 10 Load LOAD lt port gt lt text gt where H for host port or T for terminal port lt text gt Text following the sign is the host command sent to the port which instructs the external host computer to download S records to the EVM The LOAD command moves downloads object data in S record format see Appendix A from an external host computer to EVM user pseudo ROM When downloading data from a host computer file the data received by the EVM monitor is echoed to the terminal If the terminal is running at a baud rate less than the host computer the S record echo may be scrambled but the data is entered correctly to EVM user map As the EVM monitor processes only valid S record data it is possible for the monitor to hang up during a load operation there is no timeout because the terminal and host computer may be running at different baud rates If an S record starting address points to an invalid memory location the invalid address and the message BAD MEMORY is displayed on the terminal CRT EXAMPLES DESCRIPTION gt LOAD T lt CR gt LOAD command entered to downloaddata from host
20. MHz divided by four 0 to 2 1 MHz bus operation Monitor map size 64K bytes Monitor EPROM 16K bytes User map size 64K bytes Pseudo EEPROM 512 bytes Pseudo ROM 8K 16K bytes MCU extension I O ports HCMOS compatible Terminal host I O ports RS 232C compatible Temperature Operating 25 degrees C Storage 40 to 85 degrees C Relative humidity 0 to 90 non condensing Power requirements 5 1 0 A max Module 12 Vdc 0 1 A max 12 Vdc 0 1 A max Dimensions 11 0 in 27 9 cm X 8 5 in 21 5 cm 1 2 M68HC11EVM D MOTOROLA GENERAL INFORMATION 14 GENERAL DESCRIPTION The EVM provides a tool for designing debugging and evaluating MC68HC11 Microcontroller Unit MCU based target system equipment By providing all of the essential MCU timing and circuitry the EVM simplifies user evaluation of the prototype hardware software product The EVM requires a user supplied power supply and an RS 232C compatible terminal for operation The MC68HC11AX and or MC68HC11EX family of HCMOS MCU devices are evaluated emulated by the EVM resident MC68HC11 MCU Entering data program debugging and EEPROM MCU programming is accomplished by the monitor EPROM firmware via an external RS 232C compatible terminal connected to the EVM terminal port connector Downloading programs directly from an RS 232C compatible host computer to the EVM is accomplished via the host port connector Downloading pro
21. REQUEST TO SEND An output signal used to request permission to transfer data 5 CTS CLEAR TO SEND An input signal used to indicate ready to transfer data status Refer to paragraph 2 3 5 6 Not connected 7 SIG GND SIGNAL GROUND This line provides signal ground or common return connection between the EVM and RS 232C compatible host computer This line establishes the common ground reference potential between the EVM and RS 232C compatible host computer circuitry 8 19 Not connected 20 DTR DATA TERMINAL READY An output line held high used to indicate an on line in service active status 21 25 Not connected 5 6 M68HC11EVM D MOTOROLA SUPPORT INFORMATION 53 PARTS LIST Table 5 6 lists the components of the EVM by reference designation order The reference designation is used to identify the particular part on the parts location diagram Figure 5 1 that is associated with the parts list table This parts list reflects the latest issue of hardware at the time of printing Table 5 6 EVM Parts List REFERENCE DESIGNATION COMPONENT DESCRIPTION Printed Wiring Board PWB M68HC11EVM C1 C4 C9 C23 28 46 Capacitor ceramic 0 1 uF 20 50 C48 C62 C5 Capacitor electrolytic 2 2 uF 20 50 Vdc C6 C8 Capacitor electrolytic 47 uF 20 25 Vdc C24 C26 C27 Capacitor mica 15 pF 10 50 C25 Capacitor mica 5
22. W R21 Resistor 10M ohm 5 1 4 W R22 Resistor 47 ohm 5 1 4 W M68HC11EVM D MOTOROLA SUPPORT INFORMATION Table 5 6 EVM Parts List continued REFERENCE DESIGNATION COMPONENT DESCRIPTION 1 S3 Switch pushbutton SPDT C amp K 8125 SD9R2BE 84 Switch slide SPDT C amp K 1101M2CQE 55 Switch slide DPDT Stackpole S 9022CD01 0 or Switchcraft C56206L2 U1 U22 U23 U26 74HC244 U2 XC68HC11A1FN or XC68HC11E1FN resident MCU U3 U47 74HC30 U4 011 041 74 04 U5 010 029 037 055 74HC08 U6 046 054 74 02 U7 039 049 052 74 00 U8 74HC126 U9 74HC139 U12 U48 74HC14 U13 U38 U40 74HC10 U14 825100 address map decoder FPLA programmed SEE NOTE U15 6264 MCM6064P 8K RAM user pseudo ROM 1 U16 27128 EVMbug monitor EPROM programmed SEE NOTE M68HC11EVM D 5 9 SUPPORT INFORMATION AA MOTOROLA Table 5 6 EVM Parts List continued Reference Designation Component Description U17 6264 MCM6064P 8K RAM user pseudo ROM 2 U18 6264 MCM6064P 8k RAM monitor scratch pad RAM user pseudo EEPROM U19 MC2681 DUART U20 MC1488 U21 MC1489A U24 74HC373 U25 74HC245 U27 U30 74HC32 U28 74HC4078 U31 74HC393 U32 socket programming 48 pin DIL package low profile Robinson Nugent ICL 486 55 TG U33
23. address3 gt where lt addressl gt EEPROM starting address lt address2 gt EEPROM ending address optional lt address3 gt User map starting address optional The COPY command allows the user to copy the contents of the programmed MCU internal EEPROM into the EVM user map pseudo EEPROM ROM or user supplied memory expanded multiplexed mode only Prior to entering this command the user must follow the EEPROM copying procedure as described in paragraph 3 7 4 This procedure removes the reset condition applied to the MCU and enables the MCU EEPROM to be copied The COPY command is now entered via the terminal keyboard to enable the MCU EEPROM contents to be copied into the EVM user map A READ COMPLETE message followed by the EVMbug prompt is displayed on the terminal CRT upon completion of the copying operation If an invalid address is specified the invalid address and the message BAD MEMORY is displayed on the terminal CRT A ERROR IN READ message indicates a software timeout has occured during the copy operation If the third token lt address3 gt is not entered then the starting address for the user map is the same as the EEPROM lt address1 gt EXAMPLES DESCRIPTION gt COPY B600 B7FF CR Copy MCU EEPROM contents B600 thru B7FF READ COMPLETE Message indicates copy sequence completed gt COPY B600 B7FF EOO00 CR Copy MCU EEPROM contents B600 thru B7FF into user map E000 throug
24. evaluate MC68HC11AX and or MC68HC11EX family MCU based target system via the resident MC68HC11 MCU XC68HC11A1FN XC68HC11E1FN The EVM contains two memory maps monitor or user map that are switchable transparent to the user to allow modification of user memory and execution of user programs Data transfer within the EVM is controlled by the monitor EPROM firmware This firmware is controlled from an external RS 232C compatible terminal Figure 4 1 illustrates the EVM block diagram Basically the EVM consists of the following functional circuits MCU and control e Monitor and user memory e Terminal and host computer I O ports MCU Extension I O ports EEPROM MCU programmer 4 2 1 MCU and Control Circuits The EVM contains an MC68HC11 MCU and associated control circuits that provide the basic evaluation capabilities for target system use As shown in Figure 4 1 specific control circuits are implemented into the EVM and are as follows Map switching e Abort 64 cycle timeout e Address decoding M68HC11EVM D 4 1 FUNCTIONAL DESCRIPTION MOTOROLA 4 2 1 1 Map Switching The EVM operates in either one of two memory maps monitor or user maps as illustrated in Figures 4 2 and 4 3 Two types of memory map switching temporary or permanent can be performed Temporary map switching allows modification of user memory and permanent map switching allows execution of user programs Temporary map switching is us
25. implemented therefore it may be possible for an error to occur when downloading from a modem During EEPROM programming operations check copy erase program and verify the EVM MCU must be connected to the on board 8 0 MHz crystal External clock operation is prohibited during EEPROM programming operations CAUTION The user may not map internal register or internal RAM over pseudo ROM E000 FFFF If this occurs monitor operation may be affected and damage may occur to the EVM M68HC11EVM D 3 3 OPERATING INSTRUCTIONS MOTOROLA The resident MC68HC11 MCU device computer operating properly COP subsystem feature may be used only if these conditions are true 1 The EVMbug stored in the EPROM U14 must be revision 2 8 or higher The latest monitor is available on the Motorola bulletin board system BBS 512 891 3733 2 The NOCOP bit in the resident MCU CONFIG register 103F must be programmed to a logic 0 MC68HC811A2 E2 ADDRESS LOCATION LIMITATION Pseudo ROM located at C000 SFFFF may be used as pseudo EEPROM i e RAM for MC68HC811A2 E2 device emulation If the MC68HC811A2 E2 device is used as the emulator MCU then the exact emulation of the MCU EEPROM is accomplished There are address limitations when performing this type of emulation The user must restrict the upper nibble of the MC68HC811A2 E2 configuration CONFIG register to a value other than E or F Not restricting the upper nibble would inhibit the
26. must supply an external 8 MHz clock signal the EXTAL pin of either connector J1 or J3 pin 7 M68HC11EVM D 2 5 HARDWARE PREPARATION AND INSTALLATION MOTOROLA 2 3 5 RTS and CTS Signal Enable Headers J14 and J15 Jumper headers J14 and J15 are used to configure the RS 232C terminal and host computer I O ports for semi or full handshaking operation The EVM is factory configured for semi handshaking high level operation This semi handshaking high level configuration is accomplished by the installation of fabricated jumpers on jumper headers J14 and J15 as shown below J14 J15 1 2 3 1 2 3 HIGH FULL PIGE FULL LEVEL HANDSHAKE LEVEL HANDSHAKE RTS CTS Should the terminal or host computer or modem require full handshake capability jumpers are to be repositioned between pins 2 and 3 Refer to the schematic diagram located in Chapter 5 Figure 5 2 sheet 12 of 12 for RTS and CTS signal wiring information 2 6 M68HC11EVM D MOTOROLA HARDWARE PREPARATION AND INSTALLATION 2 3 6 Write Enable Header J16 Jumper header connector J16 is used to route a Write Enable WE signal from the EVM to the target system during the expanded multiplexed mode of operation Connector J16 is used only if the target system contains ROM EPROM In this mode of operation the user must replace the target system ROM with RAM and also supply WE signal to the RAM This device replacement and external wiring additions enable the
27. output control line used to de multiplex address and data and control memory and I O read and write operations EXTAL MCU clock input line PORT C bits 0 7 Multiplexed output address and bi directional data lines RESET An active low bi directional control line used to initialize the MCU X INTERRUPT REQUEST An active low input line used to request MCU asynchronous non maskable interrupts INTERRUPT REQUEST An active low input line used to request MCU asynchronous interrupts PORT D bits 0 5 General purpose input output I O lines PORT A bits 0 7 General purpose input output I O lines PORT B bits 0 7 High order address output lines 5 3 SUPPORT INFORMATION MOTOROLA Table 5 2 Expanded Multiplexed Connector J3 Pin Assignments continued Pin Mnemonic Description 43 50 PEO PE7 PORT E bits 0 7 General purpose input or A D channel input lines 51 VRL VOLTAGE REFERENCE LOW Input reference supply voltage low line for the MCU analog to digital A D converter Used to increase accuracy of the A D conversion 52 VRH VOLTAGE REFERENCE HIGH Input reference supply voltage high line Same purpose as pin 51 Table 5 3 Input Power Connector J5 Pin Assignments Pin Mnemonic Description 1 VPP Programming Voltage Reserved for future use 2 5V 5 Power Input voltage 5 1 0 A used by the EVM logic circuits 3 12V 12 Vdc Po
28. pF 10 50 Vdc C47 Capacitor ceramic 100 pF 20 50 Vdc Not used CR2 CR5 Diode 1N914 CR6 Diode 1N4735 CR7 CR8 Diode 1N4001 F1 Fuse Bussman GMA 3 4 250 V 750 mA ferrule 5mm x 20mm J1 J3 Header double row post 60 pin Aptronics 929715 01 30 J2 J4 J8 Not used J5 Terminal block 6 position Electrovert 25 104 0653 M68HC11EVM D 5 7 SUPPORT INFORMATION MOTOROLA Table 5 6 EVM Parts List continued 5 8 REFERENCE DESIGNATION 96 97 49 J12 J14 415 419 420 910 911 913 916 J18 COMPONENT DESCRIPTION Connector AMP 206584 2 DB25S Header single row post 3 pin Aptronics 929705 01 03 Header single row post 2 pin Aptronics 929705 01 02 J17 Not used R1 Resistor 330 ohm 5 1 4 W R2 Resistor network seven 2k ohm Bourns R3 R6 R13 R14 R17 4608R 101 202 or CTS 750 81 R2K Resistor network seven 10k ohm Bourns 4608R 101 103 or CTS 750 81 R10K R4 Resistor network seven 470 ohm Bourns 4608R 101 471 or CTS 750 81 R470 R5 Resistor network seven 39k ohm Bourns 4608R 101 393 or CTS 750 81 R39K R12 R18 Resistor 10k ohm 5 1 4 W R7 R8 R20 Not used R9 R10 Resistor network four 51 ohm Bourns 4608R 102 510 or CTS 750 81 R51 R11 R24 Resistor network nine 10k ohm Bourns 4610R 101 103 or CTS 750 103 R10K R15 R23 Resistor 1k ohm 5 1 4 W R16 Resistor 4 7k ohm 5 1 4 W R19 Resistor 1 5k ohm 5 1 4
29. program stored in the Read Only Memory of the device contains material copyrighted by Motorola Inc first published 1985 and may be used only under a license such as the License For Computer Programs Article 14 contained in Motorola s Terms and Conditions of Sale Rev 1 79 EVMbug and EXORciser are trademarks of Motorola Inc IBM PC is a registered trademark of International Business Machines Corp PREFACE Unless otherwise specified all address references are in hexadecimal throughout this manual An asterisk following the signal name denotes that the signal is true or valid when the signal is low Throughout this manual AX family MCU device reference indicates either AO Al or A8 Similarly EX family MCU device reference indicates either EO E9 811E2 MOTOROLA CONTENTS CONTENTS CHAPTER 1 GENERAL INFORMATION Ll INIRODU GTION 5 3 ard petis didus et Ge a IE 1 1 1 2 FEATURES Sua laba eal 1 1 1 3 SPECIFICA TIONS 1 2 14 GENERAL DESCRIPTION eiue mI E Dat MR ste BLEU de 1 3 1 5 EQUIPMENT REQUIRE 1 4 2 HARDWARE PREPARATION AND INSTALLATION O N S oe SG AG Sd 2 1 2 2 UNPACKING INSTRUCTION Ssi ARR anu Mn saan a ned fud 2 1 23 HARDWARE PREPARATION
30. the initial procedural steps involving switches 53 54 and 55 manipulation For example upon completion of steps a through f of the erasing procedure programming may begin by starting with step g of the programming procedure M68HC11EVM D 3 33 OPERATING INSTRUCTIONS MOTOROLA 3 7 1 Checking EEPROM MCU content checking is accomplished by the use of the CHCK command This command allows the user to be sure that the MCU internal EEPROM is properly erased To perform the EEPROM MCU content checking procedure perform the following 3 34 1 2 Apply power to the EVM board via connector J5 Launch your terminal emulation software on the PC and install a 25 pin straight serial cable from your PC to the EVM 9600 baud 8 data bits stop bit and no parity Press a carriage return CR to synchronize communications The EVMBug prompt should appear in addition to the register display If not return to step 2 ensuring that power cable protocol and COM port are all correct Enter the LOAD T command to download your previously assembled S records to the EVM board The EVM board is now waiting for your terminal emulator to send the S record file In IASM11 use F6 key to send a file to the EVM IASMII prompts for a file name Type the file name and press a carriage return CR You should see the S records on your screen as they are downloaded The last line of all your S records should be 59030000
31. use of the monitor since the MCU EEPROM as an internal resource would have priority over the monitor Programming the MC68HC811A2 E2 device can be accomplished as long as the CONFIG register upper nibble is C D E or F If an upper nibble other than C D E or F is programmed in the CONFIG register the CONFIG register must be reprogrammed to C D or F since pseudo ROM EEPROM resides from 5 000 After EEPROM programming is accomplished the upper nibble of the CONFIG register can be moved to a desired location NOTE The above address limitation does not apply if programming from external target system memory 3 4 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS 34 OPERATING PROCEDURE Applying power to the EVM causes a Power On Reset POR to occur This POR condition causes the MCU and user I O port circuitry to be reset and the monitor invoked All user registers are in an unknown state during monitor power up Upon initial power up or whenever the master reset switch S3 is pressed the user must depress the terminal keyboard carriage return lt CR gt key This action enables the monitor to determine the baud rate of the terminal connected to the EVM terminal I O port The monitor automatically configures the baud rate settings for both EVM terminal and host I O ports The host I O port baud rate can be reconfigured via the SPEED command The default baud rate for the host I O port is the same
32. user to perform trace or breakpoint operations in target system RAM locations NOTE User must also remove target system crystal and capacitor from the MCU XTAL pin during this wiring installation J16 GND GND 1 TARGET 2 OPTIONAL EXTERNAL WIRING CAUTION The EVM is factory configured and shipped with this connector not having any fabricated jumper installed EVM circuit damage will result if a fabricated jumper is installed between pins 1 and 2 The above external wiring is optional The user can install an external wire from connector J16 pin 2 to the target system RAM circuitry Note that connector J16 pin 1 is connected to EVM ground GND If required an additional external ground GND wire from connector J16 pin 1 to the target system circuitry can be implemented by the user Refer to the schematic diagram located in Chapter 5 Figure 5 2 sheet 11 of 12 for WE signal wiring information M68HC11EVM D 2 7 HARDWARE PREPARATION AND INSTALLATION MOTOROLA 2 3 7 Serial Enable Header J18 NOTE Jumper header J18 is for factory use only Jumper header J18 is used for factory use only The installed fabricated jumper shown below must not be removed during normal EVM operations J18 2 3 8 AX EX Select Header J20 Jumper header J20 is used to select either MC68HCIIAX or MC68HCIIEX family MCU evaluation and programming operations The EVM is shipped with an MC68HC11A
33. 0 E004 00 TEST gt LDX F000 lt CR gt Set X reg to start of data E004 CE FO 00 LDX 5 000 E007 00 TEST gt LDAA 500 lt gt E007 86 00 LDAA 8500 E009 00 TEST gt STAA 102C CR 1 start 8 data 1 stop bit E009 B7 10 2C STAA 102C 00 00 TEST gt LDAA 50 lt gt E00C 86 OC LDAA 50 EOOE 00 TEST gt STAA 102D lt CR gt Enable SCI Tx and Rx EOOE B7 10 2D STAA 102D E011 00 TEST gt LDAA 30 lt CR gt E011 86 30 LDAA 8530 E013 00 TEST gt STAA 102B lt CR gt Set 9600 baud rate E013 B7 10 2B STAA 102B E016 00 TEST gt LDAA 102E lt CR gt E016 B6 10 2 LDAA 102E E019 00 TEST gt LDAA X CR Get data byte E019 A6 00 LDAA 00 X E01B 00 TEST gt STAA 102F lt CR gt Store data byte in Tx reg B7 10 STAA 102F EOIE 00 TEST gt LDAA 102E lt CR gt FOIE B6 10 2E LDAA 102E E021 00 TEST gt ANDA 80 lt CR gt Send data byte E021 84 80 580 E023 00 gt BEQ 5 01 lt gt E023 27 F9 BEQ 5 01 E025 00 TEST gt LDAA 102E lt CR gt Receiver full E025 B6 10 2E LDAA 102E E028 00 TEST ANDA 520 lt gt M68HC11EVM D 3 41 OPERATING INSTRUCTIONS E028 84 20 ANDA 520 E02A 00 EST E02A 27 F9 BEQ SE025 02 00 EST E02C B6 10 2F LDAA 102F E02F 00 EST 02 18 A7 00 STAA 00 Y E032 00 EST E032 08 INX E033 00 EST E033 18 08 INY E035 00 EST E035 8C FO 1F CPX SFOI1F E038 00 EST E038 27 03 BEQ E03D
34. 00 EST 7E 19 JMP 019 E03D 00 EST E03D 20 FE BRA SEO3D 00 EST gt gt BEQ E025 CR gt LDAA 102F lt CR gt gt STAA gt INX lt CR gt gt INY lt CR gt gt CPX 5 01 lt gt gt E03D CR gt JMP E019 lt CR gt gt BRA SE03D lt CR gt gt lt CR gt MOTOROLA No go test again Yes get received byte Store data byte Increment storage pointer Done sending data No get next data byte Yes stop here Exit assembler mode The following routines are performed on the SCI program loop just assembled 3 42 NOTE Connector J1 pins 20 and 21 are connected connects SCI transmitter to the receiver in order to perform the following routines M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS TERMINAL CRT KEYBOARD ROUTINE DESCRIPTION gt RD lt CR gt Register display user machine state Regs Y FFFE SXHINZVC S 00FF gt RM lt CR gt Modify SP register to valid memory location and S 022A gt FF lt CR gt modify PC register to program start address P FFFF gt E000 lt CR gt 0506 gt 0304 gt 02 gt 01 gt 00 gt lt gt gt 000 FO1F 55 lt CR gt Block fill with 55 gt MD F000 1 lt gt Verify block fill 000 55 55 55 553 09 95 55 55 55 55 55 99 55 55 55 59 UUUUUUUUUUUUU
35. 001528 23 4 een 2 i 777 n 1 un 123 4 orn un 142 2 002Hv4 sen BODHPL an m 1 rx een E sn 4 900HvL sn 7 sn 058 yo o H 1Y116199 pm sen m n aom d a s sen 1 ES ven 4 sn 020 62 1 nue een m n n 1 13205 87 m 4 gt AS 4 W31NhO2 92 t 1 301539 zn z ZE2Hr2 ocn m ase S310N E 259 5210N PHS ddA NAI3LLOHBSOX lt S3IHVA KINO 6 O31SITH3EWDN 7 D0 530 47 NI TV M D L NI 1913 TIV 2021212385 ISIMUJHLO SSIINN 53109 M68HC11EVM D Figure 5 2 EVM Schematic Diagram Sheet 1 of 12 5 14 MOTOROLA SUPPORT INFORMATION NN ea i 1 3 EE gut i diri rpme raunmrRISEIERL FERAREEXELERHZHRHAARHR
36. 1 MCU installed in socket U2 and jumper header J20 is factory configured as shown below NOTE Throughout this manual AX family MCU device reference indicates either AO AT or A8 Similarly EX family MCU device reference indicates either EO E1 E9 or 811E2 If evaluation of the MC68HC11EX family MCU is desired the user must replace the resident MC68HC11A1 device with the MC68HCI EI device socket location U2 and place the fabricated jumper between pins 2 and 3 A 6264 8K RAM device must also be installed at socket location U15 This device provides an additional 8K byte of user pseudo ROM at locations C000 SDFFF When emulating an MC68HC11AX MCU in expanded mode you may use additional emulation RAM by installing a 6264 device in the socket at location U15 and placing the fabricated jumper between pins 2 and 3 To emulate an MC68HC11AX MCU in single chip mode remove the RAM 015 and place the fabricated jumper between pins 1 and 2 2 8 M68HC11EVM D MOTOROLA HARDWARE PREPARATION AND INSTALLATION 2 4 INSTALLATION INSTRUCTIONS The EVM is designed for table top operation A user supplied power supply and RS 232C compatible terminal are required for EVM operation An RS 232C compatible host computer may be connected to the EVM but is not required for basic EVM operation 2 4 1 Power Supply EVM Interconnection The EVM requires 5 1 0 A 12 0 1 A and 12 0 1 A for operation The u
37. 4 3 27 OPERATING INSTRUCTIONS MOTOROLA RM Register Modify 3 6 17 Register Modify RM The RM command is used to modify the MCU registers contents The RM command takes no parameters and starts by displaying the S stack pointer register contents and allowing changes to be made The order of the registers displayed are S stack pointer program counter index register Y index register X accumulator A accumulator B Q lt condition code Once entered the RM command has several submodes of operation that allow modification and verification of data The following terminators are recognized lt data gt lt CR gt Update register and sequence forward data CR Update register and sequence backward lt data gt lt CR gt Update register and reopen same location lt data gt lt CR gt Update register and terminate An entry of only lt CR gt terminates the register modify interactive mode CTRL X may be used to cancel any input line the monitor remains in this command If an invalid address is specified the invalid address and the message BAD MEMORY is displayed on the terminal CRT The stack pointer must point to a valid RAM location before registers are modified EXAMPLES DESCRIPTION gt RM lt CR gt Command entered S 030A gt FF lt CR gt Change S register and re examine S 00FF gt Re examine S register and go to P register P FFFF gt F800 lt CR gt Change P regis
38. Carriage return keyboard key depressed to enter command NOTES 1 The command line format is defined using special characters which have the following syntactical meanings Enclose syntactical variable Enclose optional fields Enclose optional fields repeated These characters are not entered by the user but are for definition purposes only 2 Fields are separated by a single space 3 All input numbers are interpreted as hexadecimal A dollar sign may precede any number input but is not required 4 Allinput commands can be entered either upper or lower case lettering All input commands are converted automatically to upper case lettering except for downloading commands sent to the host computer or when operating in the transparent mode 5 A maximum of 46 characters may be entered on a command line After the 46th character is entered the monitor automatically terminates the command entry and processes the command line 6 Parameters are interpreted to be the last two or three characters in the parameter file Parameter errors may be corrected by backspacing This is accomplished via the terminal keyboard CTRL H function M68HC11EVM D 3 7 OPERATING INSTRUCTIONS MOTOROLA 3 6 MONITOR EVMBUG COMMANDS The monitor EVMbug commands are listed alphabetically by mnemonic in Table 3 2 Each of the commands are described in detail following the tabular command listing Additional terminal keyboard fun
39. EPARATION AND INSTALLATION 244 Target System EVM Single Chip Mode Interconnection Target system to EVM interconnection for the single chip mode of operation is accomplished via EVM connector J1 and a target system emulation cable assembly as shown in Figure 2 3 MCU port connector is a 60 pin header shown on the following page that facilitates the interconnection of the cable assembly for evaluation purposes For connector pin assignments and signal descriptions of the EVM SINGLE CHIP connector J1 refer to Chapter 5 2 4 5 Target System EVM Expanded Multiplexed Mode Interconnection Target system to EVM interconnection for the expanded multiplexed mode of operation is accomplished via EVM connector J3 and a target system emulation cable assembly as shown in Figure 2 3 MCU I O port connector J3 is a 60 pin header shown on the following page that facilitates the interconnection of the cable assembly for evaluation purposes For connector pin assignments and signal descriptions of the EVM EXPANDED MULTIPLEXED connector J3 refer to Chapter 5 24 6 Target System EVM Operation CAUTION Damage to the EVM buffer circuitry will result if the target system MCU circuitry mode select pins MODA LIR and MODB are connected directly to 5 Vdc or ground NOTE When connecting the EVM to target system circuitry the user must ensure that the target system MCU circuitry MODA LIR and MODB pins are not connected When op
40. EPROM data to be programmed into the slave MCU The master MCU obtains this data from the EVM user map user pseudo EEPROM locations B600 B7FF The three token PROG command e g PROG B600 B7FF AA is used to block fill specified memory locations B600 B7FF with an assigned hexidecimal data value AA This command e g PROG 103F 103F OE is also used to program the slave MCU configuration register at location 103F with an assigned hexidecimal value 0E The configuration register in the master MCU is not accessible to the user with the exception of a read operation Since the configuration register is a EEPROM byte the user cannot write to that address location in either map In order to program the slave MCU configuration register the three token command is utilized M68HC11EVM D 4 11 FUNCTIONAL DESCRIPTION 4 12 M68HC11EVM D MOTOROLA SUPPORT INFORMATION CHAPTER 5 SUPPORT INFORMATION 5 1 INTRODUCTION This chapter provides the connector signal descriptions parts list with associated parts location diagram and schematic diagrams for the EVM 5 2 CONNECTOR SIGNAL DESCRIPTIONS The EVM provides two input output I O connectors that are used to interconnect the EVM to a target system Connectors J1 and J3 facilitate this interconnection depending upon the mode of operation In the single chip mode connector J1 is used and in the expanded multiplexed mode connector J3 is used Referenc
41. ESET and switch 55 to OFF 12 Remove the programmed MCU from the programming socket M68HC11EVM D 3 37 OPERATING INSTRUCTIONS MOTOROLA 3 7 5 Verifying EEPROM MCU content verification is accomplished by the use of the VERF command This command allows the user to verify the contents of the programmed MCU internal EEPROM into the EVM user map pseudo or user supplied memory expanded multiplexed mode only To perform the EEPROM MCU verification procedure perform the following 3 38 1 2 Apply power to the EVM board via connector J5 Launch your terminal emulation software on the PC and install a 25 pin straight serial cable from your PC to the EVM 9600 baud 8 data bits stop bit and no parity Press a carriage return to synchronize communications The EVMBug prompt should appear in addition to the register display If not return to step 2 ensuring that power cable protocol and COM port are all correct Enter the LOAD T command to download your previously assembled S records to the EVM board The EVM board is now waiting for your terminal emulator to send the S record file In IASMI1 use the F6 key to send a file to the EVM IASMII prompts for a file name Type the file name and press RETURN You should see the S records on your screen as they are downloaded The last line of all your S records should be 59030000 Press a carriage return CR and ignore t
42. EVM MCU and user I O places EVM operation in the monitor map and enables the EVM prompt to be displayed on terminal CRT Programmer On off slide switch resets internal state of the programmable reset RST EEPROM MCU device installed in socket U32 U56 Reset switch S4 function is activated when the switch is placed in the RST position When placed in the OUT position reset function is deactivated and the EEPROM MCU device is allowed to be programmed via the user pseudo EEPROM Programmer On off slide switch applies 5 Vdc power to the power PWR programmable EEPROM MCU device installed in socket switch S5 U32 U56 Power is applied when the switch is placed in the PWR position M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS 333 LIMITATIONS Mixing interrupt requests IRQs and user software interrupts SWIs should be avoided whenever possible due to IRQ SWI EVM timing If a concurrent hardware interrupt and SWI should happen an EVM failure could occur which may stop program execution Activation of the master reset switch will restore the EVM to proper operation These conditions will statistically occur very seldom The user may not trace an RTI instruction with an interrupt enabled and pending due to MCU interrupt handling Attempting this will cause an interrupt in the monitor map which will perform a EVM software reset User breakpoints will be left in the user map but will not be recognized by the monitor
43. M68HC11EVM AD8 February 1994 M68HC11EVM EVALUATION MODULE USER S MANUAL Information contained in this document applies to REVision M68HC11EVM Evaluation Modules serial numbers 1000 through 9999 Copyright 1989 1994 by Motorola Inc Motorola reserves the right to make changes without further notice to any products herein to improve reliability function or design Motorola does not assume any liability arising out of the application or use of any product or circuit described herein neither does it convey any license under its patent rights nor the rights of others Motorola products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur Should Buyer purchase or use Motorola products for any such unintended or unauthorized application Buyer shall indemnify and hold Motorola and its officers employees subsidiaries affiliates and distributors harmless against all claims costs damages and expenses and reasonable attorney fees arising out of directly or indirectly any claim of personal injury or death associated with such unintended or unauthorized use even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part The computer
44. MCU device out of reset in bootstrap mode 9 Type prog 103F 103F XX where XX should be replaced with the hexadecimal value you want in the CONFIG register Note In all devices except the MC68HC811E2 a Verification Failed message appears now If you are programming the MC68HC81 1 E2 and no error message appeared proceed to step 12 others continue at step 10 10 Move switch S4 from OUT to RESET then back to OUT again 11 Type copy 103F 103F E000 Wait for the prompt to reappear Then type md E000 If the value in 000 does not match your intended value for the CONFIG register return to step 4 and try again otherwise proceed M68HC11EVM D 3 39 OPERATING INSTRUCTIONS MOTOROLA 12 Move switches 54 and 55 to RESET and OFF respectively 13 Remove the new MCU from the programming socket 056 14 Remove power to the EVM via connector J5 MCU in socket U2 15 Remove the resident MCU from socket U2 Place the new MCU in socket U2 with the same orientation as the old resident MCU 16 Reapply power to the EVM via connector J5 To reprogram the CONFIG register from 0C back to 0D the above procedure is performed with the exception of step d The CONFIG register 103F is first bulk erased prior to reprogramming the CONFIG register with 0D 3 8 ASSEMBLING DISASSEMBLING PROCEDURES The assembler disassembler is an interactive assembler editor in which the source program is not saved Each source line i
45. P P F806 1000 2000 A FF B FF C F9 SXHIN C S 00FF F807 01 NOP P F807 1000 X 2000 A FF B FF C F9 SXHIN C S 00FF 3 30 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS TM Transparent Mode 3 6 20 Transparent Mode TM lt exit character gt where lt exit character gt The user entry to terminate the transparent mode The TM command connects the EVM host port to the terminal port which allows direct communication between the terminal and the host computer All I O between the ports are ignored by the EVM until the exit character is entered from the terminal When the TM command is entered an exit character is entered following the TM command e g gt TM gt The exit character X can be any keyboard character printable or non printable The default exit command is CTRL A When the user task is completed the transparent mode is terminated by entering the same exit character EXAMPLES DESCRIPTION gt TM lt CR gt Command followed by a carriage return MDOS CTRL A is default exit command DIR lt CR gt MDOS program entered CTRL A lt CR gt Task complete Enter exit command CTRL A gt TM command terminated gt TM X lt CR gt Command followed by exit character X MDOS MDOS program entered DIR lt CR gt Directory called up X lt CR gt Task complete Enter exit character X gt TM command terminated Refer to the downloading procedures at the end of this chapter for additional informa
46. RDWARE PREPARATION AND INSTALLATION MOTOROLA W31SAS 1398 1 WA3LLOH89W 303 LV A TaN3SSV 318VO a 31ON 133SOS NId 09 2 103 YOLOSNNOD HOLO3NNOO JINO ONId Nid 09 434908 Nid 09 WAZ Oo 418v9 1 13 991d 2 WHO31Y d 9 NOW W31SAS 1 dO t HS V 6 00635069 HOLV9OT ES z 038 N 1 6SNId 35 WOLLOA Figure 2 3 Target System Emulation Cable Assembly Diagram Sheet 1 of 2 2 15 M68HC11EVM D MOTOROLA HARDWARE PREPARATION AND INSTALLATION COLA 2 Nid OL 13123NNOO Z Nid L Nid 01 13193NNOO Nid 53 dIHSNOLLY 3NO O1 3NO 01 1 1 AT8W3SSY 318V9 SDINOWANW 1VNDIS 2 348 NOLLVYLSNT P ONY 17 SHOLO3NNOO WAJ OL 83498 5 LNOAVT WHO41V1d 401 NOS WHOL Td Nid 09 O1 S193NNOO 2 13X905 318 2 Nid 09 OL NAVHO3H HOLO3NNOO 30 401 NO 3
47. RECORD INFORMATION MOTOROLA The next 16 character pairs are the ASCII bytes of the actual program code data In this assembly language example the hexadecimal opcodes of the program are written in sequence in the code data fields of the 51 records OPCODE INSTRUCTION 28 BHCC 50161 24 BCC 0163 22 12 BHI 0118 22 6A BHI 0172 00 04 24 BRSET 0 04 012F 29 00 BHCS 010D 08 23 7C BRSET 4 523 5018 Balance of this code is continued in the code data fields of theremaining 51 records and stored memory location 0010 etc 2A Checksum of the first S1 record The second and third S1 code data records each also contain 13 19 character pairs and are ended with checksums 13 and 52 respectively The fourth 51 code data record contains 07 character pairs and has a checksum of 92 The S9 termination record is explained as follows 59 S record type 59 indicating a termination record 03 Hexadecimal 03 indicating three character pairs 3 bytes follow 00 Four character 2 byte address field zeroes 00 FC Checksum of S9 record Each printable character in an S record is encoded in hexadecimal ASCII in this example representation of the binary bits which are actually transmitted For example the first S1 record above is sent as shown below TYPE LENGTH ADDRESS CODE DATA CHECKSUM 0101 0011 001110001
48. RERESSIUTTSETTRUSTUEAIBRZ d d m Prev rd Figure 5 2 EVM Schematic Diagram Sheet 2 of 12 M68HC11EVM D 5 15 SUPPORT INFORMATION a T 1 B S o i 4 Ll 4 Figure 5 2 EVM Schematic Diagram Sheet 3 of 12 5 16 f fig an ADEE M68HC11EVM D MOTOROLA M68HC11EVM D SUPPORT INFORMATION ria mm a Figure 5 2 EVM Schematic Diagram Sheet 4 12 5 17 SUPPORT INFORMATION MOTOROLA HERE FEJEZETE i Figure 5 2 EVM Schematic Diagram Sheet 5 of 12 5 18 M68HC11EVM D MOTOROLA SUPPORT INFORMATION LETH M68HC11EVM D rw wp FERES I Figure 5 2 EVM Schematic Diagram Sheet 6 of 12 5 19 SUPPORT INFORMATION MOTOROLA Sk B SE Figure 5 2 Schematic Diagram Sheet 7 of 12 5 20 M68HC11EVM D MOTOROLA SUPPORT INFORMATION M68HC11EVM D Figure 5 2 EVM Schematic Diagram Sheet 8 of 12 5 21 SUPPORT INFORMATION MOTOROLA Figure 5 2 EVM Schematic Diagram Sheet 9 of 12 5 22 M68HC11EVM D MOTOROLA SUPPORT INFORMATION LU worm sh ir ui 3 Figure 5 2 EVM
49. SWI on the data bus during the LIR cycle The user register contents are saved on the user stack and memory maps are switched to the monitor map The abort switch has no effect on the monitor map When the user reset switch is activated MCU and user I O ports are reset memory map is switched to the user map and the user restart vector is fetched from the user map When the abort switch is activated while in the user map the monitor map is re entered assuming the MCU is operating properly in the user map 4 2 M68HC11EVM D FUNCTIONAL DESCRIPTION MOTOROLA 0 XV O3SN LON d 1081N03 108 008 H31ndW03 aha YJAIJISNYHL 1S0H sna xu 04 1404 NOY L WOH 0 001359 oanasd oanasd YOLNOW 180 wasn wasn wasn m anv Wyu 8 NNIWEL b 1081N03 A 83X3141111430 ou 7 ss3uagy 910 mz 04 8 9084 1904 Woudda L0 v 00 V now 07 007 E 138 034 1LL9H892WI 304 004 304 009 Baa 134 034 EM nud 104 20 00 0 diH3 319NIS W31SAS 1398vi W3ISAS 139uvl diHJ JINIS now iagram EVM Block D Figure 4 1 4 3 M68HC11EVM D FUNCTIONAL DESCRIPTION MOTOROLA
50. Schematic Diagram Sheet 10 of 12 M68HC11EVM D 5 23 SUPPORT INFORMATION MOTOROLA 4 d n i EERBEEER E 33555 84111443 za m wd om d 11112211 8 85485544 B iti s i or i P n L 1 5 i H H i i Figure 5 2 EVM Schematic Diagram Sheet 11 of 12 5 24 M68HC11EVM D MOTOROLA SUPPORT INFORMATION i at ES B i m J q r Ja EB iii ar T SIE i i qu n C Rn rd im n Figure 5 2 EVM Schematic Diagram Sheet 12 of 12 M68HC11EVM D 5 25 SUPPORT INFORMATION MOTOROLA 5 26 M68HC11EVM D MOTOROLA S RECORD INFORMATION APPENDIX A S RECORD INFORMATION The S record format for output modules was devised for the purpose of encoding programs or data files in a printable format for transportation between computer systems The transportation process can thus be visually monitored and the S records can be more easily edited 1 5 RECORD CONTENT When viewed by the user S records are essentially character strings made of several fields which identify the record type record length memory address code data and checksum Each byte of binary data is encoded as a 2 character hexadecimal number the first character representing the high order 4 bits and the second the low order 4 bit
51. The user stack pointer will also reflect the occurrence of an interrupt To reduce the amount of external circuitry required a Write Enable WE signal line is available via jumper header J16 This signal may be used for the target system RAM write enable signal The WE signal will write protect the target system RAM thereby creating a pseudo ROM The RAM may then only be written via the EVM monitor The user may place this target system RAM anywhere in the map The EVM dual memory map operation is controlled by the user and master reset circuitry A user reset will attempt to place the EVM in the user map while a monitor reset will attempt to place the EVM in the monitor map If both resets occur simultaneously the EVM operation will become undefined If reset to the EVM was allowed by the target system both will attempt to reset into corresponding maps during Power On Reset POR which will cause an EVM operational malfunction to occur For this reason the RESET signal is accessible to the target system via the MCU I O port connectors as an output line only Target system reset circuitry should be removed since the EVM provides the hardware reset signal If different power supplies are used for the EVM and target system a master reset must be issued to reset the target system before debugging may begin Code will not run or trace if it is loaded into location 0000 You must start at location 0001 The host I O port DCD signal is not
52. Transparent Mode command connects the EVM host port to the terminal port which allows direct communication between the terminal and host computer I O between the ports are ignored by the EVM until the exit command CTRL A is entered from the terminal The LOAD command moves data information in S record format see Appendix A from an external host computer to the EVM user pseudo ROM When moving data to the EVM the same data transmitted through the host port is also echoed to the terminal port Stopping a host I O port downloading operation already in progress is accomplished by depressing any alphanumeric key on the terminal keyboard If an incorrect keyboard entry is made during a downloading procedure which causes a terminal lockup condition this lockup condition is removed by depressing any alphanumeric keyboard key The transparent mode of operation is not applicable to the IBM PC to EVM operation Therefore the TM command is not utilized in the IBM PC downloading procedure The following pages provide EXAMPLES and descriptions of how to perform EVM downloading operations in conjunction with an EXORciser and IBM PC host computer systems 3 44 M68HC11EVM D MOTOROLA 3 9 1 EXORciser to EVM OPERATING INSTRUCTIONS To perform the EXORciser to EVM downloading procedure perform observe the following EXAMPLES gt TM lt CR gt lt CR gt EXBUGO9 2 1 MDOS DOSO9 3 05 CTRL A gt LOAD H COPY EXORT LX
53. UUU FOTO 55 55595 5555099 55 55 55 55 55 55 55 99 59 55 UUUUUUUUUUUUUUUU gt BR E032 E03D lt CR gt Set breakpoints Brkpts E032 E03D gt gt G lt CR gt Begin execution of program Brkpt P E032 0050 X F000 55 B 18 C F1 5 5 00 gt P 15 lt CR gt Proceed 21 times within loop Brkpt 032 Y 0065 015 55 18 C F1 SXHI C S 00FF gt MD 50 6F lt CR gt Display mach state after 21st loop 0055 55 55 55 39 99 99 99 99 99 55 55 55 99 99 99 90 UUUUUUUUUUUUUUUU 0060 55 55 55 55 55 55 00 00 00 00 00 00 00 00 00 00 UUUUUU zug a ae gt G lt CR gt Cont execution stop at 2nd brkpt Brkpt P E032 0066 X F016 55 B 18 C F1 SXHI C S 00FF gt NOBR E032 lt CR gt Remove Ist breakpoint Brkpts E03D gt G lt CR gt Cont execution stop at final brkpt Brkpt P EO3D 006 X FO1F 55 B 18 C F4 SXHI Z S 00FF I M68HC11EVM D 3 43 OPERATING INSTRUCTIONS MOTOROLA 39 DOWNLOADING PROCEDURES This portion of text describes the EVM downloading procedures The downloading operation enables the user to transfer information from a host computer to the EVM or target system memory using the LOAD command Specific downloading procedures are described enabling the user to perform downloading operations with an EXORciser and IBM Personal Computer PC host computer systems EXORciser downloading operation is accomplished utilizing the TM and LOAD commands The TM
54. al EEPROM enabled Having the actual EEPROM instead of the pseudo EEPROM at locations B600 B7FF can affect the slave MCU programming operation The user cannot download or perform memory modify operations from locations B600 B7FF unless the EEPROM is disabled and the pseudo EEPROM disable header J11 configured to enable the pseudo EEPROM This is not to say that normal EEPROM programming routines will not work however The following procedure applies to all MC68HC11A1 MCU mask sets This procedure utilizes a spare MC68HC11A1 MCU to reprogram the resident MCU The procedure allows the user to reprogram the CONFIG register 103F from 00 to 0C utilizing a spare MC68HC11A1 MCU Perform this procedure as follows 1 Apply 5 12 12 and ground to the EVM board via connector J5 2 Launch terminal emulation program on the PC Use 8 data bits 1 stop bit and no parity The PC should be connected to EVM through a 25 pin serial cable from the PC COM port to the TERMINAL connector of EVM Press ENTER to synchronize communications Move switches S4 and S5 of the EVM to RESET and OFF respectively Insert the new MCU device into socket U56 see paragraph 3 7 Apply power to the MCU by moving switch S5 from OFF to PWR DX 259 Depress and release the master reset switch S3 Press ENTER to resynchronize You should see the EVMBug prompt and the register display 8 Move switch 54 from RESET to OUT to bring the new
55. amming data residing in the user map is transferred via the EVM resident MCU master to the slave MCU In a similar method by executing a COPY command the contents of the slave MCU installed in either U32 or U56 is copied to the user map pseudo EEPROM ROM or user supplied memory expanded multiplexed mode only Additional functions for checking verifying and erasing slave MCU EEPROM contents are also provided via the CHECK VERF and BULK ERASE commands respectively For additional information pertaining to the EEPROM MCU programming procedures and applicable terminal keyboard commands refer to Chapter 3 4 2 5 1 Programming Algorithm EEPROM MCU programming utilizes the MC68HC11 MCU bootstrap mode of operation to download a program In the bootstrap mode the MCU installed in either U32 or U56 executes a bootstrap loader program which is used to retrieve the slave program which performs the programming operations check copy erase program or verify The EVMbug monitor EPROM contains the programming algorithm instructions This 256 byte program is downloaded into the slave MCU via slave bootstrap loader The slave MCU while operating in the bootstrap mode obtains the program from the EVM MCU master via the Serial Communications Interface SCI Once the slave MCU receives and places the program into internal RAM program control is passed to the first internal RAM location and program execution begins The slave program
56. and abort functions and EEPROM MCU programming functions M68HC11EVM D 1 3 GENERAL INFORMATION MOTOROLA A jumper header is used to select either the MC68HC11AX or MC68HC11EX family MCU device evaluation and programming operations When evaluating or programming a specific MCU the resident MCU socket location U2 must contain the applicable MCU MC68HC11A1FN MC68HC11E1FN When evaluating or programming MC68HC11EX family device a 6264 8K RAM device is installed at socket location U15 This device must be removed when evaluating or programming an MC68HC11AX family device NOTE Throughout this manual AX family MCU device reference indicates either AO Al or A8 Similarly EX family MCU device reference indicates either E9 811E2 1 5 EQUIPMENT REQUIRED Table 1 2 lists the external equipment requirements for EVM operation Table 1 2 External Equipment Requirements External Equipment 5 12 12 power supply Terminal RS 232C compatible Host computer RS 232C compatible 2 Terminal host computer EVM RS 232C cable assembly 1 Target system EVM emulator cable assembly 1 Refer to Chapter 2 for details 2 Optional not required for basic operation 3 Supplied with EVM 1 4 M68HC11EVM D MOTOROLA HARDWARE PREPARATION AND INSTALLATION CHAPTER 2 HARDWARE PREPARATION AND INSTALLATION 21 INTRODUCTION This chapter provides unpacking instructions hardwa
57. ansportation control programs as well as cross assemblers linkers and other file creating or debugging programs utilize only those S records which serve the purpose of the program For specific information on which S records are supported by a particular program the user manual for that program must be consulted NOTE The EVM monitor supports only the S1 and S9 records All data before the first 51 record is ignored Thereafter all records must be S1 type until the S9 record terminates data transfer An S record format module may contain S records of the following types SO header record for each block of S records The code data field may contain any descriptive information identifying the following block of S records The address field is normally zeroes 51 record containing code data and the 2 byte address at which the code data is to reside 52 68 Not applicable to EVM S9 A termination record for a block of S1 records The address field may optionally contain the 2 byte address of the instruction to which control is to be passed If not specified the first entry point specification encountered in the object module input will be used There is no code data field Only one termination record is used for each block of S records Normally only one header record is used although it is possible for multiple header records to occur A 2 M68HC11EVM D MOTOROLA S RECORD INFORMATION A 3 S RECORD CREATION S re
58. as the terminal I O port baud rate Any ASCII character with a logic one in the least significant bit will also perform the same function as the RETURN key just described The input serial format for the EVM terminal I O port must be configured for 8 data bits 1 stop bit no parity and any of the following baud rates 150 300 600 1200 2000 2400 4800 9600 or 19 2K The terminal Cathode Ray Tube CRT displays the following message after the terminal keyboard carriage return CR key is depressed EVMbugll Rev P XXXX Y XXXX X XXXX A XX B XX 00 SX I S XXXX gt where X is a revision of the software or an unknown register state Condition code register CCR SXHINZVC bits are as follows Stop disable bit X interrupt mask bit Half carry bit interrupt mask bit Negative bit Zero bit Overflow bit lt N Z II Carry borrow bit M68HC11EVM D 3 5 OPERATING INSTRUCTIONS MOTOROLA Status of the CCR bits are displayed as follows When all CCR bits are set logic 1 bits are displayed as follows P XXXX Y XXXX X XXXX C FF SXHINZVC S XXXX When all CCR bits are cleared logic 0 bits are displayed as follows P XXXX Y XXXX X XXXX B XX C200 S XXXX When a specific bit is set D bits are displayed as follows P XXXX Y XXXX X XXXX A XX 10 I S XXXX When specific bits are set H L an
59. cord format programs may be produced by several dump utilities debuggers or several cross assemblers or cross linkers Several programs are available for downloading a file in S record format from a host system to an 8 bit or 16 bit microprocessor based system 4 S RECORD EXAMPLE Shown below is a typical S record format module as printed or displayed 500600004844521 1130000285F245F2212226A000424290008237C2A 511300100002000800082629001853812341001813 5113002041 900084 422343001823420008244952 5107003000144 492 S9030000FC The above module consists of SO header record four 51 code data records and an 59 termination record The SO header record is comprised of the following character pairs 50 06 00 00 48 44 52 1B S record type 50 indicating a header record Hexadecimal 06 decimal 6 indicating six character pairs or ASCII bytes follow Four character 2 byte address field zeroes ASCII H D and R Checksum of S0 record The first 51 code data record is explained as follows S1 13 00 S record type 51 indicating a code data record to be loaded verified at a 2 byte address Hexadecimal 13 decimal 19 indicating 19 character pairs representing 19 bytes of binary data follow Four character 2 byte address field hexadecimal address 0000 indicates location where the following data is to be loaded M68HC11EVM D A 3 S
60. ctions are as follows e BREAK Abort command CTRL A Default transparent mode exit character CTRL H Backspace CTRL W Freeze screen CTRL X Cancel command line e RETURN Enter command NOTE When using the control key with a specialized command such as CTRL X the CTRL key is depressed and held then the X key is depressed Both keys are then released During memory display output to terminal CTRL W delays the output until another character is entered Command line input examples in this chapter are amplified with the following Underscore entries are user entered on the terminal keyboard Command line input is entered when the keyboard RETURN key is depressed Typical example of this explanation is as follows gt MD 000 F100 3 8 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS Table 3 2 Monitor EVMbug Commands COMMAND ASM lt address gt BF lt addr1 gt lt addr2 gt lt data gt BR lt address gt BULK lt 103F gt CHCK lt addr1 gt lt addr2 gt COPY lt addr1 gt lt addr2 gt lt addr3 gt ERASE lt addr1 gt lt addr2 gt G lt address gt HELP LOAD lt port gt lt text gt MD lt addr1 gt lt addr2 gt MM lt address gt NOBR lt address gt P lt count gt PROG lt addr1 gt lt addr2 gt lt data gt RD RM SPEED lt baud rate gt T lt count gt TM lt exit character gt VERF lt addr1 gt lt addr2 gt
61. d Z bits are displayed as follows P XXXX Y XXXX X XXXX B XX C234 HI Z2 S XXXX After initialization or return of control to the monitor the terminal CRT displays the prompt gt and waits for a response If an invalid response is entered the terminal CRT displays ILLEGAL INSUFFICIENT ENTRY followed by the prompt gt The EVM waits for a command line input from the user terminal When a proper command is entered the operation continues in one of two basic modes If the command causes execution of a user program the monitor may or may not be reentered depending upon the desire of the user For the alternate case the command is executed under the control of the monitor and the system returns to a waiting condition after the command is completed During command execution additional user input may be required depending on the command function The user can use any of the commands supported by the monitor A standard input routine controls the EVM operation while the user types a command line Command processing begins only after the command line has been terminated by depressing the keyboard carriage return CR key 3 6 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS 3 5 COMMAND LINE FORMAT The command line format is as follows gt lt command gt lt parameters gt RETURN where gt EVMbug monitor prompt command Command mnemonic parameters Expression or address CR
62. dshake lines are cross coupled is required NOTE IBM PC to EVM interconnection is accomplished by one RS 232C cable assembly This cable is connected to the EVM terminal I O port connector J6 for downloading operations To perform the IBM PC to EVM downloading procedure perform observe the following EXAMPLE DESCRIPTION C gt KERMIT lt CR gt IBM PC prompt Enter Kermit program IBM PC Kermit MS Type for help Kermit MS SET BAUD 9600 CR Set IBM PC baud rate Kermit MS CONNECT CR Connect IBM PC to EVM Connecting to host type Control C to return to PC CR gt LOAD T lt CR gt EVM download command via terminal port entered CTRL Kermit MS PUSH CR The IBM Personal Computer DOS Version X XX C Copyright IBM Corp 1981 1982 1983 C gt TYPE File Name gt COM1 lt CR gt Motorola S record file name C gt EXIT lt CR gt S record downloading completed Kermit MS CONNECT CR Return to EVM monitor program gt CTRL 1 Kermit MS gt EXIT lt CR gt Exit Kermit program 3 46 M68HC11EVM D MOTOROLA FUNCTIONAL DESCRIPTION CHAPTER 4 FUNCTIONAL DESCRIPTION 41 INTRODUCTION This chapter provides an overall description of the EVM This description is supported by a block diagram Figure 4 1 that illustrates the interconnection of the EVM circuits and I O ports and a memory map diagram Figure 4 2 42 EVM DESCRIPTION The EVM is designed to
63. e designations J2 and J4 are not used Connector J5 interconnects an external power supply to the EVM Connectors J6 and J7 are also provided to facilitate interconnection of a terminal and a host computer respectively Pin assignments for the above connectors J1 J3 and JS through J7 are identified in Tables 5 1 through 5 5 respectively Connector signals are identified by pin number signal mnemonic and signal name and description M68HC11EVM D 5 1 SUPPORT INFORMATION MOTOROLA Table 5 1 Single Chip Connector J1 Pin Assignments Pin Mnemonic Description 1 GND GROUND 2 8 26 53 60 NC Not connected 3 LIR LOAD INSTRUCTION REGISTER An active low output line used to signify the first E clock cycle of each instruction cycle and remains low for the duration of cycle opcode fetch 4 STRA STROBE Bi directional control line used to latch data into ports B and C 5 BE BUFFERED ENABLE An output control line used for timing reference 6 STRB STROBE An output control line used to control data into ports B and C 7 EXTAL EXTAL MCU clock input line 9 16 PCO PC7 PORT bits 0 7 General purpose input output I O lines 17 RESET RESET An active low bi directional control line used to initialize the MCU 18 XIRQ X INTERRUPT REQUEST An active low input line used to request MCU asynchronous non maskable interrupts 19 IRQ INTERRUPT REQUEST An active low input line used to reque
64. e line driver receiver type devices HC244 These devices provide ports high order address output lines A8 A15 and multiplexed output address and bidirectional data lines A DO A D7 of the EVM MCU during the expanded multiplexed evaluation operation The balance of the ports A D and E are provided directly by the EVM MCU device Refer to Chapter 5 for additional port information Interconnection for the expanded multiplexed mode of operation is accomplished via the EXPANDED MULTIPLEXED connector J3 and the target system emulation cable assembly M68HC11EVM D 4 9 FUNCTIONAL DESCRIPTION MOTOROLA 4 2 5 MCU Programmer The EEPROM MCU programmer accommodates and programs two types of MC68HC11 MCU device packages The first device package is a 48 pin Dual In line Package DIP and the second device package is a 52 lead Plastic Leaded Chip Carrier PLCC package Programming socket located at U32 is used for 48 pin DIP package and the socket located at U56 is used for the 52 lead PLCC package Programming of a slave EEPROM MCU device installed in either U32 or U56 is controlled by the programmer reset switch 54 and programmer power switch S5 A master reset via master reset switch 3 must be issued prior to the placement of switches S5 and S4 to the PWR and OUT positions respectively This initializes port D to an input mode as required by the programming firmware When the PROG command is executed progr
65. ed to modify user pseudo ROM RAM The opcode and operand are fetched from the monitor map memory maps are switched for one cycle and the read or write cycle is executed in user space Memory maps are then automatically switched back to the monitor map on the next cycle Permanent map switching is initiated by command from the monitor or by the user reset switch S2 The return from interrupt RTI opcode is fetched from the monitor map memory maps are switched and the user register contents are fetched from the user stack The Program Counter PC content is fetched from the user stack and execution proceeds from the current PC value When the user reset switch S2 is activated pressed the MCU and user I O ports are reset memory maps are switched to the user map and the reset vector is fetched from the user map by the MCU Breakpoints are ignored during this operation Execution of user code continues until a software interrupt SWI is decoded on the data bus during a Load Instruction Register LIR cycle SWI occurs when either a breakpoint is detected or the abort switch S1 is activated The memory map is switched back to the monitor map after the user register contents are saved on the user stack An SWI which occurs when no breakpoint is set or when the abort switch is not activated does not cause memory map switching to take place This allows user SWIs to be executed in real time The abort switch when activated forces an
66. elease the master reset switch S3 Press a carriage return lt CR gt on your keyboard If the board and the PC are communicating correctly you will see the EVMBug prompt and the register display Move switch S4 from RESET to OUT to bring the MCU in the programming socket out of reset in bootstrap mode Enter the applicable erase command BULK or ERASE via the terminal keyboard After entering the erase command the EVM erases the EEPROM MCU contents within the specified start and ending address Remove power to the programming socket by moving switch 54 to RESET and switch 55 to OFF Remove the programmed MCU from the programming socket M68HC11EVM D 3 35 OPERATING INSTRUCTIONS MOTOROLA 3 7 3 Programming EEPROM MCU programming is accomplished by the use of the PROG command This command allows the user to program the MCU internal EEPROM To perform the EEPROM MCU programming procedure perform the following 3 36 1 2 10 Apply power to the EVM board via connector J5 Launch terminal emulation software on the PC and install a 25 pin straight serial cable from your PC to the EVM 9600 baud 8 data bits stop bit and no parity Press a carriage return CR to synchronize communications The EVMBug prompt should appear in addition to the register display If not return to step 2 ensuring that power cable protocol and COM port are all correct Enter the LOAD T command to download your pr
67. erating the target system in the single chip mode the MCU MODA LIR pin would normally be connected to ground and the MODB pin would normally be connected to 5 Vdc When operating the target system in the expanded multiplexed mode the MODB pin would normally be connected to 5 Vdc and the MODA LIR pin would normally be connected to a pullup resistor The mode of operation of the EVM is established by the use of the MCU I O port connectors Connector J1 is used for the single chip mode of operation and connector J3 is used for the expanded multiplexed mode of operation The LIR pin pin 3 of both connectors J1 and J3 are buffered output signals used for opcode fetch detection M68HC11EVM D 2 13 HARDWARE PREPARATION AND INSTALLATION GND EXTAL PCO PC2 PC4 PC6 RESET 2 14 IRQ PD1 PD3 PD5 PA7 PA5 PA3 PA1 PB7 PB5 PB3 PB1 PEO PE1 PE2 PES VRL NC NC NC NC SINGLE CHIP NC STRA STRB NC PC1 PC3 PC5 PC7 XIRQ PDO PD2 PD4 NC PA6 PA4 PA2 PAO PB6 PB4 PB2 PBO PE4 5 PE6 PE7 VRH NC NC NC NC GND EXTAL A DO A D2 A D4 A D6 RESET IRQ PD1 PD5 PA7 PAS PA3 PA1 A15 A13 A11 A9 PEO PE1 PE2 PES VRL NC NC NC NC NC BAS BRW NC A D1 A D3 A D5 A D XIRQ PDO PD2 PD4 NC PA6 PA4 PA2 PAO A14 12 4 PE5 PE6 PE7 VRH NC NC NC NC EXPANDED MULTIPLEXED M68HC11EVM D HA
68. essful When programming the configuration register a MC68HC11 DOES NOT VERIFY message is always displayed on the terminal CRT This is because the configuration register cannot be read without resetting the MCU To check proper programming of the configuration register first reset the MCU via the programmer reset switch S4 and then copy the location into RAM The configuration register is then verified visually gt PROG 103F 103F OE lt CR gt 103F MC68HC11 DOES NOT VERIFY gt 3 26 Program hexadecimal data value 0 into MCU configuration register at location 103F Message indicates programming sequence did not verify correctly M68HC11EVM D MOTOROLA RD 3 6 16 Register Display RD The RD command displays the MCU register contents OPERATING INSTRUCTIONS Register Display COMMAND FORMAT DESCRIPTION RD Contents of the following registers are displayed P Program counter index register X X index register A accumulator accumulator C Condition codes S Stack pointer EXAMPLE gt RD lt CR gt Regs Y FFFF X FFFF A FF B FF C FF SXHINZVC S 00FF gt DESCRIPTION Condition code register CCR SXHINZVC bits are displayed as follows All Ali CCI R bits set logic 1 R bits cleared logic 0 Specific CCR bit set I Specific CCR bits set H I M68HC11EVM D and 7 C FF C 00 C 10 C 3
69. eviously assembled S records to the EVM board The EVM board is now waiting for your terminal emulator to send the S record file In IASM11 use F6 key to send a file to the EVM IASM11 prompts for a file name Type the file name and press RETURN You should see the S records on your screen as they are downloaded The last line of all your S records should be 59030000 Press a carriage return CR and ignore the Illegal Command Error You may visually verify the download by entering the MD command followed by the address you wish to see For example type MD E000 to see the memory at 000 5 Move switches 54 to RESET 55 to OFF 6 Insert the MCU to be programmed in U32 056 Follow the orientation and placement information shown in paragraph 3 7 Apply power to the MCU by moving switch 55 from OFF to PWR Depress and release the master reset switch S3 Press a carriage return lt CR gt on your keyboard If the board and the PC are communicating correctly you will see the EVMBug prompt and the register display Move switch 54 from RESET to OUT to bring the MCU in the programming socket out of reset in bootstrap mode Enter PROG command via the terminal keyboard After entering the PROG command the EVM checks the EEPROM MCU contents within the specified start and ending address If any EEPROM MCU locations are not empty the EVM monitor prompts the user with a message to either continue the progra
70. g P o ECO z em DHT Fo iT y ac ot sc J J ucc BC Ec 1 i 8 1 B RL ee 8 Figure 5 1 EVM Parts Location Diagram M68HC11EVM D 5 13 MOTOROLA SUPPORT INFORMATION ZL dO LHS 9 z 40123130 39Y1104 1 rre sen 92 138005 9931 25 sn 142 un No 4 B L i n En I oz a SNG sn 2 HO1V1IN3HVdSNYHL pm ven 4 ten 17214173 ENS isn zn n POHL 1 927 55 VERVON ai vt z L DZEZ SH 2452 1 13 4 512124 gen or 4 um vere an 2 2 4 L sen 82 WOHd3 YOLINOW an 23 LI x ben 82 3 NOH 5 929 sin 4 2127223 92 143 vidi
71. grams from a remote host computer via a modem may also be performed The EVM evaluates both the single chip and expanded multiplexed modes of operation MCU port connectors labeled SINGLE CHIP and EXPANDED MULTIPLEXED facilitate interconnection of the EVM to the target system for evaluation purposes Generating executing and debugging target system MCU code is accomplished in either mode MCU code may be generated using the resident one line assembler disassembler or may be downloaded to the user program RAM through the host or terminal port connectors User code may then be executed using various debugging commands in the monitor User code may also be executed using the user reset switch MCU device ROM is simulated by write protecting user program RAM during program execution Independent 150 19 2K baud rate selection capabilities are provided for the terminal and host I O ports An auto baud rate selection is provided for the terminal port and a software selectable baud rate selection is provided for the host port Jumper selectable options such as evaluation mode and clock input selection are provided on the EVM as well as an EEPROM MCU programmer The EEPROM MCU programmer under monitor firmware control enables the user to check erase program verify and copy the contents of either 48 pin Dual In line Package DIP or 52 lead Plastic Leaded Chip Carrier PLCC package EEPROM MCU devices Switches allow user control of the reset
72. h E1FF 3 16 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS ERASE Erase Bytes 3 6 7 Erase Bytes ERASE lt starting address gt lt ending address gt The ERASE command allows the user to erase individual bytes of the programmed MCU internal EEPROM Prior to entering this command the user must follow the EEPROM erasing procedure as described in paragraph 3 7 2 This procedure removes the reset condition applied to the MCU and enables the MCU EEPROM to be erased The ERASE command is now entered via the terminal keyboard to erase the MCU EEPROM contents No messages will be displayed on the terminal CRT upon completion of the erase operation only the EVMbug prompt is displayed MC68HC11A0 and 8 devices byte erasing the configuration CONFIG register 103F cannot be performed because the CONFIG register is bulk erase only EXAMPLES DESCRIPTION gt ERASE B600 B602 lt CR gt Erase MCU EEPROM contents B600 thru B602 gt Prompt indicates erase sequence completed gt ERASE B600 B602 lt CR gt Erase MCU EEPROM locations B600 thru B602 M68HC11 NOT BLANK Message indicates data stored in specified gt EEPROM locations is not blank M68HC11EVM D 3 17 OPERATING INSTRUCTIONS MOTOROLA G Go 3 6 8 Go G lt address gt where address starting program execution address The G command you initiate user program execution free run in real time The user may optionally specify a starti
73. hat valid memory exists No operation is performed if address1 is greater than address2 If an invalid address is specified the invalid address and the message BAD MEMORY is displayed on the terminal CRT If a block fill of an invalid memory sector is attempted the monitor will activate the audible alarm for every byte mismatched To exit this operation the user must depress the keyboard BREAK key EXAMPLES DESCRIPTION gt BF F000 F100 FF lt CR gt Fill each byte of memory from F000 through F100 with data pattern FF gt BF F000 F000 0 lt gt Set location F000 to 0 3 12 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS BR Breakpoint Set 3 6 3 Breakpoint Set BR lt address gt The BR command sets the address into the breakpoint address table During execution of the user program a debug halt occurs immediately preceding the execution of any instruction address in the breakpoint table The user should not place a breakpoint on a software interrupt SWI instruction because this is the instruction that the monitor uses to breakpoint single step a user program The user may use the SWI instruction in the user program A maximum of five breakpoints may be set After setting the breakpoint the current breakpoint addresses if any are displayed COMMAND FORMATS DESCRIPTION BR Display all current breakpoints BR lt address gt Set breakpoint BR lt address1 gt address2
74. he Illegal Command Error You may visually verify the download by entering the MD command followed by the address you wish to see For example type E000 to see the memory at 000 5 Move switches S4 to RESET 55 to OFF 10 11 12 Insert the MCU to be programmed in 032 056 Follow the orientation and placement information shown in paragraph 3 7 Apply power to the MCU by moving switch S5 from OFF to PWR Depress and release the master reset switch S3 Press a carriage return lt CR gt on your keyboard If the board and the PC are communicating correctly you will see the EVMBug prompt and the register display Move switch S4 from RESET to OUT to bring the MCU in the programming socket out of reset in bootstrap mode Enter VERF command via the terminal keyboard to verify the contents of the MCU EEPROM to the EVM user pseudo EEPROM If any differences between the MCU EEPROM and the user pseudo EEPROM exist an error message will be displayed on the terminal CRT Remove power to the programming socket by moving switch 54 to RESET and switch 55 to OFF Remove the programmed MCU from the programming socket M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS 3 7 6 Reprogramming MCU Configuration Register Reprogramming the EVM resident MC68HC11A1 MCU CONFIG register allows proper slave MCU EEPROM programming operations The EVM contains a resident MC68HC11A1 MCU emulating processor with the intern
75. ial enable J18 e AX EX select J20 Reference designations J2 J4 J8 and J17 are not used 2 3 1 Evaluation Mode Select Headers J9 and J19 Jumper headers J9 and J19 are used to select either the expanded multiplexed or single chip mode of operation Configuration for the jumper headers are as follows Jumper Mode of Operation Header Placement Single Chip 99 1 2 919 2 3 Expanded Multiplexed 99 J19 2 3 1 2 The EVM is shipped factory configured for the single chip mode of operation as shown below 99 J19 069 2 28 2 3 2 2 M68HC11EVM D HARDWARE PREPARATION AND INSTALLATION MOTOROLA ss 1 H31ndWO2 160 1 TVNIAH31 Ozez Su gt V ddA 9625260 9sn S een 318VN3 a18vN3 819 103125 oer GvaT zs 133208 ONIWNYHDOHd X3 XV LLOHBSON HOLIMS EET 413534 831SVW 5 103135 X ms 134208 1N3 IS3H 318vsig oanasd 318vsia HOLIMS 0 oanasa wasn ur 123135 aaow H NOUVmNA3 73
76. ion at which to start display modify The MM command allows the user to examine modify contents in user memory at specified locations in an interactive manner Once entered the MM command has several submodes of operation that allow modification and verification of data The following terminators are recognized lt data gt lt CR gt data CR lt data gt lt CR gt lt data gt lt CR gt Update location and sequence forward Update location and sequence backward Update location and reopen same location Update location and terminate An entry of only lt CR gt terminates the memory modify interactive operation CTRL X may be used to cancel any input line the monitor remains in this command If an invalid address is specified the invalid address and the message BAD MEMORY is displayed on the terminal CRT EXAMPLES gt MM F800 lt CR gt F800 00 gt AA lt CR gt F800 AA gt 801 11 gt 447 lt gt F800 AA gt F801 44 gt 33 lt CR gt gt gt MM F802 lt CR gt F802 22 gt 55 lt CR gt F803 AA gt lt CR gt gt 3 22 DESCRIPTION Display memory location F800 Change data at F800 amp reexamine location Change data at F801 amp backup one location Change data at F801 and terminate MM operation Display memory location F802 Do not change data at F803 Terminate MM operation M68HC11EVM D MOTOROLA NOBR 3 6 13 Remove Breakpoint NOBR lt address gt
77. ith the user through predefined commands that are entered from a terminal These commands perform functions such as display or modify memory display or modify MCU internal registers program execution under various levels of control control access to various I O peripherals connected to the EVM and control programming and reading of MCU EEPROM M68HC11EVM D 3 1 OPERATING INSTRUCTIONS MOTOROLA 3 2 CONTROL SWITCHES The EVM contains five switches that allow the user to control specific functions Switches S1 through 53 control the reset and abort functions Switches 54 and 55 control the EEPROM MCU programming functions Table 3 1 identifies these switches by name description and function 3 2 Table 3 1 EVM Control Switches Name Description And Function ABORT Momentary action pushbutton switch when pressed returns switch 51 EVM operation to the monitor map from the user map assuming proper operation of user code If MCU gets lost in the user map the abort is useless and a master reset must be issued The abort function has no effect when operating in the monitor map USER RESET Momentary action pushbutton switch when pressed resets switch S2 EVM MCU and user and enables map switching to the user map This switch is used as a map switch for execution of user code from the user reset vector MASTER RESET Momentary action pushbutton switch when pressed resets switch S3
78. itor Map Ate atc 4 5 42 22 User Map Area iie dan siad e IIR Y EA VUE YE d 4 6 4222354 EX Monitor Map Ated MM DE Rd E 4 6 ADD A n EX User Map ATCA ase eia Most ap duce a dice pine e telae t on piede vds 4 6 4 2 3 Terminal and Host Computer YO oerte eee atas een esa veh 4 0 2234 MCU Extension IO POT 55 eum 4 9 4 2 5 EEPROM MCU PEOSERIDIBOE Ode au n DEUM e 4 10 4 2 5 1 Programming sacro po eras eer e bna RO PURSE 4 10 25025 PrO Sra MINE debtor 4 11 CHAPTER 5 SUPPORT INFORMATION Sal INTRODUCTION er RC 5 1 5 2 CONNECTOR SIGNAL DESCRIPTIONS tette eius Re eei p En Verde rr tnb YE dede 5 1 9 3 PARTS LIST bna tub coup aan ete bo ders rope depu dus 5 7 D 4 DIAGRAMS ss sp a Mas a a A aS 5 12 M68HC11EVM D vii CONTENTS MOTOROLA APPENDIX S RECORD INFORMATION A S RECORD CONTEN Q a ptu sccm era 1 2 S RBCORD TY PES iei ete aan 2 Aso S RECORD CREA FION u Sauna pred rav ora Ua eam motte A 3 AA SsRECORDEXAMPDB A 3 FIGURES 2 1 EVM Connector Switch and Jumper Header Location Diagram 2 3 2 2 Terminal
79. mains in the assembler mode If an invalid address is specified the invalid address and the message BAD MEMORY is displayed on the terminal CRT EXAMPLES DESCRIPTION gt ASM F800 lt CR gt F800 01 NOP gt LDAA 55 lt CR gt Immediate mode addressing F800 86 55 LDAA 55 requires before operand F802 00 TEST gt STAA CO CR Direct mode addressing may F802 97 CO STAA CO have but not necessary F804 00 TEST gt LDS 0 X CR Index mode if not offset X F804 AE 00 LDS 00 X will be accepted F806 01 NOP gt BRA F800 lt CR gt Branch offsets calculated F806 20 F8 BRA F800 automatically address required as conditional branch operand F808 00 TEST gt Assembler operation terminated Refer to the end of this chapter for additional operational information pertaining to the use of the assembler disassembler M68HC11EVM D 3 11 OPERATING INSTRUCTIONS MOTOROLA BF Block Fill 3 6 2 Block Fill BF lt addressl gt lt address2 gt lt data gt where lt address1 gt Lower limit for fill operation lt address2 gt Upper limit for fill operation data pattern hexadecimal value The BF command allows the user to repeat a specific pattern throughout a determined user memory range Caution should be used when modifying locations which are internal to the MC68HC11 MCU device i e port addresses timer registers etc The monitor examines each modified user memory location to insure t
80. mming sequence or exit the PROG command A RETURN entry continues with the programming operation while entering any other character causes you to exit the PROG command subroutine This allows changes to be made to already programmed devices During the programming operation the terminal CRT display is updated with each address being programmed Upon completion of the programming sequence the sequence is automatically verified and the status is displayed on the terminal CRT M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS 11 Remove power to the programming socket by moving switch S4 to RESET and switch 55 to OFF 12 Remove the programmed MCU from the programming socket 3 7 4 Copying EEPROM MCU content copying is accomplished by the use of the COPY command This command allows the user to copy the contents of the programmed MCU internal EEPROM into the EVM user map pseudo or user supplied memory expanded multiplexed mode only To perform the EEPROM MCU copying procedure perform the following 1 Apply power to the EVM board via connector J5 2 Launch your terminal emulation software on the PC and install a 25 pin straight serial cable from your PC to the EVM 9600 baud 8 data bits stop bit and no parity 3 Press a carriage return lt CR gt to synchronize communications The EVMBug prompt should appear in addition to the register display If not return to step 2 ensuring that power cable p
81. monitors the SCI receive line for a 5 byte data block This data block contains a 2 byte start address 2 byte end address and a 1 byte command BULK CHCK COPY ERASE PROG or VERF Once the command is received by the slave MCU depending upon the command the program is executed On completion of the program the slave MCU returns to the bootstrap loader program 4 10 M68HC11EVM D MOTOROLA FUNCTIONAL DESCRIPTION The master loads the slave bootstrap program prior to every program execution Bootstrap downloading takes approximately 10 seconds for a 1 MHz clock operation and five seconds for a 2MHz operation During this time interval no terminal CRT display movement is detected 4 2 5 2 Programming EVM EEPROM MCU programming is performed with the use of two token or three token PROG commands Two token command e g PROG B600 B7FF is used to program the slave MCU EEPROM or EPROM at specified locations Three token command e g PROG B600 B7FF AA is used to block fill program the slave MCU EEPROM or EPROM locations with a specified hexidecimal value SAA This command is also used to program the slave MCU configuration register located in the internal 64 byte register block location 103F Two token PROG command e g PROG B600 B7FF is used when programming data is downloaded from the user pseudo EEPROM via the master MCU This type of command consists of a starting address B600 and ending address B7FF locations of the E
82. ng address gt ROG lt starting address gt lt ending address gt lt data gt tg NOTE Third token data byte should be no greater than 8 bits e g AA 00 If a 16 bit data byte is entered the most significant byte will be truncated e g for FOAA FO will be ignored The PROG command is used to program the MCU internal EEPROM Two token PROG command is used when programming data is downloaded from the user pseudo EEPROM Three token PROG command is used to block fill specific memory locations with an assigned hexadecimal data value This command is also used to program the MCU configuration register located at 103F Prior to entering this command the user must follow the EEPROM MCU programming procedure as described in paragraphs 3 7 and 3 7 3 EEPROM MCU programming cautions and general warnings must be followed The procedures remove the reset condition applied to the MCU and enable the MCU EEPROM to be programmed The PROG command is now entered via the terminal keyboard to program the MCU internal EEPROM After entering the PROG command the EVM checks the EEPROM contents within the specified start and ending address If any EEPROM locations are not empty the EVM monitor will prompt the user with a message to either continue the programming sequence or exit the PROG command A carriage return CR entry restarts the programming operation while entering any other character terminates the PROG command Thi
83. ng address where execution is to begin Execution starts at the current Program Counter PC address location unless a starting address is specified Program execution continues until a breakpoint is encountered or the EVM ABORT switch S1 is activated pressed or the MASTER RESET switch 53 is pressed Before executing a G command the user must insure that the Stack Pointer SP is preset to a valid RAM address This is accomplished by the use of the RM command If an invalid address is specified and the SP is preset to an invalid RAM address the G command entry is aborted the invalid address and the message BAD MEMORY is displayed on the terminal CRT EXAMPLES DESCRIPTION gt G lt CR gt Go to user map and begin program execution at current PC address location gt G 000 lt gt Go to user map and begin program execution at PC address location F000 gt G 000 lt gt Message after G command indicates SP register not XXXX BAD MEMORY preset to valid RAM address XXXX BAD MEMORY STACK POINTER SET TO BAD MEMORY LOCATION gt gt G lt CR gt EVMbug prompt not present indicating loss of EVMbug monitor control Master reset switch 53 used to restore EVMbug monitor control if invalid SP address is used or no breakpoints were preset prior to the G command entry 3 18 M68HC11EVM D OPERATING INSTRUCTIONS Help The HELP command enables the user available EVM command informa
84. ng sequence was successful gt VERF B600 B7FF EOO00 CR Verify MCU EEPROM locations B600 thru B7FF MC68HC11 DOES NOT VERIFY against user map E000 through gt Message indicates verifying sequence did not verify correctly 3 32 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS 3 7 EEPROM OR EPROM MCU PROGRAMMING PROCEDURES When performing EEPROM or EPROM MCU programming procedures the user must be aware of the following cautions and general warnings limitations notes to prevent damage to the EEPROM or EPROM MCU device being programmed NOTES EVM must be disconnected from target system equipment when performing EEPROM MCU programming procedures Excessive programming in the same location will cause data degradation of adjacent locations if the location is not erased first During EEPROM or EPROM MCU programming operations check copy erase program and verify the EVM MCU must be connected to the on board 8 0 MHz crystal External clock operation is prohibited during EEPROM or EPROM MCU programming operations When required the 52 lead PLCC MC68HC11 EEPROM MCU is inserted right side up in programming socket location U56 as shown below NOTCH 7 47 46 20 34 21 33 52 lead PLCC MC68HC11 EEPROM MCU 056 Installation The following paragraphs describe the EEPROM MCU programming procedures Once any of the commands BULK CHCK COPY ERASE PROG or VERF are initiated the user need not repeat
85. ogic one 1 therefore the MCU 512 byte internal EEPROM B600 B7FF is selected Refer to Chapter 3 paragraph 3 7 6 for additional MCU CONFIG register EEON bit programming information When the MCU CONFIG register EEON bit is programmed to a logic zero 0 jumper header J11 is used to disable the EVM 512 byte pseudo EEPROM RAM The EVM is factory configured and shipped with the fabricated jumper installed on pins 1 and 2 as shown below disable the pseudo EEPROM remove jumper from pins 1 and 2 J11 11 2 4 M68HC11EVM D MOTOROLA HARDWARE PREPARATION AND INSTALLATION 2 3 4 Clock Input Select Headers J12 and J13 Jumper headers J12 and J13 are used to select either internal or external clock source to be used by the EVM The internal clock source is a 8 MHz crystal The EVM is factory configured and shipped with the clock input selected to internal 8 MHz clock operation This is accomplished by the installation of fabricated jumpers on both jumper headers J12 and J13 as shown below To select an external clock source remove jumper from jumper header J12 pins 2 and 3 and reinstall jumper on pins 1 and 2 Remove jumper from jumper header J13 pins 1 and 2 J12 J13 EXTERNAL 3 INTERNAL When the external clock source is selected the user supplies an external clock on the EXTAL pin pin 7 of either the SINGLE CHIP connector J1 or the EXPANDED MULTIPLEXED connector J3 If 2 MHz operation is desired the user
86. or 8 zs 18 0 8 zn HOLDANNOD 4303 09 HO123NNOO 1 300W Nid 09 Figure 2 1 EVM Connector Switch and Jumper Header Location Diagram 2 3 M68HC11EVM D HARDWARE PREPARATION AND INSTALLATION MOTOROLA 2 3 2 Pseudo ROM Disable Header J10 When evaluating the MC68HC11AX MCU in the expanded multiplexed mode of operation the EVM user pseudo ROM E000 FFFF may be enable disable using jumper header J10 The EVM is factory configured and shipped with the pseudo ROM enabled a jumper installed on jumper header J10 To disable the pseudo ROM remove jumper from pins 1 and 2 J10 11 4 When evaluating the MC68HC11EX MCU in the expanded multiplexed mode of operation the EVM user pseudo ROM 2 E000 FFFF may be enable disable using jumper header 710 User pseudo ROM 1 C000 SDFFT is not affected by this jumper header To access addresses C000 SDFFF in the user s target system you must disable pseudo ROM 1 To disable pseudo ROM install a jumper on 0 pins 1 and 2 and remove the 6264 device installed at location U15 2 3 3 Pseudo EEPROM Disable Header J11 EVM pseudo EEPROM B600 B7FF is only available when the MCU CONFIG register EEON bit is programmed to a logic zero 0 The EVM is shipped with the EEON bit programmed to a l
87. or labels Assembler input must have exactly one space between the mnemonic and the operand There must be no space between the operand and the index specification X except in the case of indexed no offset Assembler input must be terminated by a carriage return No comments etc are allowed after the instruction input Examples are gt LDAA 0 gt STAA 10 gt ASLD gt CMPA 200 After each new assembler input line the new line is disassembled for the user before stepping to the new instruction The new line may assemble to a different number of bytes than the previous one Each of the instruction pairs Arithmetic Shift Left ASL Logical Shift Left LSL have the same opcode so disassembly always displays the ASL mnemonic Similarly for Branch if High or Same BHS Branch if Carry Clear BCC mnemonics disassembly displays the BCC mnemonic For Branch if Lower BLO Branch if Carry Set BCS mnemonics disassembly displays the BCS mnemonic Branch address offsets are automatically calculated by the assembler thus the address is inputted as the operand rather than an offset value 3 10 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS ASM Assembler Disassembler The assembler is terminated by entering a period followed by a carriage return as the only entry on the command input line Entering a carriage return alone on an input line steps to the next instruction Entering CTRL X cancels an input line The monitor re
88. r EVM Parts oet oppose eoe anf mec eL op 5 7 viii M68HC11EVM D MOTOROLA GENERAL INFORMATION CHAPTER 1 GENERAL INFORMATION 11 INTRODUCTION This manual provides general information hardware preparation installation instructions operating instructions functional description and support information for the M68HC11EVM Evaluation Module hereafter referred to as EVM Appendix A contains EVM downloading S record information NOTE Throughout this manual AX family MCU device reference indicates either AO Al or A8 Similarly EX family MCU device reference indicates either EO E9 811E2 12 FEATURES EVM features include Economical means of evaluating target systems incorporating M68HC11 AX and or EX HCMOS MCU family devices Monitor debugger firmware One line assembler disassembler Host computer download capability Dual 64K byte memory maps 16K byte monitor EPROM 8K 16K byte user pseudo ROM EEPROM MCU programmer MCU single chip expanded multiplexed mode extension I O ports e RS 232C terminal and host computer I O ports M68HC11EVM D 1 1 GENERAL INFORMATION MOTOROLA 13 SPECIFICATIONS Table 1 1 lists the EVM specifications Table 1 1 EVM Specifications Characteristics Specifications Clock Internal 2 MHz bus operation 8 MHz crystal controlled divided by four External 0 to 8 4
89. re preparation and installation instructions for the EVM 22 UNPACKING INSTRUCTIONS NOTE If shipping carton is damaged upon receipt request carrier s agent be present during unpacking and inspection of the EVM Unpack EVM from shipping carton Refer to packing list and verify that all items are present Save packing material for storing or reshipping the EVM 23 HARDWARE PREPARATION This portion of text describes the inspection preparation of EVM components prior to target system installation This description will ensure the user that the EVM components are properly configured for target system operation The EVM has been factory tested and is shipped with factory installed jumpers EVM should be inspected prepared for jumper placements prior to target system installation Figure 2 1 illustrates the EVM connector switch and jumper header locations M68HC11EVM D 24 HARDWARE PREPARATION AND INSTALLATION MOTOROLA Connectors J1 J3 and J5 through J7 facilitate interconnection of external equipment to the EVM Switches S1 through S5 provide user control of the EVM Refer to Chapter 3 for the switch descriptions Jumper header locations J9 through J16 and J18 through J20 provide the following selection capabilities e Evaluation mode select 79 119 e Pseudo ROM disable 110 e Pseudo EEPROM disable J11 Clock input select J12 and J13 e RTS and CTS signal enable J14 and J15 e Write enable J16 e Ser
90. ress offsets are automatically calculated by the assembler thus the address is inputted as the operand rather than an offset value The assembler is terminated by entering a period followed by a carriage return Entering a carriage return alone on an input line steps to the next instruction 3 40 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS Entering CTRL X cancels an input line The monitor remains in the assembler mode If an invalid address is specified the invalid address and the message BAD MEMORY is displayed on the terminal CRT The following pages describe how to operate the assembler disassembler by creating a typical program loop and debugging the program by the use of the EVM monitor commands A typical Serial Communications Interface SCI program loop is first assembled Routine EXAMPLES are then provided to illustrate how to perform breakpoint setting proceeding from breakpoint register display and modification and initiation of user program execution The following is a program loop RAM data transmited from the SCI transmitter to the SCI receiver EXAMPLE PROGRAM PROGRAM DESCRIPTION gt BF E000 EOFF 00 lt CR gt gt ASM E000 lt CR gt Enter assembler mode E000 00 TEST gt LDY 0050 lt CR gt Initialize storage pointer E000 18 CE 00 50 LDY 5005
91. rotocol and COM port are all correct 4 Enter the LOAD T command to download your previously assembled S records to the EVM board The EVM board is now waiting for your terminal emulator to send the S record file In IASM11 use F6 key to send a file to the EVM IASM11 prompts for a file name Type the file name and press RETURN You should see the S records on your screen as they are downloaded The last line of all your S records should be 59030000 Press a carriage return CR and ignore the Illegal Command Error You may visually verify the download by entering the MD command followed by the address you wish to see For example type MD E000 to see the memory at 000 5 Move switches 54 to RESET 55 to OFF 6 Insert the MCU to be programmed in U32 056 Follow the orientation and placement information shown in paragraph 3 7 7 Apply power to the MCU by moving switch 55 from OFF to PWR 8 Depress and release the master reset switch S3 Press a carriage return lt CR gt on your keyboard If the board and the PC are communicating correctly you will see the EVMBug prompt and the register display 9 Move switch 54 from RESET to OUT to bring the MCU in the programming socket out of reset in bootstrap mode 10 Enter COPY command via the terminal keyboard to copy the contents of the MCU EEPROM into the EVM user pseudo EEPROM 11 Remove power to the programming socket by moving switch S4 to R
92. s converted into the proper machine language code and is stored in memory on a line by line basis at the time of entry In order to display an instruction the machine code is disassembled and the instruction mnemonic and operands are displayed All valid opcodes are converted to assembly language mnemonic All invalid opcodes return a Form Constant Byte FCB conversion The ASM command allows the user to create modify and debug MC68HC11 MCU code No provision is made for line numbers or labels Assembler input must have exactly one space between the mnemonic and the operand There must be no space between the operand and the index specification X except in the case of indexed no offset Assembler input must be terminated by a carriage return No comments etc are allowed after the instruction input After each new assembler input line the new line is disassembled for the user before stepping to the new instruction The new line may assemble to a different number of bytes than the previous one Each of the instruction pairs Arithmetic Shift Left ASL Logical Shift Left LSL have the same opcode so disassembly always displays the ASL mnemonic Similarly for Branch if High or Same BHS Branch if Carry Clear BCC mnemonics disassembly displays the BCC mnemonic For Branch if Lower BLO Branch if Carry Set BCS mnemonics disassembly displays the BCS mnemonic The assembler will take either mnemonic as a valid instruction Branch add
93. s lets you reprogram devices During the programming operation the terminal CRT display is updated with each address being programmed A ERROR IN READ message indicates a software timeout has occurred during the programming operation Verification status messages VERIFY COMPLETE or MC68HC11 DOES NOT VERIFY are displayed on the terminal CRT upon the completion of the programming operation M68HC11EVM D 3 25 OPERATING INSTRUCTIONS PROG EXAMPLES gt PROG B600 7 lt gt BXXX C68HC11 NOT BLANK ENTER RETURN TO CONTINUE lt CR gt BXXX VERIFY COMPLETE gt PROG B600 7 AA lt CR gt BXXX MC68HC11 DOES NOT VERIFY gt VERIFY COMPLETE gt MOTOROLA Program DESCRIPTION Program data from user memory locations B600 B7FF into MCU EEPROM locations B600 B7FF Display address BXXX updated for each location programmed Message indicates data is stored at memory locations B600 B7FF Carriage return key depressed to program new data over old data BXXX is updated for each location programmed Message indicates programming sequence was successful Block fill hexadecimal data value AA into MCU EEPROM locations B600 B7FF Display address BX XX updated for each location programmed Message indicates programming sequence did not verify correctly Message indicates programming sequence was succ
94. s of the byte The five fields which comprise an S record are shown below TYPE RECORD LENGTH ADDRESS CODE DATA CHECKSUM Where the fields are composed as follows Printable Field Characters Contents type 2 S records type SO S1 etc record 2 The count of the character pairs in the record excluding type and record length length address 4 6 or 8 The 2 3 or 4 byte address at which the data field is to be loaded into memory code data 0 From 0 to n bytes of executable code memory loadable data or descriptive information For compatibility with teletypewriters some programs may limit the number of bytes to as few as 28 56 printable characters in the S record checksum 2 The least significant byte of the one s complement of the sum of the values represented by the pairs of characters making up the records length address and the code data fields M68HC11EVM D A 1 S RECORD INFORMATION MOTOROLA Each record may be terminated with a CR LF NULL Additionally an S record may have an initial field to accommodate other data such as line numbers generated by some time sharing systems Accuracy of transmission is ensured by the record length byte count and checksum fields 2 S RECORD TYPES Eight types of S records have been defined to accommodate the several needs of the encoding transportation and decoding functions The various Motorola upload download and other record tr
95. ser supplied power supply is connected to connector J5 which is a terminal block designed to accept 14 22 AWG wire Interconnection of the power supply wiring to the EVM is shown below J5 1 2 5 5 3 Q 12 Vdc 4 12 5 GND 6 Q GND NOTE Connector J5 pin 1 labeled VPP is reserved for future use M68HC11EVM D 2 9 HARDWARE PREPARATION AND INSTALLATION 2 4 2 Terminal EVM Interconnection MOTOROLA Interconnection of an RS 232C compatible terminal to the EVM is accomplished via a user supplied 20 or 25 conductor flat ribbon cable assembly as shown in Figure 2 2 One end of the cable assembly is connected to the EVM connector J6 shown below labeled TERMINAL The other end of the cable assembly is connected to the user supplied terminal For connector pin assignments and signal descriptions of the EVM terminal port connector J6 refer to Chapter 5 2 10 NC TXD RXD RTS CTS DSR SIG GND DCD NC 9 NC 10 NC 11 NC 12 NC 13 N OO CQ N J6 O O O O O O O O O O O O O O O O O O O O O O O O O TERMINAL 14 15 16 17 18 19 20 21 22 23 24 25 NC NC NC NC NC NC NC NC NC NC NC NC M68HC11EVM D MOTOROLA HARDWARE PREPARATION AND INSTALLATION 2 4 3 Host Computer EVM Interconnection The EVM can be operated with a host computer directly or a remotely located host computer via a modem Interconnection of an RS 232C compatible host compu
96. st MCU asynchronous interrupts 20 25 PD5 PORT D BITS 0 5 General purpose input output I O lines 27 34 PA7 PAO PORT A bits 0 7 General purpose input output I O lines 35 42 PB7 PBO PORT B bits 0 7 General purpose output lines 43 50 PEO PE7 PORT E bits 0 7 General purpose input or A D channel input lines 51 VRL VOLTAGE REFERENCE LOW Input reference supply voltage low line for the MCU analog to digital A D converter Used to increase accuracy of the A D conversion 52 VRH VOLTAGE REFERENCE HIGH Input reference supply voltage high line Same purpose as pin 51 M68HC11EVM D MOTOROLA SUPPORT INFORMATION Table 5 2 Expanded Multiplexed Connector J3 Pin Assignments Pin 1 3 9 16 20 25 27 34 35 42 M68HC11EVM D 2 8 26 53 60 Mnemonic GND NC BAS BE BRW EXTAL A DO 07 RESET XIRQ IRQ PDO PD5 PA7 PAO A15 8 Description GROUND Not connected LOAD INSTRUCTION REGISTER An active low output line used to signify the first E clock cycle of each instruction cycle and remains low for the duration of cycle opcode fetch BUFFERED ADDRESS STROBE Bi directional control line used to de multiplex address and data and control memory and I O read and write operations BUFFERED ENABLE An output control line used for timing reference BUFFERED READ WRITE An
97. st computer I O port communicates with an RS 232C compatible host computer directly or by modem via the host connector J7 and a user supplied cable assembly The MC2681 DUART based host interface circuitry provides communications and data transfer operations for the EVM and user host computer Baud rate generation and selection capabilities and RS 232C drivers receivers are also implemented for this port Baud rates for the host port are also software selectable via the SPEED command Refer to Chapter 5 for additional port information 4 2 4 MCU Extension I O Ports The EVM provides two user MCU extension I O ports for target system evaluation purposes User memory map and MCU based enhanced Non Return to Zero NRZ Serial Communications Interface SCI Serial Peripheral Interface SPI timer and interrupts are available for I O both ports The EVM operates in two evaluation modes single chip and expanded multiplexed The single chip I O port utilizes an MC68HC24 HCMOS Port Replacement Unit PRU This device provides ports B and C of the EVM MCU during single chip evaluation operation The balance of the ports A D and E are provided directly by the EVM MCU device Refer to Chapter 5 for additional port information Target system to EVM interconnection for the single chip mode of operation is accomplished via the SINGLE CHIP connector J1 and the target system emulation cable assembly The expanded multiplexed I O port utilizes HCMOS typ
98. t MOd6 J J_ A RE EAR NUI 31 aa Manis toe hasa asiste 32 3 7 EEPROM OR EPROM MCU PROGRAMMING PROCEDURES 33 JM Checkit Pcr 34 257222 Erasing M T e ee aT 35 3 7 9 Prosrammng ir I 36 3 74 COPYN En C c P 37 25452 WEE INO uhuy ME EET 38 3 7 6 Reprogramming MCU Configuration Regtster 39 vi M68HC11EVM D MOTOROLA CONTENTS CHAPTER 3 OPERATING INSTRUCTIONS continued 3 8 ASSEMBLING DISASSEMBLING 40 39 DOWNLOADING PROCEDURES SU ec eel 44 EVM UL Peer eue ori 45 23 9 2 S IBM PG ota estote tini minas ae su sei uester sas 46 CHAPTER 4 FUNCTIONAL DESCRIPTION ANTRODUCGCTION odas tu 4 1 427 FYM DESCRIPTION bd b Ce E eR 4 1 421 MCU and Control Circuits 4 4 2 1 1 Switching iuis eae etes 4 2 4 4 4 2 1 3 5 CACY CIE 4 4 22 1 4 Address DEeDdmg 6 ooo doeet dett hunt aa qapas eas 4 4 42 2 Monitor and User Memory teta 4 5 22213 XX Mon
99. tched externally and a comparator is used to compare the initialization register contents to the upper four address lines to determine if a possible internal register access is being performed 4 2 1 4 Address Decoding Address decoding is accomplished via a Field Programmable Logic Array FPLA device 82S100 that provides the required chip select signals for memory and peripheral device circuitry that are memory mapped in the EVM 4 4 M68HC11EVM D MOTOROLA FUNCTIONAL DESCRIPTION 422 Monitor and User Memory The EVM evaluates and programs either the MC68HC11AX or MC68HC11EX family MCU device Depending upon which type of MCU operation is selected by the AX EX select jumper header J20 determines which EVM memory map is configured see Figures 4 2 and 4 3 In either the AX or EX family MCU configuration the EVM operates in one of two maps monitor or user map Both maps are 64K bytes and are decoded via the FPGA Both maps also include the M68HC11 MCU internal 256 byte RAM and 64 byte registers NOTE Throughout this manual AX family MCU device reference indicates either AO Al or A8 Similarly EX family MCU device reference indicates either E9 or 811E2 4 2 2 1 AX Monitor Map Area As shown in Figure 4 2 the AX family MCU monitor map area contains in addition to the MCU internal 256 byte RAM and 64 byte registers the monitor I O terminal and host MC2681 dual asynchronous receiver transmitter DUART 512 by
100. te monitor scratch pad RAM and 16K byte monitor EPROM The EVMbug monitor EPROM contents are not available to the user All monitor operations are controlled via the monitor I O terminal and host DUART Both terminal and host computer I O ports are also controlled by the DUART The DUART is available only in the monitor map User programs in the user map cannot access these peripheral ports The scratch pad RAM 512 bytes is used by the monitor for general monitor operations such as temporary data storage command entries S record downloading etc The monitor write latch is located in the scratch pad RAM location B5FF and is used for temporary and permanent map switching operations user memory protection when in the monitor map and breakpoint trace abort monitor flagging The write latch is only controlled by the monitor M68HC11EVM D 4 5 FUNCTIONAL DESCRIPTION MOTOROLA 4 2 2 2 AX User Map Area As shown in Figure 4 2 the AX family MCU user map area contains in addition to the MCU internal 256 byte RAM and 64 byte registers 512 byte pseudo EEPROM and 8K bytes of pseudo ROM The user RAM stack is resident in memory locations 0000 through 00FF by default although the RAM stack can be moved by the input register The stack pointer value is displayed on the terminal CRT when the trace and breakpoint functions are executed The stack pointer value may be set by the user using the RM command or under user program control
101. ter and go to Y register Y FFFF gt 1000 Change Y register X FFFF gt 2000 lt CR gt Change X register gt lt gt Change A register gt Examine register C FF gt lt CR gt Examine C register and terminate command 3 28 M68HC11EVM D MOTOROLA OPERATING INSTRUCTIONS SPEED Speed 3 6 18 Speed SPEED lt baud rate gt where lt baud rate gt Possible baud ratesare 150 300 600 1200 1800 2000 2400 4800 9600 or 19 2K The monitor determines the baud rate of the terminal connected to the EVM terminal I O port and automatically configures the baud rate settings for both EVM terminal and host I O ports The SPEED command only allows the user to reassign or modify the baud rate operating speed of the EVM host I O port for specific applications NOTE When entering the 19 2K baud rate the decimal point is not required for the command entry This baud rate command is entered as SPEED 192 EXAMPLES DESCRIPTION gt SPEED 2400 lt CR gt Reassign or modify EVM host I O port to gt operate at the baud rate speed of 2400 baud Prompt indicates speed reassignment sequence completed gt SPEED 192 lt CR gt Reassign or modify EVM host I O port to gt operate at the baud rate speed of 19 200 19 2K baud Note that decimal point is not entered during the command entry M68HC11EVM D 3 29 OPERATING INSTRUCTIONS MOTOROLA T Trace 3 6 19 Trace T lt count gt where
102. ter to the EVM is accomplished via a user supplied 20 or 25 conductor flat ribbon cable assembly as shown in Figure 2 2 One end of the cable assembly is connected to the EVM connector J7 shown below labeled HOST The other end of the cable assembly is connected to the user supplied host computer or modem For connector pin assignments and signal descriptions of the EVM host port connector J7 refer to Chapter 5 J7 NC 1 14 TXD 2 15 RXD 3 16 NC RTS 4 17 NC CTS 5 18 NC 6 19 NC SIG GND 7 20 DTR NC 8 21 NC NC 9 22 NC NC 10 23 NC NC 11 24 NC NC 12 25 NC NC 13 HOST M68HC11EVM D 2 41 HARDWARE PREPARATION AND INSTALLATION MOTOROLA 20 OR 25 CONDUCTOR FLAT RIBBON CABLE 3M 3365 20 OR 3M 3365 25 25 D SUBMINIATURE MALE 25 D SUBMINIATURE FEMALE PIN CONNECTOR SOCKET CONNECTOR PART 5 PART 5 1 CIRCUIT ASSEMBLY CORP 1 CIRCUIT ASSEMBLY CORP CA 25 SMD P CA 25 SMD S 2 ITT CANNON DBSP B25P 2 ITT CANNON DBSP B25S 3 ANSLEY 609 25P 3 ANSLEY 609 25S 4 WINCHESTER 49 1125P 4 WINCHESTER 49 1125S 25 PIN D SUBMINIATURE CONNECTOR 17 18 1 4 5 6 17 18 19 RED WIRE gt NOT CONNECTED SIGNAL GND DTR DCD 25 PIN D SUBMINIATURE CONNECTOR Figure 2 2 Terminal or Host Computer Cable Assembly 2 12 M68HC11EVM D MOTOROLA HARDWARE PR
103. the EEPROM MCU erasing procedure perform the following 1 2 Apply power to the EVM board via connector J5 Launch your terminal emulation software on the PC and install a 25 pin straight serial cable from your PC to the EVM 9600 baud 8 data bits stop bit and no parity Press a carriage return CR to synchronize communications The EVMBug prompt should appear in addition to the register display If not return to step 2 ensuring that power cable protocol and COM port are all correct Enter the LOAD T command to download your previously assembled S records to the EVM board The EVM board is now waiting for your terminal emulator to send the S record file In IASM11 use F6 key to send a file to the EVM IASMII prompts for a file name Type the file name and press a carriage return CR You should see the S records on your screen as they are downloaded The last line of all your S records should be 59030000 Press a carriage return CR and ignore the Illegal Command Error You may visually verify the download by entering the MD command followed by the address you wish to see For example type MD E000 to see the memory at 000 5 Move switches 54 to RESET and 55 to OFF 6 Insert the MCU to be programmed in U32 or U56 Follow the orientation and 10 11 12 placement information shown in paragraph 3 7 Apply power to the MCU by moving switch 55 from OFF to PWR Depress and r
104. tion pertaining to the use of the TM command M68HC11EVM D 3 31 OPERATING INSTRUCTIONS MOTOROLA VERF Verify 3 6 21 Verify VERF lt addressl gt lt address2 gt lt address3 gt where lt address1 gt EEPROM starting address lt address2 gt EEPROM ending address optional lt address3 gt User map starting address optional The VERF command allows the user to verify the contents of the programmed MCU internal EEPROM against the EVM user map pseudo EEPROM ROM or user supplied memory expanded multiplexed mode only Prior to entering this command the user must follow the EEPROM MCU verification procedure as described in paragraph 3 7 5 This procedure removes the reset condition applied to the MCU and enables the MCU EEPROM to be verified The VERF command is now entered via the terminal keyboard to enable the MCU EEPROM contents to be verified with the contents of the user map If any differences between the MCU EEPROM and the user map exist an error message will be displayed on the terminal CRT A ERROR IN READ message indicates a software timeout has occured during the verify operation If the third token lt address3 gt is not entered then the starting address for the user map is the same as EEPROM lt address1 gt EXAMPLES DESCRIPTION gt VERF B600 B7FF CR Verify MCU EEPROM locations B600 thru B7FF VERIFY COMPLETE Message indicates verifyi
105. tion to be displayed on the terminal CRT for quick reference purposes EXAMPLE Abort command CTRL A Exit transparent mode CTRL H n CTRL X Cancel command line START ADDR Single line assembler disassembler END ADDR DATA Block fill memory Set 1 TO 5 breakpoints erase slave MCU EEPROM or CONFIG END ADDR Blank check slave MCU EEPROM I ND ADDR MAP ADDR gt Copy slave MCU EEPROM END ADDR Byt rase slave MCU EEPROM to user map and execute program Download H ost or T erminal port to user lt END ADDR Memory display Remove breakpoints lt COUNT gt Proceed 1 FFFF times through a breakpoint END ADDR DATA Program slave MCU I EPROM Enter transparent mode END ADDR MAP ADDR Verify slave MCU gt HELP lt CR gt BREAK Backspace CTRL W Freeze scr ASM lt BF lt START ADDR gt BR lt ADDR1 ADDR5 gt BULK lt 103 gt Bulk CHCK lt START ADDR gt lt Blank byte FF COPY lt START ADDR gt lt to user map FRASE lt START ADDR gt lt START ADDR gt Go LOAD lt PORT gt lt TEXT gt map MD lt START ADDR gt lt ADDRESS gt Memory modify NOBR lt ADDR1
106. wer Input voltage 12 Vdc 0 1 A used by the EVM logic circuits 4 12 12 Power Input voltage 12 0 1 used the EVM logic circuits 5 6 GND GROUND 5 4 M68HC11EVM D MOTOROLA SUPPORT INFORMATION Table 5 4 RS 232C Terminal Port Connector J6 Pin Assignments Pin Mnemonic Description 1 Not connected 2 TXD TRANSMIT DATA Serial data input line 3 RXD RECEIVE DATA Serial data output line 4 RTS REQUEST TO SEND An input signal used to request permission to transfer data Refer to paragraph 2 3 5 5 CTS CLEAR TO SEND An output signal used to indicate a ready to transfer data status 6 DSR DATA SET READY An output signal held high used to indicate an on line in service active status 7 SIG GND SIGNAL GROUND This line provides signal ground or common return connection between the EVM and RS 232C compatible terminal This line establishes the common ground reference potential between the EVM and RS 232C compatible terminal circuitry 8 DCD DATA CARRIER DETECT An output signal held high used to indicate an acceptable carrier signal has been detected 9 25 Not connected M68HC11EVM D 5 5 SUPPORT INFORMATION MOTOROLA Table 5 5 RS 232C Host Port Connector J7 Pin Assignments Pin Mnemonic Description 1 Not connected 2 TXD TRANSMIT DATA Serial data output line 3 RXD RECEIVE DATA Serial data input line 4 RTS

Download Pdf Manuals

image

Related Search

Related Contents

User's manual - page screenshot of kolbe    A18009 ATLANT CONS 16p form3.indd  電動アシスト自転車 取扱説明書 - キョウワサイクル kyouwa cycle|新生  

Copyright © All rights reserved.
Failed to retrieve file