Microsoft PowerPoint - C15_LECTURE_NOTE_08.ppt

Similar documents
Microsoft PowerPoint - C15_LECTURE_NOTE_08.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_09

Microsoft PowerPoint - STU_EC_Ch08.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_11

Edge-Triggered Rising Edge-Triggered ( Falling Edge-Triggered ( Unit 11 Latches and Flip-Flops 3 Timing for D Flip-Flop (Falling-Edge Trigger) Unit 11

BC04 Module_antenna__ doc

Cube20S small, speedy, safe Eextremely modular Up to 64 modules per bus node Quick reaction time: up to 20 µs Cube20S A new Member of the Cube Family

2/80 2

Pin Configurations Figure2. Pin Configuration of FS2012 (Top View) Table 1 Pin Description Pin Number Pin Name Description 1 GND 2 FB 3 SW Ground Pin.

Microsoft PowerPoint - C15_LECTURE_NOTE_10.ppt

System Design and Setup of a Robot to Pass over Steps Abstract In the research, one special type of robots that can pass over steps is designed and se

untitled

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

iml88-0v C / 8W T Tube EVM - pplication Notes. IC Description The iml88 is a Three Terminal Current Controller (TTCC) for regulating the current flowi

Microsoft Word - PZ series.doc

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

穨control.PDF

9 什 么 是 竞 争 与 冒 险 现 象? 怎 样 判 断? 如 何 消 除?( 汉 王 笔 试 ) 在 组 合 逻 辑 中, 由 于 门 的 输 入 信 号 通 路 中 经 过 了 不 同 的 延 时, 导 致 到 达 该 门 的 时 间 不 一 致 叫 竞 争 产 生 毛 刺 叫 冒 险 如

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

1 VLBI VLBI 2 32 MHz 2 Gbps X J VLBI [3] CDAS IVS [4,5] CDAS MHz, 16 MHz, 8 MHz, 4 MHz, 2 MHz [6] CDAS VLBI CDAS 2 CDAS CDAS 5 2

Microsoft Word - P SDV series.DOC

邏輯分析儀的概念與原理-展示版


Microsoft Word - AP1515V02

Tel:

Bus Hound 5

r_09hr_practical_guide_kor.pdf

untitled

Microsoft PowerPoint - Aqua-Sim.pptx

T stg -40 to 125 C V cc 3.8V V dc RH 0 to 100 %RH T a -40 to +125 C -0.3 to 3.6V V -0.3 to VDD+0.3 V -10 to +10 ma = 25 = 3V) VDD

Outline Speech Signals Processing Dual-Tone Multifrequency Signal Detection 云南大学滇池学院课程 : 数字信号处理 Applications of Digital Signal Processing 2

热设计网

投影片 1

RAID RAID 0 RAID 1 RAID 5 RAID * ( -1)* ( /2)* No Yes Yes Yes A. B. BIOS SATA C. RAID BIOS RAID ( ) D. SATA RAID/AHCI ( ) SATA M.2 SSD ( )

Table of Contents A. Product Outline.. 3 B. Features.. 4 C. Block Diagram... 5 D. Pin Assignments. 6 E. Physical Specifications... 7 F. DC Characteris

Microsoft PowerPoint - CA_02 Chapter5 Part-I_Single _V2.ppt

Microsoft Word - HC20138_2010.doc

1 CPU

EMI LOOPS FILTERING EMI ferrite noise suppressors

!!

Microsoft PowerPoint - ATF2015.ppt [相容模式]

Microsoft Word - LR1122B-B.doc

iml v C / 0W EVM - pplication Notes. IC Description The iml8683 is a Three Terminal Current Controller (TTCC) for regulating the current flowin

iml v C / 4W Down-Light EVM - pplication Notes. IC Description The iml8683 is a Three Terminal Current Controller (TTCC) for regulating the cur

HC50246_2009

K7VT2_QIG_v3

<4D F736F F F696E74202D20B5DAD2BBD5C228B4F2D3A1B0E6292E BBCE6C8DDC4A3CABD5D>

HC20131_2010

ARM Cortex-M3 (STM32F) STMicroelectronics ( ST) STM32F103 Core: ARM 32-bit Cortex -M3 CPU 72 MHz, 90 DMIPS with 1.25 DMIPS/MHz Single-cycle multiplica

VASP应用运行优化

1.ai

K301Q-D VRT中英文说明书141009

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

Guide to Install SATA Hard Disks

WTO


2015年4月11日雅思阅读预测机经(新东方版)

audiogram3 Owners Manual

52C

P3B-F Pentium III/II/Celeron TM

USB解决方案.ppt

學校發展計劃(二零零六至二零零七年)

Microsoft PowerPoint - Ch5 The Bipolar Junction Transistor

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

學校發展計劃(二零零六至二零零七年)

1 TPIS TPIS 2 2

PowerPoint Presentation

OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Prot

SHIMPO_表1-表4

Microsoft PowerPoint - STU_EC_Ch04.ppt

1.1 ML_ONOFF = 1 Q 3 Q 8 C 0.3V M 2 L 1 ML_ONOFF = 0 Q 3 Q 8 C 1. + R31 VCC R21 10K ML_ONOFF R15 0:off 1:on 1K Green Light VCC=5V L1 Q VDD=12V C

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

高中英文科教師甄試心得

2008 Nankai Business Review 61

逢甲大學

ICD ICD ICD ICD ICD

1 1

SHIMPO_表1-表4

國家圖書館典藏電子全文

VHDL(Statements) (Sequential Statement) (Concurrent Statement) VHDL (Architecture)VHDL (PROCESS)(Sub-program) 2

untitled

IP505SM_manual_cn.doc

68369 (ppp quickstart guide)

Gerolor Motors Series Dimensions A,B C T L L G1/2 M8 G1/ A 4 C H4 E

. Land Patterns for Reflow Soldering.Recommended Reflow Soldering Conditions (For Lead Free) TYPE PID0703 PID0704 PID1204 PID1205 PID1207 PID1209 L(mm

TX-NR3030_BAS_Cs_ indd

國立中山大學學位論文典藏.PDF

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

I

Gerotor Motors Series Dimensions A,B C T L L G1/2 M G1/ A 4 C H4 E

逢 甲 大 學

AL-M200 Series

入學考試網上報名指南


(baking powder) 1 ( ) ( ) 1 10g g (two level design, D-optimal) 32 1/2 fraction Two Level Fractional Factorial Design D-Optimal D

Transcription:

THE 888 AND 886 MICROPROCESSORS AND THEIR MEMORY AND INPUT/OUTPUT INTERFACES The 888 and 886 Microprocessors and Their Memory and Input/output Interfaces 8. The 888 and 886 Microprocessors 8.2 Minimum-Mode and Maximum-Mode System 8.3 Minimum-Mode Interface 8.4 Maximum-Mode Interface 8.5 Electrical Characteristics 8.6 System Clock 8.7 Bus Cycle and Time States 8.8 Hardware Organization of the Memory Address Space 6 37 微處理機原理與應用 Lecture 8-2

The 888 and 886 Microprocessors and Their Memory and Input/output Interfaces 8.9 Memory Bus Status Codes 8. Memory Control Signals 8. Read and Write Bus Cycles 8.2 Memory Interface Circuits 8.3 Programmable Logic Arrays 8.4 Types of Input/Output 8.5 An Isolated Input/Output Interface 8.6 Input/Output Data Transfer 8.7 Input/Output Instructions 8.8 Input/Output Bus Cycles 6 37 微處理機原理與應用 Lecture 8-3 8. The 888 and 886 Microprocessors The 886, announced in 978, was the first 6-bit microprocessor introduced by Intel Corporation. 886 and 888 are internally 6-bit MPU. However, externally the 886 has a 6-bit data bus and the 888 has an 8-bit data bus. 6 37 微處理機原理與應用 Lecture 8-4 The 888 microprocessor 2

8. The 888 and 886 Microprocessors 886 and 888 both have the ability to address up to Mbyte of memory and 64K of input/output port. The 888 and 886 are both manufactured using high-performance metal-oxide semiconductor (HMOS) technology. The 888 and 886 are housed in a 4-pin dual inline package and many pins have multiple functions. Intel D886- Microprocessor Processor Speed:. MHz Bus Speed:. MHz FPU: no SOURCE:http://cpu-museum.de/ 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-5 林達德 8. The 888 and 886 Microprocessors CMOS, Complementary Metal-Oxide- Semiconductor, is a major class of integrated circuits used in chips such as microprocessors, microcontrollers, static RAM, digital logic circuits, and analog circuits such as image sensors. Two important characteristics of CMOS devices are high noise immunity and low static power supply drain. Significant power is only drawn when its transistors are switching between on and off states; consequently, CMOS devices do not produce as much heat as other forms of logic such as TTL. CMOS also allows a high density of logic functions on a chip. 6 37 微處理機原理與應用 Lecture 8-6 3

8. The 888 and 886 Microprocessors 888 CPU Pin layout of the 886 and 888 microprocessor 6 37 微處理機原理與應用 Lecture 8-7 8.2 Minimum-Mode and Maximum- Mode System The 886 and 888 microprocessors can be configured to work in either of two modes: The minimum mode - MN/ MX = The maximum mode - MN/ MX = The mode selection feature lets the 888 or 886 better meet the needs of a wide variety of system requirement. Minimum mode 888/886 systems are typically smaller and contain a single processor. Depending on the mode of operation selected, the assignment for a number of the pins on the microprocessor package are changed. 6 37 微處理機原理與應用 Lecture 8-8 4

8.2 Minimum-Mode and Maximum- Mode System Signals common to both minimum and maximum mode 6 37 微處理機原理與應用 Lecture 8-9 8.2 Minimum-Mode and Maximum- Mode System Unique minimum-mode signals 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8- 林達德 5

8.2 Minimum-Mode and Maximum- Mode System Unique maximum-mode signals 6 37 微處理機原理與應用 Lecture 8-8.2 Minimum-Mode and Maximum- Mode System EXAMPLE Which pins provide different signal functions in the minimum-mode 888 and minimum-mode 886? Solution: (a) Pins 2 through 8 on the 888 are address lines A 4 through A 8, but on the 886 they are address/data lines AD 4 through AD 8. (b) Pin 28 on the 888 is IO/M output and on the 886 it is the M/IO output. (c) Pin 34 of the 888 is the SSO output, and on the 886 this pin supplies the BHE/S 7. 6 37 微處理機原理與應用 Lecture 8-2 6

8.3 Minimum-Mode Interface Block diagram of the minimum-mode 888 MPU 6 37 微處理機原理與應用 Lecture 8-3 8.3 Minimum-Mode Interface Block diagram of the minimum-mode 886 MPU 6 37 微處理機原理與應用 Lecture 8-4 7

8.3 Minimum-Mode Interface The minimum-mode signals can be divided into the following basic groups: Address/Data bus Status signals Control signals Interrupt signals DMA interface signals 6 37 微處理機原理與應用 Lecture 8-5 8.3 Minimum-Mode Interface Address/Data bus The address bus is used to carry address information to the memory and I/O ports. The address bus is 2-bit long and consists of signal lines A through A 9. A 2-bit address gives the 888 a Mbyte memory address space. Only address line A through A 5 are used when addressing I/O. This give an I/O address space of 64 Kbytes. The 888 has 8 multiplexed address/data bus lines (A ~A 7 ) while 886 has 6 multiplexed address/data bus lines (A ~A 5 ). 6 37 微處理機原理與應用 Lecture 8-6 8

8.3 Minimum-Mode Interface Status signals The four most significant address, A 9 through A 6 are multiplexed with status signal S 6 through S 3. Bits S 4 and S 3 together form a 2-bit binary code that identifies which of the internal segment registers was used to generate the physical address. S 5 is the logic level of the internal interrupt flag. S 6 is always at the logic level. S 4 S 3 Address Status Alternate (relative to the ES segment) Stack (relative to the SS segment) Code/None (relative to the CS segment or a default of zero Data (relative to the DS segment) 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-7 林達德 8.3 Minimum-Mode Interface Control signals The control signals are provided to support the memory and I/O interfaces of the 888 and 886. ALE Address Latch Enable IO/M IO/Memory (888) M/IO Memory/IO (886) DT/R Data Transmit/Receive (888/886) SSO System Status Output (888) BHE Bank High Enable (886) RD Read (888/886) WR Write (888/886) DEN Data Enable (888/886) READY Ready (888/886) 6 37 微處理機原理與應用 Lecture 8-8 9

8.3 Minimum-Mode Interface Interrupt signals The interrupt signals can be used by an external device to signal that it needs to be serviced. INTR Interrupt Request INTA Interrupt Acknowledge TEST Test (can be use to synchronize MPU) NMI Nonmaskable Interrupt RESET Reset (hardware reset of the MPU) 6 37 微處理機原理與應用 Lecture 8-9 8.3 Minimum-Mode Interface DMA interface signals When an external device wants to take control of the system bus, it signals this fact to the MPU by switching HOLD to the logic level. When in the hold state, signal lines AD through AD 7, A 8 through A 5, A 6 /S 3 through A 9 /S 6, SSO, IO/M, DT/R, RD, WR, DEN, and INTR are all put into high-z state. The 888 signals external devices that the signal lines are in the high-z state by switching its HLDA output to the logic level. 6 37 微處理機原理與應用 Lecture 8-2

8.4 Maximum-Mode Interface The maximum-mode configuration is mainly used for implementing a multiprocessor/coprocessor system environment. Global resources and local resources In the maximum-mode, facilities are provided for implementing allocation of global resources and passing bus control to other microprocessors sharing the system bus. 6 37 微處理機原理與應用 Lecture 8-2 8.4 Maximum-Mode Interface 8288 bus controller 888 maximum-mode block diagram 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-22 林達德

8.4 Maximum-Mode Interface 8288 bus controller 886 maximum-mode block diagram 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-23 林達德 8.4 Maximum-Mode Interface 8288 bus controller In the maximum-mode, 888/886 outputs a status code on three signal line, S, S, S 2, prior to the initialization of each bus cycle. The 3-bit bus status code identifies which type of bus cycle is to follow and are input to the external bus controller device, 8288. The 8288 produces one or two command signals for each bus cycle. 6 37 微處理機原理與應用 Lecture 8-24 2

8.4 Maximum-Mode Interface 8288 bus controller Status Inputs CPU Cycle 8288 Command S 2 S S Interrupt Acknowledge Read I/O Port Write I/O Port Halt Instruction Fetch Read Memory Write Memory Passive INTR IORC IOWC, AIOWC None MRDC MRDC MWTC, AMWC None Bus status code 6 37 微處理機原理與應用 Lecture 8-25 8.4 Maximum-Mode Interface 8288 bus controller Block diagram and pin layout of 8288 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-26 林達德 3

8.4 Maximum-Mode Interface Lock signal The lock signal (LOCK) is meant to be output (logic ) whenever the processor wants to lock out the other processor from using the bus. Local bus control signals The request/grant signals (RQ/GT, RQ/GT ) provide a prioritized bus access mechanism for accessing the local bus. 6 37 微處理機原理與應用 Lecture 8-27 8.4 Maximum-Mode Interface Queue status signals The 2-bit queue status code QS and QS tells the external circuitry what type of information was removed form the queue during the previous clock cycle. QS QS Queue Status (low) No Operation. During the last clock cycle, nothing was taken form the queue. First byte. The byte taken from the queue was the first byte of the instruction. (high) Queue Empty. The queue has been reinitialized as a result of the execution of a transfer of instruction. Subsequent Byte. The byte taken from the queue was a subsequent byte of the instruction. Queue status code 國立台灣大學 生物機電系 6 37 微處理機原理與應用 Lecture 8-28 林達德 4

8.4 Maximum-Mode Interface EXAMPLE If the bus status code S 2 S S equals, what type of bus activity is taking place? Which command output is produced by the 8288? Solution: Looking at the bus status table, we see that bus status code identifies a read memory bus cycle and causes the MRDC output of the bus controller to switch to logic. 6 37 微處理機原理與應用 Lecture 8-29 8.5 Electrical Characteristics Power is applied between pin 4 (V cc ) and pins (GND) and 2 (GND). The nominal value of V cc is specified as +5V dc with a tolerance of ±%. Both 888 and 886 draw a maximum of 34mA from the supply. Symbol Meaning Minimum Maximum Test condition V IL Input low voltage -.5 V +.8 V V IH Input high voltage +2. V V cc +.5 V V OL Output low voltage +.45 V I OL =2. ma V OH Output high voltage +2.4 V I OH =-4 μa I/O voltage levels 6 37 微處理機原理與應用 Lecture 8-3 5

8.6 System Clock The time base for synchronization of the internal and external operations of the microprocessor in a microcomputer system is provided by the clock (CLK) input signal. The standard 888 operates at 5 MHz and the 888-2 operates at 8 MHz. The 886 is manufactured in three speeds: 5-MHz 886, 8-MHz 886-2, and the -MHz 886-. The CLK is externally generated by the 8284 clock generator and driver IC. 6 37 微處理機原理與應用 Lecture 8-3 8.6 System Clock Block diagram of the 8284 clock generator 6 37 微處理機原理與應用 Lecture 8-32 6

8.6 System Clock Block diagram of the 8284 clock generator 6 37 微處理機原理與應用 Lecture 8-33 8.6 System Clock Connecting the 8284 to the 888 5- or 24MHz crystal Typical value of CL when used with 5MHz crystal is 2pF The fundamental crystal frequency is divided by 3 within the 8284 to give either a 5- or 8-MHz clock signal 6 37 微處理機原理與應用 Lecture 8-34 7

8.6 System Clock CLK waveform The signal is specified at Metal Oxide Semiconductor (MOS)-compatible voltage level. The period of the 5-MHz 888 can range from 2 ns to 5 ns, and the maximum rise and fall times of its edges equal ns. 6 37 微處理機原理與應用 Lecture 8-35 8.6 System Clock PCLK and OSC signals The peripheral clock (PCLK) and oscillator clock (OSC) signals are provided to drive peripheral ICs. The clock output at PCLK is half the frequency of CLK. The OSC output is at the crystal frequency which is three times of CLK. 6 37 微處理機原理與應用 Lecture 8-36 8

8.6 System Clock EXAMPLE If the CLK input of an 886 MPU is to be driven by a 9-MHz signal, what speed version of the 886 must be used and what frequency crystal must be attached to the 8284 Solution: The 886- is the version of the 886 that can be run at 9-MHz. To create the 9-MHz clock, a 27-MHz crystal must be used on the 8284. 6 37 微處理機原理與應用 Lecture 8-37 8.7 Bus Cycle and Time States A bus cycle defines the basic operation that a microprocessor performs to communicate with external devices. Examples of bus cycles are the memory read, memory write, input/output read, and input/output write. The bus cycle of the 888 and 886 microprocessors consists of at least four clock periods. If no bus cycles are required, the microprocessor performs what are known as idle states. When READY is held at the level, wait states are inserted between states T 3 and T 4 of the bus cycle. 6 37 微處理機原理與應用 Lecture 8-38 9

8.7 Bus Cycle and Time States Bus cycle clock periods, idle state, and wait state 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-39 林達德 8.7 Bus Cycle and Time States EXAMPLE What is the duration of the bus cycle in the 888-based microcomputer if the clock is 8 MHz and the two wait states are inserted. Solution: The duration of the bus cycle in an 8 MHz system is given by t cyc = 5 ns + N x 25 ns In this expression the N stands for the number of waits states. For a bus cycle with two wait states, we get t cyc = 5 ns + 2 x 25 ns = 5 ns + 25 ns = 75 ns 6 37 微處理機原理與應用 Lecture 8-4 2

8.8 Hardware Organization of the Memory Address Space M BYTES FFFFF FFFFF 2 A 9 A D 7 D 6 37 微處理機原理與應用 Lecture 8-4 Mx8 memory bank of the 888 8.8 Hardware Organization of the Memory Address Space 52K BYTES FFFFF FFFFD 52K BYTES FFFFE FFFFC 5 3 4 2 A 9 A D 5 D 8 BHE D 7 D A High and low memory banks of the 886 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-42 林達德 2

8.8 Hardware Organization of the Memory Address Space Transfer X X+ (X) A 9 A D 7 D 6 37 微處理機原理與應用 Lecture 8-43 Byte transfer by the 888 8.8 Hardware Organization of the Memory Address Space First bus cycle Second bus cycle X+ (X) X+ (X) A 9 A D 7 D A 9 A D 7 D Word transfer by the 888 6 37 微處理機原理與應用 Lecture 8-44 22

8.8 Hardware Organization of the Memory Address Space Transfer X Y+ X+ Y (X) A 9 A D 5 D 8 BHE (HIGH) D 7 D A (LOW) Even address byte transfer by the 886 6 37 微處理機原理與應用 Lecture 8-45 8.8 Hardware Organization of the Memory Address Space Transfer X+ Y+ (X+) Y X A 9 A D 5 D 8 BHE (LOW) D 7 D A (HIGH) Odd address byte transfer by the 886 6 37 微處理機原理與應用 Lecture 8-46 23

8.8 Hardware Organization of the Memory Address Space Transfer X, X+ Y+ (X+) Y (X) A 9 A D 5 D 8 BHE (LOW) D 7 D A (LOW) Even address word transfer by the 886 6 37 微處理機原理與應用 Lecture 8-47 8.8 Hardware Organization of the Memory Address Space First bus cycle Second bus cycle X+3 X+2 X+3 X+2 (X+) (X) (X+) (X) A 9 A D 5 D 8 BHE (LOW) D 7 D A (HIGH) A 9 A D 5 D 8 BHE (HIGH) D 7 D A (LOW) Odd-address word transfer by the 886 6 37 微處理機原理與應用 Lecture 8-48 24

8.8 Hardware Organization of the Memory Address Space EXAMPLE Is the word at memory address 23 6 of an 886-based microcomputer aligned or misaligned? How many cycle are required to read it from memory? Solution: The first byte of the word is the second byte at the aligned-word address 23 6. Therefore, the word is misaligned and required two bus cycles to be read from memory. 6 37 微處理機原理與應用 Lecture 8-49 8.9 Address Bus Status Codes Whenever a memory bus cycle is in progress, an address bus status code S 4 S 3 is output by the processor. S 4 S 3 identifies which one of the four segment register is used to generate the physical address in the current bus cycle: S 4 S 3 = identifies the extra segment register (ES) S 4 S 3 = identifies the stack segment register (SS) S 4 S 3 = identifies the code segment register (CS) S 4 S 3 = identifies the data segment register (DS) The memory address reach of the microprocessor can thus be expanded to 4 Mbytes. 6 37 微處理機原理與應用 Lecture 8-5 25

8. Memory Control Signals Minimum-mode memory control signals Minimum-mode 888 memory interface 6 37 微處理機原理與應用 Lecture 8-5 8. Memory Control Signals Minimum-mode memory control signals (888) ALE Address Latch Enable used to latch the address in external memory. IO/M Input-Output/Memory signal external circuitry whether a memory of I/O bus cycle is in progress. DT/R Data Transmit/Receive signal external circuitry whether the 888 is transmitting or receiving data over the bus. RD Read identifies that a read bus cycle is in progress. WR Write identifies that a write bus cycle is in progress. DEN Data Enable used to enable the data bus. SSO Status Line identifies whether a code or data access is in progress. 6 37 微處理機原理與應用 Lecture 8-52 26

8. Memory Control Signals The control signals for the 886 s minimum-mode memory interface differs in three ways: IO/M signal is replaced by M/IO signal. The signal SSO is removed from the interface. BHE (bank high enable) is added to the interface and is used to select input for the high bank of memory in the 886 s memory subsystem. 6 37 微處理機原理與應用 Lecture 8-53 8. Memory Control Signals Maximum-mode memory control signals Maximum-mode 888 memory interface 6 37 微處理機原理與應用 Lecture 8-54 27

8. Memory Control Signals Maximum-mode memory control signals MRDC Memory Read Command MWTC Memory Write Command AMWC Advanced Memory Write Command Status Inputs CPU Cycle 8288 Command S 2 S S Interrupt Acknowledge Read I/O Port Write I/O Port Halt Instruction Fetch Read Memory Write Memory Passive 6 37 微處理機原理與應用 Lecture 8-55 INTA IORC IOWC, AIOWC None MRDC MRDC MWTC, AMWC None 8. Read and Write Bus Cycle Read cycle Minimum-mode memory read bus cycle of the 888 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-56 林達德 28

8. Read and Write Bus Cycle Read cycle Minimum-mode memory read bus cycle of the 886 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-57 林達德 8. Read and Write Bus Cycle Read cycle Maximum-mode memory read bus cycle of the 886 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-58 林達德 29

8. Read and Write Bus Cycle Write cycle Minimum-mode memory write bus cycle of the 888 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-59 林達德 8. Read and Write Bus Cycle Write cycle Maximum-mode memory write bus cycle of the 886 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-6 林達德 3

8.2 Memory Interface Circuit Address bus latches and buffers Bank write and bank read control logic Data bus transceivers/buffers Address decoders 6 37 微處理機原理與應用 Lecture 8-6 8.2 Memory Interface Circuit Memory interface block diagram 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-62 林達德 3

8.2 Memory Interface Circuit Address bus latches and buffers Operation of the 74F373 OC L L L H Inputs Enable C H H L X D H L X X Output Q H L Q Z Block diagram of a D-type latch 6 37 微處理機原理與應用 Lecture 8-63 8.2 Memory Interface Circuit Address bus latches and buffers Circuit diagram of the 74F373 6 37 微處理機原理與應用 Lecture 8-64 32

8.2 Memory Interface Circuit A review of flip-flop/latch logic R Q Cross-NOR S-R flip-flop S 2 Q S Q Cross-NAND S-R flip-flop R 2 Q 6 37 微處理機原理與應用 Lecture 8-65 8.2 Memory Interface Circuit A review of flip-flop/latch logic RESET SET 6 37 微處理機原理與應用 Lecture 8-66 Cross-NOR S-R flip-flop 33

8.2 Memory Interface Circuit A review of flip-flop/latch logic The D latch is used to capture, or latch the logic level which is present on the data line when the clock input is high. S R Q t- S R Q Q Q t 6 37 微處理機原理與應用 Lecture 8-67 8.2 Memory Interface Circuit A review of flip-flop/latch logic Positive edge-triggered D flip-flop 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-68 林達德 34

8.2 Memory Interface Circuit A review of flip-flop/latch logic 6 37 微處理機原理與應用 Lecture 8-69 Positive edge-triggered JK flip-flop 8.2 Memory Interface Circuit A review of flip-flop/latch logic 6 37 微處理機原理與應用 Lecture 8-7 D-type latch 35

8.2 Memory Interface Circuit Address bus latches and buffers 6 37 微處理機原理與應用 Lecture 8-7 Address latch circuit 8.2 Memory Interface Circuit Bank write and bank read control logic Bank write control logic Bank read control logic 6 37 微處理機原理與應用 Lecture 8-72 36

8.2 Memory Interface Circuit Data bus transceivers Block diagram and circuit diagram of the 74F245 octal bus transceiver 6 37 微處理機原理與應用 Lecture 8-73 8.2 Memory Interface Circuit Data bus transceivers 6 37 微處理機原理與應用 Lecture 8-74 Data bus transceiver circuit 37

8.2 Memory Interface Circuit Address decoder Address bus configuration with address decoding 6 37 微處理機原理與應用 Lecture 8-75 8.2 Memory Interface Circuit Address decoder INPUTS OUTPUTS ENABLE G SELECT B A Y Y Y2 Y3 H X X H H H H L L L L H H H L L H H L H H L H L H H L H L H H H H H L Block diagram and operation of the 74F39 decoder 6 37 微處理機原理與應用 Lecture 8-76 38

8.2 Memory Interface Circuit Address decoder Circuit diagram of the 74F39 decoder 6 37 微處理機原理與應用 Lecture 8-77 8.2 Memory Interface Circuit Address decoder Address decoder circuit using 74F39 6 37 微處理機原理與應用 Lecture 8-78 39

8.2 Memory Interface Circuit Address decoder Block diagram and operation of the 74F38 decoder 6 37 微處理機原理與應用 Lecture 8-79 8.2 Memory Interface Circuit Address decoder Circuit diagram of the 74F38 decoder 6 37 微處理機原理與應用 Lecture 8-8 4

8.2 Memory Interface Circuit Address decoder Address decoder circuit using 74F38 6 37 微處理機原理與應用 Lecture 8-8 8.3 Programmable Logic Arrays Programmable logic array, PLA, are generalpurpose logic devices that have the ability to perform a wide variety of specialized logic functions. A PLA contains a general-purpose AND-OR-NOT array of logic gate circuits. The process used to connect or disconnect inputs of the AND gate array is known as programming, which leads to the name programmable logic array. 6 37 微處理機原理與應用 Lecture 8-82 4

8.3 Programmable Logic Arrays Major types of programmable logic architecture Simple Programmable Logic Devices (SPLDs) PAL, GAL, PLA, EPLD Complex Programmable Logic Devices (CPLDs) EPLD, PEEL, EEPLD, MAX Field Programmable Gate Arrays (FPGAs) LCA, pasic, FLEX, APEX, ACT, ORCA, Virtex,pASIC Field Programmable InterConnect (FPICs) 6 37 微處理機原理與應用 Lecture 8-83 8.3 Programmable Logic Arrays PLAs, GALs, and EPLDs Early PLA devices were all manufactured with the bipolar semiconductor process. Bipolar devices are programmed with an interconnect pattern by burning out fuse links within the device. PLAs made with bipolar technology are characterized by slower operating speeds and higher power consumption. Two kinds of newer PLA, manufactured with the CMOS process, are in wide use today: the GAL and EPLD. 6 37 微處理機原理與應用 Lecture 8-84 42

8.3 Programmable Logic Arrays Block diagram of a PLA The logic levels applied at inputs I through I 5 and the programming of the AND array determine what logic levels are produced at outputs F through F 5. The capacity of a PLA is measured by three properties: the number of inputs, the number of outputs, and the number of product terms (P-terms) Block diagram of a PLA 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-85 林達德 8.3 Programmable Logic Arrays Architecture of a PLA 6 37 微處理機原理與應用 Lecture 8-86 43

8.3 Programmable Logic Arrays Architecture of a PLA (a) Typical PLA architecture. (b) PLA with output latch 國立台灣大學生物機電系 6 37 微處理機原理與應用 Lecture 8-87 林達德 8.3 Programmable Logic Arrays Standard PAL TM device A PAL, programmable array logic, is a PLA in which the OR array is fixed; only the AND array is programmable. The 6L8 is a widely used PAL IC. It is housed in a 2-pin package. It has dedicated input, 2 dedicated outputs, and 6 programmable I/O lines. The 6L8 is manufactured with bipolar technology. It operates from a +5V±% dc power supply and draw a maximum of 8mA. The 2L8 has 2 inputs, 8 outputs and 64 P-terms. The 2R8 is the register output version of 2L8. 6 37 微處理機原理與應用 Lecture 8-88 44

8.3 Programmable Logic Arrays Standard PAL TM device 6L8 circuit diagram and pin layout 6 37 微處理機原理與應用 Lecture 8-89 8.3 Programmable Logic Arrays Standard PAL TM device 2L8 circuit diagram and pin layout 6 37 微處理機原理與應用 Lecture 8-9 45

8.3 Programmable Logic Arrays Standard PAL TM device 6R8 circuit diagram and pin layout 6 37 微處理機原理與應用 Lecture 8-9 8.3 Programmable Logic Arrays Standard PAL TM device 2R8 circuit diagram and pin layout 6 37 微處理機原理與應用 Lecture 8-92 46

8.3 Programmable Logic Arrays Expanding PLA capacity Expanding output word length Expanding input word length 6 37 微處理機原理與應用 Lecture 8-93 8.4 Types of Input/Output Isolated input/output When using isolated I/O in a microcomputer system, the I/O device are treated separate from memory. The memory address space contains M consecutive byte address in the range 6 through FFFFF 6 ; and that the I/O address space contains 64K consecutive byte addresses in the range 6 through FFFF 6. All input and output data transfers must take place between the AL or AX register and I/O port. 6 37 微處理機原理與應用 Lecture 8-94 47

8.4 Types of Input/Output Isolated input/output 888/886 memory and I/O address spaces 6 37 微處理機原理與應用 Lecture 8-95 8.4 Types of Input/Output Memory-mapped input/output In the case of memory-mapped I/O, MPU looks at the I/O port as though it is a storage location in memory. Some of the memory address space is dedicated to I/O ports. Instructions that affect data in memory are used instead of the special I/O instructions. The memory instructions tend to execute slower than those specifically designed for isolated I/O. 6 37 微處理機原理與應用 Lecture 8-96 48

8.4 Types of Input/Output Memory-mapped input/output 6 37 微處理機原理與應用 Lecture 8-97 Isolated I/O ports 8.4 Types of Input/Output Memory-mapped input/output 6 37 微處理機原理與應用 Lecture 8-98 Memory mapped I/O ports 49

8.5 Isolated Input/Output Interface I/O devices: Keyboard Printer Mouse 82C55A, etc. Functions of interface circuit: Select the I/O port Latch output data Sample input data Synchronize data transfer Translate between TTL voltage levels and those required to operate the I/O devices. 6 37 微處理機原理與應用 Lecture 8-99 8.5 Isolated Input/Output Interface Minimum-mode interface Minimum-mode 888 system I/O interface 6 37 微處理機原理與應用 Lecture 8-5

8.5 Isolated Input/Output Interface Minimum-mode interface Minimum-mode 886 system I/O interface 6 37 微處理機原理與應用 Lecture 8-8.5 Isolated Input/Output Interface Maximum-mode interface Maximum-mode 888 system I/O interface 6 37 微處理機原理與應用 Lecture 8-2 5

8.5 Isolated Input/Output Interface Maximum-mode interface Maximum-mode 886 system I/O interface 6 37 微處理機原理與應用 Lecture 8-3 8.5 Isolated Input/Output Interface Maximum-mode interface Status Inputs CPU Cycle 8288 Command S 2 S S Interrupt Acknowledge INTA Read I/O Port IORC Write I/O Port IOWC, AIOWC Halt None Instruction Fetch MRDC Read Memory MRDC Write Memory MWTC, AMWC Passive None I/O bus cycle status codes 6 37 微處理機原理與應用 Lecture 8-4 52

8.6 Input/Output Data Transfers Input/output data transfers in the 888 and 886 microcomputers can be either byte-wide or word-wide. I/O addresses are 6 bits in length and are output by the 888 to the I/O interface over bus lines AD through AD 7 and A 8 through A 5. In 888, the word transfers is performed as two consecutive byte-wide data transfer and takes two bus cycle. In 886, the word transfers can takes either one or two bus cycle. Word-wide I/O ports should be aligned at evenaddress boundaries. 6 37 微處理機原理與應用 Lecture 8-5 8.7 Input/Output Instructions Mnemonic IN Meaning Input direct Format IN Acc, Port Operation (Acc) (Port) Acc = AL or AX Input indirect (variable) IN Acc, DX (Acc) ((DX)) OUT Output direct OUT Port, Acc (Port) (Acc) Output indirect (variable) OUT DX, Acc ((DX)) (Acc) 6 37 微處理機原理與應用 Lecture 8-6 53

8.7 Input/Output Instructions EXAMPLE Write a sequence of instructions that will output the data FF 6 to a byte-wide output port at address AB 6 of the I/O address space. Solution: First, the AL register is loaded with FF 6 as an immediate operand in the instruction MOV AL, FFH Now the data in AL can be output to the byte-wide output port with the instruction OUT ABH, AL 6 37 微處理機原理與應用 Lecture 8-7 8.7 Input/Output Instructions EXAMPLE Write a series of instructions that will output FF 6 to an output port located at address B 6 of the I/O address space. Solution: The DX register must first be loaded with the address of the output port. This is done with the instruction MOV DX, BH Next, the data that are to be output must be loaded into AL with the instruction MOV AL, FFH Finally, the data are output with the instruction OUT DX, AL 6 37 微處理機原理與應用 Lecture 8-8 54

8.7 Input/Output Instructions EXAMPLE Data are to be read in from two byte-wide input ports at addresses AA 6 and A9 6 and then output as a word-wide output port at address B 6. Write a sequence of instructions to perform this input/output operation. Solution: First read in the byte at address AA 6 into AL and move it into AH. IN AL, AAH MOV AH, AL Now the other byte can be read into AL by the instruction IN AL, 9AH And to write out the word of data MOV DX, BH OUT DX, AX 6 37 微處理機原理與應用 Lecture 8-9 8.8 Input/Output Bus Cycle Input bus cycle of the 888 6 37 微處理機原理與應用 Lecture 8-55

8.8 Input/Output Bus Cycle Output bus cycle of the 888 6 37 微處理機原理與應用 Lecture 8-8.8 Input/Output Bus Cycle Input bus cycle of the 886 6 37 微處理機原理與應用 Lecture 8-2 56

8.8 Input/Output Bus Cycle Output bus cycle of the 886 6 37 微處理機原理與應用 Lecture 8-3 57