Page 2
Motorola further assumes no liability arising out of the application or use of any information, product, or system described herein: nor any liability for incidental or consequential damages arising from the use of this document.
Customer Support ........18 1.2 Overview This section provides an overview of the Motorola M68ICS08RK in-circuit simulator (RKICS).
Page 14
The RKICS connects to the target machine via the provided 20-pin ribbon cable or an optional Motorola M68CLB05A flex cable (available separately). It connects to the software host via a single RS-232 connection and a standard DB-9 serial cable.
Table 1-2 lists the RKICS hardware components. Table 1-2. Hardware Components Components Description Test sockets for the Motorola MC68HC908RK2 MCU: 20-pin SSOP (small shrink outline package) 20-pin SOIC (small outline integrated circuit) 32-pin QFP (quad flat pack) User-selectable 2.0-volt to 3.3-volt variable voltage level shifter RS-232 to interface the RKICS to the host serial connector One 2-row ×...
In-circuit and stand-alone simulation of MC68HC908RK2 MCUs with ICS08RKZ, including: – Simulation of all instructions, memory, and peripherals – Optional simulator pin inputs from the target – Conditional breakpoints, script files, and logfiles User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Introduction MOTOROLA...
• Approximately 2 Mbytes of available random-access memory (RAM) and 5 Mbytes of free disk space • A serial port for communications between the RKICS and the host computer M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Introduction...
The procedural instructions in this manual assume that the user is familiar with the Windows interface and selection procedures. 1.8 Customer Support To obtain information about technical support or ordering parts, call the Motorola help desk at 800-521-6274. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Introduction...
The RKICS includes a single 4-inch × 6-inch printed circuit board (PCB) (M68ICS08RK2). Figure 2-1 shows a diagram of the RKICS board, Figure 2-2 shows a block diagram of the RKICS board, and Figure 2-3 is the functional block diagram. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Hardware Installation MOTOROLA...
Five jumper headers on the RKICS are used to reconfigure the hardware options. Table 2-1 is a quick reference to these optional settings, while subsections 2.3.2.1 through 2.3.2.4 describe jumper header configuration in greater detail. M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Hardware Installation...
Crystal Oscillator Frequency divided by 4 = Bus Frequency (factory Bus Frequency divided by 256 = Baud Rate default) Crystal Oscillator Frequency divided by 2 = Bus Frequency Bus Frequency divided by 256 = Baud Rate M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Hardware Installation...
(ICS-OCS) to the external clock input (OSC1) of the RKICS via jumper headers W4 and W5 (refer to Figure 2-7). Refer to Table 2-3 for a description of the clock source options. Figure 2-7. Clock Source Selection Jumper Headers User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Hardware Installation MOTOROLA...
Use connector J1 to connect the RKICS to the target system via the provided target cable. Connector J1 is a 40-pin shrouded header. Use the optional Motorola M68CLB05A flex cable (which must be purchased separately) to interconnect the RKICS to the target system, via connector J1.Figure 2-10 shows J1 pinouts.
Connect +5-Vdc power directly to the RKICS via connector P1 using the provided power supply. Power connector P1 pinouts are shown in Figure 2-13. +5 Vdc Figure 2-13. P1 Power Connector M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Hardware Installation...
Hardware Installation 2.4 Installing the Hardware For installing Motorola development tools, the following steps provide installation instructions for the RKICS hardware. Before beginning, locate these items: • 9-pin RS-232 serial connector on the board, labeled P2 • 5-volt circular power-input connector on the RKICS To prepare the RKICS for use with a host PC: 1.
Connect the board’s MON08 connector with a compatible MON08 connector on the target system. Complete instructions for constructing this interface on the target board are found in Section 4. Using the MON08 Interface. M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Hardware Installation...
The on-board MCU (the test MCU) simulates and debugs the MCU’s interface to its peripherals and to other devices on the target board through a variety of connections. M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Support Information...
M68ICS08RK2 board. NOTE: The signal descriptions in the following tables are for quick reference only. The MC68HC908RK2 User's Manual, MC68HC908RK2/D, contains a complete description of the MC68HC908RK2 MCU signals. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Support Information MOTOROLA...
PORT B (bit 2) — General-purpose MCU I/O signal TARGET PORT B (bit 3) — General-purpose I/O signal from the target TGT-PTB3 system PTB3 PORT B (bit 3) — General-purpose MCU I/O signal No connection No connection M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Support Information...
Port A I/O / keyboard interrupt – bit 3 PTA2/KBD2 PTA2 Bidirectional Port A I/O / keyboard interrupt – bit 2 PTA1/KBD1 PTA1 Bidirectional Port A I/O / keyboard interrupt – bit 1 User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Support Information MOTOROLA...
RECEIVE DATA — Output for sending serial data to the DTE device TRANSMIT DATA — Input for receiving serial data output from the DTE device DATA TERMINAL READY — Input for receiving on-line/in-service/active status from the DTE device GROUND M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Support Information...
P2. Figure 4-1 shows the pin layouts for P1 and P2. Additional information about the connections on the RKICS board can be found in Appendix B. Technical Reference and Troubleshooting. M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Using the MON08 Interface...
MCU. Connect to MCU PTB3 pin. No other target-system logic should be PTB3 Bidirectional tied to this signal. Grounded during reset. Not connected Not connected User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Using the MON08 Interface MOTOROLA...
Figure 4-2. This reconnects the target MCU to the appropriate circuits on the target system. M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Using the MON08 Interface...
The circuit shown in Figure 4-3 intercepts the mode select and communication signals for in-circuit debugging and programming. APPLICATION MC68HC908RK2 RST-OUT RST-IN PTA0 PTB0 PTB2 PTB3 Figure 4-3. Application Designed with a Circuit for MON08 User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Using the MON08 Interface MOTOROLA...
ASCII Characters ........54 A.2 Overview The Motorola S-record format was devised to encode programs or data files in a printable format for transport between computer platforms. The format also provides for editing of the S records and monitoring the cross-platform transfer process.
Accuracy of transmission is ensured by the record length (byte count) and checksum fields. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 S-Record Information MOTOROLA...
A.4 S-Record Types Eight types of S records have been defined to accommodate the several needs of the encoding, transport, and decoding functions. The various Motorola upload, download, and other record transport 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.
Entry Type S-record type S0, indicating a header record Record Hexadecimal 06 (decimal 6), indicating six Length character pairs (or ASCII bytes) follow Address 4-character, 2-byte address field; zeroes User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 S-Record Information MOTOROLA...
4, $23, $018C Checksum Checksum of the first S1 record The 16 character pairs shown in the code/data field of Table A-5 are the ASCII bytes of the actual program. M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA S-Record Information...
The 20-pin ribbon cable is included in the kit and cannot be ordered separately. • A flexible target head adapter cable (Motorola part number M68CBL05A), terminating in connectors for one of three target head adapters. This cable must be ordered separately. Four target head adapters (THAs) are available for use with the flex cable: –...
Page 57
RKICS Board When the MCU resides on a target system, the RKICS board can communicate with the MCU over a 16-pin MON08 cable (Motorola part number 01-RE91008W01). The MON08 cable supports the MCU installed in either the target system or the RKICS.
Check the power at the output of the adapter. First disconnect the RKICS from the power supply, then measure the power at the wall adapter’s output connector to confirm that it produces +5 Vdc. The User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Technical Reference and Troubleshooting MOTOROLA...
Page 59
If the MCU power LED is on, there may be a problem with the host PC’s serial port or the serial cable. See step 5 for communications M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Technical Reference and Troubleshooting...
Page 60
They are wired only for probing purposes. b. Make sure that the serial cable is correctly attached to the RKICS and to the correct serial port on the host computer. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Technical Reference and Troubleshooting MOTOROLA...
Page 61
21). Set the oscilloscope to 0.1 ms per division. The oscillator should run when the MCU power LED is on. Approximately two divisions per cycle should be observed. This corresponds to a 4.9152-MHz signal, the M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Technical Reference and Troubleshooting...
Page 62
Either RST or IRQ must remain at +7.5 Vdc to hold the MCU in monitor mode. The RKICS board has an interrupt lock out feature to keep IRQ at 7.5 Vdc when the RST or RST-IN signal is asserted User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Technical Reference and Troubleshooting MOTOROLA...
Page 63
If the RKICS is to provide power to the target system, ensure that the current drain on the target connector’s V pins is kept under 100 mA. M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Technical Reference and Troubleshooting...
LED should be off. If the MCU power LED is on, there may be a problem with the host PC’s serial port or the serial cable. Refer to step 9 for information on host communications. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Technical Reference and Troubleshooting MOTOROLA...
Page 65
0 should never be set to 1, as this interrupts monitor-mode communications. The MON08 pin TGT-PTA0 (J6 pin 7) is never connected to the MCU’s PTA0 pin. It is wired to J3 pin 15, J1 pin M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Technical Reference and Troubleshooting...
Page 66
If the clock signal is not present, check to see that a jumper is installed on W5. This selects the RKICS as the source of the OSC1 signal. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1 Technical Reference and Troubleshooting MOTOROLA...
Page 67
TGT-PTB3 pins of the MON08 connector. These signals will be connected by the RKICS to the corresponding pins of the MCU through the corresponding MON08 connector pins — RST, IRQ, PTB0, PTB2, M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Technical Reference and Troubleshooting...
Page 70
Table B-1. RKICS Parts List (Sheet 3 of 3) Reference Description Manufacturer Part Number Designator Fairchild IC, single OR gate NC7SZ32M5 Semiconductor IC, switch mode controller Motorola MC34063AD IC, voltage regulator Linear Technology LT1086CM IC, quad, analog, multiplexer Analog Devices, Inc. ADG774BR IC, RS323-XCVR Linear Technology LTC1386CS...
Board Layout and Schematic Diagrams B.7 Board Layout and Schematic Diagrams Figure B-1 shows the RKICS board layout and component locations. The RKICS schematic diagrams follow. Figure B-1. M68IC508RK2 Board Layout M68ICS08RK In-Circuit Simulator — Rev. 1 User’s Manual MOTOROLA Technical Reference and Troubleshooting...
Page 72
M o d i f i e d a f t e r F A T a n d M o t o r o l a t e s t i n g R E V I S I O N S N O T E S : Z O N E R E V...
Page 73
V D D - S W V D D - L V M M B D 9 1 4 V D D - L V V D D V D D R 1 0 R 1 3 1 0 K V D D V D D - L V 1 0 K...
Page 74
T G T - P T B [ 0 . . 3 ] T G T - P T B [ 0 . . 3 ] S h e e t 5 P T B [ 0 . . 5 ] S h e e t 4 , 5 V D D - L V V D D - S W V D D - S W...
Page 75
S h e e t 3 , 5 P T B [ 0 . . 5 ] S h e e t 2 , 3 , 5 P T A [ 0 . . 7 ] V D D - L V X U 1 M C 6 8 H C 9 0 8 R K 2 / S S O P P T A 0...
Page 76
S h e e t 2 , 3 , 4 P T A [ 0 . . 7 ] F I D 1 F I D 2 F I D 3 S h e e t 3 , 4 P T B [ 0 . . 5 ] T G T - P T B 0 T G T - P T A 0 S h e e t 3...
Page 77
(SWI) instruction for the instruction at that address. In response to the SWI, control is passed to a debugging program. byte — A set of exactly eight binary bits. M68ICS08RK In-Circuit Simulator — Rev. 1.0 User’s Manual MOTOROLA Glossary...
Page 78
MC68HC908 are A (8-bit accumulator), X (8-bit index register), CCR (condition code register containing the H, I, N, Z, and C bits), SP (stack pointer), and PC (program counter). cycles — See CPU cycles. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1.0 Glossary MOTOROLA...
Page 79
— Instructions are operations that a CPU can perform. Instructions are expressed by programmers as assembly language M68ICS08RK In-Circuit Simulator — Rev. 1.0 User’s Manual MOTOROLA Glossary...
Page 80
file — A text file containing numbers that represent the binary opcodes and data of a computer program. An object code file can be used to load binary information into a computer system. Motorola uses the S-record file format for object code files.
Page 81
— Reset is used to force a computer system to a known starting point and to force on-chip peripherals to known starting conditions. S record — A Motorola standard format used for object code files. simulator — A computer program that copies the behavior of a real MCU.
Page 82
If the values were equal, the result of this subtraction would be 0 so the Z bit would be set; after a load accumulator instruction, the Z bit will be set if the loaded value was $00. User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1.0 Glossary MOTOROLA...
Page 88
Index User’s Manual M68ICS08RK In-Circuit Simulator — Rev. 1.0 Index MOTOROLA...
Page 90
Motorola does not 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.