M68HC11EVB/D REV 2 November 1996 M68HC11EVB EVALUATION BOARD USER'S MANUAL Copyright 1986, 1996 by Motorola Inc.
Page 2
The computer 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.
Page 3
CAUTION Caution should be observed when programming or erasing MCU EEPROM locations. The EVB MCU configuration (CONFIG) register ROMON bit is cleared to disable MCU internal ROM, thereby allowing external EPROM containing the BUFFALO program to control EVB operations.
-40 to +85 degrees C Relative humidity 0 to 90% (non-condensing) Power requirements +5 Vdc @ 0.5 A (max) +12 Vdc @ 0.1 A (max) -12 Vdc @ 0.1 A (max) Dimensions: Width 7.062 in. (17.8 cm) Length 4.625 in. (11.75 cm) M68HC11EVB/D...
An RS-232C compatible host computer is used with the EVB to download Motorola S-records via the BUFFALO monitor commands. The Motorola S-record format was devised for the purpose of encoding programs or data files in a printable format for transportation between computer systems. The transportation process can therefore be monitored and the S-records can be easily edited.
1 and 2. The EVB is factory-configured and shipped with the jumper installed as shown below. This jumper is removed from pins 1 and 2 when the EVB reset circuitry is used without target system intervention. M68HC11EVB/D...
2 and 3 as shown below. External Internal If an external TTL clock source from the target system (via MCU I/O port connector P1, pin 7) is required, the jumper is repositioned between pins 1 and 2. M68HC11EVB/D 2-3 3...
$6000 to $7FFF. Installing a fabricated jumper on jumper header J7 causes the memory device located at location U4 to be mapped at locations $A000 to $BFFF. NOTE MCU EEPROM may be located at $B600 to $B7FF. M68HC11EVB/D...
$7E, $E0, and $0A, respectively. Next, remove installed jumper from jumper header J4 (removes load condition), and proceed into the A/D operation. For additional information pertaining to the EEPROM jump operation described above, refer to the buf25.asm file on the EVB diskettes. M68HC11EVB/D 2-5 5...
The host (P3) I/O port is a fixed MCU SCI 9600 baud rate (non selectable). Refer to Chapter 6 EVB parts list notes for additional information pertaining to the host baud rate (crystal vs E-clock vs MCU SCI operation). M68HC11EVB/D...
-12 VDC +5 VDC +12 VDC The power supply cable simply consists of four 14-22 AWG wires that interconnect -12 VDC, GND, +5 VDC, and +12 VDC, from the user supplied power supply to the EVB connector P4. M68HC11EVB/D 2-7 7...
EVB terminal port connector P2, refer to Chapter 6. SIG-GND TERMINAL NOTE A dumb terminal or personal computer is always connected to the terminal I/O port but it is very common not to have any external equipment connected to the host I/O port. M68HC11EVB/D...
"computing" device, while the EVB is a computing device to a terminal device even when the terminal device happens to be a personal computer such as an IBM-PC or a Macintosh computer. M68HC11EVB/D 2-9 9...
25 PIN "D" SUBMINIATURE CONNECTOR Figure 2-2. Terminal/Host Computer Cable Assembly Diagram The EVB can operate with only pins 2, 3, and 7 (TXD, RXD, and SIGNAL GND) connected, however; the terminal device may need the other handshake lines for proper operation. 2-10 M68HC11EVB/D...
52-lead plastic leaded chip carrier (PLCC) plug constructed by the user. This type of plug platform mates directly with the target system MCU device socket. Uses for this type of cable assembly are in the production stages of the developed MC68HC11 MCU-based product. M68HC11EVB/D 2-11...
Page 25
HARDWARE PREPARATION AND INSTALLATION MODB STRA STRB EXTAL XTAL RESET* XIRQ* IRQ* MCU I/O PORT 2-12 M68HC11EVB/D...
5. Memory modify (MM) command (refer to paragraph 4.6.11) is used to change CONFIG register contents to $0D. BUFFALO monitor will respond with "rom" message. 6. Press reset switch S1. External (ext) BUFFALO monitor prompt is displayed. Proceed to Chapter 4 for complete operating instructions. 2-14 M68HC11EVB/D...
BUFFALO must determine if the terminal is connected to the SCI or to an external ACIA or DUART. This is accomplished by sending a sign-on message to all ports and then waiting for the user to type carriage return (RETURN) on whichever device is the terminal port. When M68HC11EVB/D 3-1 1...
This routine does not wait for a character to be received before returning (function is performed by the INCHAR subroutine). The OUTPUT routine takes the ASCII character in accumulator A and writes to the specified I/O port. This routine waits until the character is transmitted before returning. M68HC11EVB/D...
Decrement pointer into input buffer. $FF9A .WSKIP Read input buffer until non-white-space character found. $FF9D .CHKABR Monitor input for (CTRL)X, (DELETE), or (CTRL)W requests. $FFA0 .UPCASE If character in accumulator A is lower case alpha, convert to upper case. M68HC11EVB/D 3-3 3...
Page 31
$FFD0 .VECINIT Used during initialization to preset indirect interrupt vector area in RAM. This routine or a similar routine should be included in a user program which is invoked by the jump to $B600 feature of BUFFALO. M68HC11EVB/D...
MCU RAM to reside. Each vector points to a three byte field which is used as a jump table to the vector service routine. Table 3-2 lists the interrupt vectors and associated three byte field. M68HC11EVB/D 3-5 5...
For an example, for the IRQ vector, the following is performed: 1. Place $7E (JMP) at location $00EE. 2. Place IRQ service routine address at locations $00EF and $00F0. The following is an example where the IRQ service routine starts at $0100: $00EE JMP IRQ SERVICE M68HC11EVB/D...
Page 34
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 reset is issued via switch S1, BUFFALO will not overwrite these user jump instructions so they need not be re-initialized after every reset. M68HC11EVB/D 3-7 7...
The monitor program uses the MCU internal RAM located at $0048-$00FF. The control registers are located at $1000-$103F. The monitor program also uses Output Compare 5 (OC5) for the TRACE instruction, therefore OC5 should not be used in user routines being traced. M68HC11EVB/D 4-1 1...
BUFFALO supports serial I/O to a terminal and/or host via a DUART (external IC) located at $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. Refer to the buf25.asm file on the EVB diskette. M68HC11EVB/D...
$DFFF). The second method is to assemble code on a host computer and then download the code to the EVB user RAM via Motorola S-records. The monitor program is then used to debug the assembled user code. Having the monitor program in EPROM external to the MCU ($E000- $FFFF) allows the user to add instructions to customize the monitor for specific requirements.
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. After a command has been entered, pressing <CR> a second time will repeat the command. M68HC11EVB/D...
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 keyboard <CR> key is depressed. Typical example of this explanation is as follows: >MD F000 F100<CR> M68HC11EVB/D 4-5 5...
Download (S-records*) via terminal port 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) M68HC11EVB/D...
Page 42
(same as HELP) [<address>]/ (same as MM [<address>]) NOTES 1. On newer mask sets of MC68HC11, CONFIG can only be changed in special test or bootstrap modes of operation. 2. * Refer to Appendix A for S-record information. M68HC11EVB/D 4-7 7...
Page 43
3 or 4 digits specifies extended). Extended addressing can be forced by padding the address operand with leading zeros. (d.) 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. M68HC11EVB/D...
Page 44
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. M68HC11EVB/D 4-9 9...
$FFFF Assembler operation terminated. >(CTRL)A > NOTE Above example memory locations $C000-$C008 contain $FF data which disassembles to STX $FFFF. Refer to the end of this chapter for additional operational information pertaining to the use of the assembler/disassembler. 4-10 M68HC11EVB/D...
If an invalid address is specified, an invalid address message "rom-xxxx" is displayed on the terminal CRT (xxxx = invalid address). EXAMPLES DESCRIPTION Fill each byte of memory from C000 through C030 with >BF C000 C030 FF<CR> data pattern FF. Set location C000 to 0. >BF C000 C000 0 M68HC11EVB/D 4-11...
Set several breakpoints. BR <addr1> <addr2> ... Remove all breakpoints. BR - Remove <addr1> and add <addr2>. BR -<addr1> <addr2>... BR <addr1> - <addr2>... Add <addr1>, clear all entries, then add <addr2>. Add <addr1>, then remove <addr2>. BR <addr1> -<addr2>... 4-12 M68HC11EVB/D...
Page 48
Only RAM locations can be breakpointed. >BR E000<CR> Invalid address message. rom-E000 0000 0000 0000 0000 > >BR C005 C007 C009 C011 C013<CR>Maximum of four breakpoints can be set. Buffer full message. Full C005 C007 C009 C011 > M68HC11EVB/D 4-13...
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 DESCRIPTION Bulk erase all MCU EEPROM locations ($B600-$B7FF). >BULK<CR> Prompt indicates erase sequence completed. > 4-14 M68HC11EVB/D...
Specify remapped EEPROM starting address. >EEMOD E800<CR> Starting address & ending address displayed. E800 EFFF Ending address automatically established via (<addr1> + 2K > bytes). >EEMOD F800 FFFF<CR> Specify remapped EEPROM starting and ending address for an XC68HC811E2 device. F800 FFFF > 4-18 M68HC11EVB/D...
Page 54
Refer to example program shown on page 4-15 and insert breakpoints at locations $C005 and $C007 for the following G command example. EXAMPLE DESCRIPTION Begin program execution at PC address location C000. >G C000<CR> P-C005 Y-0000-X-00CD A-44 B-FB C-D0 S-004A Breakpoint encountered at C005. > M68HC11EVB/D 4-19...
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 M68HC11EVB/D...
>LOAD cat trial.out<CR> cat trial.out Invalid address message. error addr E000 S-records must be downloaded into RAM. > Refer to the downloading procedures at the end of this chapter for additional information pertaining to the use of the LOAD command. M68HC11EVB/D 4-21...
Examine/modify next location. (CTRL)H or ^ or - Examine/modify previous location. Examine/modify same location. <CR> Terminate MM operation. Compute branch instruction relative offset. If an invalid address is specified, the invalid address message "rom" is displayed on the terminal CRT. M68HC11EVB/D 4-23...
Page 59
>MM C000<CR> Examine next location(s) using (SPACE BAR). C000 55 80 C2 00 CE C4 Examine EEPROM location $B600. >MM B600<CR> Change data at location $B600. B600 73 52<CR> Reexamine EEPROM location $B600. >MM B600<CR> B600 52 > 4-24 M68HC11EVB/D...
Caution should be observed when moving data into EEPROM locations. EVB MCU CONFIG register ROMON bit is cleared to disable MCU internal ROM. EXAMPLE DESCRIPTION Move data from locations $E000-$E7FF to >MOVE E000 E7FF C000<CR> locations $C000-$C7FF. > M68HC11EVB/D 4-25...
STOPAT command example. The RD command was used prior to this example to set the user PC register to $C000. EXAMPLE DESCRIPTION Execute example program until $0108 is reached. >STOPAT 0108<CR> P-0108 Y-DEFE X-F4FF A-04 B-FE C-90 S-0047 > 4-28 M68HC11EVB/D...
XXXX = host computer password. Password:XXXX<CR> "System Message" Task completed. Enter exit command. $(CTRL)A Exit transparent mode. > Refer to the downloading procedures at the end of this chapter for additional information pertaining to the use of the TM command. 4-30 M68HC11EVB/D...
>VERIFY cat trial.out<CR> Mismatch encountered. cat trial.out Error message displaying first byte address. error addr E000 > Refer to the downloading procedures at the end of this chapter for additional information pertaining to the use of the LOAD command. M68HC11EVB/D 4-31...
MC68HC11 MCU device operating in the bootstrap mode. These signals appear as nonsense data to the terminal display used for normal communication with the EVB. After using the XBOOT command the EVB must be reset by pressing the reset switch S1 before normal communications can resume. 4-32 M68HC11EVB/D...
Page 68
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 EVB operation. M68HC11EVB/D 4-33...
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-34 M68HC11EVB/D...
Page 70
Wait for empty transmit data reg. C014 TEST >BEQ C00F<CR> 27 F9 Read SCI status register. C016 BITB $80F6 >LDAA 102E<CR> B6 10 2E Extract RDRF bit from status reg. C019 BVS $C01B >ANDA #20<CR> 84 20 (continued) M68HC11EVB/D 4-35...
Page 71
> The routines, on the next page, are performed on the SCI program loop just assembled: NOTE Connector P1 pins 20 and 21 are connected (connects SCI transmitter to the receiver) in order to perform the following routines. 4-36 M68HC11EVB/D...
4.8 DOWNLOADING PROCEDURES This portion of text describes the EVB downloading procedures. The downloading operation enables the user to transfer information from Motorola's EXORciser development station or a host (personal) computer to the EVB (or target system memory). Specific downloading procedures are described enabling the user to perform downloading operations with an EXORciser development station and host personal computer (PC) systems.
Apple Macintosh (with MacTerminal) to EVB The MacTerminal downloading program in this application is used as a terminal emulator for the Apple Macintosh computer. To download a Motorola S-record file from the Apple Macintosh computer to the EVB, perform the following steps: 1.
Page 77
8. Operate pull-down File menu, and select (choose): Send File ... 9. Use dialog box and select applicable S-record object file. Click on: Send Motorola S-record file is now transferred to the EVB. NOTE S-record file will not be displayed during the file transfer to the EVB.
Apple Macintosh (with Red Ryder) to EVB The Red Ryder downloading program in this application is also used as a terminal emulator for the Apple Macintosh computer. To download a Motorola S-record file from the Apple Macintosh computer to the EVB, perform the following steps: 1.
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. Motorola S-record file is now transferred to the EVB. Upon completion of the S-record transfer, the following message is displayed: done >...
The EVB allows the user to use all the features of the monitor BUFFALO program, however it should be noted that the monitor program uses the MCU on-chip RAM locations $0048-$00FF leaving only 72 bytes for the user (i.e., $0000-$0047). This should be remembered when writing code. M68HC11EVB/D...
(U1) is used to replace the MCU I/O ports B and C (including STRA and STRB control lines) used for single chip mode of operation. The PRU provides the required single chip mode I/O lines for target system evaluation (emulation) via the EVB MCU extension I/O port connector P1. Figure 5-1. EVB Block Diagram M68HC11EVB/D...
Refer to the buf25.asm file on the EVB diskette for additional information pertaining to the ONSCI subroutine. The host I/O port is provided for downloading Motorola S-records via the BUFFALO monitor commands. When using the host I/O port, either by executing the HOST or LOAD commands, The target system Serial Communications Interface (SCI) is switched to the host I/O port via the MC74HC4066 digital switch device (U7) and MC74HC74 latch device (U11).
Connector P4 interconnects an external power supply to the EVB. Pin assignments for the above connectors (P1 through P4) are identified in Tables 6-1 through 6- 4, respectively. Connector signals are identified by pin number, signal mnemonic, and signal name and description. M68HC11EVB/D 6-1 1...
PORT C (bits 0-7) - General purpose I/O lines. RESET* RESET - An active low bi-directional control line used to initialize the MCU. XIRQ* X INTERRUPT REQUEST - An active low input line used to request asynchronous non-maskable interrupts to the MCU. M68HC11EVB/D...
Page 88
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. VOLTAGE REFERENCE HIGH - Input reference supply voltage (high) line. Same purpose as pin 51. 53-60 Not connected. M68HC11EVB/D 6-3 3...
(carrier) signal has been detected. This pin is connected to both CTS pin 5 and DSR pin 6. 9-19 Not connected. DATA TERMINAL READY - An input line used to indicate an on-line/in-service/active status. 21-25 Not connected. M68HC11EVB/D...
DATA CARRIER DETECT - An output signal used to indicate an acceptable received line (carrier) signal has been detected. This pin is connected to DSR pin 6. 9-19 Not connected. DATA TERMINAL READY - An input line used to indicate an on-line/in-service/active status. 21-25 Not connected. M68HC11EVB/D 6-5 5...
GROUND +5 V +5 Vdc Power - Input voltage (+5 Vdc @ 0.5 A) used by the EVB logic circuits. +12 V +12 Vdc Power - Input voltage (+12 Vdc @ 0.1 A) used by the EVB logic circuits. M68HC11EVB/D...
(Figure 6-1) that is associated with the parts list table. This parts list reflects the latest issue of hardware at the time of printing. Figure 6-1. EVB Parts Location Diagram M68HC11EVB/D 6-7 7...
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. M68HC11EVB/D...
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.
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. M68HC11EVB/D...
BUFFALO can be used with the MC68HC11 MCU in the single-chip mode as shown in Figure C- 1. The only terminal interface is through the SCI port. Internally there are 54 bytes of RAM starting at $0000, and 512 bytes internal EEPROM which can be used for developing user programs. M68HC11EVB/D B-1 1...