Page 1
ILOG Electrical Safeguards WARNING: Follow the precautions listed below to avoid permanent damage to hardware. I. Always use a grounding strap to prevent damage resulting from electrostatic discharge (ESD). II. Power-Up Precautions 1. Power up the PC (or dumb terminal) and ensure that it is running properly. 2.
Page 2
ILOG Z8S180 E MULATOR ANUAL ABLE OF ONTENTS ITLE 1: I HAPTER NTRODUCTION ........................1-1 VERVIEW ........................ 1-1 EATURES ....................1-2 UPPORTED ILOG EVICES ....................1-2 ARDWARE PECIFICATIONS Z8S180 E ............. 1-2 MULATOR UNCTIONAL LOCK IAGRAM ................1-3 UPPORT RODUCTS ACKAGE ONTENTS ..................
Page 3
ILOG ABLE OF ONTENTS (Continued) ITLE 4: R HAPTER EFERENCE ........................4-1 BOUT ESET ..................4-2 MULATION ODES OF PERATION ......................4-2 ONITOR ......................... 4-3 RESET ......................4-3 Z8S180 E ..................4-4 MULATOR CHEMATIC A: A ZBBS/I ..............A-1 PPENDIX CCESSING THE NTERNET B: P...
Page 4
Note that the complete Z8S180 Emulator Schematic Diagram is included at the back of this user's manual. Please fill out and return the enclosed Zilog Registration Card as soon as possible so we can advise you of updates and improvements to your Zilog Z8S180 Emulator.
Page 5
(TZ.EXE) that provides terminal emulation facilities for a PC. Users of the Z8S180 Emulator can create software on the PC by using a Zilog assembler, linker, and other development tools included with the Z8S180 Emulator, or using Z80/Z180 software development tools from other companies.
Page 6
Z8S180 E MULATOR ANUAL ILOG SUPPORTED ZILOG DEVICES Device Packaging Z8S180 68-Pin PLCC HARDWARE SPECIFICATIONS Dimensions 4.2 in. H x 4.2 in W Oscillator Frequency (OSC) 18.432 MHz Host Interface RS-232 (EIA-232) Serial Baud Rate 1,200 to 57,600 Bits/sec. +5 VDC ± 5%...
Page 7
Windows Startup for TZ on COM1 TZ96COM2.PIF Windows Startup for TZ on COM2 Publications Z8S180 Emulator User's Manual asm 800, Z800 Cross Assembler User's Guide Zilog Universal Object File Utilities User's Guide Z80180/Z180 MPU User's Manual Z180 Family Microprocessors and Peripherals Databook ST951800100 UM010501-0301...
Page 8
Z8S180 E MULATOR ANUAL ILOG REQUIREMENTS AND RESTRICTIONS Minimum Hardware The Z8S180 Emulator can be used with a dumb terminal and a power supply; however, a PC is recommended to take full advantage of the development kit's software downloading and develop- ment capabilities.
Page 9
Z8S180 E MULATOR ANUAL ILOG Target Design Restrictions /MREQ In order for the Z8S180 emulator to emulate the processor in a target board, the target board must enable its memories only when the /MREQ signal is low. The target board may include /MREQ in a /CS signal, or in /OE and /WE signals, of its memories.
Page 10
Z8S180 E MULATOR ANUAL ILOG REQUIREMENTS AND RESTRICTIONS (Continued) Last 256 Bytes of Emulator RAM Protected The Z8S180 Emulator includes 8 KB of RAM that you can locate at various 8 KB address boundaries, or optionally eliminate from the user memory map. When you do include this RAM, its last 256 bytes are protected/hidden from access by your software and by monitor commands to protect the monitor’s internal states, variables, and tables.
Page 11
Software for the Z8S180 Emulator is stored on two diskettes: 1. Z8S180 Sample Files and Monitor Source Diskette 2. Zilog ZASM Cross Assembler/Zilog MOBJ Object File Util. diskette Z8S180 Source Diskette Installation 1. Select the “Run” command from the “File” menu under Microsoft Windows “Program Manager”.
Page 12
GUI diskette. (You may choose to use a different assembler.) 1. Select the "Run" command from the "File" menu under Microsoft Windows "Program Manager". 2. Insert the diskette labeled "Zilog ZASM Cross Assembler/Zilog MOBJ Object File Util." into drive A (or drive B, if appropriate).
Page 13
Z8S180 E MULATER ILOG ANUAL SETTING UP THE HARDWARE Serial Connections to the Host The Z8S180 Emulator includes two serial channels, ASCI0 and ASCI1. Header J4 connects one of these channels to the RS-232 interface chip U7, which, in turn, is connected to the DB-9 Host connector P5.
Page 14
Z8S180 E MULATOR ILOG ANUAL RAM Size 16 KB (or larger) RAM at U4 The Z8S180 Emulator is shipped with an 8 KB RAM in the U4 location, and a shunt between J3-1 and J3-2. If you want to put a 16 KB (or larger) RAM at U4, move the shunt to between J3-2 and J3-3. RAM Presence/Location in User Address Space The J5 header controls whether the RAM on the emulator appears in the user (target) memory map, and if so, at what 8 KB boundary.
Page 15
COM4 connector of your PC. Note: If connector availability is limited to a 9-pin COM1 through COM4, a different cable or a 25-pin to 9-pin converter must be used. (Zilog does not provide either of these items.) CONNECTING TO POWER Connecting to Power Supply.
Page 16
Z8S180 E MULATOR ILOG ANUAL SETTING UP FOR IN-CIRCUIT EMULATION (Refer to Figure 2-1, Z8S180 Emulator Board and PC, and Emulation Adapter Hook-Up Diagram) If you already have a Z80180 board, or when your new design is built, you can use the Z8S180 Emulator in place of the Z180 processor chip.
Page 17
Z8S180 E MULATER ILOG ANUAL Serial Cable 100-Percent IBM-Compatible PC Power Supply Power Supply Connections VCC GND Z180 Z8S180 Emulator Board 68-Pin PLCC Emulation Adapter Your Design Optional: For In-Circuit Emulation, plug 68-Pin PLCC Emulation Adapter into back side of Z8S180 Emulator Board, and into a 68-pin PLCC socket on your target board.
Page 18
“TZ COM n ” (where n is the number of the COM port to which you connected the Monitor serial cable), then press <ENTER>. You should now see the Debug Monitor’s initial screen message: Zilog Z80180 Monitor Version n.m (where n.m is the version number of the Debug Monitor). Z80180> 3. Power-up the system.
Page 19
Z8S180 E MULATER ILOG ANUAL 8. Type “16”, then press <ENTER>. A screen full of assembly-language instructions should appear, followed by another command- line prompt. 1000 1001 10FD DJNZ 1000 1003 1018 DJNZ 101D 1005 20F9 NZ,1000 1007 2014 NZ,101D 1009 30F5 NC,1000...
Page 20
Z8S180 E MULATOR ILOG ANUAL INITIAL CHECKOUT/SAMPLE SESSION (Continued) 12. Type “G” at the monitor command prompt. The screen should show the message “Go Starting at Address:”. Press <ENTER> to start the TSTRST20 program. Note: Chapter describes the I/O services that the Debug Monitor provides to downloaded programs.
Page 21
Z8S180 processor are provided on the Z8S180 Sample Files and Monitor Source Diskette. You can use the Zilog Z800 assembler and object utilities provided with this emulator, or third-party Z80 or Z180 software development tools to generate your own Z8S180 programs and hex files.
Page 22
If all connections to your PC are correct, you should see the following opening message at power up or by pressing the RESET button on the board: Zilog Z80180 Monitor Version v.m Z80180 > Where v is the current version of the debug monitor and m is the revision.
Page 23
Z8S180 E MULATOR ANUAL ILOG Exiting the TZ Program If the TZ Program was started with DOS, enter “CTRL+C” (hold the <CONTROL> key down and enter “C”, then release both). TZ will return you to the DOS prompt. If the TZ Program was started in Windows by double-clicking the TZ icon, the window will close or the full-screen display will be replaced by the Windows environment.
Page 24
Z8S180 E MULATOR ANUAL ILOG PROGRAM COMMANDS Program Basics 1. The monitor program will prompt for all commands (A–X) with “Z80180 >”. 2. Press the <ESC> key if you make a mistake or want to return to the command prompt. 3.
Page 25
Z8S180 E MULATOR ANUAL ILOG Alter Memory [A] Use the Alter Memory command to modify bytes in memory. The display shows the address and current data. When a byte value is entered, it is written to the address shown, and the next higher or lower address and data are displayed.
Page 26
Z8S180 E MULATOR ANUAL ILOG Set or Show Breakpoints [B] (Continued) Example: Z80180>Breakpoint at Address (just <ENTER> to Display All) : No Breakpoints Z80180>Breakpoint at Address (just <ENTER> to Display All) : 1234 Z80180>Breakpoint at Address (just <ENTER> to Display All) : Breakpoints 1234 Z80180>...
Page 27
Z8S180 E MULATOR ANUAL ILOG Example: Z80180>Display Memory starting at : 1000 Number of Bytes : 40 1000 CD 3A 0F E5 21 01 11 B7 28 0A 3D F5 7E 23 B7 20 .:..!... (.=.~#. 1010 FB F1 18 F3 CD 1C 10 E1 C9 CD 3A 0F C5 F5 06 00 ..:..1020 18 03 CD 60 0F 7E 23 B7 28 16 F2 22 10 E5 F5 04 ...‘.~#.
Page 28
Z8S180 E MULATOR ANUAL ILOG Fill Memory [F] When you key an F at a command prompt, the Monitors displays the three prompt messages shown in the following example, and waits for you to enter, in succession, the starting address in memory that you want to clear to a constant value, the value, and the length of the area in bytes, each terminated with <ENTER>.
Page 29
Z8S180 E MULATOR ANUAL ILOG Before the Monitor executes the user program, it proceeds as follows: 1. Checks to see if the opcode at the starting address is a hard-coded RST 28H. If so, it advances the starting address over the RST 28H and proceeds to Step 3. 2.
Page 30
Z8S180 E MULATOR ANUAL ILOG Help [H] Entering “H” displays the command set available from the monitor program. A – Alter Memory B – Set or Show Breakpoints C – Compare Memory Data D – Display Memory Data E – Edit/Display I/O Data F –...
Page 31
When an L is entered at a command prompt, the Monitor displays the courtesy message “Load Hex File”. Then it sends a special sequence of control characters, which a current version of Zilog’s TZ terminator emulator program will recognize as a download request. TZ itself then displays the “File name”...
Page 32
<ENTER> is not needed thereafter. This command should be used only if you are using a current version of Zilog’s TZ terminal emulator program for communications on your host PC. If so, when you key the desired digit, the Monitor pauses for a moment and then returns to the command prompt, at the new rate.
Page 33
Z8S180 E MULATOR ANUAL ILOG Example: Z80180>Enter 0 for 1200 Bits/Second 1 for 2400 2 for 4800 3 for 9600 4 for 14400 5 for 19600 6 for 28800 7 for 38400 Enter 8 for 57600 Bits/Second : 8 Z80180>Load Hex File File name: jonestst 78 Intel hex lines - Done Z80180>Enter 0 for...
Page 34
Z8S180 E MULATOR ANUAL ILOG Display/Alter Registers [R] If an R is entered at a command prompt, the monitor displays the “Display/Alter Register” prompt and waits for entry of the name of a register to be modified, then <ENTER>. If the name of a register is not entered, the Monitor simply displays the contents of all of the user registers, and displays the PC and the current instruction in hexadecimal and disassembled form.
Page 35
Z8S180 E MULATOR ANUAL ILOG S and T Commands Step (Over Subrouting Calls) [S] Step (Into Subroutine Calls) [T] If S or T is entered at the command prompt, the monitor displays the “Step How Many Instructions” prompt and waits for an optional hex value entry, followed by <ENTER>. If a value is not entered, one instruction is assumed.
Page 36
022B 3E4E A,4E 022D CD6A03 CALL 036A Z80180> Display Version of the Monitor [V] Entering a "V" displays the software version number of the Debug Monitor program. Example: Z80180 > Version Zilog Z80180 Monitor Version 1.4 Z80180> 3-16 UM010501-0301 ST951800100...
Page 37
Z8S180 E MULATOR ANUAL ILOG Examine the MMU [X] This command can be used to control the mapping from logical to physical memory. When you enter an “X” at a command prompt, the monitor program reads the values in the three MMU registers (CBAR, BBR, and CBR) and translates their values into to the “current MMU map”...
Page 38
Z8S180 E MULATOR ANUAL ILOG RST 20H Services The monitor program offers a number of console I/O services using the RST 20 instruction. These services have advantages over direct I/O to the ASCI or ESCC registers—they implicitly use the console port that the user has selected. Prior to the RST 20h, the user should set the B register to identify the services required, from the following list.
Page 39
Z8S180 D EVELOPMENT ILOG ANUAL ANUAL HAPTER EFERENCE REFERENCE About RESET The following occurs when you apply power to the board or press RESET: 1. The Z8S180 sets the user Stack Pointer (SP) to 0000, so that the first stack locations used by a subsequent PUSH or CALL instruction would be 0FFFE and 0FFFF.
Page 40
Z8S180 D EVELOPMENT ILOG ANUAL Emulation Modes of Operation The Altera FPGA on the board has two major modes of operation: Monitor Mode User Mode The MREQ signal is gated and controlled by the Altera as described below. This introduces about 6 ns worst-case delay in MREQ, which should not perturb user timing.
Page 41
Z8S180 D EVELOPMENT ILOG ANUAL User Mode As part of a G, S, or T command, the monitor signals the Altera FPGA to enter User Mode by writing to an address in the range 4000-7FFF. The Altera FPGA then enters this mode at the next non M1 cycle, that is, as the starting address is beginning to be fetched from the stack by a subsequent RET instruction in the monitor.
Page 42
Z8S180 D EVELOPMENT ILOG ANUAL Z8S180 DEVELOPMENT BOARD SCHEMATIC Board schematic not available at this site. UM010501-0301 ST951800100...
Page 43
NTERNET ZILOG BULLETIN BOARD INFORMATION The Zilog Bulletin Board Service (ZBBS) currently provides basic information on Zilog products and includes a ROM CODE upload area. In addition, the ZBBS provides valuable information on items of interest, such as Zilog specialty software and documentation.
Page 44
If you experience any problems while operating this product, or if you note any inaccuracies while reading the User's Manual, please copy this form, fill it out, then mail or fax it to Zilog (see "Return Information"). We also welcome your suggestions!
Need help?
Do you have a question about the Z8S18000ZEM and is the answer not in the manual?
Questions and answers