Zilog Z80180 Manual de usuario Pagina 1

Busca en linea o descarga Manual de usuario para Sensores Zilog Z80180. Zilog Z80180 User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 326
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - Family MPU

ZiLOG WORLDWIDE HEADQUARTERS • 532 Race Street • SAN JOSE, CA 95126-3432TELEPHONE: 408.558.8500 • FAX: 408.558.8300 • WWW.ZILOG.COMZ8018xFamily MPUUse

Pagina 2

Z8018xFamily MPU User ManualUM005003-0703xiFigure 49. TEND0 Output Timing Diagram . . . . . . . . . . . . . . . . . . .108Figure 50. DMA Interrupt R

Pagina 3 - Manual Organization

Z8018xFamily MPU User Manual UM005003-070385Z8X180. Figure 43 illustrates the INT1, INT2 and internal interrupts timi

Pagina 4 - Appendices

Z8018xFamily MPU User Manual86UM005003-0703 Figure 43. INT1, INT2 and Internal Interrupts Timing DiagramDynamic RAM Refresh

Pagina 5 - Table of Contents

Z8018xFamily MPU User Manual UM005003-070387Refresh cycles may be programmed to be either two or three clock cycles i

Pagina 6

Z8018xFamily MPU User Manual88UM005003-0703 Refresh Control Register (RCR)The RCR specifies the interval and length of refre

Pagina 7

Z8018xFamily MPU User Manual UM005003-070389Refresh Control And RESETAfter RESET, based on the initialized value of R

Pagina 8 - List of Figures

Z8018xFamily MPU User Manual90UM005003-0703 3. Refresh cycles are suppressed during SLEEP mode. If a refresh cycle is reques

Pagina 9

Z8018xFamily MPU User Manual UM005003-070391•DREQ InputLevel- and edge-sense DREQ input detection are selectable.TEND

Pagina 10 - UM005003-0703

Z8018xFamily MPU User Manual92UM005003-0703 Channel 0 •SAR0–Source Address Register•DAR0–Destination Address Register •BCR0–

Pagina 11

Z8018xFamily MPU User Manual UM005003-070393Figure 45. DMAC Block DiagramDMAC Register DescriptionDMA Source Address

Pagina 12 - List of Tables

Z8018xFamily MPU User Manual94UM005003-0703 DMA Destination Address Register Channel 0 (DAR0 I/O Address = 23H to 25H)Specif

Pagina 13

Z8018xFamily MPU User ManualUM005003-0703xiiSoftware Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173Figure 74.

Pagina 14 - Status Signals 287

Z8018xFamily MPU User Manual UM005003-070395DMA Status Register (DSTAT)DSTAT is used to enable and disable DMA transf

Pagina 15

Z8018xFamily MPU User Manual96UM005003-0703 6DE0R/W Enable Channel 0 — When DE0 = 1 and DME = 1, channel 0 DMA is enabled. W

Pagina 16 - GENERAL DESCRIPTION

Z8018xFamily MPU User Manual UM005003-070397DMA Mode Register (DMODE) DMODE is used to set the addressing and transfe

Pagina 17

Z8018xFamily MPU User Manual98UM005003-0703 3–2SM1:0W Source Mode Channel — Specifies whether the source for channel 0 trans

Pagina 18

Z8018xFamily MPU User Manual UM005003-070399Table 14 describes all DMA TRANSFER mode combinations of DM0 DM1, SM0 SM1

Pagina 19

Z8018xFamily MPU User Manual100UM005003-0703 DMA/WAIT Control Register (DCNTL)DCNTL controls the insertion of Wait States in

Pagina 20

Z8018xFamily MPU User Manual UM005003-0703101DMA/WAIT Control Register (DCNTL: 32H)Bit 76543210Bit/Field MWI1 MWI0 IW

Pagina 21

Z8018xFamily MPU User Manual102UM005003-0703 Table 15. Channel 1 Transfer ModeDIM1 DIM0 Transfer Mode Address Increment/Dec

Pagina 22 - PIN DESCRIPTION

Z8018xFamily MPU User Manual UM005003-0703103DMA Register DescriptionBit 7This bit must be set to 1 only when both DM

Pagina 23

Z8018xFamily MPU User Manual104UM005003-0703 Bits 5–3Reserved. Must be 0.Bits 2–0With DIM1, bit 1 of DCNTL, these bits contr

Pagina 24

Z8018xFamily MPU User ManualUM005003-0703xivList of TablesZ80180, Z8S180, Z8L180 MPU Operation . . . . . . . . . . . . . . . . . . . .1Table 1. Stat

Pagina 25

Z8018xFamily MPU User Manual UM005003-0703105In addition, the operation of channel 0 DMA with the on-chip ASCI (Async

Pagina 26

Z8018xFamily MPU User Manual106UM005003-0703 Figure 46. DMA Timing Diagram-CYCLE STEAL ModeTo initiate memory to/from memory

Pagina 27 - ARCHITECTURE

Z8018xFamily MPU User Manual UM005003-0703107Memory to I/O (Memory Mapped I/O) — Channel 0 For memory to/from I/O (an

Pagina 28

Z8018xFamily MPU User Manual108UM005003-0703 rising edge of the clock prior to T3 at which time the DMA operation (re)starts

Pagina 29

Z8018xFamily MPU User Manual UM005003-0703109memory mapped I/O. transfers, the CKA0/DREQ0 pin automatically functions

Pagina 30 - OPERATION MODES

Z8018xFamily MPU User Manual110UM005003-0703 DREQ0 for ASCI transmission and reception respectively. To initiate memory to/f

Pagina 31

Z8018xFamily MPU User Manual UM005003-07031112. Specify memory « I/O transfer mode and address increment/decrement in

Pagina 32 - 0 and IOC is 0

Z8018xFamily MPU User Manual112UM005003-0703 4. Specify whether DREQ1 is level- or edge- sense in the DMS1 bit in DCNTL.5. E

Pagina 33 - CPU Timing

Z8018xFamily MPU User Manual UM005003-0703113cycle is extended to 4 clocks by automatic insertion of one internal Ti

Pagina 34

Z8018xFamily MPU User Manual114UM005003-0703 DMAC Internal InterruptsFigure 50 illustrates the internal DMA interrupt reques

Pagina 35

Z8018xFamily MPU User ManualUM005003-0703xvTable 23. Timer Output Control . . . . . . . . . . . . . . . . . . . . . . . . . . . .163Table 24. E Clock

Pagina 36

Z8018xFamily MPU User Manual UM005003-0703115If the falling edge of NMI occurs before the falling clock of the state

Pagina 37

Z8018xFamily MPU User Manual116UM005003-0703 The key functions for ASCI on Z80180, Z8S180 and Z8L180 class processors are li

Pagina 38

Z8018xFamily MPU User Manual UM005003-0703117Figure 52. ASCI Block DiagramASCI Register DescriptionThe following subp

Pagina 39

Z8018xFamily MPU User Manual118UM005003-0703 When transmission is completed, the next byte (if available) is automatically l

Pagina 40

Z8018xFamily MPU User Manual UM005003-0703119ASCI Receive Shift Register 0,1(RSR0, 1)This register receives data shif

Pagina 41

Z8018xFamily MPU User Manual120UM005003-0703 0, data can be written into the ASCII Receive Data Register, and the data can b

Pagina 42 - Wait State Generator

Z8018xFamily MPU User Manual UM005003-07031215PER Parity Error — PE is set to 1 when a parity error is detected on an

Pagina 43

Z8018xFamily MPU User Manual122UM005003-0703 0TIER/W Transmit Interrupt Enable — TIE must be set to 1 to enable ASCI transmi

Pagina 44 - R/W R/W R/W R/W

Z8018xFamily MPU User Manual UM005003-0703123ASCI Control Register A0, 1 (CNTLA0, 1)Each ASCI channel Control Registe

Pagina 45 - 1, selecting the

Z8018xFamily MPU User Manual124UM005003-0703 4FER Framing Error — If a receive data byte frame is delimited by an invalid st

Pagina 46 - Processors Only)

Z8018xFamily MPU User ManualUM005003-0703xviTable 43. Block Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225Table 44.

Pagina 47

Z8018xFamily MPU User Manual UM005003-0703125ASCI Control Register A0, 1 (CNTLA0, 1)Each ASCI channel Control Registe

Pagina 48

Z8018xFamily MPU User Manual126UM005003-0703 6RER/W Receiver Enable — When RE is set to 1, the ASCI receiver is enabled. Whe

Pagina 49

Z8018xFamily MPU User Manual UM005003-07031272–0 MOD2–0R/W ASCI Data Format Mode 2, 1, 0 — These bits program the ASC

Pagina 50 - SLP 2nd Op Code address

Z8018xFamily MPU User Manual128UM005003-0703 ASCI Control Register A 1 (CNTLA1: 01H)Bit 76543210Bit/Field MPE RE TE CKA1D MP

Pagina 51 - Add-On Features

Z8018xFamily MPU User Manual UM005003-07031295TER/W Transmitter Enable — When TE is set to 1, the ASCI transmitter is

Pagina 52 - STANDBY Mode

Z8018xFamily MPU User Manual130UM005003-0703 2–0 MOD2–0R/W ASCI Data Format Mode 2, 1, 0 — These bits program the ASCI data

Pagina 53

Z8018xFamily MPU User Manual UM005003-0703131ASCI Control Register B0, 1 (CNTLB0, 1)Each ASCI channel control registe

Pagina 54

Z8018xFamily MPU User Manual132UM005003-0703 ASCI Control Register B 0 (CNTLB0: 02H)ASCI Control Register B 1 (CNTLB1: 03H)B

Pagina 55 - IDLE Mode

Z8018xFamily MPU User Manual UM005003-0703133The external ASCI channel 0 data clock pins are multiplexed with DMA con

Pagina 56 - Internal I/O Registers

Z8018xFamily MPU User Manual134UM005003-0703 pins are initialized as ASCI data clock inputs. If SS2, SS1 and SS0 are reprogr

Pagina 57

Z8018xFamily MPU User ManualUM005003-0703xv

Pagina 58

Z8018xFamily MPU User Manual UM005003-0703135ASCI0 Extension Control Register (I/O Address: 12H) (Z8S180/L180-Class P

Pagina 59

Z8018xFamily MPU User Manual136UM005003-0703 Each ASCI channel control register B configures multiprocessor mode, parity and

Pagina 60

Z8018xFamily MPU User Manual UM005003-0703137Each ASCI channel control register B configures multiprocessor mode, par

Pagina 61

Z8018xFamily MPU User Manual138UM005003-0703 Modem Control SignalsASCI channel 0 has CTS0, DCD0 and RTS0 external modem cont

Pagina 62

Z8018xFamily MPU User Manual UM005003-0703139The error flags (PE, FE, and OVRN bits) are also held at 0. Even after t

Pagina 63

Z8018xFamily MPU User Manual140UM005003-0703 Figure 54. RTS0 Timing DiagramFigure 55 illustrates the ASCI interrupt request

Pagina 64

Z8018xFamily MPU User Manual UM005003-0703141ASCI to/from DMAC OperationOperation of the ASCI with the on-chip DMAC c

Pagina 65

Z8018xFamily MPU User Manual142UM005003-0703 Table 19. ASCI Baud Rate SelectionPrescalerSamplingRate Baud RateGeneralDivide

Pagina 66

Z8018xFamily MPU User Manual UM005003-0703143Baud Rate Generator(Z8S180/Z8L180-Class Processors Only)The Z8S180/Z8L18

Pagina 67 - –0 Reserved ? ? Reserved

Z8018xFamily MPU User Manual144UM005003-0703 a common baud rate of up to 512 Kbps to be selected. The BRG can also be disabl

Pagina 68

Z8018xFamily MPU User Manual1 UM005003-0703Z80180, Z8S180, Z8L180 MPU OperationFEATURES•Operating Frequency to 33

Pagina 69 - Memory Management Unit (MMU)

Z8018xFamily MPU User Manual UM005003-07031452^ss depends on the three least significant bits of the CNTLB register,

Pagina 70

Z8018xFamily MPU User Manual146UM005003-0703 causes for an ASCI Receive interrupt (PE, FE, OVRN, and for ASCI0, DCD) continu

Pagina 71 - Figure 25. MMU Block Diagram

Z8018xFamily MPU User Manual UM005003-0703147Figure 57. CSI/O Block DiagramCSI/O Registers DescriptionCSI/O Control/S

Pagina 72 - 0 during I/O cycles

Z8018xFamily MPU User Manual148UM005003-0703 BitPosition Bit/Field R/W Value Description7EFR End Flag — EF is set to 1 by th

Pagina 73

Z8018xFamily MPU User Manual UM005003-0703149CSI/O Transmit/Receive Data Register (TRDR: I/O Address = 0BH).TRDR is u

Pagina 74

Z8018xFamily MPU User Manual150UM005003-0703 After RESET, the CKS pin is configured as an external clock input (SS2, SS1, SS

Pagina 75 - MMU Register Description

Z8018xFamily MPU User Manual UM005003-0703151Figure 58. CSI/O Interrupt Request GenerationCSI/O OperationThe CSI/O is

Pagina 76

Z8018xFamily MPU User Manual152UM005003-0703 c. Poll the RE bit in CNTR until RE = 0.d. Read the receive data from TRDR.e. R

Pagina 77 - 0 during RESET

Z8018xFamily MPU User Manual UM005003-0703153CSI/O and RESETDuring RESET each bit in the CNTR is initialized as defin

Pagina 78 - 0000H to FFFFH)

Z8018xFamily MPU User Manual154UM005003-0703 Figure 60. Transmit Timing–External ClockCKSTXSTEEFRead or write of CSI/OTransm

Pagina 79

Z8018xFamily MPU User Manual2UM005003-0703 on-chip memory management unit (MMU) with the capability of addressing up to 1 MB

Pagina 80 - Interrupts

Z8018xFamily MPU User Manual UM005003-0703155Figure 61. CSI/O Receive Timing–Internal ClockCKSRXSREEFRead or write of

Pagina 81 - Interrupt Vector Low Register

Z8018xFamily MPU User Manual156UM005003-0703 Figure 62. CSI/O Receive Timing–External ClockProgrammable Reload Timer (PRT)Th

Pagina 82 - 00H during RESET

Z8018xFamily MPU User Manual UM005003-0703157control register. The PRT input clock for both channels is equal to the

Pagina 83 - N/A R/W R/W R/W

Z8018xFamily MPU User Manual158UM005003-0703 return accurate data without requiring the timer to be stopped. The write proce

Pagina 84 - 1 by the El (Enable

Z8018xFamily MPU User Manual UM005003-0703159Timer Reload Register (RLDR: I/O Address = CH0: 0EH, 0FH, CHI, 16H, 17H)

Pagina 85 - 00000H was caused by

Z8018xFamily MPU User Manual160UM005003-0703 Timer Reload Register Channel 0L (RLDR0L: 0EH)Bit 76543210Bit/Field Timer Reloa

Pagina 86

Z8018xFamily MPU User Manual UM005003-0703161Timer Control Register (TCR)TCR monitors both channels (PRT0, PRT1) TMDR

Pagina 87

Z8018xFamily MPU User Manual162UM005003-0703 BitPosition Bit/Field R/W Value Description7–6TIF1–0R TIF1: Timer Interrupt Fla

Pagina 88

Z8018xFamily MPU User Manual UM005003-0703163Figure 64 illustrates timer initialization, count down, and reload timin

Pagina 89

Z8018xFamily MPU User Manual164UM005003-0703 Figure 65. Timer Output Timing DiagramPRT InterruptsThe PRT interrupt request c

Pagina 90 - INT0 Mode 0

Z8018xFamily MPU User Manual UM005003-07033Figure 1. 64-Pin DIPVSSXTALEXTALWAITBUSACKBUSREQRESETNMIINT0INT1INT2STA0A1

Pagina 91 - INT0 Mode 1

Z8018xFamily MPU User Manual UM005003-0703165PRT Operation Notes•TMDR data is accurately read without stopping down c

Pagina 92

Z8018xFamily MPU User Manual166UM005003-0703 These devices require connection with the Z8X180 synchronous E clock output. Th

Pagina 93 - INT0 Mode 2

Z8018xFamily MPU User Manual UM005003-0703167Figure 67. E Clock Timing Diagram (During Read/Write Cycle and Interrupt

Pagina 94 - 00H and

Z8018xFamily MPU User Manual168UM005003-0703 Figure 69. E Clock Timing in SLEEP Mode and SYSTEM STOP ModeOn-Chip Clock Gener

Pagina 95 - INT1, INT2

Z8018xFamily MPU User Manual UM005003-0703169If an external clock input is used instead of a crystal, the waveform (t

Pagina 96 - 0. Each is also

Z8018xFamily MPU User Manual170UM005003-0703 Figure 71. Clock Generator CircuitFigure 72. Circuit Board Design RulesZ8X180XT

Pagina 97

Z8018xFamily MPU User Manual UM005003-0703171Figure 73. Example of Board DesignCircuit Board design should observe th

Pagina 98

Z8018xFamily MPU User Manual172UM005003-0703 MiscellaneousFree Running Counter (I/O Address = 18H)If data is written into th

Pagina 99

Z8018xFamily MPU User Manual173 UM005003-0703Software ArchitectureINSTRUCTION SETThe Z80180 is object code-compati

Pagina 100 - Family MPU User Manual

Z8018xFamily MPU User Manual174UM005003-0703 MLT- MultiplyThe MLT performs unsigned multiplication on two 8-bit numbers yiel

Pagina 101 - Dynamic RAM Refresh Control

Z8018xFamily MPU User Manual4UM005003-0703 Figure 2. 68-Pin PLCCA15A16A17A18/TOUTVCCA19VSSD0D1D2D3D4D5D627282930323334353631

Pagina 102 - TR1 TRW* TR2

Z8018xFamily MPU User Manual UM005003-0703175TST (HL) - Test MemoryThe contents of memory pointed to by HL are ANDed

Pagina 103

Z8018xFamily MPU User Manual176UM005003-0703 Figure 74 depicts CPU register configurations.Figure 74. CPU Register Configura

Pagina 104

Z8018xFamily MPU User Manual UM005003-0703177Flag Registers (F, F')The flag registers store status bits (describ

Pagina 105 - DMA Controller (DMAC)

Z8018xFamily MPU User Manual178UM005003-0703 Stack Pointer (SP)The Stack Pointer (SP) contains the memory address based LIFO

Pagina 106

Z8018xFamily MPU User Manual UM005003-07031796Z R/W0Zero.Z is set to 1 when instruction execution produces 0 result.

Pagina 107 -

Z8018xFamily MPU User Manual180UM005003-0703 Addressing ModesThe Z80180 instruction set includes eight addressing modes.•Imp

Pagina 108 - DMAC Register Description

Z8018xFamily MPU User Manual UM005003-0703181Figure 75. Register Direct — Bit Field DefinitionsRegister Indirect (REG

Pagina 109

Z8018xFamily MPU User Manual182UM005003-0703 Indexed (INDX)The memory operand address is calculated using the contents of an

Pagina 110

Z8018xFamily MPU User Manual UM005003-0703183Immediate (IMMED)The memory operands are contained within one or two byt

Pagina 111

Z8018xFamily MPU User Manual184UM005003-0703 IO (I/O)IO addressing mode is used only by I/O instructions. This mode specifie

Pagina 112

Z8018xFamily MPU User ManualUM005003-0703This publication is subject to replacement by a later edition. To determine whether a later edition exists, o

Pagina 113

Z8018xFamily MPU User Manual UM005003-07035Figure 3. 80-Pin QFPZ8X180STA0A1A2A3VSSA4NCA5A6A71234678910511121314151617

Pagina 114

Z8018xFamily MPU User Manual185 UM005003-0703DC CharacteristicsThis section describes the DC characteristics of th

Pagina 115

Z8018xFamily MPU User Manual186UM005003-0703 Z80180 DC CHARACTERISTICSVCC = 5V ± 10%, VSS = OV, Ta = 0° to +70°C, unless otherwis

Pagina 116

Z8018xFamily MPU User Manual UM005003-0703187Z8S180 DC CHARACTERISTICSVCC = 5V ± 10%, VSS = OV, Ta = 0° to +70°C, unl

Pagina 117

Z8018xFamily MPU User Manual188UM005003-0703 VOH1 Output High VoltageAll outputsIOH = –200 mAIOH = –20 mA2.4VCC –1.2––––VVVOH2 Ou

Pagina 118 - DMA Register Description

Z8018xFamily MPU User Manual UM005003-0703189Z8L180 DC CHARACTERISTICSVCC = 3.3V ± 10%, VSS = OV, Ta = 0° to +70°C, u

Pagina 119 - DMA Operation

Z8018xFamily MPU User Manual190UM005003-0703 ICC Power Dissipation*(Normal Operation)f = 20 MHz 20 100 mAPower Dissipation*(SYSTE

Pagina 120 - Memory to Memory—Channel 0

Z8018xFamily MPU User Manual UM005003-0703191543212.73.03.3VDD (Volts)ICC Active (mA.)Typical ICCA at 4 MHzZ8L1805040

Pagina 121

Z8018xFamily MPU User Manual192UM005003-0703

Pagina 122 - 00H) transfer

Z8018xFamily MPU User Manual193 UM005003-0703AC CharacteristicsThis section describes the AC characteristics of th

Pagina 123

Z8018xFamily MPU User Manual194UM005003-0703 12 tMED2PHI Fall to MREQ Rise Delay — 25 — 15 ns13 tRDD2PHI Fall to RD Rise Del

Pagina 124 - Memory to ASCI - Channel 0

Z8018xFamily MPU User Manual6UM005003-0703 Figure 4. Z80180/Z8S180/Z8L180 Block DiagramMMUAddress BufferData BufferA0–A19D0–

Pagina 125 - Note: X = Don’t care

Z8018xFamily MPU User Manual UM005003-070319531 tINTSINT Set-up Time to PHI Fall 20 — 15 — ns32 tINTHINT Hold Time fr

Pagina 126

Z8018xFamily MPU User Manual196UM005003-0703 54 tEfEnable Fall Time — 10 — 10 ns55 tTODPHI Fall to Timer Output Delay — 75 —

Pagina 127

Z8018xFamily MPU User Manual UM005003-070319769 tIRInput Rise Time (except EXTAL, RESET)—50—50 ns70 tIFInput Fall Tim

Pagina 128

Z8018xFamily MPU User Manual197 UM005003-0703Timing DiagramsFigure 81. AC Timing Diagram 1PHIADDRESSWAITMREQIORQRD

Pagina 129

Z8018xFamily MPU User Manual198UM005003-0703 Memory Read/Write Cycle timing is the sam as I/O Read/Write Cycle except there

Pagina 130 - T1 T2 T3 T3T2T1

Z8018xFamily MPU User Manual UM005003-0703199Figure 83. CPU Timing (IOC = 0) (I/O Read Cycle, I/O Write Cycle)T1T2TwT

Pagina 131 - Processors

Z8018xFamily MPU User Manual200UM005003-0703 Figure 84. DMA Control Signals4745 464818(level sense)DREQ1(edge sense)TENDiSTP

Pagina 132 - ASCI Register Description

Z8018xFamily MPU User Manual UM005003-0703201Figure 85. E Clock Timing (Memory R/W Cycle) (I/O R/W Cycle)Figure 86. E

Pagina 133

Z8018xFamily MPU User Manual202UM005003-0703 Figure 87. E Clock Timing (Minimum Timing Example of PWEL and PWEH)Figure 88. T

Pagina 134 - 08H, 09H)

Z8018xFamily MPU User Manual UM005003-0703203Figure 89. SLP Execution Cycle Timing Diagram32444333A19–A0SLP Instructi

Pagina 135

Z8018xFamily MPU User Manual UM005003-07037PIN DESCRIPTIONA0–A19. Address Bus (Output, Active High, 3-state). A0–A19

Pagina 136

Z8018xFamily MPU User Manual204UM005003-0703 Figure 90. CSI/O Receive/Transmit Timing DiagramFigure 91. External Clock Rise

Pagina 137

Z8018xFamily MPU User Manual UM005003-0703205STANDARD TEST CONDITIONSThe previous DC Characteristics and Capacitance

Pagina 138

Z8018xFamily MPU User Manual206UM005003-0703

Pagina 139

Z8018xFamily MPU User Manual207 UM005003-0703Instruction SetThis section explains the symbols in the instruction s

Pagina 140

Z8018xFamily MPU User Manual208UM005003-0703 CONDITIONf specifies the condition in program control instructions. Table 34 de

Pagina 141

Z8018xFamily MPU User Manual UM005003-0703209RESTART ADDRESSv specifies a restart address. Table 35 describes the

Pagina 142

Z8018xFamily MPU User Manual210UM005003-0703 MISCELLANEOUSTable 37 lists the operations mnemonics.Table 37. Operations Mnem

Pagina 143

Z8018xFamily MPU User Manual UM005003-0703211DATA MANIPULATION INSTRUCTIONSTable 38. Arithmetic and Logical Instr

Pagina 144

Z8018xFamily MPU User Manual212UM005003-0703 AND AND g 10 100 g S D 1 4 Ar*gr®Ar SP RRAND (HL) 10 100 110 S D 1 6 Ar*(HL)M

Pagina 145

Z8018xFamily MPU User Manual UM005003-0703213DEC DEC g 00 g 101 S/D 1 4 gr-1®gr VS·DEC (HL) 00 110 101 S/D 1 10

Pagina 146

Z8018xFamily MPU User Manual8UM005003-0703 D0–D7. Data Bus (Bidirectional, Active High, 3-state). D0-D7 constitute an 8-bit

Pagina 147

Z8018xFamily MPU User Manual214UM005003-0703 OR OR g 10 110 g S D 1 4 Ar + gr®Ar RP RROR (HL) 10 110 110 S D 1 6 Ar + (HL)

Pagina 148

Z8018xFamily MPU User Manual UM005003-0703215SUBC SBC A,g 10 011 g S D 1 4 Ar-gr-c®Ar VSSBC A,(HL) 10 011 110

Pagina 149 - 1, then the CKA1/

Z8018xFamily MPU User Manual216UM005003-0703 XOR (IY + d) 11 111 101 S D 3 14ArÅ + (IY + d))M®ArRP RR10 101 110<d>Ta

Pagina 150

Z8018xFamily MPU User Manual UM005003-0703217RLC (IX + d) 11 011 101 S/D 4 19 RP R11 001 011<d>00 000 110

Pagina 151

Z8018xFamily MPU User Manual218UM005003-0703 11 001 011<d>00 001 110RRD 11 101 101 S/D 2 16 RP R·01 100 111SLA g 11

Pagina 152

Z8018xFamily MPU User Manual UM005003-0703219SRL (HL) 11 001 011 S/D 2 3 RP R00 111 110SRL (IX + d) 11 011 101

Pagina 153

Z8018xFamily MPU User Manual220UM005003-0703 Bit Reset RES b,(IY + d) 11 011 101 S/D 4 19 0®b·(IY + d)M···· ··11 001 01l<

Pagina 154 - 0. Even after the

Z8018xFamily MPU User Manual UM005003-0703221Table 40. Arithmetic Instructions (16-bit)OperationName Mnemonics Op

Pagina 155

Z8018xFamily MPU User Manual222UM005003-0703 DATA TRANSFER INSTRUCTIONSTable 41. 8-Bit LoadOperationName Mnemonics Op CodeA

Pagina 156 - Figure 56. ASCI Clock

Z8018xFamily MPU User Manual UM005003-0703223Load8-BitDataLD (IX + d),m 11 011 101 S D 4 15 m®(IX + d)M···· ··00 1

Pagina 157

Z8018xFamily MPU User Manual UM005003-07039BUSREQ, and INT0 signals are inactive. The CPU acknowledges these interrup

Pagina 158 - Baud Rate Generator

Z8018xFamily MPU User Manual224UM005003-0703 Load16-Bit DataLD IY,mn 11 111 101 S D 4 12 mn®IYR···· ··00 100 001<n><

Pagina 159

Z8018xFamily MPU User Manual UM005003-0703225Load16-bitDataLD (mn),HL 00 100 010 D S 3 16 Hr®(mn + 1)M···· ··<n

Pagina 160

Z8018xFamily MPU User Manual226UM005003-0703 CPI 11101101 S S 2 12 Ar-(HL)M  S ·10100001 BCR-1®BCRHLR + 1®HLR(3) (2)CPIR

Pagina 161 - CSI/O Block Diagram

Z8018xFamily MPU User Manual UM005003-0703227Table 44. Stock and ExchangeOperationName Mnemonics Op CodeAddressin

Pagina 162 - CSI/O Registers Description

Z8018xFamily MPU User Manual228UM005003-0703 .Exchange EX AFAF’ 00 001 000 S/D 1 4 AFR-AFR' ···· ··EX DE, HL 11 101 011

Pagina 163

Z8018xFamily MPU User Manual UM005003-0703229PROGRAM AND CONTROL INSTRUCTIONSTable 45. Program Control Instructio

Pagina 164 - Address = 0BH)

Z8018xFamily MPU User Manual230UM005003-0703 Jump JR Zj 00 101 000 D 2 6 continue : Z = 0 ···· ··<j-2> 28 PCR, + j®PCR

Pagina 165

Z8018xFamily MPU User Manual UM005003-0703231Table 46. I/O InstructionsOperationName Mnemonics Op CodeAddressingB

Pagina 166 - Interrupt Request

Z8018xFamily MPU User Manual232UM005003-0703 INPUT INIR 11 101 101 D S 2 14 (Br ¹ 0) (BC)I®(HL)MQ HLR + 1®HLRBr-f®BrXS XX 

Pagina 167 - = 0) when

Z8018xFamily MPU User Manual UM005003-0703233OUTPUT OTDR 11 101 101 S D 2 14 (Br ¹ 0) (HL)M®(BC)M1QHLR-1®HLRBr-1Br

Pagina 168

Z8018xFamily MPU User Manual10UM005003-0703 RTS0. Request to Send 0 (Output, Active Low). This output is a programmable mode

Pagina 169

Z8018xFamily MPU User Manual234UM005003-0703 OTIMR** 11 101 101 S D 2 16 (Br ¹ 0) (HL)M®(00C)IHLR + 1®HLRQCr + 1®CrBr-1®BrRS

Pagina 170

Z8018xFamily MPU User Manual UM005003-0703235Special Control InstructionsTable 47. Special Control InstructionsOp

Pagina 171 - PRT Block Diagram

Z8018xFamily MPU User Manual236UM005003-0703

Pagina 172 - PRT Register Description

Z8018xFamily MPU User Manual237 UM005003-0703Instruction Summary** : Added new instructions to Z80MNEMONICS BytesM

Pagina 173

Z8018xFamily MPU User Manual238UM005003-0703 3616(If condition is true)CALL mn 3 6 16CCF 1 1 3CPD 2 6 12CPDR 2 8 14(If BCR ¹

Pagina 174 - 0FH, CHI, 16H, 17H)

Z8018xFamily MPU User Manual UM005003-07032392 3 7 (if Br = 0)EI 1 1 3EX AF,AF' 1 2 4EX DE,HL 1 1 3EX (SP),HL

Pagina 175

Z8018xFamily MPU User Manual240UM005003-0703 339(If f is true)JP (HL) 1 1 3JP (IX) 2 2 6JP (IY) 2 2 6JP mn 3 3 9JR j 2 4 8JR

Pagina 176 - Timer Control Register (TCR)

Z8018xFamily MPU User Manual UM005003-0703241LD (DE),A 1 3 7LD ww,mn 3 3 9LD ww,(mn) 4 6 18LDDR 2 6 14 (If BCR ¹ 0

Pagina 177

Z8018xFamily MPU User Manual242UM005003-0703 LD g,g' 1 2 4LD SP,HL 1 2 4LD SP,IX 2 3 7LD SP,IY 2 3 7MLT ww" 2 13 1

Pagina 178

Z8018xFamily MPU User Manual UM005003-0703243PUSH IX 2 6 14PUSH IY 2 6 14PUSH zz 1 5 11RES b,(HL) 2 5 13RES b,(IX+

Pagina 179 - PRT and RESET

Z8018xFamily MPU User Manual UM005003-070311TOUT. Timer Out (Output, Active High). TOUT is the pulse output from PRT

Pagina 180 - Secondary Bus Interface

Z8018xFamily MPU User Manual244UM005003-0703 RRC (IY+d) 4 7 19RRC g 2 3 7RRD 2 8 16RR (HL) 2 5 13RR (IX+d) 4 7 19RR (IY+d) 4

Pagina 181

Z8018xFamily MPU User Manual UM005003-0703245SRL (IY+d) 4 7 19SRL g 2 3 7SUB (HL) 1 2 6SUB (IX+d) 3 6 14SUB (IY+d)

Pagina 182

Z8018xFamily MPU User Manual246UM005003-0703

Pagina 183 - On-Chip Clock Generator

Z8018xFamily MPU User Manual247 UM005003-0703Op Code MapTable 48. 1st Op Code Map Instruction Format: XXww (L0 =

Pagina 184

Z8018xFamily MPU User Manual248UM005003-0703Note 1: (HL) replaces g.Note 2: (HL) replaces s.Note 3: If DDH is supplemented as first Op Code for the in

Pagina 185

Z8018xFamily MPU User Manual UM005003-0703249Table 49. 2nd Op Code Map Instruction Format: CB XXb (L0 = 0~7)02460246

Pagina 186

Z8018xFamily MPU User Manual250UM005003-0703Table 50. 2nd Op Code Map Instruction Format: ED XXww (L0 = ALL)BC DE HL SPG (L0 = 0~7)BDH BD H0000 0001

Pagina 187 - Miscellaneous

Z8018xFamily MPU User Manual251 UM005003-0703Bus Control Signal ConditionsBUS AND CONTROL SIGNAL CONDITION IN EACH

Pagina 188 - Software Architecture

Z8018xFamily MPU User Manual252UM005003-0703 ADD A,g ADC A,gSUB g SBC A,gAND gOR gXOR gCP gMC1 T1T2T3 1st Op Code Address1st

Pagina 189

Z8018xFamily MPU User Manual UM005003-0703253AND (IY+ d)OR (IX + d)OR (IY+d)XOR (IX + d)XOR (IY+d)MC4~MC6TiTiTi * Z 1

Pagina 190 - CPU REGISTERS

Z8018xFamily MPU User Manual12UM005003-0703 ARCHITECTUREThe Z8X180 combines a high performance CPU core with a variety of sy

Pagina 191 - Accumulator (A, A')

Z8018xFamily MPU User Manual254UM005003-0703 CALL mnMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 1st operan

Pagina 192 - Index Registers (IX, and IY)

Z8018xFamily MPU User Manual UM005003-0703255CPICPDMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 2nd

Pagina 193 - Flag Register (F)

Z8018xFamily MPU User Manual256UM005003-0703 DJNZ j(If Br ¹ 0)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 Ti*2 *

Pagina 194

Z8018xFamily MPU User Manual UM005003-0703257EX (SP),IXEX (SP),IYMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0M

Pagina 195 - Register Direct (REG)

Z8018xFamily MPU User Manual258UM005003-0703 INC (IX+ d)INC (IY+d)DEC (IX+d)DEC (IY+d)MC1 T1T2T3 1st Op Code Address1st Op C

Pagina 196 - Register Indirect (REG)

Z8018xFamily MPU User Manual UM005003-0703259IN g,(C)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 2n

Pagina 197 - Extended (EXT)

Z8018xFamily MPU User Manual260UM005003-0703 INIRINDR(If Br=0)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3

Pagina 198 - Relative (REL)

Z8018xFamily MPU User Manual UM005003-0703261JR jMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 1st op

Pagina 199 - IO (I/O)

Z8018xFamily MPU User Manual262UM005003-0703 LD g, (IX+d)LD g, (IY+d)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2

Pagina 200 - DC Characteristics

Z8018xFamily MPU User Manual UM005003-0703263LD (IX+d),mLD (IY+d),mMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01

Pagina 201 - Z80180 DC CHARACTERISTICS

Z8018xFamily MPU User Manual UM005003-070313•Programmable Reload Timers (PRT, 2 channels)•Clock Serial I/O (CSIO) cha

Pagina 202 - Z8S180 DC CHARACTERISTICS

Z8018xFamily MPU User Manual264UM005003-0703 LD (mn),AMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 1st oper

Pagina 203

Z8018xFamily MPU User Manual UM005003-0703265LD HL, (mn)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3

Pagina 204 - Z8L180 DC CHARACTERISTICS

Z8018xFamily MPU User Manual266UM005003-0703 LD (mn),HLMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 1st ope

Pagina 205

Z8018xFamily MPU User Manual UM005003-0703267LD (mn),IXLD (mn),IYMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0M

Pagina 206

Z8018xFamily MPU User Manual268UM005003-0703 LDIRLDDR(If BCR¹0)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3

Pagina 207

Z8018xFamily MPU User Manual UM005003-0703269OUT (m),AMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 1

Pagina 208 - AC Characteristics

Z8018xFamily MPU User Manual270UM005003-0703 OTIM**OTDM**MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 2nd O

Pagina 209

Z8018xFamily MPU User Manual UM005003-0703271OTIMR**OTDMR**(if Br= 0)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 0

Pagina 210

Z8018xFamily MPU User Manual272UM005003-0703 OTIROTDR(if Br=0)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3

Pagina 211

Z8018xFamily MPU User Manual UM005003-0703273PUSH IXPUSH IYMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T

Pagina 212

Z8018xFamily MPU User Manual14UM005003-0703 Central Processing UnitThe CPU is microcoded to provide a core that is object co

Pagina 213 - Timing Diagrams

Z8018xFamily MPU User Manual274UM005003-0703 RETI (Z)MC1 T1T2T3 1st Op Code Address1st Op Code010 1 0*5110MC2 T1T2T3 2nd Op

Pagina 214

Z8018xFamily MPU User Manual UM005003-0703275RLC (HL)RL (HL)RRC (HL)RR (HL)SLA (HL)SRA (HL)SRL (HL)MC1 T1T2T3 1st Op

Pagina 215

Z8018xFamily MPU User Manual276UM005003-0703 RST vMC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2~MC3TiTi * Z 1 1 1 1

Pagina 216

Z8018xFamily MPU User Manual UM005003-0703277SET b, (IX+d)SET b, (IY+d)RES b, (IX+d)RES b, (IY+d)MC1 T1T2T3 1st Op Co

Pagina 217

Z8018xFamily MPU User Manual278UM005003-0703 TST g**MC1 T1T2T3 1st Op Code Address1st Op Code010 1 01 0MC2 T1T2T3 2nd Op Cod

Pagina 218

Z8018xFamily MPU User Manual UM005003-0703279INTERRUPTSTable 52. Interrupts InstructionMachine Cycle States Address

Pagina 219

Z8018xFamily MPU User Manual280UM005003-0703 INT0 Mode 2MC1 T1T2TWTWT3NextOp CodeAddress (PC)Vector111 0010MC2Ti * Z 111 111

Pagina 220

Z8018xFamily MPU User Manual281 UM005003-0703Operating Modes SummaryREQUEST ACCEPTANCES IN EACH OPERATING MODETabl

Pagina 221 - STANDARD TEST CONDITIONS

Z8018xFamily MPU User Manual282UM005003-0703 REQUEST PRIORITYThe Z80180 features three types of requests..Type 1, Type 2, an

Pagina 222

Z8018xFamily MPU User Manual UM005003-0703283Note: If Bus Request and Refresh Request occur simultaneously, Bus Reque

Pagina 223 - Instruction Set

Z8018xFamily MPU User Manual UM005003-0703iiiMANUAL OBJECTIVESThis user manual describes the features of the Z8018x MPU

Pagina 224 - CONDITION

Z8018xFamily MPU User Manual UM005003-070315OPERATION MODESThe Z8X180 can be configured to operate like the Hitachi H

Pagina 225 - RESTART ADDRESS

Z8018xFamily MPU User Manual284UM005003-0703 Figure 94. Operation Mode Transition* 1. NORMAL: CPU executes instructions norm

Pagina 226 - MISCELLANEOUS

Z8018xFamily MPU User Manual UM005003-0703285–DREQ0, DREQ1 = 1 memory to/from (memory mapped) I/O DMA transfer– BCR0,

Pagina 227

Z8018xFamily MPU User Manual286UM005003-0703

Pagina 228

Z8018xFamily MPU User Manual287 UM005003-0703Status SignalsPIN OUTPUTS IN EACH OPERATING MODETable 55 describes pi

Pagina 229

Z8018xFamily MPU User Manual288UM005003-0703 •1 : High•0 : Low•A : Programmable•Z : High Impedance•IN : Input•OUT : Output•* :

Pagina 230

Z8018xFamily MPU User Manual UM005003-0703289Table 56. Pin Status During RESET and LOW POWER OPERATION Modes Symbol

Pagina 231

Z8018xFamily MPU User Manual290UM005003-0703 CKA0(External Clock Mode)Z IN (A) IN (N) IN (N)DREQ0Z IN (N) IN (A) IN (N)TXA1 —

Pagina 232

Z8018xFamily MPU User Manual UM005003-0703291•1: HIGH 0: LOW A: Programmable Z: High Impedance•IN (A): Input (Active)

Pagina 233

Z8018xFamily MPU User Manual292UM005003-0703

Pagina 234

Z8018xFamily MPU User Manual293 UM005003-0703I/O RegistersINTERNAL I/O REGISTERSBy programming IOA7 and IOA6 as th

Pagina 235

Z8018xFamily MPU User Manual16UM005003-0703 Figure 6. M1 Temporary Enable TimingM1TE (M1 Temporary Enable): This bit control

Pagina 236

Z8018xFamily MPU User Manual294UM005003-0703 ASCI Control Register B Channel 0: CNTLB0 0 2ASCI Control Register B Channel 1:CN

Pagina 237

Z8018xFamily MPU User Manual UM005003-0703295ASCI Status Channel 0: STAT0 0 4ASCI Status Channel 1: STAT1 0 5Tabl

Pagina 238 - DATA TRANSFER INSTRUCTIONS

Z8018xFamily MPU User Manual296UM005003-0703 ASCI Transmit Data Register Channel 0:ASCI Transmit Data Register Channel 1:ASCI

Pagina 239

Z8018xFamily MPU User Manual UM005003-0703297CSI/O Transmit/Receive Data Register: Timer Data Register Channel 0L:Tim

Pagina 240

Z8018xFamily MPU User Manual298UM005003-0703 Timer Data Register Channel 1L:Timer Data Register Channel 1H:Timer Reload Regist

Pagina 241

Z8018xFamily MPU User Manual UM005003-0703299DMA Memory Address Register Channel 1B:DMA I/O Address Register Channel

Pagina 242

Z8018xFamily MPU User Manual300UM005003-0703 MMU Common Base Register: MMU Bank Base Register MMU Common/Bank RegisterOperatio

Pagina 243

Z8018xFamily MPU User Manual UM005003-0703301DMA/WAIT Control Register: DCNTL 3 2Table 57. Internal I/O Registers (C

Pagina 244

Z8018xFamily MPU User Manual302UM005003-0703 Interrupt Vector Low Register INT/TRAP Control RegisterRefresh Control Register:I

Pagina 245

Z8018xFamily MPU User Manual UM005003-0703303ORDERING INFORMATIONCodes•PackageP = Plastic DipV = Plastic Chip Carrier

Pagina 246

Z8018xFamily MPU User Manual UM005003-070317Figure 7. I/O Read and Write Cycles with IOC = 1 Timing DiagramWhen IOC i

Pagina 247

Z8018xFamily MPU User Manual304UM005003-0703

Pagina 248

Z8018xFamily MPU User ManualUM005003-0703305AAC characteristics 197Address generation, physical 64Address mapI/O 44I/O address translation 57Logical e

Pagina 249

Z8018xFamily MPU User ManualUM005003-0703306CSI/OBaud rate selection 150Block diagram 146Control/Status register 147, 150, 159, 160, 161, 172External

Pagina 250

Z8018xFamily MPU User ManualUM005003-0703307cles) 167Timing diagram (SLEEP and SYSTEM STOP modes) 168Extended addressing 182External clock rise and fa

Pagina 251 - Special Control Instructions

Z8018xFamily MPU User ManualUM005003-0703308Memory and I/O Wait state insertion 29Memory management unit (MMU) 13Memory to ASCI 109Memory to memory 10

Pagina 252

Z8018xFamily MPU User ManualUM005003-0703309CSI/O control/status 147, 150, 159, 160, 161, 172Direct bit field definitions 181DMA mode (DMODE) 97DMA st

Pagina 253 - Instruction Summary

Z8018xFamily MPU User ManualUM005003-0703310DMA TEND0 output 108E clock (memory and I/O R/W cycles) 201E clock (R/W and INTACK cycles) 167E clock (SLE

Pagina 254

Z8018xFamily MPU User Manual18UM005003-0703 The user must program the Operation Mode Control Register before the first I/O

Pagina 255

Z8018xFamily MPU User Manual UM005003-070319The Op Code on the data bus is latched at the rising edge of T3 and the b

Pagina 256

Z8018xFamily MPU User Manual20UM005003-0703 Figure 10. Op Code Fetch (with Wait State) Timing DiagramOperand and Data Read/W

Pagina 257

Z8018xFamily MPU User Manual UM005003-070321Wait States (TW) are inserted as previously described for Op Code fetch c

Pagina 258

Z8018xFamily MPU User Manual22UM005003-0703 Figure 12. Memory Read/Write (with Wait State) Timing DiagramI/O Read/Write Timi

Pagina 259

Z8018xFamily MPU User Manual UM005003-070323Figure 13. I/O Read/Write Timing DiagramBasic Instruction TimingAn instru

Pagina 260

Z8018xFamily MPU User Manual24UM005003-0703 Figure 14. Instruction Timing DiagramThis instruction moves the contents of a CP

Pagina 261

Z8018xFamily MPU User ManualUM005003-0703 ivSectionsZ8018X MPU OperationPresents features, a general description, pins descr

Pagina 262

Z8018xFamily MPU User Manual UM005003-070325The external bus is IDLE while the CPU computes the effective address. Fi

Pagina 263 - Op Code Map

Z8018xFamily MPU User Manual26UM005003-0703 When the bus is released, the address (A0–A19), data (D0–D7), and control (MREQ,

Pagina 264 - DDH 22H : LD (mn), IX

Z8018xFamily MPU User Manual UM005003-070327Figure 17. Bus Exchange Timing During CPU Internal OperationWait State Ge

Pagina 265

Z8018xFamily MPU User Manual28UM005003-0703 externally synchronizing WAIT input transitions with the rising edge of the syst

Pagina 266

Z8018xFamily MPU User Manual UM005003-070329Figure 19. Memory and I/O Wait State Insertion (DCNTL – DMA/Wait Cont

Pagina 267 - Bus Control Signal Conditions

Z8018xFamily MPU User Manual30UM005003-0703 inserted depending on the programmed value in IWI1 and IWI0. Refer to Table 4.WA

Pagina 268

Z8018xFamily MPU User Manual UM005003-070331Also, the WAIT input is ignored during RESET. For example, if RESET is de

Pagina 269

Z8018xFamily MPU User Manual32UM005003-0703 •The HALT output pin is asserted Low•The external bus activity consists of repea

Pagina 270

Z8018xFamily MPU User Manual UM005003-070333.Figure 20. HALT Timing DiagramSLEEP ModeSLEEP mode is entered by executi

Pagina 271

Z8018xFamily MPU User Manual34UM005003-0703 •Data Bus, 3-stateSLEEP mode is exited in one of two ways as described below.•RE

Pagina 272

Z8018xFamily MPU User ManualUM005003-0703vTable of ContentsZ80180, Z8S180, Z8L180 MPU Operation . . . . . . . . . . . . . . . . . . . .1Features . .

Pagina 273

Z8018xFamily MPU User Manual UM005003-070335Figure 21. SLEEP Timing DiagramIOSTOP ModeIOSTOP mode is entered by setti

Pagina 274

Z8018xFamily MPU User Manual36UM005003-0703 Low Power Modes (Z8S180/Z8L180 only)The following section is a detailed descript

Pagina 275

Z8018xFamily MPU User Manual UM005003-070337STANDBY ModeThe Z8S180/Z8L180 is designed to save power. Two low-power pr

Pagina 276

Z8018xFamily MPU User Manual38UM005003-0703 1. Set bits 6 and 3 to 1 and 0, respectively.2. Set the I/O STOP bits (bit 5 of

Pagina 277

Z8018xFamily MPU User Manual UM005003-070339If the BREXT bit of the CPU Control Register (CCR) is cleared, asserting

Pagina 278

Z8018xFamily MPU User Manual40UM005003-0703 If the Global Interrupt Enable Flag IEF1 is set to 1, and if an interrupt source

Pagina 279

Z8018xFamily MPU User Manual UM005003-070341except that the 217 bit wake-up timer is bypassed. All control signals ar

Pagina 280

Z8018xFamily MPU User Manual42UM005003-0703 To avoid address conflicts with external I/O, the Z8X180 internal I/O addresses

Pagina 281

Z8018xFamily MPU User Manual UM005003-070343Figure 22. I/O Address RelocationInternal I/O Registers Address MapThe in

Pagina 282

Z8018xFamily MPU User Manual44UM005003-0703 address to 0. These instructions are IN0, OUT0, OTIM, OTIMR, OTDM, OTDMR and TST

Pagina 283

Z8018xFamily MPU User ManualUM005003-0703viBaud Rate Generator(Z8S180/Z8L180-Class Processors Only) . . . . . . . . . . . . . . . 143Clocked Serial

Pagina 284

Z8018xFamily MPU User Manual UM005003-070345Timer Data Register Ch 0 L TMDR0L XX001100 0CH 159Data Register Ch 0 H TM

Pagina 285

Z8018xFamily MPU User Manual46UM005003-0703 DMA DMA Source Address Register Ch 0L SAR0L XX100000 20H 93DMA Source Address Re

Pagina 286

Z8018xFamily MPU User Manual UM005003-070347INT IL Register (Interrupt Vector Low Register)IL XX110011 33H 67INT/TRAP

Pagina 287

Z8018xFamily MPU User Manual48UM005003-0703 Table 7. I/O Address Map (Z8S180/Z8L180-Class Processors Only) Register Mnemonic

Pagina 288

Z8018xFamily MPU User Manual UM005003-070349Timer Data Register Ch 0 L TMDR0L XX001100 0CH 159Data Register Ch 0 H TM

Pagina 289

Z8018xFamily MPU User Manual50UM005003-0703 DMA DMA Source Address Register Ch 0L SAR0L XX100000 20H 93DMA Source Address Re

Pagina 290

Z8018xFamily MPU User Manual UM005003-070351INT IL Register (Interrupt Vector Low Register)IL XX110011 33H 67INT/TRAP

Pagina 291

Z8018xFamily MPU User Manual52UM005003-0703 Clock Multiplier Register (CMR: 1EH) (Z8S180/L180-Class Processors Only)Bit 7 6

Pagina 292

Z8018xFamily MPU User Manual UM005003-070353CPU Control Register (CCR: 1FH) (Z8S180/L180-Class Processors Only)Bit 76

Pagina 293

Z8018xFamily MPU User Manual54UM005003-0703 Memory Management Unit (MMU)The Z8X180 features an on-chip MMU which performs th

Pagina 294

Z8018xFamily MPU User ManualUM005003-0703viiFlag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 295 - INTERRUPTS

Z8018xFamily MPU User Manual UM005003-070355Figure 23. Logical Address Mapping ExamplesLogical to Physical Address Tr

Pagina 296

Z8018xFamily MPU User Manual56UM005003-0703 Figure 24. Physical Address TransitionMMU Block DiagramThe MMU block diagram is

Pagina 297 - Operating Modes Summary

Z8018xFamily MPU User Manual UM005003-070357Whether address translation (Figure 26) takes place depends on the type o

Pagina 298 - REQUEST PRIORITY

Z8018xFamily MPU User Manual58UM005003-0703 •MMU Common/Bank Area Register (CBAR)•MMU Common Base Register (CBR)•MMU Bank Ba

Pagina 299 - OPERATION MODE TRANSITION

Z8018xFamily MPU User Manual UM005003-070359Figure 28. Logical Space Configuration (Example)MMU Common/Bank Area Regi

Pagina 300

Z8018xFamily MPU User Manual60UM005003-0703 MMU Register DescriptionMMU Common/Bank Area Register (CBAR)CBAR specifies bound

Pagina 301 - 0000H (all DMA transfers)

Z8018xFamily MPU User Manual UM005003-070361MMU Common Base Register (CBR)CBR specifies the base address (on 4K bound

Pagina 302

Z8018xFamily MPU User Manual62UM005003-0703 MMU Bank Base Register (BBR)BBR specifies the base address (on 4KB boundaries) u

Pagina 303 - Status Signals

Z8018xFamily MPU User Manual UM005003-070363MMU and RESETDuring RESET, all bits of the CA field of CBAR are set to 1

Pagina 304 - PIN STATUS

Z8018xFamily MPU User Manual64UM005003-0703 Figure 29. Physical Address GenerationFigure 30. Physical Address Generation 2Ad

Pagina 305 - –D7— ZZAZ

Z8018xFamily MPU User ManualUM005003-0703ixList of FiguresZ80180, Z8S180, Z8L180 MPU Operation . . . . . . . . . . . . . . . . . . . .1Figure 1. 64-

Pagina 306

Z8018xFamily MPU User Manual UM005003-070365Packages not containing an A19 pin or situations using TOUT instead of A1

Pagina 307

Z8018xFamily MPU User Manual66UM005003-0703 Interrupt Vector Register (I)Mode 2 for INT0 external interrupt, INT1 and INT2 e

Pagina 308

Z8018xFamily MPU User Manual UM005003-070367vector table can be relocated on 32 byte boundaries. IL is initialized to

Pagina 309 - INTERNAL I/O REGISTERS

Z8018xFamily MPU User Manual68UM005003-0703 Interrupt Enable Flag 1,2 (IEF1, IEF2)IEF1 controls the overall enabling and dis

Pagina 310

Z8018xFamily MPU User Manual UM005003-070369If IEF1 is 0, all maskable interrupts are disabled. IEF1 can be reset to

Pagina 311

Z8018xFamily MPU User Manual70UM005003-0703 TRAP InterruptThe Z8X180 generates a non-maskable (not affected by the state of

Pagina 312

Z8018xFamily MPU User Manual UM005003-070371stacked PC-1. If UFO is 1, the starting address of the invalid instructio

Pagina 313

Z8018xFamily MPU User Manual72UM005003-0703 Figure 33. TRAP Timing - 3rd Op Code UndefinedExternal InterruptsThe Z8X180 feat

Pagina 314

Z8018xFamily MPU User Manual UM005003-0703731. DMAC operation is suspended by the clearing of the DME (DMA Main Enabl

Pagina 315 - Ch 0 Destination Mode 1,0

Z8018xFamily MPU User Manual74UM005003-0703 Figure 34. NMI UseMain ProgramNMIEF1 0 PCH EF1 PCL PCL PCH NMIInterrupt ServiceP

Pagina 316

Z8018xFamily MPU User ManualUM005003-0703xFigure 21. SLEEP Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 35Figure 22. I/O Addre

Pagina 317

Z8018xFamily MPU User Manual UM005003-070375Figure 35. NMI TimingINT0 - Maskable Interrupt Level 0The next highest pr

Pagina 318

Z8018xFamily MPU User Manual76UM005003-0703 The TRAP interrupt occurs if an invalid instruction is fetched during Mode 0 int

Pagina 319 - ORDERING INFORMATION

Z8018xFamily MPU User Manual UM005003-070377disabling all maskable interrupts. The interrupt service routine normally

Pagina 320

Z8018xFamily MPU User Manual78UM005003-0703 Figure 38. INT0 Mode 1 TimingINT0 Mode 2This method determines the restart addre

Pagina 321

Z8018xFamily MPU User Manual UM005003-070379The vector table address is located on 256 byte boundaries in the 64KB lo

Pagina 322

Z8018xFamily MPU User Manual80UM005003-0703 Figure 40. INT0 Interrupt Mode 2 Timing DiagramINT1, INT2The operation of extern

Pagina 323

Z8018xFamily MPU User Manual UM005003-070381also the interrupt response sequence used for all internal interrupts (ex

Pagina 324

Z8018xFamily MPU User Manual82UM005003-0703 individual I/O (PRT, DMAC, CSI/O, ASCI) control register. The lower vector of IN

Pagina 325

Z8018xFamily MPU User Manual UM005003-070383Interrupt Sources During RESETInterrupt Vector Register (I)All bits are r

Pagina 326

Z8018xFamily MPU User Manual84UM005003-0703 Return from Subroutine (RETI) Instruction SequenceWhen the EDH/4DH sequence is f

Modelos relacionados Z80181 | Z80182 | Z80195 | Z8L180 | Z8L182 | Z8S180 |

Comentarios a estos manuales

Sin comentarios