Page 2
The computer program stored in the Read Only Memory of the device contains material copyrighted by Motorola Inc., first published 1990, and may be used only under a license such as the License For Computer Programs (Article 14) contained in Motorola’s Terms and Conditions...
Page 3
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.
The EVBU and a monitor/debugging program called BUFFALO (Bit User Fast Friendly Aid to Logical Operations) demonstrate the capabilities of this MCU. The monitor program is contained in MCU ROM. The debugging/evaluation operation lets you debug user code under control of the BUFFALO monitor program. M68HC11EVBU/D...
There are two ways to assemble user code: use the line assembler in the BUFFALO monitor program or assemble code on a host computer and then download the code to the EVBU user RAM via an Motorola S-records. The monitor program is then used to debug the assembled user code.
GENERAL INFORMATION CUSTOMER SUPPORT For information about a Motorola distributor or sales office near you call: AUSTRALIA, Melbourne – (61-3)887-0711 JAPAN, Fukuoka – 81-92-725-7583 Sydney – 61(2)906-3855 Gotanda – 81-3-5487-8311 Nagoya – 81-52-232-3500 BRAZIL, Sao Paulo – 55(11)815-4200 Osaka – 81-6-305-1802 CANADA, B.
P2 on the EVBU. An external battery may be connected to P3 on the EVBU for battery backup purposes. Connectors P4 and P5 are used to connect the EVBU to the wire-wrap area or other user-supplied equipment. Switch S1 lets you reset the EVBU. M68HC11EVBU/D...
+14.0 Vdc) to the input power connector P1. To utilize this secondary power source, install an MC78L05C voltage regulator at location U1 (shown below). After installing the voltage regulator, move the fabricated jumper on pins 1 and 2 of jumper header J1 to pins 2 and 3. MC78L05C (TOP PCB VIEW) M68HC11EVBU/D...
PE0 line, the BUFFALO monitor will gain control after a reset operation. For additional EEPROM jump operation information, described above, refer to EVBU monitor program (lines 0162 and 0163) of the listing stored on the EVBU diskette (see file buf32.asm). M68HC11EVBU/D...
J4 to return the EVBU to the factory configuration (single-chip mode). Jumper header J3 does not contain a cut trace short. MODB MODA Cut-Trace Short NOTE If J4 cut-trace short is cut, you must install a user-supplied fabricated jumper on J4 to return it to the factory configuration. M68HC11EVBU/D...
Page 19
J3 and J4. For expanded- multiplexed and special-test modes of operation, additional peripheral circuitry must be implemented on the EVBU wire-wrap area to support the expanded modes. The EVBU can be reconfigured for the special-bootstrap mode of operation without additional peripheral circuitry. M68HC11EVBU/D...
For special applications using the MCU EXTAL and XTAL signals in a target system environment or EVBU wire-wrap area, install fabricated jumpers on jumper headers J5 and J6. When jumpers are installed, both EXTAL and XTAL signals are routed to the MCU I/O port connectors P4 and P5. M68HC11EVBU/D...
BUFFALO monitor commands are not available. BUFFALO commands which will not function without a jumper installed on J7 are: proceed (P), stop at address (STOPAT), and trace (T) commands. Refer to the schematic diagram (Figure 6-2) located in Chapter 6 for PA3/OC5 signal wiring information. M68HC11EVBU/D...
J8 and J9 to the factory configuration install user supplied fabricated jumpers on the J8 and J9. Refer to the schematic diagram (Figure 6-2) located in Chapter 6 for PD0/RXD and PD1/TXD signal wiring information. 2-10 M68HC11EVBU/D...
J10 through J13 to the factory configuration install user supplied fabricated jumpers on jumper headers J10 through J13. Refer to the schematic diagram (Figure 6-2) located in Chapter 6 for PD4/SCK, PD2/MISO, PD3/MOSI, and PD5/SS signal wiring information. M68HC11EVBU/D 2-11...
When connection of the MC68HC68T1 peripheral device INT* signal line to the MCU is required, you must install a (user supplied) fabricated jumper on the component side of the PCB. Refer to the schematic diagram (Figure 6-2) located in Chapter 6 for INT* and XIRQ* signal wiring information. 2-12 M68HC11EVBU/D...
Refer to the parts list contained in Chapter 6 for jumper header J15 component description. Refer to the schematic diagram (Figure 6-2) located in Chapter 6 for TxD signal wiring information. M68HC11EVBU/D 2-13...
• Full clock features – seconds, minutes, hours (AM/PM), day-of-week, date, month, year (0-99), auto leap year • 32 word by 8-bit RAM • Direct interface to Motorola serial peripheral interface (SPI) • Minimum time-keeping voltage 2.2 V • Burst mode for reading/writing successive addresses in clock or RAM •...
D4 1N4148 diode, jumper wire, or resistor (application dependent) A user-supplied +3.0 Vdc @ 25 µA battery is connected to the EVBU battery connector P3 (feed-thru holes designated + and -) for battery backup purposes as shown below. M68HC11EVBU/D 2-15...
MC68HC68T1 device. Refer to the MC68HC68T1 Real-Time Clock plus RAM with Serial Interface data sheet (MC68HC68T1/D) for additional device information pertaining to the above test point signals. Refer to the parts list contained in Chapter 6 for test points TP1-TP6 component descriptions. 2-16 M68HC11EVBU/D...
P5 is user supplied. Refer to the parts list contained in Chapter 6 for connector P5 component description. As shown on the following page, connector P5 supplies the EVBU wire-wrap area with the +5 Vdc and ground (GND) power connections. M68HC11EVBU/D 2-17...
EVBU power supply connector P1 is shown below. The power supply cable consists of two 14-22 AWG wires that interconnect +5 Vdc and ground (GND) from the user-supplied power supply to the EVBU connector P1. 2-20 M68HC11EVBU/D...
Page 33
P1. To utilize this secondary power source, install an MC78L05C voltage regulator at location U1. Upon completion of the voltage regulator installation, you must reinstall the fabricated jumper on jumper header J1, from pins 1 and 2 to pins 2 and 3. M68HC11EVBU/D 2-21...
PC to EVBU terminal port connector P2. SIG-GND Figure 2-4. Terminal I/O Port Connector Figure 2-5 illustrates a suitable cable assembly for connecting the EVBU to a dumb terminal. This cable assembly is made from standard mass termination ribbon cable components. 2-22 M68HC11EVBU/D...
Page 36
(shown below) may be required to match the cable to the EVBU terminal port connector. A null modem adapter is used to reverse the roles of various data and control signals to make a DTE device appear as a DCE device or vice versa. DB-25S DB-25P SIG-GND SIG-GND NULL MODEM ADAPTER 2-24 M68HC11EVBU/D...
EVBU MCU circuitry to the EVBU wire-wrap area components. For connector pin assignments and signal descriptions of the EVBU MCU I/O port connector P5, refer to Chapter 6. Refer to the parts list contained in Chapter 6 for the connector P5 component description. M68HC11EVBU/D 2-25...
VRL signal source is used (refer to the schematic diagram Figure 6-2 for additional information). The PCB default cut trace is illustrated below. PIN 51 PIN 1 PCB SOLDER SIDE Consult the MC68HC11E9 data sheet for specific information pertaining to the use of the VRL pin. 2-28 M68HC11EVBU/D...
<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...
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...
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 44
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...
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 46
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...
(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...
$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...
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 50
(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...
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...
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...
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...
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 55
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...
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 57
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 58
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 59
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 60
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...
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 62
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 64
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...
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...
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...
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 68
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...
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...
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...
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...
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...
>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...
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 80
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...
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 82
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...
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.
Apple Macintosh (with MacTerminal) to EVBU 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 EVBU, perform the following steps: 1.
Page 85
9. Use dialog box and select applicable S-record object file. Click on: Send Motorola S-record file is now transferred to the EVBU. NOTE S-record file is not displayed during the file transfer to the EVBU. Upon completion of the S-record transfer, the following message is displayed: done >...
Apple Macintosh (with Red Ryder) to EVBU 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 EVBU, 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. (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 >...
This allows the memory at $D000-$FFFF to contain the BUFFALO monitor program. The monitor program uses the MCU internal RAM located at $0048-$00FF. The control registers are located at $1000-$103F. M68HC11EVBU/D...
325 bytes of RAM for the user (i.e., $0000-$0047 and $0100-$01FF). 512 bytes of EEPROM are also available for user programs. RXD/PD0 RS-232C DRIVERS TXD/PD1 TERMINAL RECEIVER CONTROL PD2-PD5 REAL-TIME CLOCK, BATTERY RAM, XIRQ BACKUP SERIAL INTERFACE PE0-PE7 PD0-PD5 PC0-PC7 WIRE-WRAP AREA PB0-PB7 PA0-PB7 Figure 5-1. EVBU Block Diagram M68HC11EVBU/D...
EVBU terminal I/O port. The terminal I/O port baud rate defaults to 9600 baud via the MCU SCI. This baud rate can be changed by software by reprogramming the MCU BAUD register. The terminal I/O port is also used as a host computer I/O port for downloading Motorola S- records via BUFFALO monitor commands.
4. Connector signals are identified by pin number, signal mnemonic, and signal name and description. Table 6-1. Input Power Connector (P1) Pin Assignments Pin Number Signal Mnemonic Signal Name And Description +5 V +5 Vdc Power – Input voltage (+5 Vdc @ 50 mA) used by the EVBU logic circuits. Ground M68HC11EVBU/D...
(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. M68HC11EVBU/D...
MCU external data bus in the expanded multiplexed mode of operation. – EXTAL EXTERNAL CLOCK INPUT An input clock signal used to control the MCU internal clock generator. The frequency applied to this pin must be four times higher than the desired E clock rate. M68HC11EVBU/D...
Page 96
PA6/OC2 signals. Not connected. – PA5/OC3, PORT A (bits 5-0) General purpose I/O lines and/or timer PA4/OC4, signals. PA3/OC5, PA2/IC1, PA1/IC2, PA0/IC3 – PB7/A15 PORT B (bits 7-0) General purpose output lines. PB6/A14 PB5/A13 PB4/A12 PB3/A11 PB2/A10 PB1/A9 PB0/A8 M68HC11EVBU/D...
Page 97
VOLTAGE REFERENCE LOW – Input reference supply voltage (low) line for the MCU analog-to-digital (A/D) converter. VOLTAGE REFERENCE HIGH – Input reference supply voltage (high) line for the MCU A/D converter. – SPARE Spare pins (see schematic diagram). 57, 58 +5 Vdc 59, 60 Ground M68HC11EVBU/D...
This parts list reflects the latest issue of hardware at the time of printing. Table 6-5. EVBU Parts List Reference Designation Component Description Printed Wiring Board (PWB), M68HC11EVBU C1, C10, C12-C14 Capacitor, electrolytic, 10 µF @ 63 Vdc, +/-20% C2-C4, C8, C9, C11 Capacitor, 0.1 µF @ 50 Vdc, +/-20%...
Page 99
Socket, 16 pin, DIP, Robinson Nugent # ICL-163-S6-TG (use with U5) Ceramic resonator, MCU, 8.0 MHz, Panasonic # EFO-GC8004A4, Fox # FSC8.00 Quartz oscillator, 32.768 Khz Fox # NC38-32.768KHz Fabricated jumper, Aptronics # 929955-00 (use with jumper headers J1, J2, and J7) M68HC11EVBU/D...
SUPPORT INFORMATION DIAGRAMS Figure 6-1 is the EVBU parts location diagram. Figure 6-2 is the EVBU schematic diagram. Figure 6-1. EVBU Parts Location Diagram M68HC11EVBU/D...
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...
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. M68HC11EVBU/D...