Motorola M68HC11EVBU User Manual
Motorola M68HC11EVBU User Manual

Motorola M68HC11EVBU User Manual

Universal evaluation board
Hide thumbs Also See for M68HC11EVBU:

Advertisement

Quick Links

M68HC11EVBU/D
REV 3
April 1997
M68HC11EVBU
UNIVERSAL EVALUATION BOARD
USER'S MANUAL
Information contained in this document applies to
REVision (B) M68HC11EVBU Universal Evaluation Boards.
© MOTOROLA Inc. 1990, 1997; All Rights Reserved

Advertisement

Table of Contents
loading

Summary of Contents for Motorola M68HC11EVBU

  • Page 1 M68HC11EVBU/D REV 3 April 1997 M68HC11EVBU UNIVERSAL EVALUATION BOARD USER’S MANUAL Information contained in this document applies to REVision (B) M68HC11EVBU Universal Evaluation Boards. © MOTOROLA Inc. 1990, 1997; All Rights Reserved...
  • Page 2: Program Description

    <CR> on whichever device is the terminal port. When BUFFALO recognizes a carriage return from a port, that port is then used for all subsequent terminal I/O operations. The EVBU terminal device is normally connected to the SCI. M68HC11EVBU/D 3-1 1...
  • Page 3 A. This routine does not wait for a character to be received before returning (that function is performed by the INCHAR utility subroutine). The OUTPUT routine takes the ASCII character in accumulator A and writes the character to the specified I/O port. This routine waits until the character begins transmitting before returning. M68HC11EVBU/D...
  • Page 4 Test character in accumulator A and return with Z bit set if character is white space (space, comma, tab). $FFA6 .DCHEK Test character in accumulator A and return with Z bit set if character is delimiter (carriage return or white space). M68HC11EVBU/D 3-3 3...
  • Page 5 BUFFALO monitor program. Jump table addresses remain the same when a new version of BUFFALO is developed even though the actual addresses of the routine may change. Programs that reference routines by the jump table addresses are not required to be changed to operate on revised versions of the BUFFALO monitor program. M68HC11EVBU/D...
  • Page 6: Interrupt Vectors

    This procedure may be difficult to accomplish with the M68HC11EVBU because the BUFFALO monitor is contained in ROM. However with the standard M68HC11EVB, you may change commands, as this version of the BUFFALO monitor is contained in EPROM.
  • Page 7 STOP instruction sequence to be executed. A user may replace any of the JMP STOPIT instructions with a JMP to a user written interrupt service routine. If a reset is issued via switch S1, BUFFALO will not overwrite these user jump instructions so they need not be re-initialized after every reset. M68HC11EVBU/D...
  • Page 8: Control Switch

    (when designing code) that BUFFALO uses the MCU on-chip RAM locations $0047-$00FF leaving approximately 325 bytes for the user (i.e., $0000-$0047 and $0100- $01FF). 512 bytes of EEPROM ($B600-B7FF) and approximately 325 bytes of RAM ($0000- 0047) + ($0100-$01FF) are available for user developed software. M68HC11EVBU/D...
  • Page 9 $D000 in the memory map. During initialization, BUFFALO 3.2 reads and writes to location $D00C to see if a DUART is present in the system. If a DUART is installed on the EVBU wire-wrap area and connected to the MCU, refer to the buf32.asm file on the EVBU diskette. M68HC11EVBU/D...
  • Page 10: Operating Procedures

    BUFFALO monitor one-line assembler. The second method, you assemble code on a host computer and then download it to the EVBU user RAM or EEPROM in Motorola S-record format. The monitor program is then used to debug the assembled user code.
  • Page 11 (may be shared with the 9 key on the numeric keypad on some PC keyboards), and follow instructions on the display screen. If using a Apple Macintosh, use the pull-down menu to send the file. Upon completion of the S-record transfer, the following message is displayed on the terminal display screen: done > M68HC11EVBU/D...
  • Page 12 EVBU contains no hardware to support the host related commands. (e.g., ACIA, DUART) A standard input routine controls the EVBU operation while you enter a command line. Command processing begins only after the command line has been terminated by depressing the keyboard carriage return <CR> key. M68HC11EVBU/D...
  • Page 13: Command Line Format

    CRT displays the message "Too Long". 6. Command line errors may be corrected by backspacing (CTRL-H) or by aborting the command (CTRL-X or DELETE). 7. Pressing <CR> will repeat the most recent command. The LOAD command is an exception. M68HC11EVBU/D...
  • Page 14: Monitor Commands

    Command line input examples in this chapter are amplified with the following: BOLD entries are user-entered on the terminal keyboard. Command line input is entered when the carriage return key <CR> key is depressed. Typical example of this explanation is: >MD F000 F100<CR> M68HC11EVBU/D...
  • Page 15 Download (S-records*) via terminal port (2) MEMORY (same as MM) MD [<addr1> [<addr2>]] Dump memory to terminal MM [<address>] Memory modify MOVE <addr1> <addr2> [<dest>] Move memory to new location Proceed/continue from breakpoint PROCEED (same as P) (same as RM) READ (same as MOVE) M68HC11EVBU/D...
  • Page 16 Send program to another M68HC11 via bootstrap mode (same as HELP) [<address>]/ (same as MM [<address>]) NOTES 1. On newer MC68HC11 mask sets, CONFIG can only be changed in special test or bootstrap modes of operation. 2. * Refer to Appendix A for S-record information. M68HC11EVBU/D...
  • Page 17 Arithmetic Shift Left (ASL)/Logical Shift Left (LSL) displays as ASL Arithmetic Shift Left Double (ASLD)/Logical Shift Left Double (LSLD) displays as LSLD Branch if Carry Clear (BCC)/Branch if Higher or Same (BHS) displays as BCC Branch if Carry Set (BCS)/Branch if Lower (BLO) displays as BCS 4-10 M68HC11EVBU/D...
  • Page 18 Branch offsets calculated automatically, 0106 STX $FFFF >BRA 0130<CR> address required as branch operand. 20 28 Assembler operation terminated. 0108 STX $FFFF >(CTRL)A > NOTE In the above example memory locations $0100-$0108 previously contained $FF data which disassembles to STX $FFFF. M68HC11EVBU/D 4-11...
  • Page 19: Block Fill

    RAM or EEPROM. If an invalid address is specified, an invalid address message "rom-xxxx" is displayed on the terminal CRT (xxxx = invalid address). Examples: >BF 0100 01FF FF<CR> Fill each byte of memory from 0100 through 01FF with data pattern FF. Set location B700 to 0. >BF B700 B700 0<CR> 4-12 M68HC11EVBU/D...
  • Page 20: Breakpoint Set

    BR <addr1> <addr2> ... Set several breakpoints. BR - Remove all breakpoints. BR -<addr1> <addr2>... Remove <addr1> and add <addr2>. BR <addr1> – <addr2>... Add <addr1>, clear all entries, then add <addr2>. BR <addr1> -<addr2>... Add <addr1>, then remove <addr2>. M68HC11EVBU/D 4-13...
  • Page 21 Only RAM or EEPROM locations can be >BR E000<CR> breakpointed. Invalid address message. rom-E000 0000 0000 0000 0000 > Maximum of four breakpoints can be set. >BR 0105 0107 0109 0111 0113<CR> Buffer full message. Full 0105 0107 0109 0111 > 4-14 M68HC11EVBU/D...
  • Page 22: Erase All Eeprom Locations

    No erase verification message will be displayed upon completion of the bulk EEPROM erase operation. User must verify erase operation by examining EEPROM locations using the MM or MD command. Example: Bulk erase all MCU EEPROM locations ($B600-$B7FF). >BULK<CR> Prompt indicates erase sequence completed. > M68HC11EVBU/D 4-15...
  • Page 23 User must verify erase operation by examining EEPROM locations or the configuration register location using the MM or MD command. Example: Bulk erase all MCU EEPROM ($B600-$B7FF) and >BULKALL<CR> configuration register ($103F) locations. Prompt indicates erase sequence completed. > 4-16 M68HC11EVBU/D...
  • Page 24: Execute Subroutine

    EXAMPLE PROGRAM: for CALL, G, P, and STOPAT command examples >ASM 0100<CR> 0100 STX $FFFF >LDAA #44<CR> 86 44 0102 STX $FFFF >STAA 01FC<CR> B7 01 FC 0105 STX $FFFF >NOP<CR> 0106 STX $FFFF >NOP<CR> 0107 STX $FFFF >NOP<CR> 0108 STX $FFFF >RTS<CR> 0109 STX $FFFF >(CTRL)A M68HC11EVBU/D 4-17...
  • Page 25 OPERATING INSTRUCTIONS CALL Execute Subroutine Example: >CALL 0100<CR> Execute program subroutine. P-0100 Y-DEFE X-F4FF A-44 B-FE C-D0 S-0047 Displays register status at time RTS encountered (except P register contains original call > address or a breakpoint address if encountered). 4-18 M68HC11EVBU/D...
  • Page 26: Execute Program

    Refer to example program shown on page 4-16 and insert breakpoints at locations $0105 and $0107 for the following G command example. Example: Begin program execution at PC address location 0100. >G 0100<CR> P-0105 Y-DEFE X-F4FF A-44 B-FE C-D0 S-0047 Breakpoint encountered at 0105. > M68HC11EVBU/D 4-19...
  • Page 27 RM [P, Y, X, A, B, C, or S] Register modify. T [<n>] Trace n instructions. Transparent mode (CTRL-A = exit, CTRL-B = send break). CTRL-H Backspace. CTRL-W Wait for any key. CTRL-X or DELETE Abort/cancel command. RETURN Repeat last command. > 4-20 M68HC11EVBU/D...
  • Page 28: Load S-Records

    Refer to paragraph 4.8 DOWNLOADING PROCEDURES for additional information pertaining to the use of the LOAD command. Refer to paragraph 4.4.2 Alternate Baud Rates for information pertaining to slower baud rates which are required when downloading directly to EEPROM. M68HC11EVBU/D 4-21...
  • Page 29: Memory Display

    ASCII equivalents (if applicable) of the the 16 memory locations. Since not all 8-bit values correspond to a displayable ASCII character, some of the character positions at the end of a line may be blank. 4-22 M68HC11EVBU/D...
  • Page 30 86 04 B7 01 FC 01 01 01 39 FF FF FF FF FF FF FF 0110 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 0120 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF > M68HC11EVBU/D 4-23...
  • Page 31: Memory Modify

    If an attempt is made to change an invalid address, the invalid address message "rom" is displayed on the terminal CRT. An invalid address is any memory location which cannot be read back immediately after a change in order to verify that change. 4-24 M68HC11EVBU/D...
  • Page 32 >MM 0100<CR> Examine next location(s) using (SPACE BAR). 0100 86 04 B7 01 FC 01 Examine EEPROM location $B700. >MM B700<CR> Change data at location $B700. B700 FF 52<CR> Reexamine EEPROM location $B700. >MM B700<CR> B700 52 > M68HC11EVBU/D 4-25...
  • Page 33: Move Memory

    Using the MOVE command on EEPROM locations will program EEPROM cells. No messages will be displayed on the terminal CRT upon completion of the copy/move operation, only the prompt is displayed. Example: Move data from locations $E000-$E0FF to locations >MOVE E000 E0FF 0100<CR> $0100-$01FF. > 4-26 M68HC11EVBU/D...
  • Page 34 $0105 and $0107 (refer to example on pages 4-16 and 4-17). Example: Start execution at 0100. >G 0100<CR> P-0105 Y-DEFE X-F4FF A-44 B-FE C-D0 S-0047 Breakpoint encountered at 0105. Continue execution. >P<CR> P-0107 Y-DEFE X-F4FF A-44 B-FE C-90 S-0047 Breakpoint encountered at 0107. > M68HC11EVBU/D 4-27...
  • Page 35: Register Modify/Display

    P-0100 (SPACE BAR) Display remaining registers. Y-7982 (SPACE BAR) X-1000 (SPACE BAR) A-44 (SPACE BAR) B-70 (SPACE BAR) C-C0 (SPACE BAR) Entering a (SPACE BAR) following the stack pointer S-0047 (SPACE BAR) display will terminate RM command. > 4-28 M68HC11EVBU/D...
  • Page 36: Stop At Address

    STOPAT command example. The RD command was used prior to this example to set the user PC register to $0100. Example: Execute example program until $0108 is reached. >STOPAT 0108<CR> P-0108 Y-DEFE X-F4FF A-44 B-FE C-90 S-0047 > M68HC11EVBU/D 4-29...
  • Page 37 P-E19F Y-FFFF X-FFFF A-44 B-FF C-19 S-0041 >T 4<CR> $E1A7 P-E1A7 Y-FFFF X-FFFF A-44 B-FF C-19 S-0041 P-E1FD Y-FFFF X-FFFF A-44 B-FF C-19 S-0043 CMPA #$30 P-E1FF Y-FFFF X-FFFF A-44 B-FF C-19 S-0043 $E223 P-E223 Y-FFFF X-FFFF A-44 B-FF C-19 S-0043 > 4-30 M68HC11EVBU/D...
  • Page 38: Transparent Mode

    TM command can only be used if a host I/O port is installed on the EVBU wire-wrap area. Example >TM<CR> Enter transparent mode. appslab login: bill<CR> Host computer login response. Password:xxxxxxxx<CR> Host computer password. "System Message" $(CTRL)A Task completed. Enter exit command. > Exit transparent mode. M68HC11EVBU/D 4-31...
  • Page 39 >VERIFY T<CR> Mismatch encountered. Error message displaying first address that failed to error addr E000 verify. > Refer to the downloading procedures at the end of this chapter for additional information pertaining to the use of the VERF command. 4-32 M68HC11EVBU/D...
  • Page 40: Transfer Data Bootstrap Mode

    MC68HC11 MCU device operating in the bootstrap mode. These signals appear as nonsense data to the terminal display used for normal communication with the EVBU. After using the XBOOT command the EVBU must be reset by pressing the reset switch S1 before normal communications can resume. M68HC11EVBU/D 4-33...
  • Page 41 CRT. The bootload process takes approximately a third of a second to finish. 7. Disconnect jumper wire installed in step d. 8. Install fabricated jumper removed in step c. 9. Press EVBU reset switch S1 to restore normal EVBU operation. 4-34 M68HC11EVBU/D...
  • Page 42: Assembly/Disassembly Procedures

    2 digits specifies direct, 3 or 4 digits specifies extended). Extended addressing can be forced by padding the address operand with leading zeros. • Relative offsets for branch instructions are computed by the assembler. Therefore the valid operand for any branch instruction is the branch-if-true address, not the relative offset. M68HC11EVBU/D 4-35...
  • Page 43 Assemble the current line and then disassemble the next opcode address. (CTRL)J Assemble the current line. If there isn’t a new line to assemble, then disassemble the next sequential address location. Otherwise, disassemble the next opcode address. (CTRL)A Exit the assembler mode of operation. 4-36 M68HC11EVBU/D...
  • Page 44: Downloading Procedures

    This portion of text describes the EVBU downloading procedures. Downloading operations allow Motorola’s S-record files to be transferred from a personal computer to the EVBU or to be verified against data in EVBU memory. S-record files are made up of data and checksum values in a special format which facilitates downloading.
  • Page 45 >LOAD T<CR> entered. (CTRL)]C Kermit-MS>PUSH<CR> The IBM Personal Computer DOS Version X.XX (C)Copyright IBM Corp 1981, 1982, 1983 C>TYPE (File Name) > COM1<CR> Motorola S-record file name. S-record downloading completed. C>EXIT<CR> Return to EVBU monitor program. Kermit-MS>CONNECT<CR> >(CTRL)]C Exit KERMIT program.
  • Page 46 7. Instruct PROCOMM to send the S-record file by pressing the Pg Up key on the PC, then follow PROCOMM instructions on the display screen to select the S-record file. (Use the ASCII transfer protocol.) Motorola S-record file is now transferred to the EVBU. Upon completion of the S-record transfer, the following message is displayed: done >...
  • Page 47: S-Record Content

    28 (56 printable characters in the S-record). Checksum The least significant byte of the one's complement of the sum of the values represented by the pairs of characters making up the record length, address, and the code/data fields. M68HC11EVBU/D...
  • Page 48: S-Record Types

    A-3 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 transportation 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.
  • Page 49: S-Record Creation

    S-record type S1, 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. M68HC11EVBU/D...
  • Page 50 TYPE LENGTH ADDRESS CODE/DATA CHECKSUM ••• ••• 0101 0011 0011 0001 0011 0001 0011 0011 0011 0000 0011 0000 0011 0000 0011 0000 0011 0010 0011 1000 0011 0101 0100 0110 ••• 0011 0010 0100 0001 M68HC11EVBU/D...

This manual is also suitable for:

M68hc11evbdM68hc11evbu/d

Table of Contents