8/16·BIT PERIPHERAL LSI DATA BOOK #U70·A • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 MEDICAL APPLICATIONS Hitachi's products are not authorized for use in MEDICAL APPLICA- TIONS, including, but not limited to, use in life support devices without the written consent of the appropriate officer of Hitachi's sales company. Buyers of Hitachi's products are requested to notify Hitachi's sales offices when planning to use the products in MEDICAL APPLICATIONS. When using this manual, the reader should keep the following in mind: 1. This manual may, wholly or partially, be subject to change without notice. 2. All rights reserved: No one is permitted to reproduce or duplicate, in any form, the whole or part of this manual without Hitachi's permission. 3. Hitachi will not be responsible for any damage to the user that may result from accidents or any other reasons during operation of his unit accord- ing to this manual. 4. This manual neither ensures the enforcement of any industrial proper- ties or other rights, nor sanctions the enforcement right thereof. 5. Circuitry and other examples described herein are meant merely to indicate characteristics and performance of Hitachi semiconductor- applied products. Hitachi assumes no responsibility for any patent in- fringements or other problems resulting from applications based on the examples described herein. 6. No license is granted by implication or otherwise under any patents or other rights of any third party or Hitachi, Ltd. August 1987 © Copyright 1987, Hitachi America Ltd. Printed in U.S.A. ~HITACHI ii Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 CONTENTS • GENERAL INFORMATION • Quick Reference Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii • Introduction of Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 • Reliability and Quality Assurance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 • Reliability Test Data of Microcomputer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 • DATA SHEETS HD6321 Peripheral Interface Adapter (CMOS) .......................................... . 27 HD6821 Peripheral Interface Adapter (NMOS) .......................................... . 27 HD6340 Programmable Timer Module (CMOS) ......................................... . 49 HD6840 Programmable Timer Module (NMOS) ......................................... . 49 HD6844 Direct Memory Access Controller (NMOS) ...................................... . 66 HD6345 CRT Controller (CMOS) ..................................................... . 99 HD6445 CRT Controller (CMOS) ..................................................... . 99 HD6845R CRT Controller (NMOS) ..................................................... . 139 HD6845S CRT Controller (NMOS) ..................................................... . 139 HD6350 Asynchronous Communications Interface Adapter (CMOS) ....................... . 181 HD6850 Asynchronous Communications Interface Adapter (NMOS) ....................... . 181 HD6852 Synchronous Serial Data Adapter (NMOS) ...................................... . 193 HD46508 Analog Data Acquisition Unit (NMOS) ......................................... . 207 HD46508A Analog Data Acquisition Unit (NMOS) ......................................... . 207 HD63084 Document Image Pre-Processor (CMOS) ........................................ . 227 HD63085Y Document Image Compression and Expansion Processor (CMOS) .................. . 259 HD68230 Parallel Interface Timer (NMOS) .............................................. . 273 HD63310 Smart Dual Port RAM (CMOS) ............................................... . 305 HD63450 Direct Memory Access Controller (CMOS) ...................................... . 307 HD68450 Direct Memory Access Controller (NMOS) ...................................... . 356 HD63463 Hard Disk Controller (CMOS) ................................................ . 404 HD63484 Advanced CRT Controller (CMOS) ............................................ . 472 HD63485 Graphic Memory Interface Controller (Hi-Bi CMOS) ............................. . 531 HD63486 Graphic Video Attribute Controller (Hi-Bi CMOS) ............................... . 567 HD68562 Dual Universal Serial Communications Controller (NMOS) ....................... . 600 HD63645 LCD Timing Controller (CMOS) .............................................. . 603 HD64941 Asynchronous Communications Interface (NMOS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641 HDl46818 Real Time Clock Plus RAM (CMOS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644 Hitachi Sales Offices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 663 iii iv GENERAL INFORMATION • Qu ick Reference Gu ide • I ntroduction of Packages • Reliability and Quality Assurance • Reliability Test Data of Microcomputer ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 v vi QUICK REFERENCE GUIDE • 8-BIT MICROCOMPUTER PERIPHERAL LSI Characteristics qp.rating··· R,ference DIvIsion Type Nol Clock Process Frequency ~~PPIV oltege Tem~rature Packaget Function Compatibility Page Old Type Name (MHz! (V! ('C) HD6321' 1 DP-40 Peripheral I ntariaee 27 HD63A21' CMOS 15 50 -20-+75 FP-54 Adapter HD63B21' 2 PIA HD6821 HD46821 1 MC6821 Peripheral Interface HD68A21 HD468A21 NMOS 15 5.0 -20-+75 DP-40 MC68A21 27 Adapter HD68B21 HD468B21 2 MC68B21 HD6340' 1 Programmable Timer HD63A40' CMOS 1.5 5.0 -20-+75 DP-28 49 Module HD63B40' 2 PTM HD6840 1 MC6840 Programmable Timer HD68A40 NMOS 1.5 5.0 -20-+75 DP-28 MC68A40 49 Module HD68840 2 MC68840 HD6844 HD46504 1 MC6844 Direct Memory DMAC HD68A44 HD46504-1 NMOS 1.5 50 -20-+75 DP-4Q MC68A44 66 Access Controller HD68B44 HD46504-2 2 MC68844 H06345* 1 CRT Controller (4.5 MHz HIgh 99 HD63A45' CMOS 15 5.0 -20-+75 DP-4Q Speed Dlsplav! HD63B45' 2 6800 type bus tim Ing HD6845 HD46505R 1 MC6845 CRT Controller HD68A45 HD46506R-l NMOS 1.5 5.0 -20-+76 DP-4Q (3.0 MHz HlIIh MC68A46 139 Speed D,splav) CRTC HD68B45 HD46505R-2 2 MC68B45 HD6B45S HD46505S-1 1 CRT Controller HD68A45S HD46505S-1 NMOS 1.5 5.0 -20-+75 DP-4Q (3_7 MHz HIgh 139 Speed Dlsplav! HD68B45S HD46505S-2 2 CRT Controller HD6445-4' CMOS 4 5.0 -20-+75 DP-40 (4.5 MHz High Speed Dlsplav) 99 80 type bus timing HD6350 1 Asynchronous HD63A50 'CMOS 1.5 5.0 -20-+75 DP-24 Communications 181 I nterface Adapter HD63B50 2 ACIA HD6850 HD46850 1 Asynchronous MC6850 NMOS 5.0 -20-+75 DP·24 Communications 181 HD68A50 HD468A50 1.5 Interface Adapter MC68A50 HD6852 HD46852 1 Synchronous Senal MC6852 SSDA NMOS 50 -20-+75 DP-24 Data Adapter 193 HD68A52 HD468A52 1.5 MC68A52 HD46608 1 HD46508-1 1.5 Analog Dati 207 ADU NMOS 5.0 -20-+75 DP-24 AqulSltlon Unit HD46508A 1 HD46608A-l 1.5 DP-24 Reel Tune Clock 644 RTC HDI46818 CMOS 1 5.0 0-+70 MCI46818 FP-24 plu.RAM DIPP HD63084' CMOS 10lmaxl 5.0 0-+70 DP-B4S Documem Image 227 Pre-Processor Document Image Com- DICEP HD63085' CMOS 32lmax) 5.0 0-+70 PC-72 prelSlon and Expan- 259 sion Proceuor HD63310" CMOS 5.0 0-+70 Smart Dual Port 305 g-PRAM DP-48 RAM LCTC HD63646" CMOS 2 5.0 -20-+75 FP-80 LCD Timing Controller 603 ACI HD64941·· NMOS 50 0-+70 DP-24N Asynchronous Com- 641 munlCltionslnterfece SCN2B41 • Preliminary·· Under development ••• Wide temperature range (-40_+85°C) version II available. top: PlastiC DIP, FP: Flat Plastic Package, DC: Ceramic DIP PGA: Pin Gnd Array. PC: Ceramic Pin Grid Arrav. CP: PlastiC Leaded Chip Carrier ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 vii QUICK REFERENCE G U I D E - - - - - - - - - - - - - - - - - - - - - - - - • 16-BIT MICROCOMPUTER PERIPHERAL LSI Characteristics Division Type No. Clock Supply Operating Reference Process Frequency Voltage Temperature Package Function Compatibility Page (MHz) (V) (DC) HD68230P8* 8 Parallel Interface MC68230L8 273 PItT NMOS 5.0 0-+70 DP-48 HD68230Pl0* 10 Timer MC68230L10 HD63450-6* 6 DC-64 HD63450-8* 8 DP.e4 CMOS 5.0 0-+70 DP.e4S Direct Memory 307 HD63450-10' 10 PGA-68 Access Controller HD63450-12* 12.5 CP-68 DMAC HD66450-4 4 MC68450L4 HD66450-6 6 DP-64 Direct Memory MC68450L6 NMOS 5.0 0-+70 356 HD66450-8 8 PGA-68 Access Controller MC68450L8 HD68450-10 10 HD63463-4 4 DC-48 HOC HD63463-6 CMOS 5.0 Hard Disk 6 0-+70 DP-48 404 Controller HD63463-8 8 CP-52 HD63484-4 4 DC-64 Advanced CRT ACRTC HD63484-6 CMOS 6 5.0 0-+70 DP-64 Controller 472 HD63484-8 8 CP-68 Hi-Bi DP-64S Graphic Memory GMIC HD63485** 5.0 0-+70 531 CMOS CP-68 Interface Controller Hi-Bi DP.e4S Graphic vidao GVAC HD6348S'* 5.0 0-+70 567 CMOS CP-68 Attribute Controller Dual Universal MC68562 DUSCC HD68562*' NMOS 4 (max) 5.0 0-+70 DC-48 Serial Communica- SCN68562 600 tions Controller * Preliminary *. Under development ~HITACHI viii Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - Q U I C K REFERENCE GUIDE • 8/16 BIT MICROCOMPUTER PERIPHERAL LSI Characteristics Clock Supply Operati~g* t Reference Division Type No. Function Compatibility Process Frequency Voltage Temperature Package Page (MHz) (V) ('C) HD6845 1 MC6845 CRT Controller HD68A45 NMOS 1.5 5.0 -20-+75' DP40 (3.0 MHz High MC68A45 139 Speed Display) HD68B45 2 MC68B45 HD6845S 1 CRT Controller HD68A45S NMOS 1.5 5.0 -20-+75 DP40 (3.7 MHz HIgh 139 Speed Display) HD68B45S 2 CRTC HD6345' 1 CAT Controller (4.5 MHz High HD63A45* CMOS 1.5 5.0 -20-+75 DP40 99 Speed Display) eE HD63B45* 2 6800 type bus timing CRT Controller 8 HD6445-4* CMOS 4 5.0 -20-+75 DP-40 (4.5 MHz High 99 > ro Speed Display) ]. 80 type bus timing 15 LCTC HD63645** CMOS 2 5.0 -20-+75 FP-80 LCD Timing Controller 603 HD63484-4 4 DC-64 ACRTC HD63484-6 CMOS 0-+70 Advanced 472 6 5.0 DP-64 CRT Controller HD63484-8 8 CP-68 Hi-BI DP-64S Graphic Memory GMIC HD63485** 5.0 0-+70 531 CMOS CP-68 Interface Controller Hi-8i DP-64S Graphic Video GVAC HD63486** 5.0 0-+70 567 CMOS r.P-flR Attribute Controller HD6850 1 Asy nch ronous MC6850 ~l!! NMOS 5.0 -20-+75 DP-24 Communications 181 HD68A50 1.5 I nterface Adapter MC68A50 .: ACIA HD6350 1 Asynchronous 181 " 0 HD63A50 CMOS 1.5 5.0 -20-+75 DP-24 Communications I "terface Adapter 'N HD63B50 2 ~ E SSDA E " HD6852 HD68A52 NMOS 1 1.5 5.0 -20-+75 DP-24 Synchronous Senal Data Adapter MC6852 MC68A52 193 0 U Dual Universal Serial SCN68562 DUSCC HD68562** NMOS 4 (max) 5.0 0-+70 DC-48 600 Communications Control MC68562 DP-24N Asynchronous Com- ACI HD64941** NMOS 5.0 0-+70 SCN2641 641 mUnications Control HD6840 1 MC6840 Programmable Timer HD68A40 NMOS 1.5 5.0 -20-+75 DP-28 MC68A40 49 Module HD68B40 2 MC68B40 eE PTM HD6340* 1 0 Programmable Timer u HD63A40* CMOS 1.5 5.0 -20-+75 DP-28 49 Module i; HD63B40* 2 E ,:: DP-24 Real Time Clock RTC HD146818 CMOS 1 5.0 0-+70 FP-24 MC146818 644 Plus RAM HD68230P8* 8 Parallel Interface MC68230L8 PitT NMOS 5.0 0-+70 DP-48 273 HD68230P10* 10 Timer MC6R230L10 0 HD63463-4 4 DC-48 ~~ .- c HOC HD63463-6 CMOS 6 5.0 0-+70 DP48 Hard Disk Controller 404 "-0 U HD63463-8 8 CP-52 * Preliminary ** Under development *** Wide temperature range (-40'"" +8SoC) version IS available) tOP: Plastic DIP, DC: CeramiC DIP, FP: Flat Plastic Package, PGA: Pm Grid Array, PC: Ceramic Pin Grid Array, CP: Plastic Leaded Chip Carrier ~HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ix QUICK REFERENCE GUIDE - - - - - - - - - - - - - - - - - - - - - - - - • 8/16 BIT MICROCOMPUTER PERIPHERAL LSI Characteristics Clock Supply Operating··· t Referance Division Tvpe No. Frequency Voltage Function Compatibility Process Temperature Package Page (MHz) (V) (OC) HD6844 1 a·Bit Direct MC6844 HD68A44 NMOS 1.5 5.0 -20-+75 DP-40 MemorvAcc... MC68A44 66 ~ HD68B44 2 Controller MC68B44 HD68450-4 4 MC68450L4 8 DMAC HD68450-6 6 DC-64 16-bit Diract MC68450L6 356 E NMOS 5.0 0-+70 Memory Access i CIl HD6B460-8 HD68450-10 a 10 PGA-6B Controller MC6B450L8 MC68450L10 HD63450-6" 6 DC-64 HD63460.s" a DP-64 16-Bit Direct CMOS 5.0 0-+70 DP-64S Memory Access 307 HD63450-10" 10 PGA-68 Controller HD63450-12" 12.5 CP-68 S- Smart Dual Port 305 HD63310"" CMOS 5.0 0_+70 DP-48 DPRAM RAM HD6821 1 MC6821 Peripheral I nterfeea HD68A21 NMOS 1.5 5.0 -20-+75 DP-40 MC68A21 27 Adapter . PIA HD68B21 2 MC68B21 ~ HD6321" 1 DP-40 Peripheral Interface 27 ~ HD63A21" CMOS 1.5 5.0 -20-+75 Adapter FP-54 HD63B21" 2 ~. .J:: ADU HD46608 HD46508-1 1 1.5 DP-40 Analog pata 0. NMOS 5.0 -20-+75 207 l HD46608A HD46508A-l 1 1.5 AcquiSition UOit HD68230PS" 8 Parallel Interface MC68230L8 Plrr NMOS 5.0 0-+70 DP-48 273 HD68230Pl0" 10 Timer MC68230L10 Document Image E ~ DIPP HD63084" CMOS 10 (max) 5.0 0-+70 DP-64S 227 .... 8 Pre-Processor E if!! Document Image g£e C DICEP 0- HD63086" CMOS 32 (max) 6.0 0-+70 PC-72 Compression and 259 Expansion Processor ... Preliminary ** Under development ••• Wide temperature range (-40 ,.,. +85°C) version is available. t DP: Plastic DIP, DC: Ceramic DIP, FP: Flat Plastic Package PGA: Pin Grid Array, PC: Ceramic Pin Grid Array, CP: Plast'c leaded chip carrier • HITACHI x Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 INTRODUCTION OF PACKAGES Hitachi microcomputer devices include various types of multi-function types, applicable to each kind of mounting package which meet a lot of requirements such as ever smaller, method. Also, plastic and ceramic materials are offered ac- thinner and more versatile electric appliances. When selecting a cording to use. package suitable for the customers' use, please refer to the Figure 1 shows the package classification according to the following for Hitachi microcomputer packages. mounting types on the Printed Circuit Board (PCB) and the materials. 1. Package Classification There are pin insertion types, sUFface mounting types and Standard Oud ine Plastic DIP Pin Insertion Type Ceramic DIP Shrink Outtine Shrink Type Ple.ti~ DIP Shrink Type Ceramic DIP Package Classification Flat Package SOP (Plastic) Surface Mounting Type FPP (Plastic) Ch ip Carrier PLCC (Plastic) EPROM on the Package (Gla .. Sealed Ceramic) Multi-function Type Type DIP; DUAL IN LINE PACKAGE S-DIP;SHRINK DUAL IN LINE PACKAGE PGA: PIN GRID ARRAY FLAT-DIP; FLAT DUAL IN LINE PACKAGE FLAT-QUIP; FLAT QUAD IN LINE PACKAGE CC: CHIP CARRIER SOP;SMALL OUTLINE PACKAGE FPP; FLAT PLASTIC PACKAGE PLCC; PLASTIC LEADED CHIP CARRIER LCC; LEADLESS CHIP CARRIER Figure 1 Package Classification according to the Mounting Type on the Printed Circuit Board and the Materials. • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 INTRODUCTION OF PACKAGES---------------------------------------------- 2. Type No. and Package Code Indication is identified by code as follows, illustrated in the data sheet of Type No. of Hitachi 8/16 bit microcomputer peripheral each device. device is followed by package material and outline specifica· When ordering, please write the package code beside the type tions, as shown below. The package type used for each device number. Type No. Indication HDxxXXP (Note) The HD63450 with shrink type plastic DIP (DP-64S) has a dif· ferent type No. from other deVices. Packaae Classification No Indication Ceramic DIP Type No.; H D63450PS8 P F (FP) CP Plastic DIP SOp. FPP PLC~ V PGA (16·bit microcomputer device) Package Code Indication DP-64S Qsu!inJ. Materials D ; DIP P ; Plastic C ; CC G ; Glass Sealed F ; FLAT ceramic P ; PGA C ; Ceramic (Note) PGA packages of 16~bit microcomputer devices have a different indication. Package Code Indication; PGA-68 • HITACHI 2 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------INTRODUCTION OF PACKAGES 3. Package Dimensional Outline ages shown in Table I according to the mounting method on Hitachi multi.chip microcomputer device employs the pack. the PCB. Table 1 Package List Method of Mounting Package Classification Package Material Package Code DP·24 DP·24N Plastic DP·28 DP-40 Standard Outline (DIPI DP·64 Pin Insertion Type DC-48 Ceramic DC-64 SoDIP Plastic DP-64S Shrink Outline PGA Glass Sealed Ceramic PGA-BII PC-72 FLAT-DIP (SOPI FP-24 Surfece Mounting Type Flat Package Plastic FP-54 FLAT-QUIP (FPPI FP-80 Plastic DIP • DP-24 Scale: 1/1 31 6( 1244) /24 32 5ma•.( I 280ma•.) 13 1 [:::::::::~H I II --I~7) 12 12 1524 r--;;;;:;;;;:;:;::;::;::;:;::;::;::;:;::~~-l ~ j~0600)! tTrrt anO,...N ,r"""nr"\n.n/'I"IT"l,,..,,r\l 0 S. ~ ~ ~~ ~~\\ 254±025 -l1048±0I:l8 ~2 'II\'! (OIOO±OOIO) (0019±0004) N;; 0'-15' \OOIO!l. (Unit: mml .DP-24N Scale: 1/1 316(1244) / ~4 325m....(1 280m...) 131 [:::::::::::11 J"" , -'-JI (;~" "- - . 5 :; (0400) ~~I~~ ~.~, ".4,. .." 1ft O,...N c:i S. 11')8 . ~i!l,\\ 254±025 048±01 ~S ~25 !l,'II\'! (Unit: mml • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 3 INTRODUCTION OF P A C K A G E S - - - - - - - - - - - - - - - - - - - - - - • DP-28 Scale: 1/1 35.6(1.402) 128 36.6mlx.l!.44Imax.1 151 (Unit: mml Scale: 1/1 • DP-40 52.8(2.079) 40 54.0max.(2.I26mlx.) 21 20 Unit (mml • DP-48 6212(2446) 63.50mlx.(2.579mlx.) 48 25 ~ ~~"~""""n 0 I;; w w w w 'j' 24 w --=..ri-h3(0.051l (Unit: mml • HITACHI 4 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------INTRODUCTION OF PACKAGES • DP-64 Scale: 1/1 ;::: ii:l . ~ .8 0 0 N .8 (Unit: mm) • HITACHI Hitachi America Ltd .•. 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 5 INTRODUCTION OF PACKAGES---------------------------------------------- ICer.mic DIP I eDC-48 Scale: 1/1 60 42(2 379) 48 2S F=:> I\!! :!d 0 I --=..rl- 127(0.050) 24 0.48±0.1 2.SHO.25 (0.019±0.004) (O.IOO±O.OIO) (Unit; mm) eDC·84 Scale: 1/1 8128 (3.200) 64 33 ill !:i 0 ~ 32 H 0.25~ (0.010!i:1i8I) (Unit; mm) $ HITACHI 6 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------INTRODUCTION OF PACKAGES Shrink Type Plaltic 01 P • DP·64S Scale: 1/1 57.6(2.268) 64 58.6mIK.(2.307mIK.) 33 o 32 (Unit: mm) Pin Grid Array • PGA·68 22.86±045 Scale: 1/1 (0900±0.0187) S.OBmlx. 2.54min (0.200m.,) (O.IOOmin.) 2642 (1040) ~ ~ @ D (Unit: mm) • PC·72 Scale: 1/1 S.08max. 274 (0.200m",.,"!)-Ft,-"- (1.079 ) 1.27typ. (0.050typ.) ~ ~ t'CJ D (Unit: mm) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 7 INTRODUCTION OF PACKAGES------------------------------------------------ Plastic Leaded Chip Carrier • CP-52 Scale: 1/1 ~! ! H' D ' ~! " 21 ~'''''I~i~~ 1912 33 ~ - l~; (Unit: mm) • CP-68 Scale: 1/1 25 15 ~ 0 12 (0990+0005) o .§ ~~ :r&\WWiiiiiJwa~! ~~~I (Unit: mm) 8 o HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------INTRODUCTION OF PACKAGES Flat Package eFP-24 Scale: 1/1 15 10(0 6U) (Unit: mm) eFP-54 Scale: 3/2 256±04 (1.008±0.016) 29max (0 114ma,) ~ :e "';;., 0 § :! ~ s' 0.15±0.05 (0.006 ± 0.002) (Unit: mm) e FP-80 Scale: 3/2 (0.014±0.004) ..J\u.uUUUIlllUUqUUqIUlIUlIllUU~0.-15. \.~0.0\2) (Unit: mm) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 9 INTRODUCTION OF PACKAGES------------------------------------------------ 4. Mounting Method on Board Ensure good heater or temperature controls because the Lead pms of the package have surface treatment, such as material of a plastic package is black epoxy-resin which damages solder coating or solder plating, to make them easy to mount easily. When an infrared heater is used, if the temperature is on the PCB. The lead pins are connected to the package by higher than the glass transition point of epoxy-resin (about eutectic solder. The following explains the common connecting IS0°C), for a long time, the package may be damaged and the method ofleads and precautions. reliability lowered. Equalize the temperature inside and outside the packages by l~ssening the heat of the upper surface of the 4.1 Mounting Method of Pin Insertion Type Package packages. Insert lead. pins of the package into through.holes (usually Leads of FPP may be easily bent under shipment or during about q,0.8mm) on the PCB. Soak the lead part of the package handling and cannot be soldered onto the printed board. If in a wave solder tub. they are, heat the bent leads again with a soldering iron to re- Lead pins of the package are held by the through-holes. shape them. Therefore, it is easy to handle the package through the process Use a rosin flux when soldering. Don't use a chloric flux up to soldering, and easy to automate the soldering process. because the chlorine in the flux tends to remain on the leads When soldering the lead part of the package In the wave solder and lower the reliability of the product. tub , be careful not to get the solder on the package, because Even if you use a rosin flux, remaining flux can cause the the wave solder will damage it. leads to deteriorate. Wash away flux from packages with alcohol, chlorothene or freon. But don't leave these solvents 4.2 Mounting Method of Surface Mounting Type Package on the packages for a long time because the marking may Apply the specified quantity of solder paste to the pattern disappear. on any printed board by the screen printing method, and put a package on it. The package is now ~emporarily fixed to the 5. Marking pnnted board by the surface tension of the paste. The solder Hitachi trademark, product type No., etc. are printed on paste melts when heated in a reflowing furnace, and the leads packages. Case I and Case II give examples of marks and Nos. of the package and the pattern of the printed board are fixed Case I applies to products which have only a standard type No. together by the surface tension of the melted' solder and the Case II applies to products which have an old type No. and a self ahgnment. standard type No. The size of the pattern where the leads are attached, partly depending on paste material or furnace adjustment, should be l.l to 1.3 times the leads' width. The temperature of the reflowing furnace depends on pack- age material and also package types. Fig. 2 lists the adjustment of the reflowing furnace for FPP. Pre-heat the furnace to 150°C. The surface temperature of the resin should be kept at 23SoC max. for 10 minutes or less. (1) The temperature of the leads should be kept at 260°C for 10m inutes or less. (2) The temperature of the resin should be kept at 235°C for 10m inutes or less. (3) Below is shown the temperature profile when soldering a package by the reflowing method. Tlme------+ Figure 2 Reflowing Furnace Adjustment for FPP • HITACHI 10 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------INTRODUCTION OF PACKAGES Case I; I neludes a standard type No. (d) D~B~rsJ Case II; Includes an old type No. and a standard type No. (a) (b) '. mDB (e) B 0 ~ BBOB SB Meaning of Each Mark (d)D~B~rsJ (01 Hitachi Trademark (bl Lot Code (el Standard Type No. (c) BDB8~BSB (dl (el Japan Mark Old Type No. @HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 11 RELIABILITY AND QUALITY ASSURANCE 1. VIEWS ON QUALITY AND REI-lABILITY development. Basic views on qUality in Hitachi are to meet individual (3) Reliability Evaluation by Test Site user's purchase purpose and quality required, and to be at the Test site is sometimes called Test Pattern. It is useful method satisfied quality level considering general marketability. Quality for design and process reliability evaluation of IC and LSI which required by users is specifically clear if the contract specifica· have complicated functions. tion is provided. If not, quality required is not always defmite. 1. Purposes of Test Site are as follows; In both cases, efforts are made to assure the reliability so that • Making clear about fundamental failure mode semiconductor devices delivered can perform their ability in • Analysis of relation between failure m04e and manufac- actual operating circumstances. To realize such quality in turing process condition manufacturing process, the key points should be to establish • Search for failure mechanism analysis quality control system in the process and to enhance morale • Establishment of QC point in manufacturing for quality. 2. Effectiveness of evaluation by Test Site are as follows; In addition, quality required by users on semiconductor • Common fundamental failure mode and failure mecha- devices is going toward higher level as performance of elec- nism in devices can be evaluated. tronic system in the market is going toward higher one and is • Factors dominating failure mode can be picked up, and expanding size and application fields. To cover the situation, comparison can be made with process having been experi- actual bases Hitachi is performing is as follows; enced in field. (1) Build the reliability in design at the stage of new product • Able to analyze relation between failure causes and manu- development. factUring factors. (2) Build the quality at the sources of manufacturing process. • Easy to run tests. (3) Execute the harder inspection and reliability confirmation etc. of fmal products. (4) Make quality level higher with field data feed back. 2.3 Design Review (5) Cooperate with research laboratories for higher quality Design review is organized method to confirm that design and reliability. satisfies the performance required including users' and design With the views and methods mentioned above, utmost efforts work follows the specified ways, and whether or not technical are made for users' requirements. improved items accumulated in test data of individual major fields and field data are effectively built in. In addition, from 2. RELIABILITY DESIGN OF SEMICONDUCTOR the standpoint of enhancement of competitive power of prod- DEVICES ucts, the major purpose of design review is to ensure quality 2.1 Reliability Targets and reliability of the products. In Hitachi, design review is Reliability target is the important factor in manufacture performed from the planning stage for new products and even and sales as well as performance and price. It is not practical to for design changed products. Items discussed and determined rate reliability target with failure rate at the certain common at design review are as follows; test condition. The reliability target is determined correspond· (1) Description of the products based on specified design ing to character of equipments taking design, manufacture, documents. inner process quality control, screening and test method, etc. (2) From the standpoint of specialty of individual participants, into conSideration, and conSidering operating circumstances design documents are studied, and if unclear matter is of equipments the semiconductor device used in, reliability found, sub·program of calculation, experiments, investiga- target of system, derating applied in design, operating condition, tion, etc. will be carried out. maintenance, etc. (3) Determine contents of reliability and methods, etc. based on design document and drawing. 2.2 Reliability Design (4) Check process ability of manufacturing line to achieve To achieve the reliability required based on reliability targets, design goal. timely sude and execution of design standardization, device (5) Discussion about preparation for production. design (including process design, structure design), design (6) Planning and execution of sub-programs for design change review, reliability test are essential. proposed by indiVidual specialist, and for tests, experiments (I) Design Standardization and calculation to confirm the design change. Establishment of design rule, and standardization of parts, (7) Reference of past failure experiences with similar devices, material and process are necessary. As for design rule, critical confmnation of method to prevent them, and planning items on quality and reliability are always studied at circuit and execution of test program for confmnation of them. deSign, device design, layout design, etc. Therefore, as long as These studies and decisions are made using check lists standardized process, material, etc. are used, reliability risk is made individually depending on the objects. extremely small even in new development devices, only except for in the case special requirements in function needed. 3. QUALITY ASSURANCE SYSTEM OF SEMICONDUCTOR (2) Device DeSign DEVICES It is important for device design to consider total balance 3.1 Activity of Quality Assurance of process design, structure design, circuit and layout design. General views of overall quality assurance in Hitachi are as Especially in the case new process and new material are em- follows; ployed, technical study is deeply executed prior to device (l) Problems in individual process should be solved in the ~HITACHI 12 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - R E L I A B I L I T Y AND QUALITY ASSURANCE process. Therefore, at fmal product stage, the. potential in manufacturing department, quality assurance department, failure factors have been already removed. which are major, and other departments related. The total (2) Feedback of infonnation should be made to ensure satisfied function flow is shown in Figure 2. The main points are level of process ability. described below. (3) To assure reliability required as an result of the things mentioned above is the purpose of quality assurance. 3.3.1 Quality Control of Parts and Material The followings are regarding device design, quality approval As the perfonnance and the reliability of semiconductor at mass production, inner process quality control, product devices are getting higher, importance is increasing in quality inspection and reliability tests. control of material and parts, which are crystal, lead frame, fme wire for wire bonding, package, to build products, and 3.2 Quality Approval materials needed in manufacturing process, which are mask To ensure quality and reliability required, quality approval pattern and chemicals. Besides quality approval on parts and is carried out at trial production stage of device design and materials stated in section 3.2, the incoming inspection is, mass production stage based on reliability design descnbed at also, key in quality control of parts and materials. The in· section 2. coming inspection is perfonned based on incoming inspection The views on quality approval are as follows; specification following purchase specification and drawing, (I) The third party perfonns approval objectively from the and sampling inspection is executed based on MIL·STD·105D standpoint of customers. mainly. (2) Fully consider past failure experiences and infonnation The other activities of quality assurance are as follows: from field. (1) Outside Vendor Technicallnfonnation Meeting (3) Approval is needed for design change and work change. (2) Approval on outside vendors, and guidance of outside (4) Intensive approval is executed on parts material and pro· vendors cess. (3) Physical chemical analysis and test (5) Study process ability and fluctuation factor, and set up The typical check points of parts and materials are shown in control points at mass production stage. Table 1. Considering the views mentioned above, quality approval shown in Figure 1 is performed. 3.3.2 Inner Process Quality Control Inner process quality control is performing very important 3.3 Quality and Reliability Control at Mass Production function in quality assurance of semiconductor devices. The For quality assurance of products in mass production, following is description about control of semi·fmal products, quality control is executed with organic division of functions fmal products, manufacturing facilities, measuring equipments, Step Contents Purpose /:Target Specification I Design Review ~ Characteristics of Material and Confirmation of l;esi 9 Trial n Materials, Parts II Parts Characteristics and Approval II Appearance Reliability of Materials Production Dimension and Parts Heat Resistance Mechanical Electrical Others ILCharacteristics Approval Electrica' Confirmation of Target Characteristics Spec. Mainly about Function Electrical Characteristics Voltage Current Temperature Others Appearance, Dim.ns,ion Qual itv Approval (1 Reliability Test Confirmation of Quality Life Test and Reliability in Design Thermal Stress Moisture Resistance Mechanical Stre.. Others Qualit'j< Approval (2) Reliability Test Confirmation of Quality Process Check same as and Reliebility in Ma.. ~ Quality Approval (1) Production I~ass Production J Figure 1 Flow Chart of Quality Approval ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 13 RELIABILITY AND QUALITY A S S U R A N C E - - - - - - - - - - - - - - - - - - - - - circumstances and sub-materials. The quality control in the measures manufacturing process is shown in Figure 3 corresponding to • Transmission of information about quality the manufacturing process. (2) Quality Control of Manufacturing Facilities and Measuring (1) Quality Control of Semi-fmal Products and Final Products Equipment Potential failure factors of semiconductor devices should be Equipments for manufacturing semiconductor devices have removed preventively in manufacturing process. To achieve it, ~een developing extraordinarily with necessary high perform- check points are set-up in each process, and products which ance devices and improvement of production, and are important have potential failure factor are not transfer to the next process. factors to determine quality and reliability. In Hitachi, auto- Especially, for high reliability semiconductor devices, manu- matization of manufacturing equipments are promoted to im- facturing line is rigidly selected, and the quality control in the prove manufacturing fluctuation, and controls are made to manufacturing process is tightly executed - rigid check in maintain proper operation of high performance equipments each process and each lot, 100% inspection in appropriate ways and perform the proper function. As for maintenance inspection to remove failure factor caused by manufacturing fluctuation, for quality control, there are daily inspection which is perform- and execution of screening needed, such as high temperature ed daily based on specification related, and periodical inspection aging and temperature cycling. Contents of inner process which is performed periodically. At the inspection, inspection quality control are as follows; points listed in the specification are checked one by one not to • Condition control on individual equipments and workers, make any omission. As for adjustment and maintenance of and sampling check of semifmal products. measuring equipments, maintenance number, speCification are • Proposal and carrying-out improvement of work checked one by one to maintain and improve qUality. • Education of workers (3) Quality Control of Manufacturing Circumstances and Sub- • Maintenance and improvement of yield materials • Picking-up of quality problems, and execution of counter- Quality and reliability of semiconductor device is highly Process Quality Control Method Material, Parts Inspection on Material and Lot Sampl ing, Parts for Semiconductor Confirmation of Devices Qual ity Level Manufacturing Equipment, Confirmation of Environment. Sub-material. Qual ity Level Worker Control Inner Process Lot Sampl ing, Quality Control Confirmation of Quality Level 100% I nspection on Appearance and Electrical Testing. Characteristics Inspection Products Sampling Inspection on I Appearance and Electrical Lot Sampling I Characteristics I I I I 'Confirmation of ~---- Reliability Test Quality Level, Lot Sampling Feedback of r ---------------, Information I Quality Information I " Claim : I Field Experience I General Quality L I nformation _________________ ...I Figure 2 Flow Chart of Quality Control in Manufacturing Process ~HITACHI 14 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - R E L I A B I L I T Y AND QUALITY ASSURANCE affected by manufacturing process. Therefore, the controls of Table 1 Quality Control Check Points of Material and Parts manufacturing circumstances - temperature, humidity, dust - (Examplel and the control of submaterials - gas, pure water - used in manufacturing process are intensively executed. Dust control Material, Important Point for Check is described in more detail below. Parts Control Items Dust control is essential to realize higher integration and Appearance Damage and Contamina- higher reliability of devices. In Hitachi, maintenance and im- tion on Surface provement of cleanness in manufacturing site are executed Dimension Flatness Wafer with paying intensive attention on buildings, facilities, air- Sheet Resistance Resistance Defect Density Defect Numbers conditioning systems, materials delivered-in, clothes, work, etc., Crystal Ax is and periodical inspection on floating dust in room, falling dusts and dirtiness of floor. Appearance Defect Numbers, Scratch Dimension Dimension Level Mask Resistoration 3.3.3 Final Product Inspection and Reliability Assurance Gradation Uniformity of Gradation (1) Final Product Inspection Lot inspection is done by quality assurance department for Fine Appearance Contamination, Scratch, products which were judged as good products in 100% test, Bend, Twist Wire for which is fmal process in manufacturing department. Though Dimension Wire Purity Bonding Purity Level 100% of good products is expected, sampling inspection is Elongation Ratio Mechanical Strength executed to prevent mixture of failed products by mistake of work, etc. The inspection is executed not only to confmn that Appearance Contamination, Scratch the products meet users' requirement, but to consider potential Dimension Dimension Level factors. Lot inspection is executed based on MIL-STD-105D. Processing Frame Accuracy (2) Reliability Assurance Tests Plating Bondability, Solderability To assure reliability of semiconductor devices, periodical Mounting Heat Resistance reliability tests and reliability tests on individual manufacturing Characteristics lot required by user are performed. Appearance Contamination, Scratch Dimension Dimension Level Leak Resistance Airtightness Plating Bondability, Solderability Ceramic Mounting Heat Resistance Package Characteristics Electrical Characteristics Mechanical Mechanical Strength Strength Composition Characteristics of Plastic Material Electrical Characteristics Thermal Plastic Characteristics Molding Molding Performance Performance Mounting Mounting Characteristics Characteristics ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (40B) 435-B300 15 RELIABILITY AND QUALITY A S S U R A N C E - - - - - - - - - - - - - - - - - - - - - Process Control Point Purpose of Control Purchase of Material Wafer Wafer Characteristics, Appearance Scratch, Removal of Crystal Defect Wafer Surface Oxidation Oxidation Assurance of Resistance Inspection on Surface Appearance, Thickness of Pinhole, Scratch Oxidation Oxide Film Photo Resist Photo Resist Inspection on Photo Resist Dimension, Appearance Dimension Level o POC Level Check Check of Photo Resist Diffusion Diffusion Diffusion Depth, Sheet Diffusion Status Resistance Inspection on Diffusion Gate Width Control of Basic Parameters o POC Level Check Characteristics of Oxide Film (VTH, etc.) Cleanness of surface, Breakdown Voltage Prior Check of VIH Breakdown Voltage Check Evaporation Evapora- Thickness of Vapor Film, Assurance of Standard tion Scratch, Contamination Thickness Inspection on Evaporation o POC Level Check Wafer Inspection Wafer Thickness, VTH Characteris- Prevention of Crack, tics Quality Assurance of Scribe Inspection on Chip Chip Electrical Characteristics Elec;trical Characteristics Chip Scribe Appearance of Chip Inspection on Chip Appearance o POC Lot Judgement Frame Assembling Assembling Appearance after Chip Ouality Check of Chip Bonding Bonding Appearance after Wire Ouality Check of Wire Bonding Bonding o POC Level Check Pull Strength, Compression Prevention of Open and Width, Shear Strength Short Inspection after Appearance after Assembling Assembling o POC Lot Judgement Package Sealing Sealing Appearance after Sealing Guarantee of Appearance Outline, Dimension and Dimension o POC Level Check Marking Marking Strength Final Electrical Inspection o Failure Analysis Analysis of Failures, Failure Feedback of Analysis Infor- Mode, Mechanism mation Appearance Inspection Sampling Inspection on Products Receiving Shipment Figure 3 Example of Inner Process Quality Control @HITACHI 16 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - R E L I A B I L I T Y AND QUALITY ASSURANCE r------------ - - - - - - - - - - - - - - - - - - - - - 1 I r-----~----~ Failure Analysis I I I I I I I I I I Countermeasure I I Execution of I I Countermeasure I I I I Report I I I I I I I II Quality Assurance Dept. Follow-up and Confirmation II I of Countermeasure Execution I I I IL _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Report _________________ I ~ Sales Engineering Dept. Reply Customer Figure 4 Process Flow Chart of Field Failure ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 17 RELIABILITY TEST DATA OF MICROCOMPUTER 1. INTRODUCTION 2. PACKAGE AND CHIP STRUCTURE Microcomputer is required to pr"vlde higher reliability and 2.1 Package qUality with increasing function, enlarging scale and widening The reliability of plastic molded type has been greatly im· application. To meet this demand, Hitachi is improving the proved, recently their applications have been expanded to auto- quality by evaluating reliability, building up quality in process, mobiles measuring and control systems, and computer terminal strengthening inspection and analyzing field data etc .. equipment operated under relatively severe conditions and This chapter describes reliability and quality assurance data production output and application of plastic molded type will for Hitachi 8-bit and 16-bit microcomputer Peripheral based on continue to increase. test and failure analysis results. More detail data and new infor. To meet such requirements, Hitachi has considerably im- mation wiD be reported in another reliability data sheet. proved moisture resistance, operation stability, and chip and plastic manufacturing process. Plastic and ceramic package type structure are shown in Figure I and Table I. (1) Ceramic DIP (2) Plastic DIP (3) Plastic Flat Package <> Lid Chip Bonding wire Figure 1 Package Structure Table 1 Package Material and Properties Item Ceramic DIP Plastic DIP Plastic Flat Package Package Alumina Epoxy Epoxy Lead Tin plating Brazed Alloy 42 Solder dipping Alloy 42 or Cl Solder plating Alloy 42 Seal Au-Sn Alloy N.A N.A Die bond Au-Si Au-Si or Ag paste Au-Si or Ag paste Wire bond Ultrasonic Thermo compression Thermo compression Wire AI Au Au ~HITACHI 18 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - R E L I A B I L I T Y TEST DATA OF MICROCOMPUTER 2.2 Chip Structure Hitachi microcomputers are produced in NMOS E/D tech- in both types because of high reliability and high density. nology or low power CMOS technology. Si-gate process is used Chip structure and basic circuit are shown in Figure 2_ Si-Gate N-channel E/D Si-Gate CMOS Drain Source Drain Source SiO l Source DrBln FETI FET2 FET2 N PA, PA, PA, PA, PB. PB, D, PB, D, PB, D, PB, PB, ..... _ ... U CCa)CDCCU ...... 0 0 > 01" - ,0.a:ooow <:U)(I)(I) (Top View) (Top View) • BLOCK DIAGRAM '00.. eA, eA, 0. 0, 0, 0, D. D. 0, p.. 0, PA, PA, ..'" PA, P.. 'A, , v" .o. v.. PB, 'B, CSO PB, cs, .a. fJ; Po. oSo P" os, PB, oiW • 110 ,- CB, CB, .HITACHI 28 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------HD6321/HD6821 • ABSOLUTE MAXIMUM RATINGS Value Item Symbol Unit HD6321 HD6821 Supply Voltage Vee • --{l.3 - +7.0 -{l.3- +7.0 V Input Voltage Vin· -{l.3 - +7.0 -{l.3 - +7.0 V Maximum Output Current 110 1** 10 - mA Maximum Total Output Current 11:1 0 1**. 100 - mA Operating Temperature Topr -20- +75 -20 - +75 ·C Storage Temperature Tstg -55- +150 -55-+150 ·C • With respect to VSS (SYSTEM GNDI ** Maximum output current is the maximum current which can flow in or flow out from one output terminal and I/O common terminal. (PAo-PA7. CA2. PBo-PB7. CB2. 00-071 ** .. Maximum total output current i. the total sum of output current which can flow in or flow out simultaneously from output tarminals and I/O common terminals. (PAo-PA7. CA2. PBo-PB7. CB2. 00-071 (NOTEI Permanent LSI damage may occur if maximum ratings are exceeded. Normel operation should be under recommended operating conditions. If these conditions are exceeded, it could affect reliability of LSI. • RECOMMENDED OPERATING CONDITIONS HD6321 HD6821 Supply Voltage Item Symbol Vee . min. 4.5 tVD 5.0 max . 5.5 min. 4.75 tvD 5.0 max. 5.25 Unit V Input "Low" Voltage VIL· -0.3 - 0.8 -0.3 - 0.8 V Do-D 7 .PAo- PA 7 • CAl. CA2 Input "High" 2.2 Vee PB o -PB 7 voltage CBI. CB2 S,!ltW.CSo• VIH· - 2.0 - Vee V CS2• CSI • RSo. 3.0" Vee RS I • RES Operating Temperature Topr -20 25 75 -20 25 75 ·C • With respect to Vss (SYSTEM GNOI ** Characteristics will be improved. $ HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 29 HD6321/HD6821--------------------------------------------------------- • ELECTRICAL CHARACTERISTICS • DC CHARACTERISTICS (HD6321; Vee = 5V ±10%, HD6821; Vee = 5V ±5%, Vss = OV, Ta = -20 -+75°C, unless otherwise noted.) HD6321 HD6821 Item Symbol Unit Test Condition min. typ* max Test Condition min tvp* max Do-D 7 • PAo -PA 7 • CA, CA,. PBo-PB7, 2.2 - Vee CB" CB, Input "High" Voltage E, R/W, CSo, CS, V IH 2.0 - Vee V 3.0** - Vee CS" RSo, RS" RES Input" Low" Voltage All Inputs VIL -0.3 - 0.8 -0.3 - 0.8 V --- RIW, RES, RSo, RS" Input leakage Current CSo, CS" CS" CA" 1m Vin =0 -Vee -2.S - 2.S Vin = 0 -Vee -'l.S - 2.S ~A CB" E Three State (Off State) PAo-PA7, CA, - ---- ITSI Vin = 0.4- Vee -10 10 Yin = 0.4-2.4V ~A Input CUrrent Do-D 7, PBo-PB7, CB, -10 10 ---- Input "High" Current PAo-PA7, CA, IIH VIH = 2.4V -'l00 - - ~A Input "Low" Current PAo-PA7. CA2 IlL VIL = 0.4V - - -'l.4 mA IOH - -400,uA 4.1 - - 00- 0 7 IOH <-10~A Vee -Q.l - - IOH=-20S/lA 2.4 - - ~ PA o-PA 7 , CA 2 IOH =-400~A 4.1 - - Output "High" Voltage PBo -PB 7, eB, VOH lo~ < -1O~A V cc -o. 1 - - V ~ IOH = -200~A 2.4*** - - PAo-PA,. CA2 IOH =- 10~A Vee -Q.l - - PBo - PB 7, CB, - - IOH = -'lOO~A 2.4 oO-07,IROA,IROS IOL=I.6mA - - 0.4 IOL=I.6mA - - 0.'1 Output" Low" Voltage PAo-PA7, CA, VOL IOL = 3.2mA - - 0.6 10L = 1.6mA - - 0.4 V PBo -PB 7, CB, IOL = 3.2mA - - 0.6 - - ~ Do - 0, VOH = 2.4V ~20S ~A Output "High" Current PAo-PA7, CA, 10H VOH = 2.411"" -'l00 - - ~A PBo-PB7, CB, VOH =1.SV -1.0 - -10 mA Output Leakage Current 1011 State I IRQA,IROS ILOH VOH = Vee - - 10 VOH = Vee - - 10 ~A PAo -PA 7 , PBo-PB7 CA" CB" Do -D 7 VIn = OV - - 12.S Yin = OV - - 12.5 Input Capacitance Cm Ta = 25°C Ta = 2SoC pF RIW, RES, RS o, RS, I =1.0MHz 1= 1.0MHz CSo, CS" CS" CA, - - 10 - - 10 CB ,E Vin :::OV Vm=OV Output Capacitance iRQA", IROB Cout T.=2SoC - - 10 Ta = 2SoC - - 10 pF I =1.0MHz 1= 1.0MHz ~ -PAo -PA7, CA2, PBo- PB 7 , CB2 are specified E = 1.0MHz - - 300 as Input. _Chip is not selected. E = 1.SMHz - - 400 ~A -Input level V,Hmm=V cc -08V E = 2.0MHz - - SOO Supply Current **** v,L max = O.8V Icc ~ -PAo""PA7, CA2 and PB o ""PB 7 , CB2 are E = 1.0MHz - - 4 specified as Input. E =l.SMHz - - S mA _Under Data Bus A/W operation. E = 2.0MHz - - 6 Power Dissipation PD 260 S50 mW Ta = 2S'C, V ce = 5.0V Characteristics will be improved. HD68B21; VOH = 2.2V min IPA o -PA 7, CA,I Supply current is defined on the condition that there is no current flow from output terminals. Supply current will be increased when the current from output terminal eXists. Also the current will be increased for charging and discharging the capacitive load. Please take this case into consideration in estimating system power. ~HITACHI 30 Hitachi America ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD6321/HD6821 • AC CHARACTERISTICS (HD6321; Vee = 5V ± 10%, HD6821; Vee= 5V ± 5%, Vss = OV, Ta = -20 - +75°C unless otherwise noted) 1. PERIPHERAL TIMING HD6321 HD63A21 HD63B21 HD6821 HD66A21 HD68B21 Umt Item isV mbol Test Condition min min max min min min Pertpheral Data Setup Time tPDSU Fig. 1 100 100 100 200 135 100 ns Peripheral Data Hold Time tpDH Fig. 1 0 0 0 0 0 0 ns Delay Time, Enable negative Transition to CAl negative Enable -+ CA2 Negative 'CA2 Fig. 2, Fig. 3 200 200 200 1000 670 500 ns transition Delay Time, Enable negative transition to CA2 positive Enable-+CA2 Positive FIg. 2 200 200 200 1000 670 500 'flSl transition Rise and Fall Times for CAl and CA2 input Signals CAl, CA2 tptf Fig. 3 1000 1000 1000 100 100 100 Delay Time from CAl active transition to CA2 CAl -+CA2 'RS2 Fig. 3 300 300 300 2000 1350 1000 ns pOSitive tranSItion Delay Time, Enable negative transition to Peripheral Data Enable-+Peripheral Data 'POW Fig. 4, Fig. 5 300 300 300 1000 670 500 ns Valid Delay TIme, Enable negative Enable -+ Peripheral Vcc-30% Vee ----------- transition to Peripheral Data 'CMOS 2000 1350 1000 ns CMOS Data Valid PAo-PA 7, CAz Flg.4 Delay Time, Enable pOSitive transition to CBl negative Enable -+- CB l tCB2 Fig. 6, Fig. 7 200 200 200 1000 670 500 ns position Delay Time, Peripheral Data Valid to CB z negative Peripheral Data -+- CB z Fig. 5 20 20 20 20 20 20 ns 'DC tranSition Delay Time, Enable positive transition to CBz pOSitive Enable-+- CB z 'RSl Fig. 6 200 200 200 1000 670 500 ns transition Peripheral Control Output Pulse Width, CA,/CB2 CA, CB, PWCT Fig. 2, Fig. 6 550 375 250 550 550 500 ns Rise and Fall Time for CB 1 100 1000 1000 1000 ns CBt, CBz tr,'tf Flg.7 100 100 and CS z input Signals Delay Time, CSt active transition to CB2 positive CBI -+-CS2 'RS2 Fig. 7 300 300 300 2000 1350 1000 ns transition Interrupt Release Time, IRCA,IRQS 'IR Flg.9 800 800 BOO 1600 1100 850 ns IRCA and IRQS Interrupt Response Time IROA, IROB tRS3 Fig.8 400 400 400 1000 1000 1000 ns lE lE lE Interrupt Input Pulse Width CAt, CA2, CSt, CB 2 PWI Fig. 8 cycle cycle cycle 500"" - 500" 500" ns Reset "Low" Time RES· 'RL Fig. 10 200 200 200 1000 660 500 ns " The Reset line must be "High" a minimum of 1.0~s before addressmg the PIA. U At least one Enable "High" pulse should be mcluded in this period. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 31 HD6321/HD6821------------------------------------------------------- 2. BUS TIMING 1) READ Ho6321 Ho63A21 Ho63B21 Ho6821 Ho68A21 HD68B21 Item Symbol Test Condition Unit min max min max min max min max min max min max Enable Cycle Time ~eE Fig. 11 '1000 668 - 500 - 1000 - 668 - 500 - ns Enable Pulse Width. "High" PWEH Fig. 11 450 - 280 - 220 - 450 - 280 - 220 - ns Enable Pulse Width. "Low" PWEL Fig. 11 430 - 280 - 210 - 430 - 280 - 210 - ns Enable Pulse Rise and Fall Times tEr. tEt Fig. 11 - 25 - 25 - 20 - 25 - 26 - 25 ns Setup Time IAddr.... R/W-Enabl. tAS Fig. 12 80 - 60 - 50" - 140 - 140 - 70 - ns Address Hold Tim. tAH Fig. 12 10 - 10 - 10 - 10 - 10 - 10 - ns Data Dalav Time tooR Fig. 12 - 280 - 180 - 150 - 320 - 220 - 180 ns Data Hold Time toHR Fig. 12 20 100 20 100 20 100 10 - 10 - 10 - ns * Characteristics will be Improved. 2) WRITE HD6321 Ho63A21 HD63B21 H06821 H068A21 Ho68B21 Item Symbol Test Condition Unit min max min max min max min max min max min max Enable Cycle Time leye E Fig. 11 1000 - 668 - 500 - 1000 - 666 - 500 - n. Enable Pulse Width. "High" PWEH Fig. 11 450 - 280 - 220 - 450 - 280 - 220 - ns En.ble Pulse Width. "Low" PWEL Fig. 11 430 - 280 - 210 - 430 - 280 - 210 - ns Enable Pulse Rise and Fall Times tEr. tEt Fig. 11 - 26 - 25 - 20 - 25 - 25 - 25 ns Setup Tim. tAS Fig. 13 80 - 60 - 60' - 140 - 140 - 70 - ns Address Hold Time I Address. R/W·Enable tAH Fig. 13 10 - 10 - 10 - 10 - 10 - 10 - ns Data Setup Tim. tosw Fig. 13 165 - 80 - 60 - 196 - 80 - 60 - ns Data Hold Tim. toHW Fig. 13 10 - 10 - 10 - 10 - 10 - 10 - n. • Characteristics will be improved. • HITACHI 32 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6321/HD6821 PA.-PA, Enable PB.-PB, Enable • Assumes part was deselected dUring the prevIous E pulse. Figure 1 Peripheral Data Setup and Hold Times (Read Mode) Figure 2 CAl Delay Time (Read Mode; CRA5=CRA3=1, CRA4=0) Enable Enable CA, PA.-PA,--~~~--~~~--~~~-------­ _tCA~2 CA, ------J"'F=......;~----- CA, tf VOL max" '1---""""':"1 Figure 3 CAl Delay Time Figure 4 Peripheral Data Delay Times (Read Mode; CRA5=1, CRA3=CRA4=0) (Wr.ite Mode; CRA5=CRA3~1, CRA4=O) Enable Enable PB. -PB, CB, toe:! ca, ~ ••• • Assumes part was deselected dunng the INotel ca, goes "Low" as a result of the previous E pulse. positive transition of Enable. Figure 5 Peripheral Data and CBl Delay Times Figure 6 CBl Delay Time (Write Mode; CRB5=CRB3=1, CRB4=0) (Write Mode; CRB5=CRB3=1, CRB4=0) Enable 1 - - - - PWI---.) CA"CA, IH min VIHmin V 1L max ca, CB" CB, VI max ~i tRS2* O.4V ca, ~max** * Assumes part was deselected durmg • Assumes Interrupt Enable Bits are set. any previous E pulse. Figure 7 CB, Delay Time Figure 8 Interrupt Pulse Width and IRQ Response (Write Mode; CRB5=1, CRB3=CRB4=0) O.6V for H06321 , O.4V for H06821 2.4V for H 06821 ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 33 HD6321/HD6821--------------------------------------------------------- I--- p 1-----tRL - - Enable ifv;Hmin -RE-S VIL max ---f t'R Vee -2.oV*** IRQ _ _ _ _ _ _ _ _ _......J * The RES line must be a V1H for a minimum of 1.0 $'s before addresSing the PIA. Figure 9 IRQ Release Time Figure 10 RES Low Time Figure 11 Enable Signal CharacterIStiCS V,Hmm Data Bus V1H min ----------------~I VILmax Figure 12 Bus Read Tlmong Characterostlcs Figure 13 Bus Write Timing Characterostlcs (Read Information from PIA) (Write Information onto PIA) O.6V for HD6321, O.4V for HD6821. 2.4V for HD6821. LOAD A LOAD B (PA"-PA,, PB,-PB" CA" CB, I (0,-0,) 5.0V 5.0V Test Point IOL +- Test Pomt o-~--1r-(c.--f C C R C-4OpF R=10kO (HD6321), 12kO (HD6821) C=13OpF R=10kO (HD6321 I. llkO (HD6821) All diodes arelS207460r equivalent. Adjust RL so that IOL a 1.6mA, then test VOL Adjust RL so that IOL • 3.2mA, then test VOL LOAD C LOAD 0 (HD68211 (Tmi Only) 5.0V ~ (CMOS Load) Test Point 3kO Test POIOt I 1 °O PF Figure 14 Bus Timing Test Loads $ HITACHI 34 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6321/HD6821 • PIA INTERFACE SIGNALS FOR MPU Input Pin No. 22, 24,23 (DP-40) The PIA interfaces to the H06800 MPU with an eight-bit Pin No. 29, 31, 30 (FP-54) bi-directional data bus, three chip select lines, two register select lines, two interrupt request lines, read/write line, enable line and reset line. These signals, in conjunction with the HD6800 These three input signals are used to select the PIA. CS o and VMA output, permit the MPU to have complete control over CS I must be "High" and CS, must be "Low" for selection of the PIA. VMA should be utilized in conjunction with an MPU the device. Data transfers are then performed under the control address line into a chip select of the PIA. of the E and R/W signals. The chip select lines must be stable • Bi-Directional Data 10 0 -0 7 1 for the duration of the E pulse. The device is deselected when any of the chip selects are in the inactive state. Input Pin No. 33 - 26 (DP-40) • Register Select IRS o and RSII Pin No. 43 - 36 (FP-54) Input Pin No. 36,35 (DP-40) Pin No. 50,45 (FP-54) The bi-directional data lines (Do - D7 ) allow the transfer of data between the MPU and the PIA. The data bus output drivers are three-state devices that remain in the high-impedance (off) The two register select lines are used to select the various state except when the MPU performs a PIA read operation. The registers inside the PIA. These two lines are used in conjunction R/W line is in the Read ("High") state when the PIA is selected with internal Control Registers to select a particular register that for a Read operation. is to be written or read. • Enable lEI The register and chip select lines should be stable for the duration of the E pulse while in the read or write cycle. • Interrupt Request URQA and IROBI Input/Output Pin No. 25 (DP-40) Pin No. 32 (FP-54) Input Pin No. 38, 37 (DP-40) The enable pulse, E, is the only timing signal that is supplied Pin No. 52, 51 (FP·54) to the PIA. Timing of all other signals is referenced to the leading and trailing edges of the E pulse. This signal will The active "Low" Interrupt Request lines (IRQA and IRQB) normally be a derivative of the HMCS6800 System q" Clock. act to interrupt the MPU either directly or through interrupt This signal must be continuous clock pulse. priority circuitry. These lines are "open drain" (no load device • ReadlWrite IR/W) on the chip). This permits all interrupt request linp,s to be tied together in a wire-OR configuration. Each I~line has two internal interrupt flag bits that can Input Pin No. 21 (DP-40) cause the IRQ line to go "Low". Each flag bit is associated with Pin No. 28 (FP-54) a particular peripheral interrupt line. Also four interrupt enable bits are provided in the PIA which may be used to inhibit a This signal is generated by the MPU to control the direction particular interrupt from a peripheral device. of data transfers on the Data Bus. A "Low" state on the PIA Servicing an mterrupt by the MPU may be accomplished by a line enables the input buffers and data is transferred from the software routine that, on a prioritized basis, sequentially reads MPU to the PIA on the E signal if the device has been selected. and tests the two control registers in each PIA for interrupt flag A "High" on the R/W line sets up the PIA for a transfer of data bits that are set. to the bus. The PIA output buffers are enabled when the proper The interrupt flags are cleared (zeroed) as a result of an MPU address and the enable pulse E are present. Read Peripheral Data Operation of the corresponding data • Reset IRES) register. Mter being cleared, the interrupt flag bit cannot be enabled to be set until the PIA is deselected during an E pulse. Input Pin No. 34 (DP-40) The E pulse is used to condition the interrupt controf lines (CAl, CA, , CB I , CB,). When these lines are used as interrupt Pin No. 44 (FP-54) inputs at least one E pulse must occur from the inactive edge to the active edge of the interrupt input signal to condition the The active "Low" RES line is used to reset all register bits in edge sense network. If the interrupt flag has been enabled and the PIA to a logical zero "Low". This line can be used as a the edge sense circuit has been properly conditioned, the power-on reset and as a master reset during system operation. interrupt flag will be set on the next active transition of the • Chip Select ICSo. CSI and cs.1 interrupt input pin. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 35 H06321/H06S21------------------------_ • PIA PERIPHERAL INTERFACE LINES Port is specified al output. AI shown In Fig. 1S, the output of The PIA provides two 8·blt bl-dlrectlonal data buses and four the peripheral data A II transferred to internal data bus when Interrupt/control line. for interfacing to peripheral devices. used as output. On the other hand, In the case of Port B the There is difference between 806821 and HD6321 In Port contents of output register (ORB) Is directly transferred to structure. Fig. 1S shows the block diagram of Port A and Port Internal data bUI through the multiplexor. Bin 806321. The output drivers of Port A and Port B consist Secondly the equivalent circuit of the port In 806821 Is of three-state drivers, allowing them to enter a High·impedance shown In Fig. 16. The output circuits of A port is different state when the peripheral data line Is used as an Input. Port A from that of B port. When the port Is used as Input, the Input and Port B have the same output buffer. But the circuit con· Is pullup to Vcc side through load MOS in A port and B port figuration is slightly different and this makes the difference on becomes "Orf' (high Impedance). data flow when MPU reads Port A and Port B in the case each g'.1I 8u.--..--------- la) Port A Ib) Port B Figure 15 Block Diagram of Port A and Port B (HD6321) From DDR B +5 +5 o MOS ---+-< 1-------1f+---<~PA' From ORA To Data Bus 1..<>e(l--+---f--+--PBx Is) Port A Ib) Port B Figure 16 Circuit of Port A and Port B (HD6821) • HITACHI 36 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6321/HD6821 • Port A Peripheral Data (PAo-PA 7 ) • Peripheral Control (CA,) Input/Output Pin No.2 - 9 (DP-40) Input/Output Pin No. 39 (DP-40) Pin No. 2- 5,9- 12 (FP·54) Pin No. 53 (FP·54) Each of the peripheral data lines can be programmed to act The peripheral control line CA, can be programmed to act as an input or output. TIlis is accomplished by setting a "I" in as an interrupt input or as a peripheral control output. the corresponding Data Direction Register bit for those lines The function of this signal is programmed by the Control which are to be outputs. A "0" in a bit of the Data Direction Register A. When used as an input, this signal is in High·im· Register causes the corresponding peripheral data line to act as pedance state. an input. During an MPU Read Peripheral Data Operation, the data on peripheral lines programmed to act as inputs appears • Peripheral Control (CB,) directly on the corresponding MPU Data Bus lines. The data in Output Register A will appear on the peripheral Input/Output Pin No. 19 (DP-40) data lines that are programmed to be outputs. A logical "I" written into the register will cause a "High" on the correspond· Pin No. 26 (FP·54) ing peripheral data line while a "0" results in a "Low". Data in Output Register A may be read by an MPU "Read Peripheral The peripheral Control line CB, may also be programmed to Data A" operation when the corresponding lines are programm· act as an interrupt input or peripheral control output. ed as outputs. This line is programmed by Control Register B. But concerning HD682 I , this data will be read properly if When used as an input, this signal is in High.impedance. the voltage on the peripheral data lines is greater than 2.0 volts for a logic "I" output and less than 0.8 volt for a logic "0" output. Loading the output lines such that the voltage on these lines does not reach full voltage causes the data transferred into the MPU on a Read operation to differ from that contained in the respective bit of Output Register A. • Port B Peripheral Data (PBo - PB 7 ) Input/Output Pin No. 10 - 17 (DP-40) Pin No. 13 - 18,23 - 24 (FP·54 Each of the Port B peripheral data bus can be programmed to act as an input or output like PAo - PA 7 • PB o - PB 7 are in High·impedance condition because they are three·state outputs just like PAo - PBo when the peripheral buses are used as inputs, when programmed as outputs, MPU read of Port B make it possible to read the output register regardless of PBo - PB 7 loads and concerning HD6821, these line may be used as a source of up to 2.5 milliampare (typ.) at 1.5 volt to directly drive the base of transistor switch. • Interrupt Input (CAl and CB I ) Input Pin No. 40, 18 (DP-40) Pin No. 54, 25 (FP·54) The peripheral Input lines CAl, and CB I are input only lines that set the interrupt flags of the control registers. The active transition for these signals is also programmed by the two con· trol registers. • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 37 H08321/H08S21--------------------------- (NOTE I 1. Pulle width of Interrupt Inputs CAl, CAt, CBI and control the operation of the four peripheral control line. CAl, CSt IIhaII be lreater than • E cycle time. In the cue CA2 ,CB I and CB2 • In addition they allow the MPU to enable that "HIah" tim. of E IlpW II not contained In the Interrupt line. and monitor the statu. of the Interrupt flap. Interrupt pulle, an Interrupt !lal may not be Mt. Bill 0 throuah 5 of the two rellat,r. may be written or read by the MPU when the proper chip Mlect and regilter Mleet alanal. are applied. Bit. 6 and 7 of the two rep.ten are read only and are modified by external interrupti occurring on control line. CAl, CA2 , CB I or CB2 • The format of the control word. II shown In Table 2. rlble 2 Control Word Format • INTERNAL CONTROLS There are Iix locations within the PIA accessible to the MPU CRA data bus: two Peripheral Registers, two Data Direction Re- gisters, and two Control Registers. Selection of theM locations Is controlled by the RS o and RS I Inputs together with bit 21n the Control Register, as shown In Table 1. CRB Table 1 Intemal Addressing Data Dlraction Accesl Control Bit (CRA2 and CRB2) Control Regilter Bit Bit 2 In each Control register (CRA and CRB) allows RS, RS. CRA2 CRB2 Location Selected selection of either a Peripheral Interface Register or the Data 0 0 1 x Peripheral Regiltor A* Direction Register when the proper register select signals are applied to RS o and RS,. 0 0 0 x Dati Direction Regilter A Intarrupt Flags (CRA6, CRA7, CRB6, Ind CRB7) 0 1 x x Control Register A The four interrupt flag bits are set by active transitions of 1 0 x 1 Peripheral Register B· signals on the four Interrupt and Peripheral Control lines when 1 0 x 0 Data Direction Regilter B those lines are programmed to be inputs. These bits cannot be 1 1 x x Control Registe, B set directly from the MPU Data Bus and are reset indirectly by a Read Peripheral Data Operation on the appropriate section. )( = Don't Care • Peripheral interface register is a generic term containing peripheral Control of CA, Ind CB, Interrupt Lines (CRAO, CRBO, CRA1, data bus and output register. and CRB1) The two lowest order bits of the control registers are used to • Initialization control the interrupt input lines CA, and CB, . Bits CRAO and A "Low" reset line has the effect of zeroing all PIA registers. CRBO are used to enable the MPU Interrupt signals IRQA and This will set PAo -PA7 , PHo -PB, ,CA2 and CB2 as Inputs, and IRQB, respectively. Bits CRAI and CRBI determine the active all interrupts disabled. The PIA must be configured during the transition of the interrupt input signals CA, and CB, (Table 3l restart program which follows the reset. Control of CA2 and C~ Peripheral Control Lines (CRA3, Details of possible configurations of the Data Direction and CRA4. CRA5, CRB3, CRB4. and CRB5) Control Register are as follows. Bits 3, 4 and 5 of the two control registers are used to control the CA2 and CB2 Peripheral Control lines. These bits • Data Direction Registers (DORA and DDRB) determine if the control lines will be an interrupt input or an The two Data Direction Registers allow the MPU to control output control signal. If bit CRAS (CRBS) is "0" CAl (CB2) the direction of data through each corresponding peripheral is an interrupt input line similar to CAl (CB)) (Table 4). When data line. A Data Direction Register bit set at "0" configures the CRAS (CRBS) is "I", CA 2 (CB 2) becomes an output signal corresponding peripheral data line as an input; a "I" results In that may be used to control peripheral data transfers. When in an output. the output mode, CAl and CB, have slightly different characteristics (Table Sand 6). • Control Registars (CRA and CRB) The two Control Registers (CRA and CRB) allow the MPU to ~HITACHI 38 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 -----------------------------------------------------HD6321/HD6821 Table 3 Control of Interrupt Input' CA. and CB. CRAO Interrupt Input Interrupt Flag MPU Interrupt CRA1 Requ.1t (CRBU (CRBO) CA. (CB.) CRA7 (CRB7) rmA (TIm'I) 0 0 ~ Active Set "'" on ~ of CA. Ol,.bl.d - IRQ remain, (CB.) "High" 0 1 ~ Active Set "'" on'" of CA. GOI' "Low" wh.n the Int.r· (CB.) rupt fllg bit CRA7 (CRB7) got, "'" 1 0 t Active Set "'" on t of CA. Cillbild - IRQ r.mlln, (CB I ) "High" 1 1 t Active Set "'" on t of CAl Goes "Low" when the inter· (CB I ) rupt flag bit CRA 7 (CR B7) goes "1" (Not .. ) 1. t indicat .. pOlitivltronlition ("Low" to "High") 2. ~ indicatll negative transition ,"High" to "Low") 3. Tho Interrupt flig bit CFlA 7 i. cl.ored by an MPU Fle.d of the A Peripheral Flegister Ind CFlB7 II c'.lrod by an MPU Flead of the B Peripherll Flegiste,. 4. If CFlAOJCB.BO) il "0" whln In Interrupt occurs (Interrupt disabled) and is later brought ",". TFmA flROIl accu" Ifter CFlAO (CFlBO) i. written to. ",". Table 4. Control of CAl and CB, as Interrupt Inputs - CRA5 (CRB5) is "0" CRA5 CRA4 CRA3 Interrupt Input Interrupt Flag MP U Interrupt (CRB5) (CRB4) (CRB3) CAl (CB,) CRA6 (CRB6) Request IRQA (lROB) 0 0 0 ~ Active Set "'" on ~ of CAl Disabled - IRO remains 0 0 , ~ Active (CB,) Set "'" on ~ of CAl (CB, ) "High" Goes" Low" when the inter- rupt flag bit CRA6 (CRB6) goes "'" 0 1 0 t Active Set "I" on t of CA, Disabled - IRO remains 0 , , t Active (CB,) Set "'" on t of CA, "High" Goes "Low" when the inter- (CB,) rupt flag bit CRA6 (CRB6) goes "'" (Notes) 1. t indiClltel positive transition ("Low" to "High") 2. -" indicates negative transition ("High" to "Low") 3. The interrupt fleg bit CFlA6 is cleared by an MPU Flead of the A Peripheral FleglSter and eFlB6 IS c ....ed by an MPU Fleed of the B Peripheral Flegister. 4. If CR~RJ!3ljs "0" when an interrupt occurs (Interrupt disabled) and IS later brought ",", IFiOA (TmlEi) occurs after CFlA3 (CFlB31 "written to a"'''. Table 5 Control of CB2 as an Output - CRB5 IS "'" CB, , CRB5 CRB4 0 CRB3 0 Cleared "Low" on the positive transition of the first E pulse after MPU Set "High" when the interrupt flag bit CRB7 is set by an active transition , 0 , Write "B" Data Register operation. "LoW" on the positive transition of the first E pulse after an MPU Write of the CB I signal. (See Figure '6) "High" on the positive edge of the first "E" pulse following an "E" "B" Data Register operation. pulse which occurred while the part was deselected. (See Figure 16) 1 1 0 "Low" (The content of CRB3 is output on CB,) 1 1 1 "High" (The content of CRB3 is output on CB, ) ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 39 HD6321/HD6821--------------------------------------------------------- Table 6 Control of CAl as an Output - CRA5 IS "1" CAl CRA5 CRA4 CRA3 Cleared Set 1 0 0 "Low" on negative transition of E "H igh" when the interrupt flag bit after an MPU Read" A" Data Opera- CRA7 is set by an active transition tion. of the CAl signal. (See Figure 16) 1 0 1 "Low" on negative transition of E "High" on the negative edge of the after an MPU Read "A" Data opera- first "E" pulse which occurs during tic,m. a deselect. (See Figure 16) 1 1 0 "Low" (The content of CRA3 is output on CAl) 1 1 1 "High" (The content of CRA3 is output on CAl) • PIA OPERATION • Initialization When the external reset input RES goes "Low". all internal registers are cleared to ''0''. Periperal data port (PAo -PA7. PBo-PB,) is dermed to be input and control lines (CAl. CAl. CB I and CB2 ) are dermed to be the interrupt input lines. PIA is also initialized by software sequence as follows. Cle.r the control reglstlr • Program the data direction register access bit of the control register to "0" to allow to access the dada direction register. Laad input/output direction data into ACC Store the contants of ACC into the data dl rection register Load the control data to be written Into ACC • The data of the control line function is set into the accumu- Iator. of which Data Direction Register Access Bit shall be programmed to "I". Store the contents of ACe into the control register • Transfer the control data from the accumulator into the control register. Input/output procassing • ReadMlrite Operation Not Using Control Lines Set the data direction register to ''~O'' CLR CRA • Clear the DDRA access bit of the control register to "0". CLR DORA • Clear all bits of the dada direction register. LOAA #$04 • Set DDRA access bit of the control register to "I" to allow Initialize the control register STAA CRA to access the peripheral interface register. Load the contents of the peripheral interface register into the accumulator LOAA PIRA • HITACHI 40 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------H06321/H06S21 CL.R CRA I Set OORB accell bit of the control reiliter to "0". SIt the dIIte dl ...ctlon ..gllter to "FF" L.OAA STAA ~~:B} I Set all bltl of the data direction regilter to "PP". Inltl.II •• the control regllter L.OAA /;~} I Set OORB acce.. bit of the control reillter to "1" to allow to , STAA I CRB acee.. the peripheral Interface relilter. I Store thl d.t. In thl eccumul.tor Into outPut regllter LOAA I DATA} I Write the data Into the peripheral Interface rqilter. STAA PIRB I A_IWr. ()perItint IJIlnt Control LI.... Read/write request from peripherals shall be put Into the control Unal u an interrupt 1ipIal, and then MPU reads or writes after detecting interrupt request. The following cue II that Port A II used and that the riIInB edge of CA, Indicates the request for read from periphera1e. CLR CRA • Set the OORA access bit to "0". SIt the dote direction ...gllter to "00" CLR DORA I Set all bits of the data direction rqlatar to "0". L.OAA /;$06 I Prosram the rising edge of CA, to be active. iiQA II muked 'n Itlallu thl control I'IIllIIr STAA CRA and OORA accesl bit II let to 1. LOOP LOAA CRA ) Lood the f.:;~~: ::'~~uf.~~~OI register BPL LOOP • Check whether the read request comes from peripherals 1-_ _ _ _ _ _-,-_ _ _ _ _ _---1 or not. No Lood the contents of the peripheral LOAA PIRA • Load the data from the peripheral interface register into the interfe"l'IIllter into the ..cumulator accumulator. CRA flag is reset after this read operation. To read the peripheral data, the data is directly transfered to the data buses 0 0 -01 through PAo-PA1 or PBo-PB, and they are not latched in the PIA. If necessary, the data should be held in the extema1latch until MPU completes reading it. When initiallzing the control register, interrupt flag bit (CRA7, CRA6, CRB7, CRB6) cannot be written from MPU. If necessary the interrupt flag must be reset by dummy read of Peripheral Register A and B. Write operation UIing the interrupt signal II u followa. In this ca•• B port II used and interrupt request is input to CB, . And the om flag is let at the rising edge of CB, . .HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 41 HD6321/HD6821--------------------------------------------------------- I CLR CRB • Set DDRB access bit to "0" Set the data direction register to "FF" LDAA #$FF } STAA DDRB • Set all bits ofDDRB to output "I". j LDAA #$06 Program the rising edge of CBI to be active. IRQB is masked Initialize the control register STAA CRB and DDRB access bit is set to "I". I t LOOP LDAA CRB Load the content. of the control BPI- LOOP • Check whether the write request comes from peripherals register into the accumulator or not. No 4?> Ves load the contents of the output register in the accumulator LDAA PIRB • Reset the CRB7 flag by the dummy read of the peripheral interface register. l Store the contents of the accumulator into the output register STAB PIRB • Store the data of the accumulator B to the peripheral interface register. ! Interrupt request flag bits (CRA 7, CRA6, CRB7 and CRB6) Q) CRA 7 flag is set and CA2 becomes "High" (CA2 auto- cannot be written and they cannot be also reset by write matically becomes "High" by the interrupt CAl). This operation to the peripheral interface register. So dummy read of indicates the peripheral to maintain the current data and peripheral interface register is needed to reset the flags. not to tranafer the next data. To accept the next interrupt, it is esaential to reset indirectly @ MPU accepts the read request by IRQA hardware interrupt the interrupt flag by dummy read of peripheral interface or CRA read. Then MPU reads the peripheral register A. register. @ CA 2 goes "Low" on the following edge of read Enable Software poling method mentioned above requires MPU to, pulse. This informs that the peripheral can set the next data continuously monitor the control register to detect the read/ to port A. write request from peripherals. So other programs cannot run at the aame time. To avoid this problem. hardware interrupt may be used. The MPU is interrupted by IRQA or IRQB when the CRBS = "I", CRB4= "0" and CRB3 = "0" read/write request is occurred from peripherals and then MPU peripheral data lines has been taken and that next data can CRAS="I", CRA4="O" and CRA3="0" be written to the peripheral interface register. CD A peripheral device puts the S-bit data on the peripheral data lines after the control output CAl goes "Low". eRAS = "1", CRA4= "0" and CRA3 = "I" a:J The peripheral requests MPU to read the data by using CAl CRBS = "I", CRB4 = "0" and CRB3 = "1" input. This mode is shown in Figure 17, Figure 20 and Figure 21. ~HITACHI 42 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 ---------------------------------------------------------HD6321/HD6821 CRA5 CRA4 CRA3 :m CS oRS,oFi5. I I : ~------~i---------------- ~-~ I >----;-------------- PA.-PA, CA, "",..-- READ Request CRA7 CA, o o o Busy CRB5 CRB4 CRB3 E Rm ® CSoRs,oRS;; D.-D? i !., PB.-PB, t: ... 0 CB, dummy Read Reset @ 0 CB, ® PB. -PB, dote is old. 0 0 CB, Busy Busy Figure 17 Timing of Hand-shake Mode and Pulse Mode ~HITACHI Hitachi America LId . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 43 HD6321/HD6821--------------------------------------------------------- G_"HIgh"an Gol. "Low" when detll on t ....ition of CA, "A" lid ..... been r.... by (lROAl FI811bit oetl MPU after filling edge \J~----------~/r ~ of anobillienil (LOA A PIRA) CA, J EnabI,"ignol (E) Handshaking with peripheral on 'A' side Dote PIRA CA,I.-____________; PIA Periph.ral Peripheral Sovs: Here's new dota (Sou CRA7) Figure 18 8 its 5, 4, 3 of CRA = 100 (Hand-shake Mode) G_ "Low" on first ::3'--'" Goes "High" or transition positive edge of anoble signal after the MPU ltorl' dati to the "Bu side_ (STA A PIRB) :·I-·--~r_ Enob~Sl-IL- lignol (E) Handshaking with peripheral on 'B' side J Dote I I PIRB I CB, PIA Peripherll , Oft, Ixlol'lolol'lol'l CB, • 7"---- Per·op..... Says: Heres new~te ISTA A PIRB) Request for dlte Figure 19 Bits 5, 4, 3 of CRB = 100 (Hand-shake Mode) • HITACHI 44 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6321/HD6821 Goes "High" on CA, Normally Goes "Low" aftor a "Reed a side tho negatiw data" Instruction (LOA) edge of the "High" next E puis. (Negative transition of E) aft• • "Reed a sido dote" Instruction (LOA) Enable signal ( E ) I L ._ _ _ _ _~ Pulse mode Pulse output on 'A' side l!~ Data HI 1 PIRA I PIA Peripheral CA, 7 CRA 0 1-1 1' 101'1'1-1-1 0 Figure 20 Bits 5, 4, 3 of CRA = 101 (Pulse Mode) Goe. "High" on the CB, Normally next poSItive E "High" Goes "Low" on the positive pulse after A "write B transition of the first E pulse after I "write B side data" instruction lide data" instruction (STA) (STAI Enable Ilgnal (E) IL.-__ ..J Pulse mode Pulse output on 'B' side Data ItI JJl I PIRB I PIA Peripheral CB, CAB Xew 7 0 1,101'1 0 1'1'1-1-1 It dota presented u.. In It I• ted .. • I'ftU P I at port of ';\!J.:"~n~~~~)"lda for peripheral Figure 21 Bits 5, 4, 3 of CRB = 101 (Pulse Mode) • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 45 HD6321/HD6821--------------------------------------------------------- • SUMMARY OF CONTROL REGISTERS CRA AND CRB • Active Low Outputs Control registers CRA and CRB have total control of CA. , CA., CB., and CB. lines. The status of eight bits of the control When all the outputs of given PIA port are to be active "Low" registers may be read into the MPU. However, the MPU can only (True~ 0.4 volts), the following procedure should be used. write into Bit 0 through Bit 5 (6 bits), since Bit 6 and Bit 7 are set only by CAl, CA., CB. , or CB•. a) Set Bit 2 in the control register. b) Store allis ($FF) in the peripheral interface register. • Addressing PIAs c) Clear Bit 2 in the control register. Before addressing PIAs, the data direction (DDR) must first d) Store allis ($FF) in the data direction register. be loaded with the bit pattern that defines how each line is to e) Store control word (Bit 2 = I) in control register. function, i.e., as an input or an output. A logic "I" in the data direction register defines the corresponding line as an output while a logic "0" defines the corresponding line as an input. Since the DDR and the peripheral interface resister have the same The B side of PIAl is set up to have all active low outputs. address, the control register bit 2 determines which register is CB. and CB. are set up to allow interrupts in the HAND- being addressed. If Bit 2 in the control register is a logic "0", SHAKE MODE and CB. will respond to positive edges then the DDR is addressed. If Bit 2 in the control register is a ("Low"-to-"High" transitions). Assume reset conditions. Ad- logic "I", the peripheral interface register is addressed. There· dresses are set up and equated to the same labels as previous fore, it is essential that the DDR be loaded first before setting example. Bit 2 of the control register. I. LOA A #4 2. STA APIAIBC Set Bit 2 in PIAIBC (control register) Given a PIA with an address of 4004,4005,4006, and 4007. 3. LOA B #$FF 4004 is the address of the A side peripheral interface register. 4. STA B PIAIBD AllIs in peripheral interface register 4005 is the address of the A side control register. 4006 is the 5. CLR PIAIBC Clear Bit 2 address of the B side peripheral interface register. 4007 is the 6. STA BPIAIBD All I s in data direction register address of the B side control register. On the A side, Bits 0, 1,2, 7. LOA A #$27 and 3 will be defined as inputs, while Bits 4, 5,6, and 7 will be 8. STA A PIAIBC 00100111 .......... control register used as outputs. On the B side, all lines will be used as outputs. The above procedure is required in order to avoid outputs going "Low", to the active "Low" TRUE STATE, when allIs are stored to the data direction register as would be the case if the normal configuration procedure were followed. PIA lAD = 4004 (DORA, PlRA) PIAIAC = 4005 (CRA) PIAIBD = 4006 (DDRB, PIRB) • Interchanging RSo And RS. PIAlBC = 4007 (CRB) Some system applications may require movement of 16 bits of data to or from the "outside world" via two PIA ports (A I. LOA A #%11110000 (4 outputs, 4 inputs) side + B side). When this is the case it is an advantage to 2. STAA PIAIAD (Loads A DDR) interconnect RS. and RSo as follows. 3. LOA A #% 11111111 (All outputs) 4. STA A PIAIBD (Loads BOOR) RS o to Al (Address Line AI) 5. LOA A #0/000000 I 00 (Sets Bit 2) RS. to AO (Address Line AO) 6. STAA PIAIAC (Bit 2 set in A control register) 7. STA A PIAIBC (Bit 2 set in B control register) This will place the peripheral interface registers and control registers side by side in the memory map as tollows. Statement 2 addresses the DDR, since the control register Example Addr~ss Table (Bit 2) has not been loaded. Statements 6 and 7 load the control registers with Bit 2 set, so addressing PIA lAD or PIA IBD PIAIAD $4004 (DORA, PIRA) accesses the peripheral interface register. PIAIBD $4005 (DDRB, PIRIl) • PIA Programming Via The Index Register PIAIAC $4006 (CRA) PIAIBC $4007 (CRB) The program shown in the previous section can be accom· plished using the Index Register. The index register or stackpointer may be used to move the 16-bit data in two 8-bit bytes with one instruction. As an I. LOX #$ F004 example: 2. STX PIA lAD $FO.....PIA lAD ;$Q4.....PIAI AC LOX PIAIAD PIAIAD .......... IXf·r: PIAIBD -- (XL 3. LOX #$FF04 4. STX PIAIBD $FF.....PIAIBD;$04.....PIAIBC • PI A - After Reset When the RES (Reset Line) has been held "Low " for a Using the index register m this example has saved six bytes of minimum of one microsecond, all registers in the PIA will be program memory as compared to the program shown in the cleared. previous section. Because of the reset conditions, the PIA has been defined as ~HITACHI 46 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------HD6321/HD6821 follows. • SUMMARY OF CA2 -CB2 PROGRAMMING 1. All I/O lines to the "outside world" have been defined as Bits 5, 4, and 3 of the control registers are used to program inputs. the operation of CA 2 -CB2 . 2. CAL, CA2 , CB" and CB2 have been defined as interrupt input lines that are negative edge sensitive. 3. All the interrupts on the control lines are masked. Setting of interrupt flag bits will not cause IRQA or IRQB to go "Low". CA2 -CB 2 Input ~ Mode m b5 0 0 b4 0(-) 0(-) 1(+) b3 o 1 o (Mask) CA 2 -CB 2 Input Mode (Allow) b4 = Edge (0 = -, 1 = +) (Mask) b3 = Mask (0 = Mask, • SUMMARY OF CAL ·CB I PROGRAMMING o 1(+) 1 (Allow) 1 = Allow) Bits I and 0 of the respective control registers are used to program the interrupt input control lines CAL and CB, . CA2 -CB 2 Output ~ Mode ill 1 1 0 0 1 o - Handshake Mode 1 - Pulse Mode ~ I b3 Following Mode bl bO 1 1 o o bl = Edge (0 = -, 1 = +) o 1 bO = Mask (0 = Mask, 1 = Allow) 1 o 1 1 Note that this is the same logic as Bits 4 and 3 for CA2 -CB 2 when CA 2.CB2 are programmed as inputs. I.-------CA, I------+CA, I/O As Follow: I-------+PA, Control Li oes: i+------ PA , CAl - Positive Edge, Allow Interrupt t-----.....,~ PA, "A" CA, - Pu Is. Mode t-----.....,~ PA, es 1 - Negative Edge, Mask interrupt 1-_________+ PA, CB, - Hand Shake Mode t-----.....,~ PA, Assume Reset Condition 1+____________ PA, PIAIAO PIAIAC 1+------------ PA. PIAIBO PIA1BC ------------- PIA Configuration Solytlon 1+------------ CB, LOA A #$BC 10111100 1-----------+ CB, STA A PIAIAO I/O to DORA t------~ PB, LOA A #$FF 11111111 STA A PIAIBO I/O to OORB LOA A #$2F 00101111 "B" STA A PIAIAC To "A" Control LOA A #$24 00100100 STA A PIA1BC To "8" Control 1-----------+ PB. Figure 22 PIA Configuration Problem @HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 47 HD6321/HD6821------------------------------------------------------- • NOTE FOR USE Compatibility with NMOS PIA (HD682l1 Table 7 Comparison CMOS PIA (HD6321) with NMOS PIA (HD6821) Item CMOS PIA (HD6321) NMOS PIA (HD6821) Three·state output Pull·up output +5V +5V PortA DoRA~ Output PA.-PA, 8uffer CA, ORA Internal ~~.AL.."/""-----"'" t Date Bus Read Signal Measure for Input floating Three ..tate output Thrae..tate output +5V +5V -~ DDRB t-___,...~PB. -PB, PMOS NMOS t---_-.- PB. - PB, Port 8 CB, Output ORB_ CB, ORB Buffer Internal Internal Data Bus Date Bus / Read'ignal Measure for Input floating Thera is no differance between CMOS PIA and NMOS PIA in pin arrangement. • HITACHI 48 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD6340/HD6840---------- PTM (Programmable Timer Module) The HD6340/HD6840 (PTM) is a programmable subsystem HD6340P, HD6840P component of the HMCS6800 family designed to provide variable system time intervals. The PTM has three l6-bit binary counters, three correspond- ing control registers and a status register. These counters are under software control and may be used to cause system inter- rupts and/or generate output signals. The PTM may be utilized for such tasks as frequency measurements, event counting, interval measuring and similar tasks. The device may be used for square wave generation, gated delay signals, single pulses of controlled duration, and pulse width modulation as well as system interrupts. • FEATURES (DP-28) • Operates from a Single 5 volts Power Supply • Single System Clock Required (E) • Selectable Prescaler on Timer 3 Capable of 4 MHz for the The specifications of the HD6340 are for preliminary and HD6340/HD6840, 6 MHz for the HD63A40/HD68A40 and may change hereafter. 8 MHz for the HD63B40/HD68B40. Please make an inquire at sales office upon adoption of the • Programmable Interrupts (lRO) Output to MPU HD6340. • Readable Down Counter Indicates Counts to Go until Time- out • Selectable Gating for Frequency or Pulse-Width Comparison • Three Asynchronous External Clock and Gate/Trigger Input Internally Synchronized Vss C, • Three Maskable Outputs G, A, 0, G, -HD6340- • Wide Range Operating Voltage (Vee = 5V ±10%) C, D. • Low-Power, High-Speed, High-Density CMOS G, D, • Compatible with NMOS PTM (HD6840) 0, D, -HD6840- C, D, • Compatible with MC6840, MC68A40 and MC68B40 D, RES IRO Ds D. • TYPE OF PRODUCTS RS, D, Type Process Clock -Frequency Package E HD6340 1.0 MHz CS, HD63A40 CMOS 1.5 MHz DP-28 CSo HD63B40 2.0 MHz (Top View) HD6840 1.0 MHz HD68A40 NMOS 1.5 MHz DP-28 HD68B40 2.0 MHz ~HITACHI H,tachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 49 HD6340/HD6840------------------------------------------------------- • ABSOLUTE MAXIMUM RATINGS Value Symbol Unit . Item HD6340 HD6840 Supply Voltage Vee -0.3-+7.0 -0.3-+7.0 V ---- Input Voltage Vine -0.3-+7.0 -0.3-+7.0 V Maximum Output Current Iioin 10 mA Operating Temperature Topr -20-+75 -20-+75 ·C Storage Temperature Tstg -55-+150 - 55-+150 ·C • Wlt~ respect to v.. (SYSTEM GND) .* Maximum output current is the maximum currents which can flow out from one output terminal or 110 common terminal. (Do - ~. 01 - ~, Tfi(i) (NOTE) Permanent LSI damage may occur if maximum ratings are exceeded. Normal operation should be under recommended operating conditions. If th_ conditions are exceeded, it could affect reliability of LSI. • RECOMMENDED OPERATING CONDITIONS HD6340 HD6840 Item Symbol Unit min typ max min typ max Supply Voltage Input "Low Voltage Vee VIL ·· 4.5 5.0 5.5 4.75 5.0 5.25 V 0 - 0.8 -0.3 - 0.8 V - Input "High"l EI Rm Voltage I Other Inputs VIH · 2.6" 2.2 - Vee Vee 2.2 - Vee V Operating Temperature Topr -20 25 75 -20 25 75 ·C • With respect to V.. (SYSTEM GNO) •• Characteristics to be improved. $ HITACHI 50 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6340/HD6840 • ELECTRICAL CHARACTERISTICS • DC CHARACTERISTICS (HD6340; Vee = 5V ±10%, HD6840; Vee = 5V ±5%, Vss = OV, 1a = -2D--+75°C, unless otherwise noted.) HD6340 HD6840 Item Symbol Unit Test Condition min wp* max Test Condition min tvp* max Input "High" Voltage I E,R/W 2.6** - Vee Other V IH - 2.2 - Vee V Inputs 2.2 - Vee Input "Low" Voltage V IL -0.3 - 0.8 -0.3 0.8 V Input Leakage Current l,n Vm =0""" Vee (Except 00-07) -2.5 - 25 Vin=O ...... V cc (Except Do""" 07) -2.5 - 2.5 ~A Three-State Input Vm = 0.4,.., Vee, -10 - V ,n = 0.4-2.4V -10 - Current (Off-state) I TSI 10 10 ~A Vee = 5.5V 100-071 Vee = 5.25V 100-071 ILOAD = -400~A iDo-D71 4.1 - - ILOAD = -20S!'A 10,-0,1 ILOAD:;; 10!,A 100- 0 71 Ivee -0.1 - - - Output "High" Voltage V OH 2.4 - V I LOAD = -400!'A 10ther Outputsl 4.1 - - I LOAD = -200!'A Ig~~~~tsl I LOAD';; 10!,A 10ther Outputsl V ee -D.1 - - ILOAD = 1.6mA 100-071 ILOAD = 1.6mA 100-0 71 Output "Low" Voltage VOL - - 0.4 - - 04 V ILOAD = 3.2mA 10,-03, IRQ) ILOAD = 3.2mA. 10 -0 IRQ) O_utput Leakage Current 10ff·statel I LOH VOH = Vee liRTIl - - 10 VO H = 2.4V IIRQI - - 10 !'A • Chip is not selected. o All cou nter latches E = 1.0 MHz - - 1.0 are preset. • 01 -03 outputs are masked. E=1.5MHz - - 1.5 • Input level (Except E) {VIH mm=Vcc-O.8V E = 2.0 MHz - - 2.0 V)L max = 0.8V • Chip IS not selected Supply Current Icc • Counters are operating. E = 1.0 MHz - - 3.0 mA • 01'" 03 operating with load. o Input level (Except E) E = 1.5 MHz - - 4.0 {VIH min = Vcc-O.S VIL max = 0.8V E = 2.0 MHz - - 6.0 • Data bus in RIW operation. E=1.0MHz - - 5.0 • Counters are operating. E=1.5MHz - - 8.0 • 01 ""03 0 perating E = 2.0 MHz - - 10.0 with load. Power DiSSipation Po 330 550 mW Vm '" OV. Do - 0, - - 12.5 V in = OV. 0 0 -0 7 - - 12.5 Input Capacitance Con Ta = 25°C Ta =: 2SoC pF f = 1 MHz Other Input 7.5 f = 1.0 MHz Other Input - - 7.S Output Capacitance Cout Vm=OV. IRQ - - 5.0 Vm =: OV IRO - - 5.0 T a =25°C, Ta "" 25°C pF f = 1 MHz 0 1. O2. 03 - - 100 f = 1.0 MHz 0 1.02.03 - - 10.0 * Ta "" 2Soc, Vcc = S.OV ** VIH '" 2.2V at Vce = 5V ±5%, Ta = O...... 70°C. Characteristics to be improved. ~HITACHI HitachI America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 51 HD8340/HD8S40------------------------- • AC CHARACTERISTICS (HD8340; Vee -8V :1:10%, HD8840; 8V :1:8%, VII- OV, T. - -20"'+78°C, unl ... otharwl.. noted.1 1. MPU READ TIMING l Till HCB340 HCB3A40 HCB3B40 HCB840 HCBSA40 HCeeB40 111m Symbol Condilion min Unit mIX min mIX min mi. min mIX min mi. min mi. Enlbll Cyell Tlml IcyeE 1000 10000 BeS 10000 600 10000 1000 10000 BBe 10000 600 10000 nl Enlbll "High" PUIII Width PW!H 460 S600 260 9800 220 9600 460 4600 2S0 4600 220 4800 nl Enlbll "L.ow" Pul .. Width PWEL. 430 S600 2BO S600 210 9600 430 - 2S0 - 210 - nl Enlbll Rill Ind F." Tlml IEr' lEI - 25 - 26 - 20 - 26 - 25 - 26 nl Addr..1 SoI.Up Tlml lAS Fig. I SO - eo - 40 - 140 - 140 - 70 - nl CIII CIIIY Tim. ICCA - 290 - ISO - 160 - 320 - 220 - lao nl CIII Hold Tlml IHR 20 100 20 100 20 100 10 - 10 - 10 - n, Add,," Hold Tim. IAH 10 - 10 - 10 - 10 - 10 - 10 - n, Cltl Accl.. Time tACC - 370 - 240 - 190 - 480 - 360 - 260 n, 2. MPU WRITE TIMING Tesl HC6340 HC63A4O HC63B40 HC6840 HC6SA40 HC68B4O Itlm Symbol Unit Condition min ma. min ma. min ma. min ma. min ma. min ma. Enable Cycle Time teyeE 1000 10000 666 10000 600 10000 1000 10000 666 10000 600 10000 n. Enable "High" Pul.e Width PWEH 460 9500 280 9500 220 9600 460 4600 280 4600 220 4600 ns Enable uLow" Pulse Width PWEL 430 9600 280 9600 210 9600 430 - 280 - 210 - n. Enable Aise and Fa" Time tEr' tEl Fig. 2 - 26 - 26 - 20 - 26 - 25 - 25 ns Address Set~up Time tAS 80 - 60 - 40 - 140 - 140 - 140 - n. Data Setwup Time tcsw 165 - 80 - 60 - 196 - 80 - 60 - n. Data Hold Time tHW 10 - 10 - 10 - 10 - 10 - 10 - ns Addr... Hold Time tAH 10 - 10 - 10 - 10 - 10 - 10 - ns 3 TIMING OF PTM SIGNAL HD6340 H063A4O H063B4O H06840 H068A40 HD68B40 Item Symbol Test Condition Unit min max min rna. min max min max min max min ma. Input Rise and Fall c;n, Fm! Time t r, tl Fig. 3, Fig. 4 - 1000' - 666' - 600' - 1000' - 666' - 500' n. Fig. 3 tcycE tcycE tcycE tcycE teyeE tcycE Input "Low" Pulse Width c,1'i,m PW L Asynchronous Mode +tSU +tHo - +tsu +tHo - +tSU +tHo - +tsu +tHO - +tSU +tHo - +tsu +tHO - n. Fig.4 tcycE teyeE tcycE tcycE Input "High" Pulse Width c.1'i PWH Asynchronous Mode tcycE +tSU - tcycE +tSU - +tSU +tHo - +tSU +tHO - +tSU +tHD, - +tsu +tHD - ns +tHO +tHD Input Setup Time C:CJ,"RES Fig. 5 200 - 120 - 75 - 200 - 120 - 75 - ns iC~8 Pre· tsu Synchronous scalar Mode) Mode 200 - 170 - 170 - 200 - 170 - 170 - ns Input Hold Time c.G,"RES Fig. 5 50 - 60 - 50 - 50 - 60 - 60 - ns C3 (+8 Pre· tHO .calar Mode) Synchronous Mode 50 - 50 - 60 - 50 - 50 - 50 - ns C3 (... 8 Pre· PWL Asynchronous Input Pul.e Width scaler Mode) PWH Mode 120 - 80 - 60 - 126 - 84 - B2.6 - ns Output Delay Time 0,-03 ~ Fig. 6 - 200 - 200 - 200 - 700 - 460 - 340 n. ~ - 450 450 - 340 n. tamos - 2000 1360 - 1000 n. Interrupt Releell Tim. IIA Flg.7 - 1200 - 900 - 700 - 1200 - 900 - 700 n. • HITACHI 52 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (4081435-8300 ---------------------------------------------------------HD6340/HD6840 E RS, CS, Rm Data Bus Figure 1 Bus Read Timing Figure 2 Bus Write Timing (Read Information from PTM) (Write Information into PTM) Figure 3 Input Pulse Width "Low" Figure 4 Input Pulse Width "High" E E temos··· c;-c"a.-G" 0, -0, RES VOH (CMOS) = 0.7 x Vee Figure 5 Input Setup and Hold Times Figure 6 Output Delay _l=m-t-·~-R-J---V-C-C---2-.0-V. • 2.4V for HD6840 *., *** HD6840 only • IRQ _ _ _ _ _ _ _ _ _ .... Figure 7 I RQ Release Time ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 53 H08340/H08S40------------------------- Lo.d A !.OV Lo.d B (D, ND,) (0 •• 0,.0,) -.--!4-.. T.lt Polnto-..... Tell Point 0-.....-.-*-.. Adlull R~ 130 pF All dlod.l.r. 40 pF 10kn" 10 kn' lS2074 eor equlv. 10 that lo~ -.3.2 mA thin till Vo~ All diode.. " 182074 eor equiv. LOld C 6.0V Lold D (Tlm0;jIV) (~ .Cl.!.Os) (CMOS Load) 1.3kn (MOS) T.II Polnl TellPol"t 1 100pF I Figure 8 Test Loads T 30pF rh • 11 kn for HD6840 •• 12 kn for HD6840 • GENERAL DESCRIPTION activated). The PTM is part of the HMCS6800 microprocessor family • Chip Select ICSO. CS 1 ) and is fully bus compatible with H06800 systems. The three timers in the HD6340/H06840 operate independently and in several distinct modes to fit a wide variety of measurement and Input Pin No. 15, 16 synthesiS applications. The PTM is an integrated set of three distinct counter/ These two signals are used to activate the Oata Bus interface timers. It consists of three 16·bit data latches, three 16·bit and allow transfer of data from the PTM. With CS;; = "Low" counters (clocked independently), and the comparison and = and CS. "High", the device is selected and data transfer will enable circuitry necessary to implement various measurement occur. and synthesis functions. In addition, it contains interrupt drivers • Reacl/Write IR/Wl to alert the processor that a particular function has been completed. Input Pin No. 13 in a typical application, a timer will be loaded by first storing two bytes of data into an associated Counter Latch. This data is then transferred into the counter via a Counter initialization This signal is generated by the MPU to control the direction cycle. If the counter is enabled, the counter decrements on each of data transfer on the Data Bus. With the PTM selected, a subsequent clock period which may be an external clock, or "Low" state on the PTM R/W line enables the input buffers and Enable (E) until one of several predetermined conditions causes data is transferred from the MPU to the PTM on the trailing it to halt or recycle. The timers are thus programmable, cyclic in edge of the Enable (System 1/l2) signal. Alternately, (under the nature, controllable by external inputs or the MPU program, same conditions) R/W = "High" and Enable "High" allows data and accessible by the MPU at any time. in the PTM to be read by the MPU. • PTM INTERFACE SIGNALS FOR MPU • Enable lEI The Programmable Timer Module (PTM) interfaces to the HMCS6800 Bus with an eight.bit bidirectional data bus, two Input Pin No. 17 Chip Select lines, a Read/Write line, an Enable (System 1P2) line, an Interrupt Request line, an external Reset line, and three Register Select lines. These signals, in conjunction with the This signal synchronizes data transfer between the MPU and H06800 VMA output, permit the MPU to control the PTM. the PTM. It also performs an equivalent synchronization func- VMA should be utilized in conjunction with an MPU address tion on the external ciock, reset, and gate inputs of the PTM. line into a Chip Select of the PTM, when the H06800, H06802 • Interrupt Request (fIfOl are used. • Bidirectional Data (Do - 0 7 ) Output (open drain) Pin No.9 Input/Output Pin No. 2S - 18 The active "Low" Interrupt Request signal is normally tied directly (or through priority interrupt circuitry) to the IRQ The bidirectional data lines (0 0 -0 7 ) allow the transfer of input of the MPU. This is an "open drain" output (no load data between the MPU and PTM. The data bus output drivers device on the chip) which permits other similar interrupt reo are three06tate devices which remain in the high·impedance (off) quest lines to be tied together in a wire·OR configuration. state except when the MPU performs a PTM read operation The IRQ line is activated if, and only if, the Composite Inter· (Read/Write and Enable lines "High" and PTM Chip Selects rupt Flag (Bit 7 of the Internal Status Register) is asserted. The • HITACHI 54 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 •. (4081435·8300 ------------------------------------------------------HD6340/HD6840 conditions under which the iRO line is activated are discussed in conjunction with the Status Register. Input Pin No. 10, 11, 12 • Reset (RES) It has been previously stated that the PTM is accessed via Input Pin No.8 MPU Load and Store operations in much the same manner as a memory device. The instructions available with the HMCS6800 A "Low" level at this input is clocked into the PTM by the family of MPUs which perform operations directly on memory Enable (System q,2) input. Two Enable pulses are required to should not be used when the PTM is accessed. These instruc- synchronize and process the signal. The PTM then recognizes the tions actually fetch a byte from memory, perform an operation, active "Low" or inactive "High" on the third Enable pulse. If then restore it to the same address location. Since the PTM used the m signal is asynchronous, an additional Enable period is the R(W line as an additional register select input, the modified required if setup times are not met. The RES input must be data may not be restored to the same register if these instruc- stable "High"'''Low'' for the minimum time stated in the AC tions are used. Characteristics. Recognition of a "Low" level at this input by the PTM • PTM ASYNCHRONOUS INPUT/OUTPUT SIGNALS causes the following action to occur: Each of the three timers within the PTM has external clock a. All counter latches are preset to their maximal count and gate inputs as well as a counter output line. The inputs are values. high impedance, TTL compatible lines and outputs are capable b. All Control Register bits are cleared with the exception of of driving two standard TTL loads. CRIO (internal reset bit) which is set. • Clock Input. (Cj. C;. C; ) c. All counters are preset to the contents of the latches. d. All counter outputs are reset and all counter clocks are disabled. Input Pin No. 28, 4, 7 e. All Status Register bits (interrupt flags) are cleared. • Register Select Lines (RS o• RS 1 • RS 2 ) Input pins ~, C;, and c; will accept asynchronous TTL These inputs are used in conjunction with the R(W line to voltage level signals to decrement Timers 1, 2, and 3, respec- select the internal registers, counters and latches as shown in tively. The "High" and "Low"levels of the external clocks must Table 1. each be stable for at least one system clock period plus the sum Aagilter Select Inpull . T..... 1 Aagilter Selection Opemi..... AS, AS. AS, A/W-"Low" Afii- "High" CR20 = ''0'' Write Control Regilter #3 L L L Ali bill "0" CA20- "I" Write Control Regl.ter #1 L L H Write Control Register #2 Resd Stetu. Regilter L H L Write MSB Buffer Aegllter Aesd Timer #1 Counter L H H Write Timer #1 Latch .. Aesd LIB Buffer Regllter H L L Write MSB Buffer Reglloter Resd Timer #2 Counter H L H Write Timer #2 Latch .. Resd LIB Buffer Aagl.ter H H L Write MSB Buffer Regllter Resd Timer #3 Counter H H H Write Timer #3 Latch .. Aesd LIB Buffer Regllter • L; "Low"leveI. H; "High" level of the setup and hold times for the inputs. The asynchronous signals with marginal setup and hold time to be recognized by clock rate can vary from dc to the limit imposed by Enable either the bit time nearest the input transition or the subsequent (System til2 ) Setup, and Hold time. bit time. The external clock inputs are clocked in by Enable (System q,2) pulses. Three Enable periods are used to synchronize and "Input jitter" can be as great as the time between Input process the external clock. The fourth Enable pulse decrements signal negative going transitions plus the system jitter, if the the internal counter. This does not affect the input frequency, It merely creates a delay between a clock input transition and first transition is recognized during one system cycle, and not recognized the next cycle, or vice versa_ internal !!cognltlon of that transition by the PTM. All refer- ences to C Inputs in this document relate to Internal recognition of the Input transition. Note that a clock "High" or "Low" level External clock input C; represents a special case when TImer which does not meet setup and hold time specifications may #3 is programmed to utUize its optional +8 presca1er mode. The require an additional Enable pulse for recognition. When ob- maximum Input frequency and allowable duty cycles for this serving recurring events, a lack of synchronization will result in case are specified under the AC Characteristics. The output of '~Itter" being observed on the output of the PTM when using the +8 presca1er is treated in the same manner as the previously asynchronous clocks and gate input signals. There are two types discussed clock inputs. That is, it is clocked into the counter by of jitter. "System jitter" Is the result of the input signals being Enable pulses, is recognized on the fourth Enable pulse out of synchronization with the Enable (System q,2), permitting (provided setup and hold time requirements are met), and must $ HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 55 ~~ - ~--~----------- ------ ---------- HD6340/HD6840--------------------------------------------------------- produce an output pulse at least as wide as the sum of an Enable #.3. Thus, with all Register selects and R/W inputs at "Low" period, setup, and hold times. level. Control Register #1 will be written into if CR20 is a logic "I". Under the same conditions, control Register #.3 can also be En.ble~~ Input~r-- written into after a RES "Low" condition has occurred, since Recog~-- t-- all control register bits (except CRIO) are cleared. Therefore, Input one may write in the sequence CR3, CR2, CRI. Either or Here Here • CR10 ---1 I-- System The least-significant bit of Control Register #1 is used as an . . Bit Time Output _ _ _ _ _ _ _ _ _ _ _....'~-n J Jitter internal Reset bit. When this bit is a logic "0", all timers are allowed to operate in the modes prescribed by the remaining • Gate Inputs (~,G" G; I bits of the control registers. Writing a "I" into CRIO causes all counters to be preset with the contents of the corresponding counter latches, all counter clocks to be disabled, and the timer Input Pin No. 26, 2, 5 outputs and interrupt flags (Status Register) to be reset. Counter Latches and Control Registers are undisturbed by an Input pins G., G2 , and G 3 accept asynchronous TTL- Internal Reset and may be written into regardless of the state compatible signals which are used as triggers or clock gating ofCRIO. functions to Timers 1,2, and 3, respectively. The gating inputs • CR30 are clocked into the PTM by the Enable (System q,2) signal in The least-significant bit of Control Register #3 is used as a the same manner as the previously discussed clock inputs. That selector for a +8 prescaler which is available with Timer #3 is, a Gate transition is recognized by the PTM on the fourth only. The prescaler, if selected, is effectively placed between the Enable pulse (provided setup and hold time requirements are clock input circuitry and the input to Counter #.3. It can there- met), and the "High" or "Low" levels of the Gate input must be fore be used with either the internal clock (Enable) or an ex- stable for at least one system c1oc~period plus the sum of setup ternal clock source. and hold times. All references to G transition in this document • CRX1 - CRX7 (X=1-31 relate to internal recognition of the input transition. The functions depicted in the foregoing discussions are The Gate inputs of all timers directly affected the internal tabulated in Table 2 for ease of reference. 16-bit counter_ The operation of G; is therefore independent of Control Register Bits CRIO, CR20, and CR30 are unique in the +8 prescaler selection. that each selects a different function. The remaining bits (I • Timer Outputs (0 1 , O2 , 0 3 1 through 7) of each Control Register select common functions, with a particular Control Register affecting only its corres- ponding timer. Output Pin No. 27, 3, 6 • CRX1 Bit I of Control Register #1 (CRII) selects whether an in- Timer outputs 0 1 , O2 , and 0 3 are capable of driving up to ternal or external clock source is to be used with Timer #1. two TTL loads and produce a defined output waveform for Similarly, CR21 selects the clock source for Timer #2, and either Continuous or Single-Shot Timer modes. Output wave- CR31 performs this function for Timer #.3. The function of form defmition is accomplished by selecting either Single 16-bit each bit of Control Register "X" can therefore be defined as or Dual 8-bit operating modes. The single 16-bit mode will shown in the remaining section of Table 2. produce a square-wave output in the continuous timer mode • CRX2 and will produce a single pulse in the Single-Shot Timer mode. Control Register Bit 2 selects whether the binary information The Dual 8-bit mode will produce a variable duty cycle pulse in contained in the Counter Latches (and subsequently loaded into both the continuous and single shot Timer modes. "I" bit of the counter) is to be treated as a single 16-bit word or two 8-bit each Control Register (CRX7) is used to enable the corres- bytes. In the single 16-bit Counter Mode (CRX2=0) the counter ponding output. If this bit is cleared, the output will remain will decrement to zero after N + I enabled (G="Low") clock "Low" (Yo d regardless of the operating mode. periods, where N is defmed as the 16-bit number in the Counter If it is cleared while the output is high the output will go low Latches. With CRX2 = I, a similar Time Out will occur after (L during the first enable cycle following a write to the Control + I)-(M + I) enabled clock periods, where Land M, respec- Register. tively, refer to the LSB and MSB bytes in the Counter Latches. The Continuous and Single-Shot Timer Modes are the only • CRX3-CRX7 ones for which output response is defmed in this data sheet. Control Register Bits 3, 4, and 5 are explained in detail in the Signals appear at the outputs (unless CRX7 = "0") during Fre- Timer Operating Mode section. Bit 6 is an interrupt mask bit quency and Pulse Width comparison modes, but the actual which will be explained more fully in conjunction with the waveform is not predictable in typical applications. Status Register, and bit 7 is used to enable the corresponding • CONTROL REGISTER Timer Output. A summary of the control register programming Each timer in the HD6340 has a corresponding write-only modes is shown in Table 3. Control Register. Control Register #2 has a unique address space (RSO="High", RSI ="Low", RS2="Low") and therefore • STATUS REGISTER/INTERRUPT FLAGS may be written into at any time. The remaining Control The PTM has an internal Read-Only Status Register which Registers (#1 and#.3) share the Address Space selected by a contains four Interrupt Flags. (The remaining four bits of "Low" level on all Register Select inputs. the register are not used, and default to "O"s when being read.) • CR20 Bits 0, I, and 2 are assigned to Timers 1,2, and 3, respectively, The least-significant bit of Control Register #2 (CR20) is as individual flag bits, while Bit 7 is a Composite Interrupt Flag. used as an additional addressing bit for Control Registers #1 and This flag bit will be asserted if any of the individual flag bits is • HITACHI 56 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (4081435-8300 ------------------------------------------------------HD6340/HD6840 Tlble 2 Control Regi.ter Bit. CONTROL REGISTER #1 CONTROL REGISTER #2 CONTROL REGISTER #3 CR10 jlntarnal Reset Bit CR20 1Control Register Addr... Bit CR30 I Timer #3 Clock Control "0" All timers allowed to operate "0" CR #3 may be ",ntten "0" T3 Clock is not presealed "'" All timers held in preset state "1" CR #1 may be written "'" T3 Clock is presealed by + 8 CRX1* Timer #X Clock Source "0" TX uses external clock source on ex input "1" TX uses Enable clock CRX2 Timer #X Counting Mode Control "0" TX configured for normal (16-blt) counting mode "1" TX configured for dual 8-bit counting mode CRX3 CRX4 CRX5 Timer #X Counter Mode and Interrupt Control (See Table 3) CRX6 Timer #X Interrupt Enable "0" Interrupt Flag masked on IRQ "1" Interrupt Flag enabled to IRQ CRX7 Timer #X Counter Output Enable "0" TX Output masked on output OX "1" TX Output enabled on output OX * Control Register for Timer 1, 2, or 3, Bit 1. set while Bit 6 of the corresponding Control Register is at a Byte of the desired latch data. Three addresses are provided for logic "1". The conditions for asserting the Composite Interrupt the MSB Buffer Register (as indicated in Table 1), but they all Flag bit can therefore be expressed as: lead to the same Buffer. Data from the MSB Buffer will auto- matically be transferred into the Most Significant Byte of Timer INT = II ·CR16 + 12 ·CR26 + 13 ·CR36 #Xwhen a Write Timer #X Latches Command is performed. So it can be seen that the PTM has been designed to allow trans- where INT = Composite Interrupt Flag (Bit 7) fer of two bytes of data into the counter latches provided that II = Timer #1 Interrupt Flag (Bit 0) the MSB is transferred first. 12 = Timer #2 Interrupt Flag (Bit 1) In many applications, the source of the data will be as 13 = Timer #3 Interrupt Flag (Bit 2) HMCS6800 MPU. It should be noted that the I6-bit store ojlera- tions of the HMCS6800 microprocessors (STS and STX etc.) STATUS REGISTER transfer data in the order required by the PTM. A Store Index Register Instruction, for example, results in the MSB of the X register being transferred to the selected address, then the LSB of the X register being written into the next higher location. Thus, either the index register or stack pointer may be trans- An interrupt flag is cleared by a Timer Reset condition, i.e., fered directly into a selected counter latch with a single instruc- External RES = "Low" or Internal Reset Bit (CRIO) = "1". It tion. will also be cleared by a Read Timer Counter Command pro- A logic "Low" at the RES input also initializes the counter vided that the Status Register has previously been read while the latches. In this case, all latches will assume a maximum count of interrupt flag was set. This condition on the Read Status (65,536)10. It is important to note that an Internal Reset (Bit 0 Register - Read Timer Counter (RS-RT) sequence is designed of Control Register 1 Set) has no effect on the counter latches. to prevent missing interrupts which might occur after the status register is read, but prior to reading the Timer Counter. • COUNTER INITIALIZATION An Individual Interrupt Flag is also cleared by a Write Timer Counter Initialization is defined as the transfer of data from Latches (W) command or a Counter Initialization (CI) seq- the latches to the counter with subsequent clearing of the Indi- uence, provided that W or CI affects the Timer corresponding to vidual Interrupt Flag associated with the counter. Counter the individual Interrupt Flag. Initialization always occurs when a reset condition (RES = "Low" or CRIO = "1 ") is recognized. It can also occur - • COUNTER LATCH INITIALIZATION depending on Timer Mode with a Write Timer Latches com- Each of the three independent timers consists of a 16-bit mand or recognition of a negative transition of the Gate input. addressable counter and 16 bits of addressable latches. The Counter recycling or re-initialization occurs when a negative counters are preset to the binary numbers stored in the latches. transition of the clock input is recognized after the counter has Counter initialization results in the transfer of the latch con- reached an all-zero state. In this case, data is transferred from tents to the counter. See notes in Table 5 regarding the binary the Latches to the Counter. number N, L, or M placed into the Latches and their relation- ship to the output waveforms and counter Time-Outs. • TIMER OPERATING MODES Since the PTM data bus is 8-bits wide and the counters are The PTM has been designed to operate effectively in a I6-bits wide, a temporary register (MSB Buffer Register) is wide variety of applications. This is accomplished by using three provided. This "write only" register is for the Most Significant bits of each control register (CRX3, CRX4, and CRX5) to .HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 57 HD6340/HD6840--------------------------------------------------------- defined different operating modes of the Timers. These modes • WAVE SYNTHESIS MODES are divided into Wave Synthesis and Wave Measurement modes, and outlined in Table 3. • Continuous Operating Mode (Table 4) The continuous mode will synthesize a continuous wave with Table 3 Operating Mode. a period proportional to the preset number in the particular Control Register timer latches. CRX4 CRX5 Timer Operating Mode Any of the timers in the PTM may be programmed to CRX3 Continuous Wave operate in a continuous mode by writing "O"s into bits 3 and 5 0 0 " of the corresponding control register. Assuming that the timer 0 1 Slngle·Shot SynthesIs " output is enabled (CRX7 = "1 "), either a square wave or a vari- 1 1 .. 0 1 . " Frequency Comparison Pulse Width Comparison Wave Measurement able duty cycle waveform will be generated at the Timer Output, OX. The type of output is selected via Control Register * Defmes Additional Timer Functions . Bit 2. Either a Timer Reset (CRIO = "1" or External RES = One of the WAVE SYNTHESIS modes is the Continuous "low") condition or internal recognition of a negative tran- Operating mode, which is useful for cyclic wave generation. sition of the Gate input results in Counter Initialization. A Write Either symmetrical or variable duty·cycle waves can be gen· Timer Latches command can be selected as a Counter Initiali- erated in this mode. The other wave synthesis mode, the Single- zation signal by clearing CRX4. Shot mode, is similar in use to the Continuous operating mode, The counter is enabled by an absence of a Timer Reset con- however, a single pulse is generated, with a programmable preset dition and a "Low" level at the Gate input. In the l6-bit mode, width. the counter will decrement on the first clock cycle during or The WAVE MEASUREMENT modes include the Frequency after the counter initialization cycle. It continues to decrement Comparison and Pulse Width Comparison modes which are used on each clock signal so long as G remains "Low" and no reset to measure cyclic and singular pulse widths, respectively. condition exists. A Counter Time Out· (the first clock after all In addition to the four timer modes in Table 3, the remaining control register bit is used to modify counter initialization and enabling or interrupt conditions. Table 4 Continuous Operating Modes CONTINUOUS MODE (CRX3 = "0", CRX5 = "0") Control Register Initialization/Output Waveforms CRX2 CRX4 Counter Initialization "Timer Output (OX) (CRX7 = "''') - r-(N+l)(T1 T!N+1)(T)T(N+1)( TI 1 0 0 GI+W+R II I I I-VOH I VOL - 0 1 GI+R t, TO TO TO - f--IL+lI1M+lIITI~IL+lI1M+lIITI--i v 1 0 GI+W+R ~-OH 1 1 - GI+R I t, ---1 ILiITI I-- TO --l ILIITI r-- TO G~ "" Negative transition of Gate input. W = Write Timer Latches Command. R = Timer Reset (CR10 = "I" or External RES = "Low") N = 16-Bit Number in Counter Latch. L = a-Bit Number in LSB Counter Latch. M = a-Bit Number in MSB Counter Latch. T = Clock Input Negative Transitions to Counter. t, = Counter Initialization Cycle. TO= Counter Time Out (All Zero Condition). * All time intervals shown above assume the Gate (0) and Clock (C) Signals are synchrOnized to Enable (System CPt) with the specified setup and hold time requirements. ~HITACHI 58 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------HD6340/HD6840 Control Register Bits CRX7 Timer #X Counter Output Enable 0 TX Output masked on output OX 1 TX Output enabled on output OX CRX6 Timer #X Interrupt Enable 0 Interrupt Flag masked on IRQ 1 Interrupt Flag enabled to IRQ .\ '7~~~' I T,~." ~"....", H".".ru,"""."'" T~'" I Control Register X 17 6 1 5 1 4 1 3 21 1 1 0 LX=1,2or3 / ::::::-. CRX2 Timer #x Counting Mode Control 0 TX configured for normal (16·blt) counting mode 1 TX configured for dual 8-bit counting mode CRX1 Timer #x Clock Source 0 TX uses external clock sou ree on ex mput 1 TX uses Enable clock CR 10 loternal Reset Bit CR20 Control Register Address Bit CR30 Timer #3 Clock Control 0 All timers allowed to operate 0 CR#3 may be written 0 T3 Clock IS not prescaled 1 All timers held In preset state 1 CR#1 may be written 1 T3 Clock IS prescaled by + 8 X = 1 X=2 X =3 ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 59 HD6340/HD6840--------------------------------------------------_______ Example: Contents of MSB = 03 = M Contents of LSB = 04 = L r.-------------------- M(L+1)+1 Algebraic Expression 03(04 + 1) + 1 = ,, 16 Enables , , , , : 1+L ----_0-- 1 + L ----t~...:,... I--- 1+L ~ 5 Enable , 5 Enable Pulses Pulses J+--+---------!--+:------- (M + i) 0:' + 1) ------'--1----------01 I• , ,i .-- I ** I j~l r---+' I t I: --' I ** I * 1 Algebraic ExpreSSion (04 + 1) (03 + 1) = 20 Enable or (M + 1) (L + 1) = Period External Clock Pulses M(L + 1) + 1 = "Low" portion of period L = Pu Ise width * Preset LSB and MSB to Respective Latches on the negative transition of the E. ** Preset LSB to LSB Latches and Decrement MSB by one on the negative transition of the E. Figure 9 Timer Output Waveform Example (Continuous Dual 8-Bit Mode using Internal Enable) counter bits = "0") results in the Individual Interrupt Flag being application requires an output signal. It should be noted that set and re-initialization of the counter. the Timer operates in the same manner with the output disabled In the dual 8-bit mode (CRX2= "1") [Refer to the example (CRX7 = "0"). A Read Timer Counter command is valid re- in Fig. 9] the MSB decrements once for every full countdown gardless of the state of CRX7. of the LSB + 1. When the LSB = "0", the MSB is unchanged; on • Single-Shot Timer Mode the next clock pulse the LSB is reset to the count in the LSB This mode is identical to the Continuous Mode with three Latches and the MSB is decremented by I (one). The output, if exceptions. The first of these is obvious from the name - the enabled, remains "Low" during and after initialization and will output returns to a "Low" level after the initial Time Out and remain "Low" until the counter MSB is all "O"s. The output remains "Low" until another Counter Initialization cycle will go "High" at the beginning of the next clock pulse. The occurs. The waveforms available are shown in Table 5. output remains "High" until both the LSB and MSB of the As indicated in Table 5, the internal counting mechanism counter are all "O"s. At the beginning of the next clock pulse remains cyclical in the Single-Shot Mode. Each Time Out of the the defmed Time Out (TO) will occur and the output will go counter results in the setting of an Individual Interrupt Flag and "Low". In the Dual8-bit mode the period of the output of the re-initialization of the counter. example in Fig. 9 would span 20 clock pulses as opposed to The second major difference between the Single-Shot and the 1546 clock pulses using the Normal 16-bit mode. Continuous modes is that the internal counter enable is not A special time-out condition exists for the dual 8·bit mode dependent on the Gate input level remaining in the "Low" state (CRX2 = "1") if L ="0". In this case, the counter will revert to for the Single-Shot mode. a mode similar to the siRgie 16-bit mode, except Time Out Another special condition is introduced in the Single-Shot occurs after M+ 1 clock pulses. The output, if enabled, goes mode. If L =M ="O"(Dual 8-bit) or N ="0" (Single 16-bit), the "Low" during the Counter Initialization cycle and reverses state output goes "Low" on the fIrst clock received during or after at each Time Out. The counter remains cyclical (is re-initialized Counter Initialization. The output remains "Low" until the at each Time Out) and the Individual Interrupt Flag is set when Operating Mode is changed or nonzero data is written into the Time Out occurs. If M = L = "0", the internal counters do not Counter Latches. Time Outs continue to occur at the end of change, but the output toggles at a rate of 1/2 the clock fre- each clock period. quency. The three differences between Single-Shot and Continuous The discussion of the Continuous Mode has assumed that the Timer Modes can be summarized as attributes of the Single-Shot ~HITACHI 60 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6340/HD6840 mode: 2. Counter Enable is independent of Gate. 1. Output is enabled for only one pulse until it is reini- 3. L =M ="0" or N ="0" disables output. tia1ized. Aside from these differences, the two modes are identical. Tabla 5 Slngla·Shot Operating Modes Slngle·Shot Mode (CRX3 = "0", CRX7 = ",", CRX5· ",") Control Register Initialization/Output Waveforms CRX2 CRX4 Counter Initialization Tim.. Output (OX) 0 0 GI+W+R h (N+l )(T) ;=::r-(N+1 )(T)1 i--CN)(T) ~ I 0 I GI+R to TO TO I 0 GI+W+R rCL+l)(M+l)(T)~L+1)(M+l )(T)l --j(L)(T) 1 1 GI+R t. I ITO TO Symbols are as defined In Table 5 • WAVE MEASUREMENT MODES operate as follows. During the period between reinitia1ization of The Wave Measurement Modes are the Frequency (period) the timer and the first Time Out, the output will be a logical Measurement and Pulse Width Comparison Modes, and are pro- zero. If the frrst Time Out is completed (regardless of its vided for those applications which require more flexibility of method of generation), the output will go "High". If further interrupt generation and Counter Initia1ization. Individual inter- TO's occur, the output will change state at each completion of a rupt Flags are set in these modes as a function of both Counter Time-Out. Tune Out and transitions of the Gate input. Counter Initia1iza- The counter does operate in either Single 16-bit or Dual 8-bit tion is also affected by Interrupt Flag status. modes as programmed by CRX2. Other features of the Wave A timer's output is normally not used in a Wave Measure- Measurement Modes are outlined in Table 6. ment mode, but it is defmed. If the output is enabled, it will TIbia 5 Wave Measurement Modes CRX3 = ,.,,. CRX4 CRX5 Appli_ion Condition for Setting Individullinterrupt Flog 0 0 Frequency Comparison Interrupt Generated if Gate Input Period (1/F) is less than Counter Time Out (TO) 0 1 Frequency. Comparison Interrupt Generated if Gate Input Period ('/F) is groater than Counter Time Out (TO) 1 0 Pulse Width Comparison Interrupt Generated if Gate Input "Down Time" is less than Counter Time Out (TO) 1 1 Pulse Width Comparison Interrupt Generated if G8ti Input "Down Time" is greater than Counter Time Out (TO) • Frequencv Comparison or Period Measurement Mode ICRX3 condition of (;'/"I'TO is satisfied, since a Time Out has oc- = "1", CRX4 = "0") curred and no individual Interrupt has been generated.) The Frequency Comparison Mode with CRXS = "I" is Any of the timers within the PTM may be programmed to straightforward; If Time Out occurs prior to the fust nega!ive compare the period of a pulse (giving the frequency after cal- transition of the Gate input after a Counter Initia1ization cycle, culations) at the Gate input with the time period re~ted for an Individual Interrupt Flag is set, The counter is disabled, and a Counter Tinte-Out. A negative transition of the Girte input Counter Initia1izatkm cycle cannot be~ until the interrupt flag enables the counter and starts a Counter Initia1ization cycle - is cleared and a negative transition on G is detected. provided that other conditions as noted in Table 7 are satisfied. If CRX 5 = "0", as shown in Table 6 and Table 7, an inter- The counter decrements on each clock signal recogni2ed during rupt is generated if Gate input returns "Low" prior to a Time or after Counter Initialization until an Interrupt is generated, a Out. If Counter Time-Out occurs fust, the counter is recycled Write Timer Latches command is issued, or a Timer Reset con- and continues to decrement, A bit is set within the timer on the dition occurs. It can be seen from Table 7 that an interrupt initial Time Out which precludes further individual interrupt condition will be generated if CRX 5 =''0'' and the period of the generation until a new Counter Initia1ization cycle has been pulse (single pulse or measured separately repetitive pulses) at completed. When this internal bit is set, a negative transition of the Gate input is less than the Counter Time Out period. If the Giiie input starts a new Counter Initialization cycle. (The CRX 5 ="I" , an interrupt is generated If the reverse is true. • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 61 HD6340/HD6840----------------------------------------------------------- Assume now with CRX 5 = "1" that a Counter lnitialization input terminates the count. With CRX5 = "0", an Individual has occurred and that the Gate input has returned "Low" prior lnterrupt Flag will be generated if the "Low" level pulse applied to Counter Time Out. Since there is no Individual Interrupt to the Gate input is less than the time period required for Flag generated, this automatically starts a new Counter Initiali- Counter Time Out. With CRX 5 = "1" , the interrupt is generated zation Cycle_ The process will continue with frequency com- when the reverse condition is true. parison being performed on each Gate input cycle until the As can be seen in Table 8, a positive transition of the Gate mode is changed, or a cycle is determined to be above the input disables the counter. With CRX5 = "0", it is therefore predetermined limit. possible to directly obtain the width of any pulse causing an interrupt. Similar data for other Time Interval Modes and • Pulse Width Comparison Mode (CRX3 = "1", CRX4 ="1"1 conditions can be obtained, if two sections of the PTM are This mode is similar to the Frequency Comparison Mode dedicated to the purpose. except for a positive, rather than negative, transition of the Gate Table 7 Frequency Comparison Mode CRX3 =",", CRX4 =''0'' Control Reg Counter Counter Enable Counter Enable Interrupt Flag Bit 5ICRX5) Initialization Flip-Flop Sot ICE I Flip-Flop Roset ICEI Sot III 0 G.' HCE+TOI+R G.-w·R·1 W+R+I GI Before TO 1 GI'I+R GI'W'R-I W+R+I TO Before G. I represents the interrupt for a given timer. Table 8 Pulse Width Comparison Mode CRX3 = ",", CRX4 = "'" Control Reg Counter Counter Enable Counter Enable Interrupt F leg Bit 51CRX51 Initialization Flip-Flop Sot ICEI Flip-Flop Resot ICEI Sot III 0 G.-I+R G.-w-R-T W+R+I+G Gt Before TO 1 G.'I+R m-W-R-I W+R+I+G TO Before Gt -- input. G = Level senSitive recognition of Gate ~HITACHI 62 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 _________________________________________________________ HD6340/HD6840 Table 9 Control Register Programming Register 1 Register 2 Register 3 All Tomers Operate Reg #3 May Be Written T3 Clk'" 1 All Timers Preset Reg #1 May Be Written T3 elk -;- 8 External Clock (CX Input) Internal Clock (Enable) Normal (IS-Bit) Count Mode Dual 8-Bot Count Mode Continuous Operating Mode: Gate J. or Write to Latches or Reset Causes Counter Initialization Frequency Companson Mode: Interrupt if Gate Ln < Counter Time Out IS Continuous Operating Mode: Gate .j, or Reset Causes Counter Initialization Pulse Width Comparison Mode: Interrupt if Gate L--.J is < Counter Time Out Single Shot Mode: Gate.£. or Write to Latches or Reset Causes Counter Initialization Frequency Companson Mode: Interrupt If Gate lS+IS > Counter Time Out Smgle Shot Mode: Gate .j, or Reset Causes Counter Initialization Pulse Width Companson Mode: Interrupt If Gate L---l is> Counter Time Out Interrupt Flag Masked (lAO) Interrupt F lag Enabled (I Ra) Timer Output Masked Timer Output Enable (NOTE) Reset IS Hardware or Software Reset (RES'" "Low" or CR10 = "1 "). ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 63 HD6340/HD6840-------------------------------------------------------- • NOTE FOR USE (HD6340 only) • Notes for the 0 1 - 0 3 Outputs Noise Input signal, which is not necessary for user's application, (1) Phenomenon should be used ftxed to "High" or "Low" level. This is applica- When the excessive load capacitance is connected to data ble to the following signal pins. bus and GND wiring impedance is not neglectable in the system ~ C2 , C3 , C;-, G2 , G3 using HD6340, the noise appears in 0 1 - 0 3 outpus in the read cycle as indicated in Fig. 10 which may cause the erroneous operation of the system . • RESTRICTION FOR USE E \'-___--1 \'------1 AS CS __________ ______________ x~ ~x~ _____ A/W ___ _________________ _______________ ~x~ x~ Figure 10 The 0 1 - 0 3 Outputs Noise in the MPU Read Cycle (2) Cause When the data buffer turns from "H" to "L", the excessive transient current runs to the GND (the discharge current of the 0, data bus load capacity). Therefore, the noise occurs in the GND pin of the LSI because of the impedance of the GND wiring (resistance and inductance). See Fig. II for the details. Fig. 12 indicates the dependence of the noise voltage upon each parameter. D. I H~~ _ _ _..J Figure 11 Cause of the Noise Vn Vn Vee Cd Z9 N Vn: Noise voltage Zg: GND impedance Cd: Data bus load capacitance N : Number of data bus which changes according to H -+ L. Figure 12 The Dependence of the Noise Voltage upon Each Parameter ~HITACHI 64 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------------HD6340/HD6840 However, it is important to consider the fact that the noise voltage varies according to the type of parameter as indicated in Fig. 12. (3) Countermeasures When the noise cause the erroneous operation of the system, the 6303 ~~o, 1-_-+l~1741-___ coWUermeasures to be taken are as follows. E --+--E_v (a) Latch the 0, -030utputs by the falling edge of the signal "E". elK 1....-- The latch added to prevent the noisa (74lS174). • Precautions when using Timer 3 IHD6340 only) This phenomenon occurs when tosw (data setup time; When using the HD63B40P Timer 3 under the conditions standard spec. 60ns minimum) is less than 8Ons, and does not 1) external clock mode (CR3l = 0) occur when tosw is greater than 8Ons. 2) ->- 8 prescaler unused (CR30 = 0) Therefore, please avoid to use the HD63B40P in the above and changing the bits of the control register #3 except for the status when tosw is less than 80ns. CR30 bit (e.g. in a case where the interrupt mask bit and 0 3 (This phenomenon doesn't occur in the HD6340P and output enable bit are changed and the CR30 is not), there is HD63A40P.) the possibility that one decrement clock may be omitted . • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 65 HD6844, HD68A44, HD68B44 DMAC (Direct Memory Access Controller) The HD6844 Direct Memory Access Controller (DMAC) performs the function of transferring data directly between HD6844P, HD68A44P, HD68B44P memory and peripheral device controllers. It controls the address and data buses in place of the MPU in bus organized systems such as the HMCS6800 Microprocessor System. The bus interface of the H06844 includes select, read/ write, interrupt, transfer request/grant, and bus interface logic to allow the data ti'.lnsfer over an 8-bit bidirectional data bus. The functional configuration of the DMAC is programmed via the data bus. The internal structure provides for control and handling of four individual channels, each of which is separately configured. Programmable control registers provide control for (DP-40) the transfer location and length, individual channel control and transfer mode configuration, priority of servicing, data chaining, and interrupt control. Status and control lines provide control to the peripheral controllers. • PIN ARRANGEMENT The mode of transfer for each channel can be programmed as cycle-stealing or a burst transfer mode. Typical applications would be with the Floppy Disk Con- o q,2 DMA troller (FDC), etc .. REs DGRNT i5RQT • FEATURES i5RQH • Four DMA Channels, Each Having a 16-Bit Address TxAKA Register and a 16-Bit Byte Count Register TxSTa • 1 M Byte/Sec (HD6844), 1.5 M Byte/Sec (HD68A44), iRO/O'EN'O TxAo" 2.0 M 8yte/Sec (HD68844) HD6844 TxRQ 1 Maximum Data Transfer Rate TxRQ 2 • Selection of Fixed or Rotating Priority Service Control TxAQ~ D, • Separate Control Bits for Each Channel D, • Data Chain Function D, • Address Increment or Decrement Update • Programmable Interrupts and DMA End to Peripheral D. D, Controllers • Compatible with MC6844, MC68A44, MC68B44 • BLO(,( DIAGRAM (Top View) Address/Control and Interrupt Channel Request Four Data Channel Bus Grant Control Controls ~HITACHI 66 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------HD6844,HD68A44,HD68B44 • ABSOLUTE MAXIMUM RATINGS Item Symbol Value Unit Supply Voltage Vee * -0.3-+7.0 V Input Voltage Vi" * -0.3-+7.0 V Operating Temperature Top, -20 -+75 °c Storage Temperature TS1Il -55-+150 °c • With respect to Vss (SYSTEM GND) (NOTE) Permanent LSI damage may occur If maximum ratings are exceeded. Normal operation should be under recommended operating conditions. If these conditions are exceeded, It could affect reloeb,loty of LSI. • RECOMMENDED OPERATING CONDITIONS ... Item Symbol min typ max Unit Power Supply Voltage Vee 4.75 5.0 5.25 V V 1L -0.3 - 0.8 V Input Voltage V IH 2.0 - Vee V Operating Temperature Top, -20 25 75 °c • W,th respect to Vss (SYSTEM GND) • ELECTRICAL CHARACTERISTICS (Vcc·5V±5%, Vss-oV, Ta~-2o-+75°C, unl_ otherwise noted.) • DC CHARACTERISTICS Item Symbol Test Condition min typo max Unit Input "High" Voltage V IH 2.0 - Vee V Input "Low" Voltage V 1L -0.3 - 0.8 V TxRClo-3,9>2 DMA, Input Leakage Current RES, DGRNT lin V;n=o-5.25V -2.5 - 2.5 p.A Three·State (off state) Leakage Current Ao-A 15 , Do-D 7, R/W I TS1 Vln =0.4-2.4V -10 - 10 p.A Do-D 7 IOH=-205p.A 2.4 - - Output "High" Voltage A o-A 15 , R/W V OH IOH--145p.A 2.4 - - V All Other Outputs IOH=-l00p.A 2.4 - - Output "Low" Voltage VOL IOL=1.6mA - - 0.4 V Source Current CS/TxAKB less V;n~V, Fig. 10 - 10 16 rnA Power D issipatio n Po - 500 1000 mW 9>2 DMA - - 20 Do..::D7' CS, Ao-~, Input Capacitance R/W Cln Vln=OV, T.=25°C - - 12.5 pF f=1.0MHz TxRQo-3, RES, DGRNT - - 10 Output Capacitance Cout V;n=OV, T.=25°C, f=lMHz - - 12 pF • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 67 ~~~--------- HD6844,HD68A44,HD68B44-------------------------------------------------- • AC CHARACTERISTICS (Load Condition Fig. 9) 1. CLOCK TIMING Test HD6644 HD66A44 HD68844 Item Symbol Condition Unit min typ mex min typ mex min tYP max I/>,DMA Cycle Tima teyel/> Fig.2 1000 - - 666 - - 500 - - ns 1/>, DMA Pulse Width ["High" Level PWI/>H Fig. 2 450 - - 280 - - 235 - - ns I "Low" Level PWI/>~ Fig. 2 400 - - 230 - - 210 - - n. 1/>, DMA Rise end Fall Tima tq,r,tq,f Fig. 2 - - 25 25 - 25 n. 2. DMA TIMING (Load Condition Fig. 9) Test HD6844 HD68A44 HD68844 Item Symbol Condition Unit min typ max min tYP max min tYP max 1/>, DMA Ri.ing Edge tTasl 120 - - 120 - - 120 - - TxRO Setup Time ns I/>,DMA Falling Edge tTas2 210 - - 210 - - 155 - - Fig.3 1/>, DMA R isi ng Edge tTOHl 20 - - 10 - - 10 - - TxRO Hold Time ns I/>,DMA Falling Edge tTOH2 20 - - 10 - - 10 - - DGRNT Setup Time DGRNT tOGS Fig. 4 155 - - 125 - - 115 - - n. DGRNT Hold Time DGRNT tOGH 10 - - 10 - - 10 - - Addre.. Output A.-A", R/W, Deley Time TxSTB tAD Fig.6 - - 270 - - 180 - - 160 ns Addre.. Output A.-A", RIW tAHO Fig.6 30 - - 20 - - 20 - - ns Hold Time TxSTB Fig.7 35 - - 35 - - 35 - - Addre .. Th ree.state Delay Time A.-A",R/iii tATSO Fig. 7 - - 270 - - 270 - - 270 n. Addre.. Three·State Recovery Time A.-A", R/iii tATSR Fig. 7 - - 270 - - 270 - - 270 ns Delay Time DROH,DRQT toaD Fig.5 - - 375 - - 250 - - 210 ns 1/>, DMA Rising Edge tTKO' Fig. 5 - - 400 - - 3'0 - - 250 TxAK Delay Time ns DGRNT Rising Edge tTK02 Fig. 8 - - 190 .- - 160 - - 150 1/>, DMA Falling I RO/i5EriiD Delay Edge tOED' Fig.6 - - 300 - - 250 - - 210 n. Time DGRNT Rising Edge 'OE02 Fig.8 - - 190 - - 160 - - 125 3. BUS TIMING 1) READ TIMING Test HD6844 HD68A44 HD68B44 Item Symbol Unit Condition min typ tYP max min max min tYP max A.-A.,RIW, Addre.. Setup Time CS tAS 140 - - 140 - - 70 - - ns Address Input Hold ~-A.,R/W, Time CS tAHI 10 - - 10 - - 10 - - ns Data Delay Time °,- 01 tOOR Fig. 2 - - 320 - - 220 - - 180 ns Date Acce.. Time 0 0 -0" tACC - - 460 - - 360 - - 280 ns Data Output Hold Time 0 0 -0., tOHR 10 - - 10 - - 10 - - ns ~HITACHI 68 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 -------------------------HD6844,HD68A44,HD68B44 21 WRITE TIMING Test HD6844 HD68A44 HD68B44 Item Svmbol Unit Condition min 'Vp max min tvP max min 'VP max ~-A.,RIW, Address Se.up Tome CS 'AS 140 - - 140 - - 70 - - ns Address Inpu. Hold A,-A., RIW, Time CS 'AHI Fog. 2 10 - - 10 - - 10 - - ns Da.a Setup Tome °0- 0 7 ·OSW 195 - - 80 - - 60 - - ns Da •• Inpu. Hold Time °0- 0 7 'OHW 10 - - 10 - - 10 - - ns IRQ/ CS/TxAK8 #0 H ..1I _______ _______ L _ DRQT --_+----i DRQ H/T #I H: L ~----~r---~ -#2-"H- -~---i:- --- ~----+--~.'~~--, -ii-H--~---C--- BYTE COI.WT REGISTER (18X4) 1_--------TxAQ T.~ 1---------TxRQ, "DMA----~------------_1 M~IN ~.AKI---------TxAQ I_------T._ CONTROL TxSTB t..;;.IDICOr-- T.AKA RO- Vce- v •• ~ Figure 1 Expanded Block Diagram $ HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 69 HD6844,HD68A44,HD68B44------------------------------------------------- f - - - - - - - - - - - - toyo ---------1 .DMA A.=.A, \Input) R1W(lnput) CS (Input) D. -0, (Output) (Read Operation) 0.-0, (Input) (Write Operation) Figure 2 ReadlWrite Sequence Figure 3 Timing of TxRQ Input • HITACHI 70 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------HD6844,HD68A44,HD68B44 Set Up Timing IP,DMA ~ __________ ~2.0V ,.,.,....----- ----- ---- tD~-1 2.0V DGRNT O.BV Hold Timing IP,DMA DGRNT Figure 4 Timing of DGRNT Input 2.0V IP,DMA 2.4V O.4V 2.4V TxAKA CS/TxAKB (Output) O.4V Figure 5 Timing of DROH, DROT, TxAK Outputs ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 71 HD6844,HD68A44,HD68B44------------------------- ,DMA 2.4V A.:::..A,. (Output! R1W (Output) "i'XSTB O.4V tOE Ox' 2.4V O.4V ------------~ ------------------ Figure 6 Timing of Address and I RQ/DEND Outputs Recovery Time of Address Three-state ,DMA (or DGRNT) 2.4V O.4V Delay Time of Address Three-state , DMA (or DGRNT) tAHO Figure 7 Timing of Address Three-state • HITACHI 72 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------HD6844.HD68A44.HD68B44 DGRNT CS/T.AKB IOutput) O.4V '""'1 /1 2 4V . -- - IRQ/DEND _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _- J Figure 8 Timing of Synchronous OGRNT Output 5.0V 2.4kO Test terminal C R 0 0 -0, 130 pF 11 kn Test terminal o--......,--~--filI---+ Ao-A 15 • R/W 90 pF 16kn CS/TxAKB 50 pF 24kn 0, All other outputs 30 pF 24kn C R 0, 0, -0, : 152074 <8l or equivalant. 0, Figure 9 Load Circuit ,-- -- --- - -- --- ---------------, I I HD6844 I Vee I I TxAKB output >---::]X)-l------ll 0' ~ less ~ OFF D.C. Ammeter Vln-OV T.AK ENABLE Vss I VSS CS input ~-------------------------~ Figure 10 Source Current Measurement Circuit for CSlTxAKB Terminal ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 73 HD6844,HD68A44,HD68B44--------------------------------------_____________ • DEVICE OPERATION The DGRNT signal must cause the address control and data The DMAC has fifteen addressable registers, eight of them lines to go to the Wgh impedance state. The DMAC now are sixteen bits in length, Each channel has a separate Address supplies the address from the Address Register of the channel Register and a Byte Count Register, each of which is sixteen requesting. It also supplies the R/W signal as determined from bits, There are also four Channel Control Registers, The three the Channel Control Register, After one byte is transferred, General Control Registers common to all four channels are the control is returned to the MPU. TWs method stretches the q" Priority Control Register, the Interrupt Control Register, and and q,2 clocks while the DMAC uses the memory. the Data Chain Register, The second method of cycle-stealing is the Halt Steal mode. To prepare a channel for DMA, the Address Registers must TWs method actually halts the MPU instead of stretching the q" be loaded with the starting memory address and the Byte Count clock for the transfer period. TWs mode is initiated by the Register loaded with the number of bytes to be transferred, The DMAC bringing the DRQH line "Low". TWs line connects to bits in the Channel Control Register establish the direction of the MPU HALT input. The MPU Bus Available (BA) line is the the transfer, the mode, and the address increment or decrement DGRNT input to the DMAC. While the MPU is halted, its after each cycle, Each channel can be set for one of three Address Bus, Data Bus, and R/W are in the high impedance transfer modes: Three-State Control (TSC) Steal, Halt Steal, or state. The DMAC now supplies the address and R/W line. After Halt Burst Two read-only status bits in the Channel Control one byte is transferred, the HALT line is returned "High" and Register indicate when the channel is busy transferring data and the MPU regains control. In this mode, the MPU stops internal when the DMA transfer is completed, activity and is removed from the system while the DMAC uses The Priority Control Register enables the transfer requests the memory. from the peripheral controllers and establishes either a fixed The third mode of transfer is the Halt Burst mode. TWs priority or rotating priority scheme of servicing these requests. mode is similar to the Halt Steal mode, except that the transfer When the DMA transfer for a channel is complete (the Byte does not stop with one byte. The MPU is halted while an entire Count Register is zero), a DMA End signal is directed to the block of data is transferred. When the channel's Byte Count peripheral controller and an IRQ goes to the MPU. Enabling of Register equals zero, the transfer is complete and control is these interrupts is done in the interrupt Control Register, The returned to the MPU. This mode gives the highest data transfer IRQ flag bit is read from tWs register. rate, at the expense of the MPU being inactive during the Chaining of data transfers is controlled by the Data Chain transfer period. Register, When enabled, the contents of the Address and Byte Count Registers for channel #3 are put into the registers of the • INPUT/OUTPUT FUNCTIONS channel selected for chaining when its Byte Count Register • DMAC Interface Signals for the MPU becomes zero. This allows for repetitively reading or writing a The DMAC interfaces with the HMCS6800 MPU through the block of memory. eight-bit bidirectional data bus, the CS line, five address lines, During the DMA mode, the DMAC controls the address bus an IRQ line, the Read/Write line, and the RES line. These sig- and data bus for the system as well as providing the R/W nals, in conjunction with the HMCS6800 VMA output, permit line and a signal to be used as VMA. When a peripheral the MPU to have access to the DMAC. Four other lines as- device controller desires a DMA transfer, it is requested by a sociated with the MPU and the clock driver are the DRQT, Transfer Request Assuming this request is enabled and meets DRQH, DGRNT, and the q,2 DMA. the test of highest priority, the DMAC will issue a DMA Request When the DMAC receives the DMA Grant, it gives a Bidirectional Data (Do ~D7) Transfer Acknowledge to the peripheral device controller, at The Bidirectional Data lines (Do ~D7) allow for data transfer wWch time the data is transferred. When the channel's Byte between the DMAC and the MPU. The data bus output drivers Count Register equals zero, the transfer is complete and a DMA are three-state devices that remain in the high impedance state "ElliI is given to the peripheral device controller, and an IRQ is except when the MPU performs DMAC read operations. given to the MPU. Chip SelectlTransfer Acknowledge B (CSIT x AKB) • Initialization TWs line is multiplexed, serving both as an input and an During a power-on sequence, the DMAC is reset via the RES output. CS/TxAKB is an output in the four-channel mode input. All registers, with the exception of the Address and Byte during the DMA transfer. At all other times, it is a high Count Registers, are- set to a logic "0" state. This disables all impedance TTL compatible input used to address the DMAC. requests and the Data Chain function while masking all The DMAC is selected when CS/TxAKB is "Low". VMA must interrupts. The Address, Byte Count, and Channel Control be used in generating this input to insure that false selects will Registers must be programmed before the respective transfer not occur, Transfers of data to and from the DMAC are then request bit is enabled in the Priority Control Register. performed under the control of the q,2 DMA, Read/Write, and Ao~A.. address lines. In the four-channel mode when TxAKB is • Transfer Modes needed, the CS gate must have an open-collector output (a There are three ways in wWch a DMA transfer may be done. pull-up resistor should not be used). In the two-channel mode, The one used is determined by the data transfer rate required, CS/TxAKB is always an input. the number of channels attached, and the hardware complexity allowable. Refer to Figures 12, 16 and 17. Address Lines (Ao ~ A. ) Two of the modes, TSC Steal and Halt Steal, are done by Address lines Ao ~A. are both input and output lines. In the cycle-stealing from the MPU. The Three-State Control (TSC) MPU mode, these are high impedance inputs used to address the Steal mode is initiated by the DMAC bringing the DRQT line DMAC registers. In the DMA mode, these lines are outputs "Low". TWs line goes to the system clock driver wWch returns a wWch are set to the contents of the Address Register of the "High" on DGRNT on the rising edge of the system q" clock. channel being processed. • HITACHI 74 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------HD6844,HD68A44,HD68B44 Interrupt Request/DMA End (lRO/DEND) indicating that the MPU has halted and turned control of its IRQ/DEND is a TTL compatible, active "Low" output that busses over to the DMAC. For a design involving TSC Steal and is used to interrupt the MPU and to signal the peripheral Halt mode transfers, this input must be the OR of the clock controller that the data block transfer has ended. If the driven DMA Grant and the MPU BA. Interrupt has been enabled, the IRQ/DEND line will go "Low" after the last DMA cycle of a transfer. An open collector gate tP2DMA must be connected to DGRNT and IRQ/DEND to prevent false Transferring in and out of the DMAC registers, aarnpling interrupts from the DEND signal when interrupts are not of channel request lines and gating of other control signals to enabled. Refer to the section of "DMA End Control". the system is done internally in conjunction with the tP2 DMA high impedance input. This input must be the system memo- ReadJWrite (R/W) ry clock (non-stretched tP2 clock). Read/Write is a TTL compatible line that is a high impedance input in the MPU mode and an output in the DMA mode. In the • Transfer Signals From the Peripheral Controller MPU mode, it is used to control the direction of data flow through the DMAC's input/output data bus interface. When Transfer Request (TxROo-TxR03 ) Read/Write is "High" (MPU read cycle) and the chip is selected, Each of the four channels has its own high impedance input DMAC data output buffers are turned on and a selected register request for transfer line. The peripheral controller requests a is read. When it is "Low", the DMAC output drivers are turned transfer by setting its TxRQ line "High" (a logic "I "). The lines off and the MPU writes into a selected r~gister. are sampled according to the priority and enabling established in In the DlI4A mode, Read/Write is an output to drive the the Priority Control Register. In the Steal mode and the ftrst memory and peripheral controllers. Its state is determined by byte of the Halt Burst mode, the TxRQ signals are tested on the bit 0 of the Channel Control Register for the channel being positive edge of tP2 DMA and the highest priority channel is serviced. When Read/Write is "High", the memory is read and strobed. Once strobed, the TxRQs are not tested until that the data from the memory is written into the peripheral channel's data transfer is fmished. In the succeeding bytes of the controller. When it is "Low", the peripheral controller is read Halt Burst mode transfer, the TxRQ is tested on the negative and its data stored in the memory. In the DMA mode, the edge of tP2 DMA, and data is transferred on the next tP2 DMA DMAC data buffers are off. cycle ifTxRQ is "High". • Transfer Signals to the Peripheral Controller Reset (RES) Two encoded lines select the channel to be serviced. A strobe The RES input provides a means of reset~the DMAC from line acknowledges the request and performs the transfer. The an external source. In the "Low" state, the RES input causes all OEm> line signals to the peripheral controller that the DMA registers, with the exception of the Address and Byte Count transfer is completed. Registers, to be reset to the logic "0" state. This disables all transfer requests, masks all interrupts, disables the data chain Transfer Acknowledge A IT x AKA) function, and puts each Channel Control Register into the The Transfer Acknowledge A (TxAKA) is a TTL compatible condition of memory write, Halt Steal transfer mode, and output used in conjunction with the CS/TxAKB llne to select address increment. the channel to be strobed for transfer and to give the DMA End Signal. In the two-channel mode, only TxAKA is used to select • Transfer Signals to the MPU channel 0 or channell, and CS/TxAKB is always an input. Two DMA request output lines and a DMA Grant input line, together with the system clock, synchronize the DMAC with the Chip Seleet/Transfer Acknowledge B (CSlTxAKB) MPUsystem. In the DMA mode, this dual purpose line is encoded together with TxAKA to select the channel being serviced. Table I shows DMA Request Three-State Control Steal (DRaT) the encoding order. This active "Low" output requests a DMA transfer for a channel configured for the TSC Steal transfer mode. This line is Table 1 Encoding Order connected to the system clock driver, requesting a tPl clock CS/TxAKB TXAKA Channel # stretch. It will remain in the "Low" state until the transfer has begun. 0 0 0 0 1 1 DMA Request Halt (DROH) 1 0 2 This active "Low" output requests a DMA transfer for a 1 1 3 channel programmed for the Halt Steal or Halt Burst mode transfer. This line is connected directly to the MPU HALT input and remains "Low" until the last byte has begun to be Transfer Strobe ITxSTB) transferred. The TxSTB causes acknowledgement to be given to the peripheral controller and transfers the data to or from the DMA Grant (DGRNT) memory. This line is also intended to be the VMA signal for the This is a high impedance input to the DMAC, giving it system in the DMA mode. In a one-cl1annel system, TXSTB may control of the system busses. For the TSC Steal mode, the signal be inverted and run to the peripheral controller's Acknowledge comes from the system clock drive circuit (OM A Grant), input. In a two or four-channel system, TxSTB enables the indicating that the clock is being stretched. For either of the decode of TxAKA and CS/TxAKB to select the device Halt modes, this signal is the Bus Avallable from the MPU, controller to be acknowledged. • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 75 HD6844,HD68A44,HD68B44-------------------------- Interrupt Request/DMA End (lRQ/DEND) and Data Chain Control Register (OCR) that controls data chain In the DMA mode, this dual purpose line is "Low" for the function. Refer to Table 2 and Figure I. last byte of transfer, indicating a DMA End. This occurs when These are Read/Write registers and MPU can exchange the the Byte Count register decrements to zero. data with DMAC when CS is at "Low" level. Ao-A4 specifies This line, through the decode of TxAKA and CS/TxAKB, the address of the registers. How to specify the registers is can be used to strobe a DMA End to each device controller. shown in Table 2. 2-byte ADR and BCR can be read or written by one instruc- • Address Lines to the Memory tion, using 2-byte instruction of the MPU. Address Lines (Ao-A,,) • Function of Internel Registers These output lines are in the high impedance state during the ADR (Address Register) MPU mode. In the DMA mode, these lines are outputs which are Each channel has l6-bit Address Register. Initial address of set to the contents of the Address Register of the channel being memory used for DMA transfer is programmed to this register. processed. The contents of ADR are output to address bus (Ao-Au) during DMA transfer operation. When I-byte transfer has com- • THE DMAC REGISTERS pleted, the 16-bit address is incremented or decremented by The H06844 (DMAC) has Address Register (ADR), Byte one. Count Register (BCR), Channel Control Register (CHCR), and The address which the MPU reads out is the renewed one, General Control Register (GCR). that is, the memory address for the next transfer. When I-block General Control Register (GCR) is composed of Priority transfer has completed, final memory address +1 or -1 is read Control Register (PCR) that controls priority among the chan· out. nels, Interrupt Control Register (ICR) that controls interrupt Table 2 Internal Registers of the DMAC Address Bus Signal Address Register Name Symbol Channel (HexadecimaH A4 A3 A, AI Au AORH 0 0 0 0 0 0 00 Address Register AORl 0 0 0 0 0 1 01 BCRH 0 0 0 0 1 0 02 Byte Count Register BCRl 0 0 0 0 1 1 03 AORH 1 0 0 1 0 0 04 Address Register AORl 1 0 0 1 0 1 05 BCRH 1 0 0 1 1 0 06 Byte Count Register BCRl 1 0 0 1 1 1 07 AORH 2 0 1 0 0 0 OB Address Register AORl 2 0 1 0 0 1 09 BCRH 2 0 1 0 1 0 OA Byte Count Register BCRl 2 0 1 0 1 1 OB AORH 3 0 1 1 0 0 OC Address Register 1 AORl 3 0 1 1 0 00 BCRH 3 0 1 1 1 0 OE Byte Count Register OF BCRl 3 0 1 1 1 1 CHCR 0 1 0 0 0 0 10 CHCR 1 1 0 0 0 1 11 Channel Control Register CHCR 2 1 0 0 1 0 12 CHCR 3 1 0 0 1 1 13 Priority Control Register PCR - 1 0 1 0 0 14 Interrupt Control Register ICR - 1 0 1 0 1 15 Data Chain Control Register OCR - 1 0 1 1 0 16 (NOTE) II All the registe .. can be acc....d by Reed/Write operation. Unused bit _of the regi'tor is reed out "0". 21 H/L of ADR and SCA means the higher (HI 8 bit,/thelower ILl 8 bits of. 16-bit registor. 31 Being allocated to continuous .ddr.... 16-bit ADA and SCA can be read or written by on. instruction. using MPU's 2-byte LOAD/STORE instruction. Aegi.ter Addre.. •.g. LDX $~. DC •........... [!ADAH 3) - (lndu Aegister HI] Address of DMAC (ADRL 3) - (Index Aegister II @HITACHI 76 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 --------------------------HD6844,HD68A44,HD68844 BCR (Byte Count Register) used to program the control information of its corresponding Each channel has a l6-bit Byte Count Register. Number of channel. Structure ofCHCR is shown in Table 3. DMA transfer words is programmed into this register. The con· (I) R/W Control (specifies the direction oftransfer) tent of the Byte Count Register is decremented by one every time Bit - CHCR Bit 0 one-byte transfer has completed. When it becomes "0", DEND This bit controls the direction of DMA transfer. When it output goes "Low" level and informs I/O controller of the end is at "1", R/W signal of'DMAC goes "High" level during of one·block DMA transfer. When IRQ is not masked, IRQ out- DMA transfer operation. This means to read out memory put goes "Low" level and MPU is interrupted to be informed of and write into I/O controller, that is, data is transferred the end of DMA transfer. Moreover, IRQ and DEND signals are from memory to I/O controller. output, multiplexed with IRQ/DEND pin. When it is at "0", R/W output goes "Low" level and data is transferred from I/O controller to memory. CHCR (Channel Control Register) Each channel has Channel Control Register. This register is Table 3 Bit Structure of CHCR (Channal Control Ragistar) Bit Function Name ReadlWrite No. "1" "0" Transfer from memory Transfer from I/O 0 RIW R/W to I/O controller controller to memory (R/W output = "High") (R/W output = "Low") 1 Burst/Cycle Steal R/W Burst Mode Cycle Steal Mode· 2 TSC/HALT RIW TSCMode HALT Mode· 3 Address down/up R/W Address: -1 Address: +1 4 Not used - - - 5 Not used - - - Busy Ready 6 Busy/Ready Flag R (DMA Transfer Operation) (No DMA Transfer Operation) 7 DEND Flag R DMA End & Interrupt No Interrupt • Burst transfer in TSC mode is prohibited. R: Read, W: Write Note that during DMA transfer operation, the function of performed by using MPU's TSC function or HALT func- R/W signal is accommodated to the memory Read/Write tion. When it is at "0", DMA transfer request signal is output operation. Therefore, on the side of I/O device during DMA from DRQH of DMAC. transfer operation, R/W input should be interpreted in When it is at "I", DMA transfer request signal is output inverse of the MPU Read/Write. That is, data should be out- from DRQ'f of DMAC. put when R/W input is at "Low" level (In the case of (4) Address down/up Bit - CHCR Bit 3 MPU's read operation, I/O device outputs the data when it This bit is used to decide that the address of memory is at "High" level). region used for DMA transfer should be renewed up (incre- This arises from that during DMA transfer operation, ment of address) or down (decrement of address). When it I/O side performs data transfer independently instead of is at "I", the address is decremented by one after one-byte MPU. Moreover, such fam"!!y LSI as H06843 (FDC), etc. transfer. When it is at "O"l the address is incremented by has this function and R/W signal is automatically inter- one. preted inversely. (5) Busy/Ready Flag Bit - CHCR Bit 6 (2) Burst/Cycle Steal Bit - CHCR Bit I This bit is a status flag to indicate whether its corres- This bit is used to decide that DMA transfer should ponding channel is performing DMA transfer or not. be performed in burst mode or cycle steal mode. When it (READ only) is at "I ", it specifies burst mode. That is, once DMA trans- When it receives the first TxRQ of its corresponding fer is performed, MPU remains stopped until one-block data channel, it goes to "I". When one-block transfer is com- transfer is completed. pleted and BCR becomes ''0'', it is reset to "0". When this bit is "0", it specifies cycle steal mode. That Also this flag is cleared when corresponding TxRQ_, is, every time one-byte transfer has completed, MPU takes Enable Bit in the PCR becomes "0". back the bus control, and DMA transfer and MPU operation (6) DEND Flag Bit - CHCR Bit 7 are performed in time sharing. This bit is an interrupt flag to indicate that one-block (NOTE) Only in the case of HALT mode, burst mode can DMA transfer of its corresponding channel has completed. be specified. In TSC mode, burst mode cannot (READ only). be specified. When one-block transfer of its corresponding channel is (3) TSC/HALT Mode Bit - CHCR Bit 2 completed and BCR becomes "0", it goes to "I". As soon This bit is used to decide that DMA transfer should be as this flag is read out, i.e. CHCR of this channel is read • HITACHI Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 77 HD6844,HD68A44,HD68B44-------------------------- out, it is reset to "0". PCR (Priority Control Register) Moreover, this bit is connected to IRQ output. When it Priority Control Register is a S-bit register to decide the is at "I" and IRQ enable bit (within ICR register described operation mode of priority control circuit. Structure of PCR is later) is at "1", IRQ output goes "Low" level. shown in Table 4. Table 4 Bit Structure of PCR (Priority Control Register) Bit Read Function No. Name /Write "1" "0" 0 TxRO Enable #0 (TxEN o ) R/W TxRO of Channel 0 is accepted. TxRO of Channel 0 is not accepted. 1 TxRO Enable #1 (TxEN,) R/W TxRO of Channel 1 is accepted. TxRO of Channel 1 is not accepted. 2 TxRO Enable #2 (TxEN 2 ) R/W TxRO of Channel 2 is accepted. TxRO of Channel 2 is not accepted. 3 TxRO Enable #3 (TxEN 3 ) R/W TxRO of Channel 3 is accepted. TxRO of Channel 3 is not accepted_ 4 - - - 5 Not used - - - 6 - - - Rotate Mode The order of priority is fixed at 7 Rotate Control R/W numerical order. R: Read, W: Write (I) TxRQ Enable Bit (TxENo -TxEN 3) - PCR Bit 0-3 This is a read-only bit and the status of IRQ output is Each channel has this TxRQ Enable bit. When it is at directly reflected on it. That is, when IRQ output goes to "I ", TxRQ input of its corresponding channel is accepted "Low" level, it becomes "I". to perform DMA transfer. When it goes to "0", TxRQ of its IRQ output of DMAC is output as logical OR of 4- corresponding channel is masked not to be received and channel DEND Flag according to the following equation. TxAK is not output. During DMA transfer operation, when IRQ = (DEND o ' IRQ Enableo) + (DEND, •IRQ this bit goes to "0" before BCR becomes "0", follOwing Enable,) + (DEND2 •IRQ Enable 2) + TxRQ input is not accepted and DMA transfer is inter- (DEND3 ·IRQ Enable3) rupted. Then contents of ADR and BCR remain unchanged. When it rises to "1" again, DMA transfer is reopened. OCR (Data Chain Control Register) Therefore, in the case of cycle steal DMA, it is possible for Data Chain Control Register is a 4-bit register and three of the program to change the priority of the specific channel those bits are used to control data chain function. Remaining temporarily by manipulating this bit. one bit is used to specify 2-channel/4-channel mode. (2) Rotate Control Bit - PeR Bit 7 Structure of DCR is shown in Table 6. When this bit is at "0", the order of priority among (I) Data Chain Enable Bit - DCR Bit 0 DMA channels is fIxed at numerical order. That is, Channel When this bit is at "1", data chain function of DMAC o is given a fIrst priority and then is followed by Channel is enabled. That is, when DMA transfer of a specified chan- 1->2->3. nel has completed and BCR goes to "0", the contents of When this bit is at "1", priority control is due to rotate ADR and BCR of Channel #3 are automatically transferred mode. That is, the channel that ended in the fIrst time is to ADR and BCR of the specifIed channel. given a fIrst priority and the channel ended in the last time (2) Data Chain Channel Bit - OCR Bit 1-2 is controlled to be given a last priority. These bits are used to specify which channel should be used for the data chain. How to specify the channel is ICR (Interrupt Control Register) shown in Table 7. Data Chain Channel bit specifies the Interrupt Control Register is a S-bit register to control IRQ channel to which data should be transfered from Channel output. Its structure is shown in Table 5. #3. Channel #3 contains the data for replacement. Channel (I) IRQ Enable Bit - ICR Bit 0-3 #3 is fIxed and cannot be changed. Each channel has IRQ Enable Bit. When this bit is at "1" (3) 2/4-channel Mode Bit - DCR Bit 3 and DEND Flag of its corresponding channel is set to "1", This bit has no relation to the data chain function. IRQ output goes "Low" level. But when it is at "0", IRQ It is used to specify whether CS/TxAKB is used for only output is masked not to be output even if DEND Flag is set input pin or I/O pin. When this bit is "0", CS/TxAKB be· to at ". comes CS input pin in 2-channel mode since TxAKB output These bits enable to control to output only a necessary is not necessary for application up to 2-channeL channel to IRQ. When this bit is "I", CS/TxAKB becomes I/O pin in (2) IRQ Flag - ICR Bit 7 4-channel mode (See Fig. 11). ~HITACHI 78 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------HD6844,HD68A44,HD68B44 Tabla 5 ICR (Interrupt Control Register) Bit Read Function Name /Write No. "1" "0" 0 I RQ Enable #0 R/W fRO of Channel 0 is able to be output. i"Fm output of Channel 0 is masked. 1 IRQ Enable #1 R/w I RQ of Channel 1 is able to be output. I RQ output of Channel 1 is masked. 2 IRQ Enable #2 R/W I RQ of Channel 2 is able to be output. I RQ output of Channel 2 is masked. 3 I RQ Enable #3 R/W I RQ of Channel 3 is able to be output. I RQ output of Channel 3 is masked. 4 - - - 5 Not used - - - 6 - - - 7 IRQ Flag R fRO output "Low" i"Fm output "High" (off state) R: Read, W: Wrote Table 6 Bit Structura of OCR (Date Chain Control Register) Bit Read Function Name /Write No. "1" "0" 0 Data Chain Enable R/W Data Chain is performed. Data Chain is not performed. The channel which performs Data Chain is specified. 1 Data Chain Channel ~ (The channel where contenU of AOR and BCR of Channel 2 R/W #3 are loaded.) 4·Channel Mode (CS/TxAKB is 2·Channel Mode (CS/TxAKB is 3 2/4·Channel Mode R/W designated to only input pin.) 1/0 pin.) 4 - - - 5 6 7 ) Not used - - - - - - - - - R: Read, W: Write Tabla 7 How to specify Date Chain Channel OCR OCR Specified Bit 1 Bit 2 Channel 0 0 Channel #0 1 0 Channel #1 0 1 Channel #2 1 1 - TTL Input or ,--------- r------OGRNT I I I ! r.- (BA of MPU) - - - - CS Input -to<.r --- CS Input I I CS ----2DMA Wait for MPU Response Wait for TxRQ Input Checkad ----, r/>2DMA L- DMA Transfer (A,-A ... R/W, TxSTB. TxAKA/B Output) Burst Mode Figure 13 Flow Chart of DMAC Operation ~HITACHI Hitachi America ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 81 HD6844,HD68A44,HD68B44----------------------------------------------------- DMA ,DMA TxRQ DGRNT TxSTB DRQH ( Forthi. period, both the MPU and the DMAC ) are In the wa It state. Figure 14 Extraordinary TxRQ Input (1) ( In the case where TxRQ is reset to ) "Low" before the transfer DMA 2DMA TxRQ DGRNT Both the MPU and the DMAC are ) ( in the wait state until the next TxRQ input. Figure 15 Extraordinary TxRQ Input (2) ( In the case where TxAQ doesn't fall to "Low" after the transfer has been completed. ~HITACHI 82 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------HD6844,HD68A44,HD68B44 HALT Burst Mode @ When BCR is not "0", TxRQ is checked at the falling edge In the case of cycle steal mode, MPU gets into Instruction of q,. DMA.When TxRQ is at "High" level, DMA transfer is Cycle everytime I-byte transfer has completed. But in the case performed through ® - ® again. When TxRQ is not at of burst mode, MPU remains stopped until I-block transfer is "High" level, DMAC waits for becoming "High" level. finished. That is, DRQH continues to be output "Low" level ® IRQ/DEND output goes to "Low" level. until BCR becomes "0" . @ DRQH output rises to "High" level and MPU gets into Its timing chart and flow chart are shown in Fig. 16 and Fig. Instruction Cycle again. 13 respectively. Procedure of transfer is the following (No. G) @ Ao - AI. and R/W get into high impedance state. - ® in Fig. 16 correspond to the following items). ® DGRNT falls to "Low" level. G) TxRQ input is checked at the rising edge of q,. DMA. When The transfer of the first byte (G) - ®) is performed in the it is at "High" level, it gest into the following operation. same way as that in HALT cycle steal mode. But in the second- ® DRQH="Low" level is given and MPU is requested to stop its byte and subsequent transfer, TxRQ is checked at the falling operation. edge of q,. DMA and if TxRQ is at "High" level, DMA transfer @TxAKA is driven. is performed at the following cycle. Therefore, a high-speed @MPU stops and DMAC waits for DGRNT rising "High" level. response (MAX. I by tell cycle) is feasible. ® When DGRNT rises "High" level, DMAC drives TxAKB, Ao In burst mode, TxRQ should be also, in principle, set to - A IS , and R/Wlines. "High" when 1/0 request is asserted, and reset to "Low" when ® TxSTB is sent out to perform DMA transfer. TxSTB goes to "Low". If TxRQ is asserted as level input with- o Address is incremented or decremented by one and number out being reset, DMA transfer is performed at all cycles of of transfer words is decremented by one. q" DMA since TxRQ is always at "High" level at the falling edge ® TxRQ falls to "Low" level. of q,. DMA. Its example is shown in the second-byte and the ® When number of transfer words is 0, from ® to @ third-byte transfer in Fig. 16. operations are performed. !lzDMA First.lJyte r- DMA TDunwny -r Second-byte Final-byte D M A T D M A -j Dead DRQH DGRNT TxAKA -: .. ~tTKD2 i ~ TxAKB ~ :-tTKD2 (output) : \l~l CS(,nput) I x 7 I i , x ~tATSD A.-AlS. R/W IS (output) :@ A.-A<. R/W x x I . : !I (input) IRQ/DEND Figure 16 HALT Burst Mode TSC Cycle Steel Mode extend clock E (q,.) of MPU. In the above-mentioned modes, DMA is performed by using (3) To DGRNT, the external clock control circuit inputs the HALT function of the MPU. In TS::: cycle steal mode, DMA response signals. is performed by using the TSC function of the MPU. In TSC mode, there isn't a burst mode. Because the MPU Its timing chart and flow chart are shown in Fig. 17 and clock cannot be extended for a long time because MPU per- Fig. 13 respectively. forms dynamic operation. When TSC mode is specified, DRQT Basic operation of the DMAC is the same as that in HALT returns to "High" and the MPU gets into the instruction cycle cycle steal mode, but the detailed timing is different. The differ- every time I-byte transfer has fmished. ence is explained in the following. (1) DRQT is used for DMA transfer request instead of DRQH. (2) DRQT is sent to the external clock control circuit to • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 83 HD6844,HD68A44,HD68B44------------------------- E 1.) TxRQ DGRNT I I I • :.---~@:. : tTKDI I tTKDI .--, TxAKA : \; ~I: ~ TxAKB (output) ---------+-. .I""""'t'~.:..:....;....----+-tTKDI :...-)+-_------ CS(intput) Ao-AlS, R/W (output) - : :-tAHO Ao-A•• R/W __-2M~P~U~_1Xl__!M~P~U~+-~>>---~--------:i--<<:,---~--M~P~U-----Xn-- (input) HtDED' HtDED! HtDEDI I \ : . __ ._.J - - - -_ _...l. When IFfel is put out Figure 17 TSC Cycle Steal Mode • Priority Control (Note) In this case. ZERO flag needs to be at "I" level. ZERO Balic priority Control flag will be described later. There are two kinds of the DMAC priority control function. If one of TxRQo-TxRQ3 is at "High" level, its channel is One is to mask TxRQ on each channel by TxRQ Enable bit selected, being given a first priority. Then it is latched by an of PCR. The other is priority·order·determining.circuit which executing.channel.number.latch.circuit to perform DMA trans· the DMAC has as a hardware. fer. Once an executing channel is determined and latched, it is Moreover, the priority- order- determining- circuit has two unchanged until its DMA transfer has been completed. That is, operation modes (the rotate mode and the normal mode). the channel number strobe signal of DMAC doesn't go to "I" Structure of the priority control circuit is shown in Fig. 18. and the contents of the channel·number·latch·circuit are un· As shown in Fig. 18, TxRQ of the channel whose TxRQ Enable changed. In the cycle steal mode, the channel is fixed until bit is at "1" level becomes an input of the priority-order.deter. I·byte transfer has completed. In the burst mode, it is fixed mining-circuit. Then it is checked whether TxRQ is at "High" until BeR becomes "0". level or not. ~HITACHI 84 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 -------------------------HD6844,HD68A44,HD68B44 TxRO Enabl. Bit of PCR Rotat. Mode BIt 3 2 Chann.1 Number Strobe SIgnal (Synchronous with (putput) A.- A15.R!W X X > x Input) RQ/DENo _______ ____________________ ..1.' C._ .:J \.._-- Figure 23 Channel Change (HALT Mode -+ HALT Mode) MPU MPU E (1/1,) ~ _ _ _ _ _ _ _ _ ___',..,L._ _ _ _ _ _ _ _ _ _r_"L.._ NDMA Tx_ TxRQB DRQT DGRNT -----------~----~'_____¥r-------ti---~'-----'r-------------- TxAKA , 'Hi:I ' ! 1M , : I : TxAKB (output) ;'-- (output) ---< < A,-A •. R/W (input) > IRQ/DEND \.... .. __! ______________ J <..... ~ _.~ Figure 25 Channel Change (HALT Mode .... TSC Mode .... HALT Mode) +2DMA TxRQ JjJJ YliZ!J \\\\\\ DRQH \ 1\ I DGRNT 6~7 \ !!17 ,'------- TxSTB' LJ TxAKA I \ I \ TxAKB \ I \ I * Executing Period of One Instruction Figure 26 Successive 2-byte Transfer of One Channel (HALT Cycle Steal Mode) HALT .... HA LT (by one channel) • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 89 HD6844,HD68A44,HD68B44------------------------- • Status Flag Also this flag is cleared when corresponding TxRQ Enable DMAC has BUSY Flag, DEND Flag and ZERO Flag on each Bit it. the PCR becomes "0". channel. The former two of these flags can be read out by DEND Flag MPU, but ZERO Flag cannot be read out. Set and reset timing This is the interrupt flag to indicate the end of DMA trans· of each flag are shown in Fig. 27. fer of its corresponding channel. After I·block transfer has com· pleted and BCR becomes "0", this flag is set to "I". This flag is BUSY/READY Flag reset to "0" immediately after the Channel Control Register This flag is set to "1" when it accepts the first·byte TxRQ having this flag is read out. of its corresponding channel. After I·block transfer has com· pleted and BCR becomes "0", it is reset to "0". Therefore, ZERO Flag while this flag is "I ", that is, its corresponding channel is being This is the internal flag to indicate whether the data stored in used, the next block transfer cannot be performed. the BCR is "0" or not (It cannot be read out). MPU MPU ~2OMA TxRQ In the case where ~ __.,.. _________ -::"_~Q is masked. ~/DEND-------r------------' BUSy/READY--------~ Flag DEND Flag _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\--..l ZERO Flag MPUWrlte BCR BCR ~ MPUR••d _ ______________ ~nL._ . - CHCR CHCR that has the flag is read out. Figure 27 Timmg of Status Flag (Suppose that BCR is 2 in the initial state) When BCR is "0", ZERO Flag is "0". When BCR is not "0", DENDpin. it is HI". The function of DEND output is to inform I/O controller of In the reset state, this flag is "0". If data that is not "0" is the end of I·block transfer. After l·block transfer has been written into BCR, this flag is set to "I". When BCR btl{;omes completed and BCR becomes "0", DEND output provides "0" after I·block data transfer has completed, or MPU writes "Low" pulse whose cycle is one clock, being synchronous with "0" into BCR, this flag is reset to "0" . the final I·byte data transfer. 4 channels have only one I>EN'D The function of ZERO Flag is to prohibit accepting TxRQ output in common, so each channel determines whether DENI> of its corresponding channel while this flag is "0" (that is, BCR output is its own output or not, combining with TxAK signal. is "0") (See Fig. 18). While ZERO Flag is "0", TxRQ is not When TxAK of the channel is "High" and DEND is "Low", accepted even if TxEN is "I". This function avoids an false it shows that the cycle is the last one of DMA (See Fig. 29 and operation even if "High" input is provided to TxRQ before the 30). initialization of the register. The function of IRQ output is to inform MPU of the end of When RES pin goes to "Low", this flag becomes "0", but the I·block transfer by interrupting it. As shown in Fig. 28, IRQ number in BCR is not reset to "0". Therefore, the state of this output is logical AND·OR of the interrupt flag (DEND Flag) flag and BCR are not the same. In this case new data should be and IRQ Enable bit of each channel. written into BCR (Then ZERO Flag becomes" I "). IRQ and DEND outputs are multiplexed. IRQ/DEND pin is used as DEND output during DMAC cycle and IRQ output • DMA End Control during MPU cycle. Moreover, DGRNT signal separates DEND Function of IRQ/DEND Pin and IRQ by its "High" or "Low". In detail, see Fig. 29 and ~MAC has IRQ output and DEND output to perform Fig. 30. DMA End Control. These are multiplexed outputs to IRQ/ ~HITACHI 90 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 -------------------------HD6844.HD68A44.HD68844 #0 # 1 DEND Flag »---- IRQ Output (CHCR BIt 71 #3 #3 #2 # 1 # 0 ~ IRQ Enable Bit (PCR Bit 0-31 Figure 28 Logic of I RQ Output ~2DMA T.AK l #O----------~~~I--------~ # 1 _ _ _ _ _ _ _ _ _ _~fiNlL_ _ _+ _ - - DGRNT iiEiiii \#0 #1 -------7'------------------------~ Figure 29 Timing of I ROIDEND Output $ HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 91 -~------ ~~~~~~- HD6844.HD68A44.HD68B44-------------------------- IRQ DMAGRANT Open Collector TTL DGRNT Channel Number IRQ/OENO # 'OJ OENO TxSTB --'LJo~- # I OMAC TxAKA b-DD--+---- :;) TxAK CS/TxAKB Decoder Figure 30 How to Use IROIDEND Output Signal Unusual DMA End ADR eCR Following section describes how to terminate or change normal sequence of DMA transfer. #0 #0 ~ ~ (I) When "0" is written into BCR When "0" is written into BCR before it becomes "0", #1 # I subsequent TxRQ are not accepted and this causes the ter- mination of the DMA transfer since the internal ZERO Flag is reset to "0". In this case, note that DEND pulse is not provided. (2) When "I" is written into BCR ( OCR specifies #2 #3 #2 #3 Channel #3 has address When "I", instead of "0", is written into BCR, only the the channel to and number of transfer which the contents words for the renewal. next TxRQ is accepted and I-byte DMA transfer is per- of Channe' #3 are formed. In this case, DEND pulse is provided, being syn- transfered. chronous with the last transfer. (3) When another value is written into ADR & BCR during the Figure 31 Data Chain Operation transfer When the data in ADR & BCR are changed during the trans- fer, the follOwing transfer is performed according to the Its detailed timing is shown in Fig. 32 and Fig. 33. As shown change of the data. in these figures the contents of ADR & BCR of Channel #3 (4) When "0" is written into TxRQ Enable bit are transfered to the channel during the clock cycle next to the When TxEN is reset to "0" during the transfer, this causes last one of I-block transfer (which provides DEND pulse). Then TxRQ comes not to be accepted and the transfer halts. But DRQH or DRQT provides "Low" output for one more clock the state is different from that in the case (I), the number cycle than in the normal case. Therefofe, MPU takes back the in BCR remains unchanged. Therefore, when TxEN is set to bus control again I-clock later than in the normal case, that is, "," again, the transfer is performed again. after the data renewal of the specified channel by the data (5) When RES pin is set to "Low" chain from Channel #3. When RES is provided during the transfer, the transfer In the TSC mode, the stretching period of cJocktPl is longer stops. than in the normal case. Then all of the control registers and their internal flags are The contents of ADR & BCR of Channel #3 remain un- reset to "0". But the data in ADR & BCR are not reset. changed as long as new data are not written by MPU, even if the data chain is executed. (Supplement) As for DEND output, DEND Flag and BUSY Flag in the case It is only in the cycle steal mode that DMAC registers such as of data chain execution, they function in the same way as in the BCR and ADR can be read or written during the transfer. In the normal case. They provide DEN'D pulse every time I-block trans- burst mode, it is usually impossible (But special external circuits fer has completed, and then DEND Flag is set to "'''. There- enable it). fore, in the case where more than 3-block data chain is needed, DEND Flag is used for the execution. Its sequence is shown in • Data Chain Function Fig. 34. First, DEND Flag="'" that shows the end of the first- The data chain function of DMAC is to transfer the contents block data chain is read out. Next, the data of ADR & BCR for of ADR & BCR of Channel #3 to ADR & BCR of a specified the third-block data chain need to be written into Channel #3, channel automatically and renew the data of them after the in parallel with the execution of the second-block data chain. channel has completed I-block transfer. (This data chain is feasible only in the cycle steal mode.) • HITACHI 92 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 -------------------------HD6844,HD68A44,HD68B44 Cycle under the execution of Data Chain - - - - - - MPU - - - - - - I f-DMA I' I !- M P U - - TxAQa -----~,~ _ _ _ _ _ _ _ _i__J/~-------- ,'------ T.I\KA iiiij>iiEND __ u u . . _______________ u _________ u __ . / ' ' _ __ _ ~~/--_ _. . ; 'C The contents of ADR .. BCR of Channel #3 are tranderad to Channal a. Figure 32 Data Chain Operation (HALT Mode) Cycle under the execution of Data Chain - - MPU ~ I- DMA-+I'---oj MPU - - - - - T._ --------"------------~~,~~---------------- I ---------------------~''----~-II----_r------------------------- , C!1ii , TxAKA TxAKB , CHa I CS(,.pul) x ...... x AD-All, R/W (outpul) < Ao-A..R/W (onput) ==~xc==>~--~--~<====~xc== iliQ/5iiIi ..~..~~..~..~..~..~.~..~..~..~..~--~\~__~,r--~------.-..-.-..-..-..-.-..-..-_.-.-_. The ocntants of ADR .. SCR of Channel #3 are trensfered to Chan nel a. Figure 33 Oata Chain Operation (TSC Mode) _HITACHI I·litachi America Ltd. • 2210 O'Toole Ayenue • San Jose, CA 95131 • (408) 435·8300 93 HD6844,HD68A44,HD68B44------------------------- T_AK u u DEND Flag BUSY Flag Channel #3 The data of ADR & BCR ADR) Wrote Signal for the third block BCR are written. Read Signal of CHCR of the SpecIfied Channel Figure 34 Sequence of More than 3-block Data Chain • DMAC PROGRAMMING request, set the appropriate enable bit (bits 0-3) of the Priority Preparation of a channel for a DMA transfer requires: Control Register, as well as the Rotate Control bit. 1) Load the starting address into the Address Register. If an interrupt on DMA End is desired, the enable bit (bits 2) Load the number of bytes into the Byte Count Register. 0--3) of the Interrupt Control Register must be set. 3) Program the Channel Control Register for the transfer If data chaining for the channel is necessary, it is pro- characteristics: direction (bit 0), mode (bits 1 and 2), and grammed into the Data Chain Register and the appropriate the address update (bit 3)_ data must be written into the Address and Byte Count Registers The channel is now configured. To enable the transfer for channel #3. Table B DMAC Programming Model Address Register Content Register (He_) Channel ,.. Bit 7 DMA End Bit6 Busy/Reedy Bit 5 Not Used Bit4 Not Used Bit3 Address Bit 2 TSC/ Bit 1 Burst/ Bit 0 ReadiWrite Control Flog Flog Up/Down Halt Steal (RiW) (DEND) PriOrity 14 Rotate Not Used Not Used Not Used T_RQ T_RQ T_RQ T_RQ Control Control Enable #3 Enable #2 Enab!~ #1 Eneble #0 (T_EN3) (T_EN2) (TxENll (TxENO) Interrupt 15 IRQ Not Used Not Used Not Usod IRQ IRQ IRQ IRQ Control Flog Enable #3 Enable #2 Enable #1 Enable #0 (lE3) (lE2) (lE1) (lEO) Data Chain 16 Not Usod Not Used Not Used Not Used Two/Four Data Chain Data Chain Data Chain Channel Channel C~annel Enable Select (2/4) Select B Select A * The x represents the binary equivalent of the channel desired. A comparison of the response times and maximum transfer Fig. 38 shows an example of its mmunum structure (1 rates is shown in Table 9. The data are shown for a system channel, HALT mode, combination with FDC). Fig. 39 shows clock rate of 1 MHz. an example of its maximum structure. (but only one DMAC is The two 8-bit bytes that form the registers in Table 10 are used.) - placed in consecutive memory locations, making it very easy to use the MPU index register in programming them. • HITACHI 94 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (4OB) 435-B3OO --------------------------HD6844,HD68A44,HD68844 Table 9 Maximum Transfer Speed & Response Time of the DMAC when tcvc!/> equals 1 Ilsec. Maximum Transfer Response Time (Ilsec) Mode Speed (Ilsec/byte) maximum minimum (executing time of (executing time HALT Cycle Steal one instruction) + 3 of one instruction) 3.5+ tTCS1 first byte +1.5 - tTOH1 HALT 1 Burst since second 2 - t TOH2 1 + tTCS2 byte TSC Cycle Steal 4 3.5-tTOH1 2.5+ tToH1 mll (Open Collector) Table 10 Address and Byte Count Registers Address Register Channel (Hex) Address High 0 0 Address Low 0 1 Byte Count High 0 2 Do---......--==- DEND. T.AK. Byte Count Low Address High 0 1 3 4 Address Low 1 5 Byte Count High 1 6 ~/T.AK Byte Count Low 1 7 Address High 2 8 Figure 35 One Channel Address Low 2 9 Byte Count High 2 A Byte Count Low 2 B Address High 3 C Address Low 3 D Byte Count High 3 E Byte Count Low 3 F DGRNT DEND. iRa/i5EiiiDII_-I>:I-......----+-I-/~ DEND, IRQ (Open Co "ector) T.STBI_-t)~::+=:[==~~---- T.AK. I DEND. DEND, DEND, DEND, T.AKAI--t:>o-L./":I;;.=t.__ r-+---- T.AK, DGRNT IRQ/DEND~--~~~-~--------~--~--~--~ Figure 36 Two Channel T.STBI_-4J~I_-~ T.AKA~---~.~~b--f~~-_+-~~-~-TxAK CSIT.AK T.AK (Open TxAK Collector) T.AK CS Figure 37 Four-Channel • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 95 HD6844,HD68A44,HD68B44--------------~----------- Address Bua Deg au. (16) (8) ,. Ao-AI5 0.-0, ::=:) IRT II 0.-0, HM6810 H06800 (MPU) +5V 3.3kQ - CS, Ao-A. .--- h R/W - R/W(RAM) - ~ IRQ VMA ;:::v- - - HM6810 (RAM) SA HALT o.MPU O,MPU ..,TTL HD26501 - -- · ,. (CPG) i· oil II I DGRNT DRQH IRQ 5 Decoder Ao-A. R/W As-Au " - ~ FD- CS E H06843 (FDC) 0.-0, --'I 0.-0, --I 8 HD6844 (DMAC) TxSTi -t> - TdK T,RQo - T,RQ R/W - - ...... il_ rr RES CS/T,AKB Vee VS. o.coder Floppy Disk Drive hDMA '-- - Figure 38 Example of DMA System Structure (1) (minimum) $ HITACHI 96 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------HD6844,HD68A44,HD68B44 DB AS VMA Ao-Als ~ ~MEM R~IIII'RQ I HD6600 (MPU) 110-0. ~ DB AS R/W ~ I-- f- ~MEM r-- -, VMA ~rv- ~ I-- I- HM6810 r- -. TSC IIA I , IRQ HALT ~ r-- READY -R£Q REF~ . , ! -- ' - AMPU _MEM ' - - - ftMPU MRDY HD26501 S~! (CPG) - ~ r- H> l· ~ D DRQ 1'-1 ~ ~ ~- ~) L.- DRQT - r DRQH At-At AI-Au r~ i., c=J I. 110-0. -.1 r-- - TxM -;:u DM_ HD8844 IRQ/DEN! H> r-- :;::- CSRlW I/O (DMAC) TxST1l TxAKA H> ""'c'-o HD74188 TxM K:::: t- DB TxRQ DEVICE CION'IROU..I!II HD8843 (FDC) I-- A 0 #0-3 ole. [}(;-~- RES J...)' E #2 Vee I CS/Tx_ D V.. - CS -- TxRQo-TxRQo o.....J - , "DMA RtW • QNn Collector - - Figure 39 Example of DMA Systam Structura (21 (maximum 1 • HITACHI Hitachi America Ltd. 0 2210 O'Toole Avenue 0 San Jose, CA 95131 • (408) 435-8300 97 HD6844'HD68A44'HD68B44-------------.,..------------- • APPENDIX Contents of the DMAC Registers (1) ADRO - ADRJ (Address Register) (1 ADR on each channel) H L 16bitx4 (2) BCRO - BCRJ (Byte Count Register) (1 BCR on each channel) H L 16 bit x 4 (3) CHCRO - CHCRJ (Channel Control Register) (1 CHCR on each channel) (6 bit x 4) "I" "0" Transfer Read Write ]--" Direction Transfer Bunt Cycle stoal Mode TSC HALT Address -1 +1 up/down B/R Busy Ready ) Status flag DEND DMA END / NOT END (4) PCR (Priority Control Register) (5 bit x I) 7 0 I~R~~~~~T~E~,~I·T~EJ,~~IE~I~I·T~EJ.I.---------+--"+I'-'---'+~'_'_____________ 1 1 0-'1 L---, TxRQ #0#1 Enable #2 + Enable/ Mask l #3 Specify Rotate Rotate / FIxed (5) ICR (Interrupt Control Register) (5 bit x 1) 7 0 "I" "0" II IE, liE, IIEI liE. I #0 Jt----=] IRQ #1 Enable #2 #3 Enable / Mask IRQ Flag IRQ output / NOT IRQ output Status Flag (6) OCR (Data Chain Control Register) (4 bit xl) 7 o ~4/21 ~ "'" "0" [I L1 Executed / NOT executed =i:?'haln Specify Data 00 #3 #0 ' - - -] Chain Chlnnel o 1 #3 -+ #1 10 #3-+#2 - Specify 4/2.channel 4-Channel mode / 2..,hannel mode mode • HITACHI 98 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD6345 ,-,1(,:, q~ CRTC- II (CRT Controller) .:: k:I'((h: /, ~\(lVC'" The H06345IH06445 CRTC-II provides an interface be- tween MPU and a raster scan CRT display. Both are upward- HD6345, HD63A45, HD63B45, compatible with the NMOS CRTC H06845S in pin and soft- HD6445-4 ware. The power dissipation is lowered by adopting the CMOS process. The H06345/H06445 offers a variety of functions under MPU control, such as programmable timmg signal outputs for CRT momtor and display screen control operation. It can be widely applied to the various types of CRT display systems. • FEATURES HD6345 PIN AND SOFTWARE COMPATIBLE WITH HD6845S HD6445 SOFTWARE COMPATIBLE WITH 6845S (DP·40) FLEXIBLE SCREEN FORMAT • Programmable numbers of characters per screen and rasters • PIN ARRANGEMENT per character row • Programmable horizontal/vertical sync signals and d,splay timing signals • Up to 16k words refresh memory (14 bltsi addressable • Programmable raster scanning modes: non-Interlace, inter· lace sync, or interlace sync and video modes • Up to 256 character rows per field HSYNC/EXHSYNC' • High·speed display operation at 4.5 MHz character clock RAo RA, • Double·slze vertical d,splay by raster interpolation RA, VERSATILE DISPLAY FUNCTIONS RA, • Screen split (max.4 screens conf,gurable, hOrlzontallyi RA, • Paging and scrolling for each screen Do D, • Smooth scrolling • Two cursors with programmable width D, • Programmable refresh memory width D, FACILITATED SYSTEM CONFIGURATION D, • 68 system bus Interface (HD6345) D. • 80 system bus Interface (HD6445) D, • Three-state control of memory address and raster address Cs • External synchrOnization In master-slave or TV sync modes RS E*, RO+ • Interrupt request by vertical blanking or light pen strode detection • Programmable tImIng signal for dual-port RAM In DRAM mode (Top V.ewi SINGLE +5 V POWER SUPPLY Additional functions to the HD6845S , HD6445 CMOS PROCESS * HD6345 • TYPE OF PRODUCTS Type No. Bus Timing CRT Display Timing HD6345 1.0 MHz HD63A45 1.5 MHz 4.5 MHz Max. HD63B45 2.0 MHz HD6445-4 4.0 MHz $HITACHI I Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 99 ... _-_.- _._----- HD6345/HD6445--------------------------------------------------------------------- • INTERNAL BLOCK DIAGRAM r---------------------------------------------lI I I I I I SCREEN CONTROL I LIGHT PEN CONTROL LPSTB R1S, RH, R28 I I I I I CLK --+-~-I HORIZONTAL TIMING CONTROL RO, Rl, R2 CURSOR CONTROL I CUDISPI Rl0, R1 1, R14. R1S. R34 I IRa/ACI R3B, R3S, R37, R38, R39 I I RASTER CONTROL At I INTERLACE CONTROL AS I REs DISPTMG DISPLAV CONTROL SMOOTH SCROLLING CONTROL MAO-MAil R29 L..._ _ _ _ _ _ _t-i-vf RAo-RA. HSVNCI VERTICAL TIMING CONTROL SYNC CONTROL EXHSVNC R4, RB, RB, R7, R27 R3 VSVNCI EXVSVNC CONTROL REGISTERS DECODER R30, R31, R32 W RS MPU INTERFACE STATUS REGISTER R31 I'ili I I ~---------------------- DATA 100-0,1 • SYSTEM BLOCK DI~GRAM 1------.....- - - - - - - - - . _ - - - - - - - - - - - ADDRESS BUS lAo-A" 1 MPU ~---~-4_----------+_---------_r-------- DATA BUS 100-0,1 \ RAo-RA. DOT CLOCK LPSTB LIGHT PEN CONTROL • HITACHI 100 Hitachi America Ltd, • 2210 O'Toaie Avenue • San Jase, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 • FUNCTION TABLE Item Descriptions Remarks Horizontal scanning cycle Programmable by char. clock time Vertical scanning cycle (by row) Programmable by char. row time Vertical scanning cycle (Adjust) Programmable by raster time Number of displayed chars. / row Number of char. rows / screen Programmable Number of rasters / char. row Screen Format Horizontal display position Enabled by programml ng sync Signal output timings Vertical display position Vertical sync pOSition (Adjust) Programmable by raster time HSYNC pulse width VSYNC pulse width DISPTMG skew 1 or 2 character skew Discretely programmable (Unit: row) Screen Split 4 spilt-screens start pOSitions programmable 2/3/4 screens format selectable Cursor display position Two 14-bit Cursor registers 1 or 2 cursors displayed Cursor height Display start/end rasters programmable within a row Cursor Control Cursor width Programmable by char. clock time Cursor blink 1/16 or 1/32 field rate selectable Simultaneous output of 2 cursors DIScretely programmable (Only 1 available in DPRAM mode) Cu rsor display mode OR/EaR mode selectable CUDISP skew 1 or 2 character skew Non-interlace mode Either one of three modes selectable Raster Interlace sync mode Scanning Mode Interlace sync and video mode Memory width programmable wider than dISplay Memory Format Memory width set width (Unit: char.) Smooth Display start raster address set Programmable by char. clock time Scrolling Target screen set Any screen selectable Raster Double-size vertical display Same raster address supplied twice Interpolation Vertical scanning cycle doubled External Superimposed display enhabled on other CRT or Synchronization with external sync Signals Synchronization TV screens Interrupt request signal caused by vertical blank- Interrupt Ing period or light pen input (Disabled In Interrupt request mode programmable Request DPRAM model 14-bit I ight pen regISter Light Pen Light pen raster address detected Light pen raster register 14-bit refresh memory address output Refresh Up to 16k words refresh memory accessible Four 14-bit screen start regs. Memory Paging and scrolling enabled for each screen (Display start address programmable for each Addressing screen) Three-State Three-state control on MA and RA Controlled by TSC pin input Control Programmable Programmable timing signal supplied from access In DPRAM mode Timing Output inhibit pin • HITACHI Hitachi America Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 101 H06345/H 0 6445,------------------------------------------------------------------------ • PIN FUNCTION Inputl Pin No. Symbol Pin Name Functions Output 1 Vss Vss - Ground (GNO) pin Performs external reset on CRTC-II RES assertion causes CRTC-II: (1 ) Clear all the internal counters (2) Set all the output signals at low 2 RES Reset Input (00-07 are excluded) (3) Clear registers R30 (Control 1), R31 (Control 21 Status), and R32 (Control 3) (Other registers are not affected at all) ~ is valid only while lPSTB is low lPSTB light Pen Strobe Input Informs light pen strobe pulse detection 3" Three State Performs threa-state control on memory end raster TSC Input Control address Memory Address 4-17 MAo-MA,3 Output Supplies memory address for periodical memory refresh 0-13 1B DISPTMG Display Timing Output Indicates a screen display period Displays curso~n a screen CUDISP Cursor Display Output Enabled during ISPTMG is high 19' ACI Access Inhibit Output Supplies DPRA~ access inhibit timing (programmable) IRQ Indicates interru;I~~eqUest to MPU Interrupt Request Output Enabled during 01 PTMG is low 20 Vcc Vcc - Power supply (+ 5V) pin 21 ClK Character Clock Input Receives character clock timing 22 WR Write Input Inputs write signal from MPU 23 E Enable (HD6345) Input Enables register readlwrite strobe signals from MPU RD Read (HD6445) Input Inputs read signal from MPU Selects either of address register or other registers Address reg. selected when at low, and others at high 24 RS Register Select Input Norm,ally, requested to connect to "Ao" of MPU address bus Performs addressing on CRTC-II 25 CS Chip Select Input MPU readlwrite upon CRTC-II registers enabled when CS is low Inputl 26-33 00-07 Data Bus 0-7 Bidrectional bus for data transfer between MPU and CRTC-II Output I Raster Address Supplies rater address for selecting raster on character 34-38 RAo-RA. Output 0-4 generator HSYNC Horizontal Sync Output Supplies horizontal sync signal 39" External EXHSYNC Input Receives external horizontal sync signal Horizontal Sync VSYNC Vertical Sync Output Supplies vertical sync signal .. 40' External EXVSYNC Input Receives external vertical sync signal Vertical Sync Note: * -marked pin function is alterable according to the register setting. _HITACHI 102 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------------------------------HD6345/HD6445 • INTERNAL REGISTER ASSIGNMENT Notes 1) *: Verticil: raster I Horizontal: character 2) . : "0" I. to be .et, .Ince these bit. may be used In the future. eH1TACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 103 HD6345/HD6445--------------------------------------------------------------__________ • FUNCTIONAL DESCRIPTION Table 1 Programmed Values in Each Register PROCRAMMABLE SCREEN FORMAT Register Register Name Programmed No Values Figure 1 illustrates the screen format example, in non- RO Horizontal Total Characters Nht Interlace mode, when programming CRTC-II registers as listed Rl HOrizontal Displayed Nhd in Table I. Figure 2 shows the relation between memory address Characters (MAo-MAn), raster address (RAo-RA4) and the location on the R2 HOrizontal Sync Position Nhsp CRT screen. Sync Width R3 Nvsw, Nhsw The timing charts of CRT interface signals are shown in R4 Vertical Total Rows Nvt Figure 3, and those details are partially shown m Figure 4 and 5. R5 Vertical Total Adjust NadJ R6 Vertical Displayed Rows Nvd HOrizontal Total Characters (Nht+1) R7 Vertical Sync Position Nvsp I HOrizontal DIsplayed Characters (Nhd) , \ Character R9 Max. Raster Address Nr (A • c } Row R12 R13 Screen 1 Start Address (H) Screen 1 Start Address (L) 0 0 R30 Control 1 0 HOrizontal R31 Control 2 I Status 0 Retrace R32 Control 3 0 Penod (Non· Notes 1) Nhd < Nht. Nvd < Nvt Display Period DISplay) 2) R30. R31. and R32 are cleared by • device reset. Vertical Retrace Penod J--- (Non.DlSplay) CVertical Total AdjUst (NadJ) Figure 1 CRT Screen Format Raster Address Row N~ t-IOrlzontal Dlsplav Period HOrizontal Rl!trace Period \ , \ £r 1 Ch.r----------"-'-..:....:.:..---------, , , -- "-------------------, 0 1 N"" 1 N NOtt o{: 1 No< 1 I I N.. t NOtt ° >{":, • N N"" N.. Nhd+ 1 : Nhd+1 - 2N .. 1 2N .. : 1 • - 2Nhcl 2N .. Nhd+Nht • NIId+N ht {, • 2N"" 2N .. 2Nhi+1 2Nhd+1 -- 3Nl' 3N -1 3Nhcl : 3Nhcl -- 2 N hdf N ht 2NhcI+Nht I I I I I ,... . t (Nvd r N -1 Nh ( 1) Nhd IN.. 11 N...+l 1 N +1 t - NvcI Nhcl : Nvd Nhd -1 1 Nvd Nhd t Nvd Nhd - 1) N.. +N" t (N ... -II N.. +N - • - Nvd Nhd Nvd Nhd+1 (N ... +IlN.. 1 (Nvd+ 1)N hcI Nw Nl+Nhl :, t , Nvd Nhd • • Nil(! Nhd+1 (N ... +llN...-l (N w +1)Nhd Nvd Nhd+Nhl I I I I I NVI Nhd NVI Nhd+1 - (NVI +1}Nhd --- NVI NhcI+Nt.. ("",+I)N". 1 : , N lNhd vt : NY! Nhd+1 • (N .. +l)N".-1 * (N vt +1)Nhd : Nyt-Nhd+Nht IN_Y N~c+r+' 1 (N YI +1) Nhd IN.. +l) N...+l - IN.. +2)N ... • (N .. +2)N ... -l 1 (N vt +2) Nhd (NYI+\)-Nhcl --- 1N..+Ui+M", N +lINh +N~ Valid memory addresses [0 thru (Nvd-1) or 0 thru (Nhd-1)] are shown WIthin the thick-line square Memory addresses are provided even dUring hOrizontal and vertical retrace penod ThiS IS an example In the case where the programmed value of start address register IS 0 Figure 2 Memory Address and Raster Address • HITACHI 104 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 Olaracter Clock Time 1: ~ Horizontal DIsPlaYed Chat'8etelS H / r Horizontal SV'nc Position r Horizontal Total Olal'8Ctl'rs : 0 I 1 2 N...-l Nt... N_ N.... +1 a 1 2 eLK L...f1...I""1JL ____________ JUl... __ ~ ..... __________________ ..I1.. _____ _ ~Horizontal Display NhdoTe--l I I : :I: ~. DtSPTMG -4' t+------fHorizontal Retrace: "I I I I 2: '. N_Tc I Nt-Tc---! I Horizontal Timing §" HSYNe : ___ n n I I : ,- Raster Cycle Tr . I I CD = (Nht+ll Te ~. MAo-M~:::::==:::~=~x=x:=:::=:====::::::=~:==:=:::::---------::_~:::: ~ RAo-R"4l I 0 ~ 1 ,- Raster Cycle Tr -, : ___________________ J ~ o I I q i. eLK L.flJlIL _________llIln.. __________ JU1.fL -------------llIlfL----------..nJlJln..-------JlllIlfl---- II MAo-M~::::_~:::--TITtrrr--:-------::::.::..J '0 EL::::n N", No. :::IXJ ? Nt. N", II :I Nt... ri&i N.. I N",+2 Nild lEE_ _=N... +2 Row Cycle Timing ~:t "" lii ~ - RAo-R" ~ 0 ~Tr I t L=:::::-_-::: t ~ .1 I ~ "~o 1 t Ma" RHterAddrea Row Cvcle TI = (Nr+l)·Tr CJ)(') ~~~~r! i ~ .... ~ - % I• II I I Row Cycle TI •I _______ I ~ ~ ~--------- --t--t-T~ :. : Frame Cycle TFRM II, ~ Vertical Timing ~ Row 101,121 I"~I ,"_I 1.. ':011 Number I I ' - ~-:.:.. Row I '---- -::~::, Syne '-+--t =::-1 Total TFRM : Frame Cvcle :. Venical Display Nvd·TI ,~i...... : ,J--k TFRM = (Nvt + ll·TI + Tadi ~ .m:ID.___.J11IC~:=::==:::-___-___-_-_-_·: __::===:::___:::____-::=@IUIl__J__v.rt''''.'''''' Tad): Adjustment Period of DISPTMG : : { i IULlt.r:.-:JUU[~= Frame Cycle I ' ...... _... A(See Fig. 4) ~T_ "--"''''815ee Fig. 5) Tadj = Nod) • Tr ______________________________ i VSVNC ~----------------------- ..,n .r-l~ Tvsw: Vertical Sync Pulse Width Tvsw = Nvsw·Tr :I: C m w .j>. Horizontal and vertical wavefonns when values shown in Table 1 are set into each register. CJ1 J: .... c m o(J'I .j>. .j>. CJ1 Figure 3 CRTC-II TIming Chart (Non-Interlace mode) ~ HD6345/HD6445,------------------------------------------------------------------------- ,:;-'.~------- .,:f-.~------Vertlcal , _ _ VertIcal D I 5 P I 8 Y - - - - - - - - - - - - - - - - <• Retr8CI------- ,: I' R~-RA.:~O~~1-1~2~1~3_1L-----~.=,-LI~o~I~1-L~2~1~3_1L_____~I~.~,~I~o~I_'~1~2~~3_L1___________ ,, Row Number !, Nvd 2 Nvd 1 Nvd , DISPTMG n.r-u-u--r:.-_-_-_-_ _=_~-.:_ ______=_-JLn'--__________________ Figure 4 Vertical Display / Retrace Timing (A detail drawing of Fig. 3 A) , f - : . o _ - - - - - - - - - v e n l c e l Retrace ----------O.~I;-.o----------Vertlca' D l l p 1 a v - - - - - - - ,1 , l i~ Frame Cycle Adjustment Tlmlng----' T.d,_ ••d,T, : ,,, Row Number Nvt DISPTMG",'_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _- - ' ,, Figure 5 Frame Cycle Adjustment T,ming (A detail drawing of Fig.3 B) SCREEN SPLIT Row Display Screen A display screen can be diVIded mto up to four parts in the Number horizontal direction. Divided four parts are defined as spht- screen I, split·screen 2, split-screen 3, and split-screen 4. Split- o 1 screen are controlled by using bits SP. and SP, of the control 2 I register (R30) and screen start position registers (RI8, R21, 3 R24). Split-Screen 1 4 Starting positions of each spht-screen are determined in the 5 number of character row. Split-screen I is the base screen, and 6 always starts at row 0, whlie the other three split·screens start 7 Split-Screen 4 at any row except row O. Paging or scrolling (by character) is performed in each spht·screen independently. 8 The following IS the example of screen split: Programmed Value of Screen 2 Start Position Register Row, Display Screen = Programmed Value of Screen 3 St8rt POSition Register Number Programmed Value of Screen 4 Start Position Register'" 6 0 Split·Screen 1 Figure 6-B Screen Split (Example 2) 1 2 Split·Screen 2 Row 3 Number Display Screen 4 o Spilt-Screen 1 5 Split-Screen 3 1 6 2 7 3 8 Split-Screen 4 4 5 Split·Screen 4 Programmed Value of Screen 2 Start POSition Register == 1 6 Programmed Value of Screen 3 Start POSition Register"" 3 7 Split·Screen 2 Programmed Value of Screen 4 Start POSition Register == 7 8 F'gure 6-A Screen Split (Example 1 ) Programmed Value of Screen 2 Start Position Register = 6 When the same value IS programmed mto more than one screen Programmed Value of Screen 3 Start POSition Register G8 start pOSition registers, split·screens corresponding to these regis- Programmed Value of Screen 4 Start POSition Register = 4 ters are not displayed. Figure 6-C Screen Split (Example 3) $ HITACHI 106 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 Raster Add ress HOrizontal Display Period HOrizontal Retrace Period Row Number \ .. --- /r--------------------~ \ r'1 Char 0 "' Nhd Nht Spilt-Screen 1 oC, I 0 1 1 . Nhd·1 I Nhd·1 Nhd I Nht C, Nhd Nhd+1 . 2Nhd·1 2Nhd - Nhd+Nht Spilt-Screen 2 o Ns2+Nhd Ns2 Ns2+1 ~ Ns2+Nht , +1 : I Ns4 Ns4+1 I Ns4+Nhd I , : Ns4+Nhd Ns4+Nhd Ns4+ Ns2' Start Address +1 Nhd+Nht , of Spllt-Screen2 Ns4 Start Address of Spllt-Screen4 + : ~~~~~~It -- ·Nhd Ns4+ , Ns4+INvt -Nvd+21 INvt-N vd+21 ·Nh d+Nht 1 'Nhd Figure 7 Memory Address and Raster Address In Split·Screens CURSOR CONTROL 3) Cursor Widths The HD6345/HD6445 can display two separate cursors (cur- The Widths of the cursor I and the cursor 2 can be speci· sor I, cursor 2) simultaneously on the screen. These two cursors fied mdependentiy in units of characters by using the are controlled independently. The cursor I is always valid, while cursor width registers (R38, R39), and bits CW I and CW z the cursor 2 becomes valid by setting the C, bit of the control 3 of the control 3 register (R32), If the cursor width register (R32), In the DPRAM mode, the cursor 2 cannot be extends over the following row, the cursor m the follow· displayed, ing row is not displayed The HD6345/HD6445 controls cursors as follows: 4) Cursor Blink I) Starting Position Cursor display, non·display, and bhnk rate can be con- Starting position is controlled by using the cursor I trolled by using bits B I and PI of the cursor I start address registers (RI4, RI5), and the cursor 2 address register (RIO), and bits Bz and Pz of the cursor 2 start registers (R36, R37), register (R34), 2) Cursor Heights 5) Cursor Display Mode The heights of the cursor I and the cursor 2 can be When the cursor I and the cursor 2 are overlapped on the specified independently m units of rasters by using the screen, cursor display mode m the overlapped area can cursor start registers (RIO, R34), and the cursor enC be specified by the eM bit of the control 3 register (R32), registers (RII R35) as shown in Figure 9, Display Screen HITACHI Cursor 2 ~ursorl + CRTe-II ~ • Cu rsor 2 Start Raster Cu rsor 2 End Raster i Cursor Height ----<10 _ Curso, Width , Figure 8 Cursors ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 107 i HD6345/HD6445---------------------------------------------------------------------------- OR MODE ICM=ll EOR MODE ICM=O) DIsplay Screen DIsplay Screen Cursor 1 Cursor 1 Cursor 2 Cursor 2 "OR" of the cursor 1 "EOR" of the cursor 1 and the cursor 2 and the cursor 2 Figure 9 Cursor Display Mode RASTER SCANNING MODE to the top of the raster line is designated as 'one field'. In the The HD6345/HD6445 performs a character display in three non·interlace mode, one field configures a single frame (Figure types of raster scanning modes: non-interlace mode, interlace 10). In the interlace sync mode and the interlace sync and video sync mode, and interlace sync and video mode. The bits V and S of mode, a single frame period is shared between two alternating, the interlace mode and skew register (RS) control these modes. even and odd, fields (Figure 10). The period that the raster scans across a screen and returns Retrace even fIeld odd field Non·1 nterlaced Scanning Interlaced Scanning Figure 10 Raster Scanning Mode In the Interlace sync mode, the scanning lines m the odd Table 2 Start Raster Address for Each Row field are placed downward by 1/2 raster line space from those (In interlace sync and video mode) in the even field because of the dIfference in HSYNC/VSYNC phases between two alternating fields. ~ Total Number In the mterlace sync and VIdeo mode, the placement of the of Rasters Even Field Odd Field scanning lInes IS the same as 10 the interlace sync mode. How- In a Row ever, the alternatmg even and odd raster lines are displayed in the alternatIng even and odd fields. For a given number of Even Even address Odd address rasters per character, thIs mode allows twice as many characters to be dIsplayed In the vertIcal direction as the non-interlace and Even Char. Row' Even address Odd address the interlace sync modes Note that the raster address is suppli- Odd I Odd Char. Row' Odd address Even address ed 10 the different way accordIng to the total number of rasters In a row, even or odd, as shown in Table 2. \It The start row address 15 assumed to be "0" (even). ~HITACHI 108 Hitachi America ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------IHD6345/HD6445 Figure 11 illustrates the raster scanning example in each mode. Raster Address Raster Address Raster Address Raster Address 0 0--------------- ----------------0 2 • • •• l---i.-----------i..._ --1 ------ -- 2 ---4__- - - - - - - -__- --1 ---------1 t-- 2 -- 1 3 • • 3 ~__- - - - - - - - . - -~ - - - - - - - - -3 4 ••••••••• Row 0 4---i__--------~- 5 --'~...H-.-H:;..-H;..:-H--.-H_-~..._- 4 [.I;KZZZ _ 5 RowO 6 • • 6---i.[~--'----------_H..._ -~ ~-------- • -6 • 7 ~.----~t-- r-------- -7 8 • • 8 -H.._--------__- --- ----- -- 8 9 A • • 9-H.._--------__- -.., r-------- A----------------- -- 9 B B----------------- --------------8 Non-I nterlace Mode Interlace Sync Mode Aaster Address Raster Address Raster Address Raster Address .... 0---------------- --- --1 o ~-------- -1 2 4 6 8 ..... -------- -------- ~-7 -3 -5 RowO 2 4 -.., ~-------- 6~t_---~t_ ~ --------- 8---i.--------~._ -- 3 -- 5 - 7 RowO -------- ~-9 --------- -9 A----------------- A----------------- --- ------------B o --------------- ----------------0 ..... 1 -~ ------- t-- 1 --------..., r-2 2----1. .---~__ 3~t_---~t_ -------- -3 5 -- ~..;;:_;,;:~;.-..;;. -- 4 4 Row 1 -, ~ -5 Row 1 r~-~.:-:..:-:.::""- r-6 6 7 -------- -- 7 --1 --------- -- 8 8 9---i.--------~._ --------- - 9 -~ ---------------A A---------------- ---------------- B Interlace Sync and Video Mode Interlace Sync and Video Mode (even rasters per row) (odd rasters per row) Note: Refer to Table 2 for raster address output In the interlace sync and video mode. even field odd field Figure 11 Raster Scanning Example _HITACHI Hitachi America Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 109 ------ ~- - - -------- I ~ ~ oCJ) o w (1) Interlace Sync Mod!! "'" (Jl I Frame--------,----------- - -- - - - - - - - - - - o CJ) ' - - - - - - - - - - - - - - - Even Field Odd Field - - - - - - - - - - - " : ~:- Row#O -~;- . Row#1 ---: : ~ Row#Nvsp, ' ~ : Adjust '-- Row#Nvt --:- Ras~W#O - - - Row#1 I ----: ~ Row#Nvsp -----i ' , ~-- : Adjust Row#Nvt - : - Raster-: : "'"'"" (Jl ::I: ~""-AA.~ -x::i!Ct!:X::i:X ~ - o:.ox -:x!EX -:c:n::cc -- -~... 0 r JG:X:E2 .-,.[' , Row#N:SP :..--. -rIO.' -:t.~i'l:' : f-.. - ~[~I ~.~ _ _ 12 Raster-: _Row#O-I-.·-;~_Row#1_.I z_, ~ ~ •• 1 Z -2 , ,--.-.-Row#Nvsp~ , ~z' : :--Row#Nvt~1 ~ : '1' Adjust : Raster---: Z_l~ ""'W-."1c:Ix::rx: -.-.- -:i:::I:x:ix:x:::x ::x::IX2X -x:::::x:u:: ~ ~ -- -::c:x-:x:rr:zx: - ~- __ n_~ -f:5 ~ 'I:J nn--..L.....L : j ) V$Y~\ ; -~~.~ , : ! --~~-=. ~ T. r==.::=;' " §; ~ , Nvt = Even Nvsp = Even ': ' ,. Even" ' : " / Even : Adjust ~ J; f' , : ,Row#Nvsp ( : f Adjust , ._,-Row#O~Row#l0"ff'l :ROw#NVSe~'2 :--Row#Nvt .ti'1+zRaster::-;-Row#"'~,~Row#1~.2 2~+1 :Row#N~~l;-J+l Raster---;_z ~ ..._...CIX'D(nm~1:3:: - :IT,GX ..:Ex:-XECrr nn~ £J6::x::rru~ ~ - :p:::rrx: ~ :-- :x::IJcrX 1::::X:Dc E ...~: • . ~;'~cl: :. • : ~; . . ; ~ : Nvt::; Even. Nvsp::; Odd , I , Even; Ad.ust ' : : ", ! i , , Adjust , ".:[tl~' Row#1 '1"'1 :" : Row#Nvsp ," /. J; . . • : ROwHNv~ster~RowH0A .f::::fu:rr ~,2' :+'0 ~W#1*1ff ~RoW#N~~~ Raster ~ -~~-±:un: "b: >--- ,["" :.-RoW#NvsP,-;iff., -:-RowHO ..... -Il"'.~-- ......:x::::xIX::LX: ~ :b:xrr ~fi - :h:rrx _moo· - t >--. ."~: ~ Z , - Z --;;'r:=-==; --< " ••••••--; :x:n::nc 1:::Px,JE$' • ~~~------------------~ Figure 12 Raster Scanning Timing ----------------------------------------------------------------------------HD6345/HD6445 MEMORY WIDTH SETTING The offset value which is the difference between the display HITACHI HITACHI HITACHI screen width and the display memory width m the honzontal CRTC-II CRTC-I1 CRTC-I1 DISplay Screen direction can be specified in umts of characters. (See Fig. 13) Scrolling in any direction can be accompllshed m umts of HITACHI HITACHI HITACHI characters, by setting the display memory width (horizontal CRTC-I1 CRTC-I1 CRTC-I1 direction) and the offset value, and by changmg the start ad- HITACHI HITACHI HITACHI dresses of spilt-screens 1-4. This IS performed by the memory width offset register (R33) and the MW bit of the control 3 CRTC-I1 CRTC-I1 CRTC-I1 register (R32). HITACHI HITACHI HITACHI CRTC-I1 CRTC-I1 CRTC-II Change of Start Address HITACHI HITACHI HITACHI CRTC-I1 CRTC-I1 CRTC-I1 Display Screen Width Offset Value HITACHI HITACHI HITACHI CRTC-I1 CRTC-I1 CRTC-I1 01 spl ay Screen HITACHI HITACHI HITACHI CRTC-I1 CRTC-I1 CRTC-I1 HITACHI HITACHI HITACHI Figure 13 Memory Width CRTC-I1 CRTC-I1 CRTC-I1 Figure 14 Scrolling by Memory Width Setting Raster Address ,r ------=--=....:.::-=....:::::..:....:...::.:..:.:=------....\ / HOrizontal Display Penod HOrizontal Retrace Penod --- Row Number \ 1- -Ch ar. \ ~C, 0 I , 1 • • , Nhd-l Nhd t Nht I • - 0 1 Nhd-1 Nhd Nht ~ 1 C, Nhd +NOF Nhd+NoF +1 • 2(N",,+NoFl -I 2(Nhd +NOFI Nhd+NOF +Nht ~ ~ ~ o ~ ~ j j :, (N ... -l1 (N v d-lI (N",,+NoF) (Nhd+NOFI +N. N~ N~ (Nhd+NoFI (Nhd+NOFI , +N". ~ N•• IN,,,,+No.oI (N .... +l) ,, (N...,+ll (Nhd+NQfl (NIId+NoFI +N. NOF offset value written In the memory Width offset register (R23) Figure 15 Memory Address and Raster Address in Memory Width Setting ~HITACHI Hitachi America Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 111 HD6345/HD6445----------------------------------------------------________________________ SMOOTH SCROLLING Smooth scrolling is performed by bits SSt -SS. of the con- Smooth scrolling in the vertical direction can be accomplish- trol 2 regIster (R3l), and the smooth scrolling register (R29). ed by changmg the start raster address in a character row. Whe- Smooth scrolling can be used in the non-interlace mode and ther scrolling in each split-screen is available or not can be the interlace sync mode, but not in the interlace sync and video selected. Selected split-screens scroll m the same way up to mode. four spht-screens simultaneously. RA=O •1••••1•• RA=2 ••••••• 4 I I •• •• • • Row Number N 3 Row Number N 4 • • RA=O ••• Data In the follOWing row (R29) Programmed value = 0 •••• (R29) Programmed value = 2 Figure 16 Smooth Scrolling Raster Address Row Number- HOrizontal Display Penod HOrizontal Retrace Penod r-~~------------------------~/r--------------- 1 Char o{:§EEE'~~.~Nh~d~ Row Number o{ Raster Address N, 0 g *l Nr o 0 Nhd 1 17hd+, ~I\! ~~----¥----t----------------~----i-----t-----_t----_l Ie ~ 1 I 2Nhd/ N2r~ 2Nhd +1 • Nhd-' Nhd 1 I{ 2 N., N, 0 / 0 (Nvd·' ) 1 2 ".{ NOl -1 • Nhd Nvd Nhd : ··h N, "t> 0 2 lNv~+11 N"" N, B I ~ ~ ] z ~ ~ > N'd,-l (N",,+l) N"" NOdi + 1 (N)'d+2) NM (Nvd+2)·Nhd+Nht Figure 17 Memory Address and Raster Address in Smooth Scrolling (R29=2) $ HITACHI 112 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------------------------------IHD6345/HD6445 HITACHI CAT CONTROLLER r------;CmRTI~T~~M~r--------~ CONTROLLER + r Spllt-Screen 1 Spilt-Screen 2 * Figure 18 Smooth Scrolling In the Spirt-Screens (Spilt-screen 2 IS scrolling.) RASTER INTERPOLATION In raster interpolation, the raster address IS Incremented register (R3I) This function can be used In the non-Interlace every two rasters, thus the displayed image is doubled in the mode and the interlace sync mode, but not In the Interlace sync vertical direction. The vertical scanning cycle is also doubled. and video mode. Raster interpolation is performed by the RI bit of the control 2 Figure 19 is an example of display With raster interpolation. Raster Address Aaste r Address --------i_- o .......------........,- O ..... Repeated Raster Address lH 1 2 > 3 I 4 4 Normal Scanning Raster Interpolation Scanning Figure 19 Raster Interpolation Normal Scanning ~ Raster :VCle Tr 1~---......,Xr-------.X,..--3--,X,.----4--- ~~~~~~s { Raster Interpolalron Scanning ===x_______ o______~x~ ______~____~x~______ Figure 20 Raster Address Output and Raster Interpolation • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 113 HD6345/HD6445i----------------------------------------------------------------------------- EXTERNAL SYNCHRONIZATION (I) Phase of master CRTC-I1 clock matches with slave External synchronization (EX sync) has master-slave mode CRTC-I1 clock at rising edge of VSYNC. and TV sync mode. The EX sync mode is controlled by bits VE, (2)Both master and slave CRTC-I1's have the same horizon- VS, and TV of the control 1 register (R30). tal/vertical scanning cycle. Master-slave mode is used to synchronize slave CRTC-I1's In the interlace sync mode and interlace sync and video mode, with a master CRTC-I1 by VSYNC of a master CRTC-I1. When the control I register must be set as to provide VSYNC output in superimposing a master screen with slave screens on the same odd fields of master CRTC-I1. CRT, clocks of a master and slave CRTC-I1's can operate in Figure 21 illustrates the system configuration. different frequency on conditions shown below. MPU Figure 21 Master·Slave Mode TV sync mode is used to synchronize the CRTC-I1 with the In the interlace sync and video mode, the TV sync mode can- HSYNC and VSYNC signals of a TV's video signal. not be used. In the TV sync mode, VSYNCjEXVSYNC and HSYNCj In the IV sync mode, when performing slave CRIC raster EXHSYNC pins function as input pins. The length of horizont· interpolation, interlace sync mode or interlace sync and video al back porch IS specified by the bits 0-3 of the sync width mode must not be set in a master CRIC; otherwise the screen to register (R3) and determines the dIsplay positIOn in the hori- move up and down by one raster. zontal direction. FIgure 22 illustrates the system configuration. TV MPU Figure 22 TV Sync Mode • HITACHI 114 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 External sync is valid on the conditions shown in Table 3. Table 3 External Sync (V: valid, I. invalid, -: program Inhibited) Sync Mode ~e Master Mode Non·lnterlace I nterlace Sync Mode I nterlace Sync and Video Mode Non·lnterlace Mode V I I Master·Slave Mode Interlace Sync Mode I V V Interlace Sync and I V V Video Mode Non·lnterlace Mode V - - TV Sync Mode Interlace Sync Mode V - - Interlace Sync and Video Mode V - - Note) Slave CRTCs are always non-Interlace mode In TV sync mode. INTERRUPT REQUEST the mterrupt request IS generated, an interrupt request sIgnal is An interrupt request SIgnal to the MPU is output 10 the tim- output durmg the horizontal and vertical retrace period. ing shown in FIgure 23. An interrupt request IS generated by the In the DPRAM mode, an mterrupt request sIgnal is not out- vertical blanking period, or the light pen input. put. Reading the status register (R31) clears an interrupt request ThIs functIOn IS controlled by usmg blls IB and IL of the signal. Thus, IfMPU does not read the status register (R31) when cantrall regIster (R30). Display Penod /t Retrace Penod 11---_ _T --If--Iul DISPTMG--------.,U ~ I ---J~--7~ I nterrupt Request Signal When an Interrupt request occurs dUring the display CUDISP penod "T", an Interrupt t request Signal IS output Cursor 1 dUring the blanking penod. I I An Interrupt request Signal I IS cleared by reading the status ---------------------~~ regISter (R31) Status Read Figure 23 Interrupt Timing _HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 115 HD6345/HD6445--------------------------------------------------______________________ THREE·STATE CONTROL OF MA/RA By using this function, multiplexer (MPX) which selects ad· Memory address (MA) and raster address (RA) outputs can dress lines from MPU and CRTC-II for refresh memory is not be three·stated, using the TSC input pin. Three·state control is needed. enabled by setting the TC bit of the control 3 register (R32). ADDRESS BUS MPU DATA BUS GBUFFER LPSTB ! MPX I L_ ,... -., I-,j REFRESH -- CRTC MA.IRA) MEMORY '----- Note. When uSing DRAM as refresh memor y, DRAM refresh Circuit is needed. Figure 24 Three·State Control DPRAM MODE In the DPRAM mode, an interrupt request signal is not out· When the DPRAM mode is selected, the HD6345/HD6445 put, and the cursor 2 is not displayed. generates a programmable timing signal from the access inhibit This timing signal is available by using the DR bit of the pin. This signal, shown in Figure 25 as access inhibit period, control 3 register (R32), and the cursor 2 width register (R39). provides the timing for the MPU to access to dual-port memory. ClK ~------ , I I , I 1 1 I 1 1 MA =:x 1 1 1 1 1 r~~~~~~ 1 I I ( X X X ¥ 1 1 1 I t= I 1 1 I 1 1 1 - - - - Display Period Retrace Penod Display Pertod DISPTMG I i i I I1 I I ----'l<--, Ii- __ Cursor' I I . - - - - - - - - - - - 1 1I I1 CUDI.SP I, 1 I I =1 ! FAccess Inhibit Period I IAI 1 I I 1 The Programmed Value of 1!: ~1~-----I~th-e-C-u-rs-o-r-2-W-'-dt-h-R-e~9-IS-te-r-IR-3-9-) ~~I __ .. : : 1·· : I : I 1 l : : I 1 ' I 1 I :: : : I :' The AI Bit Iblt 7) of the Status RegISter I R31 ) I ~1 Char=! 1 (BI I L.. ------------,j.I 1 ~ 1 Char 1 (BI L o The AI bit mdlcates the access Inhibit period (A) and the first character penod (8) In each raster Figure 25 DPRAM Mode Output Timing • HITACHI 116 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------------------------------HD6345/HD6445 • INTERNAL REGISTERS pulse Width IS programmed from ]·to·16 raster times m the H06345/H06445 has one address register (AR) and forty hlgh·order four bits When 0 IS programmed m the hlgh·order data registers (RO - R39). One register out of 40 data registers IS four bitS, a vertical sync pulse Width IS 16 raster times (16H), selected by writing the address number of the register mto the address register. Then the MPU can transfer data to or from the Table 4 HOrizontal Sync Pulse Width selected data register Write 0 to unused data bits (appear as r=J in the register HSW Pulse Width table), since these bits are reserved for the future extensIOns. 2' 2' o o 0 0 Not Used ADDRESS REGISTER (ARI o o 0 1 1 CH o 0 0 2 o 0 1 1 3 o 0 0 4 This register specifies the address number of the data register o 0 1 5 to be accessed. When both RS and CS are at low level, thiS o 0 6 register IS selected. Programming the data from 40 to 63 pro- o 1 7 duces no result. o 0 8 o 0 1 9 HORIZONTAL TOTAL CHARACTERS REGISTER (ROI o 0 10 o 11 0 0 12 0 13 This register determines the horizontal scanning cycle. The 0 14 programmed value is the total number of displayed and non· 15 displayed characters per raster, minus one. CH Character Clock Time In the interlace sync mode, the programmed value, Nht, must be odd. Table 5 Vertical Sync Pulse Width HORIZONTAL DISPLAYED CHARACTERS REGISTER (R11 VSW Pulse Width 2' 2' 2' 2' 0 0 0 0 16 H 0 0 0 1 This register specifies the number of displayed characters per 0 0 0 2 row. Any number less than the total number of characters can 0 0 1 3 be programmed mto this register. 0 0 0 4 0 0 1 5 HORIZONTAL SYNC POSITION REGISTER (R21' 0 1 0 6 0 1 1 1 0 0 0 8 0 0 1 9 This register is used to program honzontal sync position as a 0 1 0 10 multiple of the character clock time. The programmed value IS 0 1 1 11 the character number of horizontal sync pOSItion, mmuts one. 0 0 12 Any number equal to or less than the horizontal total charac- 0 1 13 ters register value (RO) can be programmed. When the pro· 0 14 grammed value of this register is increased, the display pOSItion 15 on the screen is shifted to the left. When the programmed value is decreased, the display position is shifted to the right. Thus H Raster Time the optimum horizontal position can be determined. VERTICAL TOTAL ROWS REGISTER (R4) SYNC WIDTH REGISTER (R3) R/w Data Bit I Program Unit I R/W I 7 I 6 I 5 I 4 I 3 I 2 I 1 I 0 I H: Character I W I Nvt INa. of Char, Rows - 1) W Wv, IWv, IWv, IWvo IWh, IWh, IWh, IWho I V' Raster This register determmes the vertical scannmg cycle. The pro- This register determines the widths of both honzontal sync grammed value is the total number of character rows m a field, pulse and vertical sync pulse. The horizontal sync pulse Width is minus one. programmed from I-to-15 character clock times in the low· order four bits. Zero cannot be programmed. The vertical sync _HITACHI' Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 117 HD6345/HD6445,---------------------------------------------------------------------------- VERTICAL TOTAL ADJUST REGISTER (R5) C, CUDISP Co Data Bit Program Unit RNI j 0 0 No skew I I 1 1 7 I 6 I 5 J 4/ 3 / 2 / 1 / 0 / Raster w 0 One character skew - 1- 1- 1 Nadl (No, of Rastersl 1 0 Two character skew This register determines the number of additional rasters to Not available adjust total number of rasters in a field, The optimum number from O-to-31 can be programmed, Thus fine adjustment of vertical scanning cycle is performed, VERTICAL DISPLAYED ROWS REGISTER (R6) ClK Data Bit 1 Program Unit J RNI i IW 7 / 6 / 5 / 4 / 3 / 2 I 1 / 0 Nvd (DISplayed Char, Rowsl Row CUDISP [ ~--------- ;------1 One Character Skew This register speCifies the number of displayed character rows Skew ILn ___ nn in each field, Any number less than the total number of charac- ter rows can be programmed into this register. No Skew lone Character ~~~~----~ [ VERTICAL SYNC POSITION REGISTER (R7) DISPTMG rs-_--' -o~~cj,aracte~ "-s..;.ke.,;,w'--__ Data Bit / Program Unit / RNI 1 16 1 5 14 1 3 1 2 1 1 1 0 Nvsp (Vertical Sync Position - 11 i Row Iw I Figure 26 D ISPTMG and CUDISP (One character skew) This register is used to program vertical sync position on the MAXIMUM RASTER ADDRESS REGISTER (R9) screen as a multiple of the character row time, The programmed value is the character number of vertical sync position, minu,s one, Any number equal to or less than the vertical total rowS' register value (R4) can be programmed, When the programmed value of this register is increased, the display position is shifted This register determines the number of rasters per character up, When the programmed value is decreased, the display posi- row. When n means the number of rasters, the programmed value tion is shifted down, Thus the optimum vertical position can be is as follows: determined, non-interlace mode, interlace sync mode: n - 1 • interlace sync and video mode :n - 2 INTERLACE MODE AND SKEW REGISTER (R8) Data Bit 1 Program Unit 1RNI 1 (1) Non-Interlace mode 7161514131211101 C, 1Co 10, 1Do j - 1 - 1 vis 1 II w Raster Address 0------- Number of rasters : 5 Programmed value : Nr = 4 This register selects the raster scanning mode and controls 1 the skew (delay) of CUDISP and DISPTMG outputs, 2---- • Raster Scanning Mode (V, S) 4------ The low-order two bits select the raster scanning mode, (2) Interlace sync mode Raster v S Raster Scanning Mode Address o o Non-interlace mode 0------- ----------- .... - - - . even fIeld o 1 Interlace sync mode --------- : odd field Number of rasters o Non-Interlace mode Programmed val ue . Nr = 4 Interlace sync and video mode 3 ------ 4----- • Skew (C" Co, D" Do) The bits 0,/0 0 and C ,/Co specify the skew of DISPTMG In the interlace sync mode, a half number of rasters per row and CUDISP outputs, respectively, Skew control makes these mInUS one should be programmed. output timings match with the serial video signals by delaying (3) Interlace sync and video mode these outputs as programmed, in order to assure the access time Raster to refresh memory and character generator. Address 0--------- - - - - - . even field DISPTMG 2 ------------- 1} Row ------- : odd fteld o 0 No skew 4 ----------- 3 , Number of resters . 5 o 1 One character skew Progremmed velue : Nr = 3 o Two character skew In the interlace sync and video mode, the sum of rasters per Not available row minus two should be programmed . • HITACHI 118 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 CURSOR 1 START REGISTER (Rl0) LIGHT PEN REGISTER (H, L) (R16, R17) (R16) Data Bit Program Unit AIW 7 16151 4 131 2 1 1 10 Data BIt I Program Unit AIW Raster W 7 161514131211101 - I p, I B, Nes I (Aaster Addressl - A TIus register determmes the start raster address and selects - I- I Memory Address (HI I the cursor blink mode for the cursor 1. The low-order five bits (R17) detennines the start raster address. BIts B, and P I select the Data Bit .1 Program Unit AIW cursor bhnk mode. 7 1615141312111°J - A BI PI Cursor Blink Mode Memory Address (LI I These regIsters store the hght pen detectIon address. The o 0 No blink high-order two bIts of Rl6 are always read as 0 s o 1 No cursor Note that the stored address will be different from the actual o Blink, 1/16 field rate address due to the following delays: address output delay, video Blink, 1/32 field rate sIgnal output delay, hght pen detection to LPSTB delay, and LPSTB to mternal recognition delay. The relations between the LPSTB mput and the memory address, raster address are shown Blmk Rate m Figures 32, 33 in electrIcal charactenstlcs. ON OFF SCREEN 2 START POSITION REGISTER (R1B) 1/16 or 1/32 Field Rate Data Bit I Program Unit AIW CURSOR 1 END REGISTER (Rll) 7 16151413121 1 I 0 1 Aow AIW Start Aow - 1 I Daata Bit 1 Program UnIt J AIWJ ThIs regJster determmes the start row of the spht·screen 2. 716151413121110 I ~~ Iwl The programmed value is the start row number mmus one. - I- I- I Neel (Aaster Address) I If the split·screen 3 (or 4) start positIOn register (R2I (or R24» has already been programmed wllh the identical data, This register determines the end raster address for the cursor· both of the spht·screens 2 and 3 (or 4) will be disabled. I. SCREEN 2 START ADDRESS REGISTER (H, L) (19, R20) SCREEN 1 START ADDRESS REGISTER (H, L) (R12, R13) (RIg) (R12) Data BIt Program Unit AIW Data Bit Program Unit AIW 716151413121110 Memory AIW 7 1 6 1 5 1 4 1 3 1 2 1 1 10 Memory AIW - I- IMemory Address (HI Address - I- I Memory Address (H) Address (R201 (R13) Data BIt Program Unit AIW Data Bit I Program UnIt IAIW I 7 I 6 I 5 I 4 I 3 I 2 I ·1 I 0 Memory AIW 7 1 6 15 1 4 1 3 2 J 11 l0 J Memory IAIW I Memory Address (L) Address Memory Address ( L) I Address I These registers determme the start memory address for the These regIsters determine the start memory address for the split-screen 2 dIsplay. Paging or scrolhng is enabled by renewing split-screen 1 dIsplay. Paging or scrolling is enabled by renewmg these registers. The hlgh·order two bits of Rl9 are always read these registers. The high·order two bits of Rl2 are always read as as. as as. SCREEN 3 START POSITION REGISTER (R21) CURSOR 1 ADDRESS REGISTER (H, L) (R14, R15) (R14) I Data Bit Program Unit I AIW 1716[51413121110 Data Bit I Program Unltl AIW I Start Aow - 1 Aow I AIW 7161514131211[oJ Memory I - I- I Memory Address (HI I Address AIW This regIster determines the start row of the split-screen 3. The programmed value is the start row number minus one. (R15) If the split-screen 2 (or 4) start position register (R18 (or Data BIt Program Unit AIW R24» has already been programmed with the identical data, 7 J61514131211Lo Memory both of the spht-screens 3 and 2 (or 4) WIll be dIsabled. Address AIW Memory Address (LI These registers determine the cursor 1 display memory ad- dress. The high-order two bits of R14 are always read as as. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (40B) 435-8300 119 HD6345/HD6445---------------------------------------------------------------------------- SCREEN 3 START ADDRESS REGISTER (H, L) (R22, R23) This register performs a fine adjustment on the vertical sync (R22) signal output in units of rasters. The VSYNC signal is supplied Data Bit I Program Unit R/W after the delay of Nvad rasters. Nvad is equal to or less than the 7 16151413121'101 Memory R/w maximum raster address register value (R9). - I- I This register IS enabled when "SY (bit 3) = I" is set into the Memory Address (HI I Address control I register (R30). If an adjustment is not required, the (R231 SY bit or this register (R27) is requested to be set as O. Data Bit I Program Unit IR/W I 7 I6 I5 I4 I 3 I2 I I 0 J Memory IR/W I LIGHT PEN RASTER REGISTER (R28) Memory Address (LI I Address I I Program Unit These registers determine the start memory address for the split-screen 3 display. Paging or scrolling is enabled by renewing Data Bit 716151413121 1 0 J , - R/W R these registers. The high-order two bits of R22 are always read DP I - I - I Raster Address J as Os. This register stores the light pen detectIOn raster address and the detection period. The raster address is detected and stored SCREEN 4 START POSITION RECISTER (R24) into this register when the LPSTB mput is asserted. The OP(bit 7) Data Bit Program Unit R/W mdicates the peflod in which the light pen strobe IS detected. "OP = I" is stored when the LPSTB is asserted during the dis- 7 161 5 1 4 1 3 1 2 1'10 Row R/w play period, and "OP = 0" is stored when lt occurs during the Start Row - , blanking period. This register determmes the start row of the split-screen 4. The programmed value is the start row number minus one. SMOOTH SCROLLING REGISTER (R29) If the split-screen 2 (or 3) start position register (R18 (or I Data Bit j Program Unit R/W R21)) has already been programmed with the identical data, 171615141312 l'jOJ ~~ R/w both of the split-screens 4 and 2 (or 3) will be disabled. I - 1 - 1 - 1 Nss (Raster Addressl J This register determmes the start raster address within a row. SCREEN 4 START ADDRESS REGISTER (H, L) (R25, R26) By renewing this register, smooth scrolling is provided for the (R25) screen specified by the bits SSI - SS. of the control 2 register. Data Bit Program Unit R/W The programmable number IS equal to or less than the maximum 71615141 3 1 2 1'10 Memory R/W raster address register value (R9). Memory Address (HI Address ThiS register is vahd only in the non-mterlace mode and the - I - I interlace sync mode. (R26) Data Bit J Program Unit 1R/W CONTROL 1 REGISTER (R30) 7 I6 I5 I4 I3 I2 I I0 I Memory IR/W Data Bit Program Unit R/W Memory Address ( LI I Address 716151413121'10 - w These registers determine the start memory address for the VE I VS I IB IlL I Sy I TV ISP,JSPo split-screen 4 display. Paging or scrolling is enabled by renewing ThiS register controls the followmg by the corresponding these registers. The high-order two bits of R25 are always read bits. A device reset clears all bits of this register. as Os. VE, VS, TV External synchronization control lB, IL Interrupt control VERTICAL SYNC POSITION ADJUST REGISTER (R27) SY Vertical sync position adjust control Data Bit Program Unit IR/W I SP I , SP 0 Screen spht control 7161514131 2 1'1 0 Raster - I - I - I Nvad (No. of Rastersl I W ! Raster Address _5~",-_~ SY=o Vertical Sync Position ( Fine Adjustment -+_________,:J--------+--------~~ ___ _ _____ SY=1 (R27=31 Figure 27 Vertical Sync POSition (Vertical Sync Pulse Width = 6) • HITACHI 120 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 • External Synchronization Control (VE, VS, TV) • Interrupt Control (lB, IL) (I) Operation mode alteration Control 1 Register VE Function IB IL IRQ Signal o EXVSYNC/vSYNC corresponds to VSYNC output o 0 Not supplied EXVSYNC/vSYNC corresponds to EXVSYNC Input o 1 Supplied by light pen strobe o Supplied by vertical blanking VS DISPTMG Supplied by light pen strobe o Activated or vertical blanking Keeps low Notel The IRQ signal IS supplied from the IRQ pin while the DISPTMG IS low TV Function o EXHSYNC/HSYNC corresponds to HSYNC output • Vertical Sync Position Adjust Control (SY) Sync width register (R3) defines the HSYNC pulse width Control 1 Register Vertical Sync POSItion Adjust Aeg. (R27) EXHSYNC/HSYNC corresponds to EXHSYNC Input SY Sync width register (R3) defines the horizontal back o Disabled porch period Enabled (2) EXVSYNC and VSYNC control • Screen Split Control (SP I , SPo) VS TV EXVSYNC 0 0 Signal supplied to EXVSYNC is ignored Control 1 Aeglster Function 0 1 SP I SPo EXVSYNC/VSYNC corresponds to EXVSYNC 1 0 Screen start position regs. (A IS, A21, 1 1 Input and synchronized with the external Signal o o A24) disabled Screen 2 start position register (A1S) o enabled VSYNC Screen 2 and 3 start position regs. o (A1S, A21) enabled VS Non·lnterlace I nterlace Sync I and Interlace Sync Video' Screen 2 to 4 start position regs. (R1S, A21, A24) enabled 0 VSYNC signal supplied - VSYNC signal VSYNC signal supplied only in 1 supplied odd field scanning CONTROL 2/ STATUS REGISTER (R31) Note) • Attention to the limitation Item described 10 Notel of Table 6 for Interlace sync and video mode. Data Bit Program Unit RIWI 716151413121110 - 55.lss,jSs,~SSI I RI I - I - I - wi 5tatus~ Table 6 External Synchronization Control ---------- AI I 0 I 0 I 0 I 0 I E I 5B I SL ~ TV VE VS Function Control 2 0 0 0 Set as master CRTC In master·slave mode' During a write transaction, this register specIfies the screen 0 0 1 Set as master CATC In master·slave mode, in to be scrolled smoothly and proVides the double,slze vertical interlace sync mode or interlace sync and video display with the raster interpolatIOn function. A device reset mode, upon synchronization clears the bits of the control 2 register. 0 1 0 Set as slave CATC In master·slave mode During a read transaction, this register indicates the status 0 1 1 Set as slave CATC in master·slave mode, upon such as display field, vertIcal blanking, light pen strobe and synch ron i zation access inhibIt in DPRAM mode. A device reset clears the AI bit 1 0 0 Program inhibited and SL bit of the status register. Refer to Table 10 Reset State of Internal Registers for details. 1 0 1 Program inhibited < Control 2 Register> 1 1 0 Set as slave CATC In TV sync mode" SS., SS3, SS" SSI Smooth scrolling control 1 1 1 Set as slave CRTC in TV sync mode, upon RI Raster interpolation control synchronization * * < Status Register> AI, E, SB, SL Status indication Note)· "000" IS to be set also when not performing the external synchronization. In TV sync mode, DISPTMG IS supplIed after the back porch period. .HITACHI Hitachi America ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 121 HD6345/HD6445,---------------------------------------------------------------------------- • Smooth Scrolling Control (SS1-SS4) CONTROL 3 REGISTER (R32) Settmg the bits SSI to SS4 enables smooth scrolling on the split-screens I to 4, respectively. The smooth scrolhng register Data Bit Program Unit R/W (R29) is enabled for the speCified split-screen. 716151413121110 - W CM I C, Icw, Icw, jMW I TcjDR 1- Smooth Scrolling ThiS register controls the following by the corresponding SSt , 0 Disabled on the split-screen 1 Enabled on the split-screen 1 bits. A device reset clears this register CM C2 Cursor dIsplay mode control Cursor 2 enable SS2 , 0 Disabled on the split-screen 2 Enabled on the split-screen 2 CW, CW2 Cursor 1 width control Cursor 2 width control SS3 0 Disabled on the split-screen 3 MW Memory Width control 1 Enabled on the spilt-screen 3 TC Three-state control DR DPRAM mode selection SS4 , 0 Disabled on the split-screen 4 Enabled on the split-screen 4 • Cursors Display Mode Control (CM) • Raster Interpolation Control (RI) CM Cursors Display Mode Settmg 1 mto this bit performs a raster mterpolatlOn. The raster address is incremented every two rasters, doubhng the o EaR mode OR mode vertical scanning cycle. This function is provIded only in the non-Interlace mode and • Cursor 2 Enable (C2 ) the mterlace sync mode. C2 Cursor 2 • Status Indication (AI, E, S8, SL) Access Inhibit Status Bit: AI o DISabled Enabled AI Status • Cursor 1 Width Control (CW,) o Refresh memory access allowed Refresh memory access inhibited CW, Cursor' Width Register (R38) o Disabled I-character Width speCified as cursor' width Enabled Display Field Status Bit: E Set value in R38 speCified as cursor' Width E Status • Cursor 2 Width Control (CW 2 ) o Dunng odd field display Dunng even field display CW 2 Cursor 2 Width Register (R39) Note) E IS always "0" In the non-Interlace mode. o Disabled I-character Width specified as cursor 2 Width Enabled Vertical Blanking Status Bit· SB Set value In R39 speCified as cursor 2 Width S8 Status • Memory Width Control (MW) o Not dunng vertical blanking Dunng vertical blanking MW Memory Width Offset Register (R33) o Disabled Linear address supplied as memory address Light Pen Strobe Status Bit· SL Enabled Memory width definable SL Status o Light pen strobe not detected • Three-State Control (TC) Light pen strobe detected TC MA and RA Outputs Reading this register clears the SL, but not SB. Also, the IRQ o Three-state control disabled output sIgnal goes low upon read access of thIS register. The bits When TSC is low, memory address supplied on MAo - i3 3-6 of the status register are always read as Os. and RA o- 4 When TSC is high, MAo -13 and RAo -4 stated Into high- Impedance ~HITACHI 122 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 • DPRAM Mode Selection (DR) 13 2 P, Cursor Blink Mode DR DPRAM Mode Selection 0 0 No blink o DPRAM control signal not supplied 0 No cursor Enters DPRAM mode 0 Blink, 1/16 field rate Blink, 1/32 field rate MEMORY WIDTH OFFSET REGISTER (R33) Data Bit I Program Unit RIW Blink Rate 716151413121 1 1 0 1 Character RIW ON OFF Nof (Offset Address) I This register specIfies the offset value to be supplemented to 1/16 or 1/32 Field Rate the memory address, in units of characters, in order to define the start memory address of the next row. Adding the offset value to CURSOR 2 END REGISTER (R35) the memory address makes the memory width wider than the Data Bit I Program Unit 1 RIW display width. Reprogramming the start memory address en- ables the display screen to be scrolled in any direction within a memory space by character. If this register is set to the offset 7 1 6 1 5 1 41 3 1 2 1 1 1 0 I Raster I w value M, the start address of the next row will be the last dis- ThIS regIster determInes the end raster address for the cursor played character address + M + I. 2. This register is enabled when "MW (bIt 3) = I" IS set into the If the C, bIt of the control 3 register IS 0, or In the DPRAM control 3 regIster (R32). If an offset value IS not required, the mode, thIS leglster IS mvaiid MW bit of R32 or this regrster (R33) IS requested to be set as O. CURSOR 2 ADDRESS REGISTER (H, L) (R36, R37) (R36) Data Bit Program Unit 1RIW I· Memory Width ·1 7 -I - I (R37) 16151413121110 Memory Address (H) Memory Address IRIW Data Bit 1 Program Unit 1R/W M 7 1 6 1 5 1 4 13 1 2 1 1 1 0 1 Memory I Memory Address ( L) I Address RIW These regIsters determine the cursor 2 dIsplay memory address The hlgh·order two bIts of R36 are always read as Os. This register is disabled in DPRAM mode or when "C, =0" is set in the control 3 regIster (R32). Display Width CURSOR 1 WIDTH REGISTER (R38) Data Bit Program Unit RIW 7 16151 4 1 3 1 2 1110 Character RIW New] (Number of Characters) ThIs regIster specIfIes the cursor I WIdth In umts of characters. WritIng 0 into thIS register dIsables the cursor 1 display. Offset Val ue = M ThIS register IS enabled when "CWI (bIt 5) = 1" IS set into the control 3 regrster (R32). Figure 28 Memory Width Offset CURSOR 2 WIDTH REGISTER (R39) CURSOR 2 START REGISTER (R34) Data Bit Program Unit RIW I Data Bit Program Unit RIW 7 16151413121 1 1 0 1716151413121110 Raster W New, (Num ber of Characters) Character RIW I - I B, I P, I Nes, (Raster Address) ThIs regrster specifies the cursor 2 WIdth In umts of This register determines the start raster address and selects characters. Wnting 0 into this register disables the cursor 2 the cursor blink mode for the cursor 2. The low-order five bits dIsplay. determines the start raster address. Bits B2 imd P, select the ThIS regIster is enabled when "CW, (bIt 4) = 1" is set into cursor blink mode. the control 3 regIster (R32). If the C2 bit of the control 3 register is 0, or in the DPRAM In DPRAM mode, this regIster specifies the ACI signal output mode, this register is invalid. timing, not affected by the CW, bit at all . • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 123 HD6345/HD6445,---------------------------------------------------------------------------- • LIMITATION FOR PROGRAMMING The register programmed value is limited as listed in Table 7. Table 7 limitation on Register Programmed Value Function Register Programmed Value Range Associated Reg. 1 < Nhd < Nht + 1 :5:: 256 Rl, RO o < Nvd < Nvt + 1 ~ 256 R6, R4 0:5:: Nhsp:5:: Nht R2, RO 0:5:: Nvsp:5:: Nvt' R7, R4 Screen Format 2:5:: Nr:5::30 (Interlace sync and video mode) R9 Nvad < Nr R27, R9 3~ Nht (Interlace sync mode and Interlace sync and video mode) RO 5~ Nht (Non-Interlace mode) 0:5:: Ncs, ~ Nce, R10, Rll Nce, ~ Nr (Non-interlace mode and (Interlace sync mode) Rll, R9 Nce, < Nr (Interlace sync and video mode) o ~ Ncs, ~ Nce, R34, R35 Cursor Control Nce, ~ Nr (Non-interlace mode and interlace sync mode) R35, R9 Nce, < Nr (Interlace syne and video mode) O~ Newl ~255 R38 0:5:: New, :5:: 255 R39 Smooth Scroll ing Nss:5::Nr R29, R9 Memory Width Setting o ~ Nof ~ 255 R33 Notes 1) " In the Interlace sync mode, If the vertical sync signal assertIOn stndes over the next field, the signal pulse width IS alternately Increased or decreased by 1/2 raster period In the following fields. 2) Refer to INTERNAL REGISTER ASSIGNMENT for symbols • RESET Table 8 Note for a Reset The RES functions as a reset Input signal only while the LPSTB IS low. "Reset" is definable in two stages. ___ Note (1) "During a reset state" indicates the period that the RES DUring 1. HD6345/HD6445 sets "6845S mode'" remains "low". a Reset State Control registers R30, R31, and R32 (2) "After a reset state" indicates the state after the RES transI- cannot be programmed tion from low to high After 1. HD6345/HD6445 remains "6845S a Reset State mode" until control registers R30, R31, R32 are programmed 2 In external sync mode, the additional ~~~o_j+--------~ Circuit IS required to prevent the conten~ tlon between syne signals (VSYNC, 8V ov _ HSYNC) of a master and those of a DUring After slave A reset has occurred a reset state a reset state The RES assertIOn at power-on does not define the internal registers. The internal operation remains undefined until all the Figure 29 Reset Definition internal registers have been programmed. Note) "6845S mode" The note for a reset is listed in Table 8, and the pin status The 6845S mode causes the HD6345/HD6445 to Implement during a reset state is In Table 9. the HD6845S functions The HD6345/HD6445 IS software- compatible With the HD6845S, and IS provided With the ex- tended functIOns of the HD6845S Programming the control registers enables the extended functIOns The control registers are Initialized dUring a reset state The HD6345 has 68-compatible bus Interface It IS pm- compatible With NMOS CRTC-II HD6845S HD6445 has 80-compatlble bus Interface Note that HD6445 IS not pm-compatible With NMOS CRTC HD6845S. ~HITACHI 124 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------IHD6345!HD6445 Table 9 Pin Status during a Reset State Input! Pin No. Symbol Pin Name Functions Output 1 Vss Vss - - 2 RES Reset Input - lPSTB light Pen Strobe Input 3 low level signal requested to be supplied TSC Three State Control Input 4-17 MAo-MAI3 Memory Address 0-13 Output Goes low immediately after reset 18 DISPTMG Display Timing Output Goes low Immediately after reset CUDISP Cursor Display Output 19 ACI Access Inhibit Output Goes low immediately after reset IRQ Interrupt Request Output 20 Vcc Vcc - - 21 ClK Character Clock Input Not affected 22 WR Write Input Not affected E Enable (HD6345) Input Not affected 23 RD Read (HD6445) Input Not affected 24 RS Register Select Input Not affected 25 CS Chip Select Input Not affected Input! 26-33 Do-D, Data Bus 0-7 Not affected Output 34-38 RAo-RA4 Raster Address 0-4 Output Goes low immediately after reset HSYNC HOrizontal Sync Output Corresponds to HSYNC until external 39 sync mode is set into the control register EXHSYNC External Horizontal Sync Input after reset VSYNC Vertical Sync Output Corresponds to VSYNC until esternal 40 sync mode is set into the control register EXVSYNC External Vertical Sync Input after reset • HITACHI Hitachi America ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 125 HD6345/HD6445i--------------------------------------------------------------------- Table 10 Reset State of Internal Registers Reg Data Bit (Reset State) No RegIster Name R/W 7 6 -5 -4 3 2 1 0 'J AR Address RegISter W lJ" RO HOrizontal Total Characters W R1 Hbrlzontal Dlsplay"if Characters W R2 HOrizontal Sync POSItion W R3 Sync Width W R4 Vertical Total Rows W Vertical Total Adjust W ~,'t,<';, '~;,'- R5 " R6 Vertical DlSplayed~ W R7 Vertical Sync POSItion W R8 Interlace Mode and Skew W R9 Maximum Raster Address W ~\.:,;: r:;;;;, R10 Cursor 1 Start W R11 Curso~ W R12 Screen 1 Start Address (H) R/W ' t. R13 Screen 1 Start Address (L) R/W R14 Cursor 1 Address (H) R/W R15 Curso~ R/w R16 Light Pen (H) R l,;',;;'l "';~; R17 LlohiPOnlLl R R18 Screen 2 Start POSItIOn R/W R19 Screen 2 Start Address (H) R/w .),. ',::;, R20 Screen2St;;rt~ (L) R/w R21 Screen~ R/w Rn Screen 3 Start Address (H) R/W ,·i . ' ' .,; R23 Screen 3 Start Address I L R/W R24 Screen 4 Start POSItIOn R/W R25 Screen~(H) R/W ~(r I'!H','l';' R26 Screen 4 Start Address (L) R/w R27 Vertical S\'-n~-p~~,t,~~ Adjust W R28 Light Pen Raster R R29 Smooth Scrolling R/w R30 Control 1 W 0 0 0 0 0 0 0 0 R31 Control 2 Status W R 0 0 0 0 0 0 . 1 I o -R32 'Co~trol3 W 0 0 0 0 0 0 0_ 1133 Memory~ R/W :~~ R34 Cursor 2 Start R35 Cursoa-E-';c:j R36 Cursor 2 Address (H) R37 Cursor 2 Address (L) -Fd8 Cu rsor--,--w,(jth R/W I R39 Cursor 2 Width R/w I I Notel c::::::::J not affected (After power-on, the value not fixed until IS It IS programmed I UJ becomes "0" - o:::::J becomes "1" ~ becomes "0" In the non-Interlace mode becomes "'" In the Interlace sync mode and Interlace sync and Video mode (After power-on, Its status IS not fixed until the raster scanning mode IS set) not used • NOTES AND LIMITATIONS FOR HD6445 (2) Refer to the RESET section for notes on a reset at power· on, NOTES (1) The CRTC·II HD6345/HD6445 is the CMOS LSI, It LIMITATION FOR PROGRAMMING should be noted, peculiar to CMOS LSIs, that the input Refer to "Table 7 LImitation on Register Programmed pins of the HD63451HD6445 must not be left discon· Value" for details, nected, etc, $ HITACHI 126 Hitachi America Ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------------------------------!HD6345/HD6445 ANOMALOUS OPERATION BY REGISTER REPROGRAMMING DURING SCREEN DISPLAY The temporary erroneous operation may occur If program- Register reprogrammIng IS: ming the internal register during a screen display period. Gener- 0 Allowable ally, the device starts the newly specified operation on and after D.: Allowable with some conditions the following field after a renewal. A temporary flicker may occur upon deviation of the Whether or not the register reprogramming IS allowed dunng conditIOns. a display IS shown by the symbols 0 L, and x in the follOWIng X Not recommended table. A temporary flicker may occur upon register renewal. Reg. Register Name Phenomenon and Renewal Recommended Period No. RO HOrizontal Total Characters HOrizontal scanning cycle IS "regularized. x Rl Horizontal Displayed DISPTMG width may be set shorter than specified only dUring 1 raster period 0 Characters because of a momentary misrecognltlon of thiS register data. R2 HOrizontal Sync Position HSYNC Will not be supplied as required, or a nOise may occur. It may be x supplied as programmed on and after the following field. R3 Sync Width Sync pulse Width may be set shorter than speCified when registers are L, reprogrammed dUring high of HSYNC and VSYNC R4 Vertical Total Rows Vertical scanning cycle may be "regularized when reprogrammed during the last L, raster scanning period within a row. R5 Vertical Total Adjust The speCified number of adjust rasters will not be supplemented when reprogrammed within the last character clock time dUring adjust raster scanning L, period. R6 Vertical Displayed Rows Raster scanning may be suspended (DISPTMG goes low. I Immediately after being reprogrammed within a field. The programmed display IS enabled on and 0 after the follOWing field. R7 Vertical Sync Position VSYNC Will not be supplied as required, or a nOise may occur. It may be x supplied as programmed on and after the following field. R8 Interlace Mode and Skew Reprogramming the scanning mode bit "regularizes vertical scanning cycle. Reprogramming the skew bit neglects the programmed position for screen and x cursor displays. R9 Maximum Raster Address Vertical scanning cycle IS "regularized. x Rl0 Cursor 1 Start Cursor raster scanning may be "regularized or blink period be temporarily set Rll Cursor 1 End shorter when reprogrammed within the last character clock time during raster L, scanning period. R12 Screen 1 Start Address (H) Except dUring the last raster scanning period within a row, register R13 Screen 1 Start Address (LI reprogramming IS allowable. HOrizontal/vertical display period is espeCially recommended for reprogramming. If R 12 and R 13 are separately reprogrammed 0 in the different fields, a screen display will temporarily start from the partially reprogrammed address. R14 Cursor 1 Address (HI The cursor Will not temporarily be displayed at the speCified address when R15 Cursor 1 Address (LI reprogrammed dUring display period HOrizontal/vertical retrace period IS espeCially recommended for reprogramming. If R 14 and R 15 are separately 0 reprogrammed In the different fields, a cursor Will be temporarily displayed on the partially reprogrammed address R16 light Pen (HI - R17 Light Pen (LI -- R18 Screen 2 Start Position Except dUring raster scanning period prior to the split-screen 2 start row, reprogramming IS allowable. Horizontal/vertical retrace period is espeCially 0 recommended for reprogramming. R19 Screen 2 Start Address (HI Except dUring raster scanning period prior to the split-screen 2 start row, R20 Screen 2 Start Address (LI reprogramming IS allowable. Horizontal/vertical retrace period IS espeCially recommended for reprogramming If R 19 and R20 are separately reprogrammed 0 In the different fields, a screen display Will temporarily start from the partially reprogrammed address R21 Screen 3 Start Position Except dUring raster scanning period prior to the split-screen 3 start row, reprogramming is allowable. Horizontal/vertical retrace period IS espeCially 0 recommended for reprogramming. $ HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 127 HD6345/HD6445,------------------------------------------------------------------------ Reg. Register Name Phenomenon and Renewal Recommended Period No. R22 Screen 3 Start Address (H) Except during raster scanning period prior to the split-screen 3 start row, R23 Screen 3 Start Address (L) reprogramming is allowable. Horizontal/vertical retrace period is especially recommended for reprogramming. If R22 and R23 are separately reprogrammed a in the different fields, a screen display will temporarily start from the partially reprogrammed address. R24 Screen 4 Start Position Except during raster scanning period prior to the split-screen 4 start row, reprogramming is allowable. Horizontal/vertical retrace period is especially a recommended for reprogramming. R25 Screen 4 Start Address (H) Except during raster scanning period prior to the split-screen 4 start row, R26 Screen 4 Start Address (L) reprogramming is allowable. Horizontal/vertical retrace period is especially recommended for reprogramming. If R25 and R26 are separately reprogrammed a in the different fields, a screen display will temporarily start from the partially reprogrammed address. R27 Vertical Sync Position The programmed position for VSYNC output will not be satisfied. x Adust R28 Light Pen Raster --- - R29 Smooth Scrolling For a screen not performing smooth scroll, reprogramming is allowable except during the last raster scanning period within each row. For a screen performing smooth scroll, reprogramming is allowable except during rater scanning period f::, on the address of "programmed value-1". Horizontal/vertical retrace period is especially recommended for reprogramming. R30 Control 1 ·VE Reprogramming is allowable except at VSYNC output. a ·TV Reprogramming is allowable except at HSYNC output when DISPTMG is low. a 'VS,18,IL Reprogramming is allowable. a 'SY VSYNC will not be supplied as required or a nOise may occur. It may be supplied f::, as programmed on and after the following field. 'SPo,SP, Temporary disturbance may occur on a screen when reprogrammed during the display period. Vertical retrace period is especially recommended for f::, reprogramming. R31 Control 2 'SS" -SS. Temporary disturbance may occur on a screen when reprogramming during display period. Vertical retrace period is especially recommended for f::, reprogramming 'RI Vertical raster scanning cycle is irregularized. x Status --- - R32 Control 3 'CM,C, Temporary disturbance may occur on a cursor when reprogrammed during 'CW"CW, display period. Vertical retrace period is especially recommended for f::, reprogramming. 'MW Temporary disturbance may occur on a screen when reprogrammed during display period. Vertical retrace period is especially recommended for f::, reprogramming. 'TC, DR Reprogramming is inhibited. x R33 Memory Width Offset The specified address for cursor display will not temporarily be satisfied upon reprogramming during display period. Horizontal/vertical retrace period is a especially recommended for reprogramming. R34 Cursor 2 Start Cursor raster scanning may be irregularized or blink period be temporarily set R35 Cursor 2 End shorter when reprogrammed within the last character clock time during raster f::, scanning period. R36 Cursor 2 Address (H) The specified address for cursor display will not temporarily be satisfied when R37 Cursor 2 Address (L) reprogrammed during the display period. Horizontal/vertical retrace period is especially recommended for reprogramming. If R36 and R37 are separately a reprogrammed in the different fields, a cursor will be temporarily displayed at the partially reprogrammed address. R38 Cursor 1 Width The specified cursor width will not temporarily be satisfied when reprogrammed R39 Cursor 2 Width during display period. Horizontal/vertical retrace period is especially f::, ~ recommended for reprogramming. ~HITACHI 128 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 • ABSOLUTE MAXIMUM RATINGS Item Symbol Rating Unit Supply Voltage Vee " -0.3 - +7.0 V Input Voltage Von " -0.3 - Vee+0.3 V Operating Temperature Too, -20-+75 °c Storage Temperature T,to -55 - +150 °c Allowable Output Current I Data Bus 1101"" 5 rnA I Others 3 rnA Total Allowable Output Current 11: 10 I""" 50 rnA • This value IS In reference to vss = OV ** The allowable output current IS the maximum current that may be drawn from, or flow out to, one output pin or one Input/output common pin . ••• The total allowable output current IS the total sum of currents that may be drawn from, or flow out to. output PinS or input/output common pins Notel USing an LSI beyond Its maximum ratings may result In Its permanent destruction. LSI's should usually be under recommended operating conditions. Exceeding any of these conditions may adversely affect Its reliability . • RECOMMENDED OPERATING CONDITIONS Item Symbol Min Typ Max Unit Supply Voltage Vee " 4.75 5.0 5.25 V Input Low Level Voltage Input High Level Voltage V,L " V,H . -03 2.0 - - 0.8 Vee V V Operating Temperature Top, -20 25 75 °c * ThiS value IS In reference to vss = OV • ELECTRICAL CHARACTERISTICS DC CHARACTERISTICS (Vee = 5.0V±5%. Vss = OV. Ta = -20 - +75°C unless otherwise noted) Item Symbol Measuring Condition Min Typ" Max Unit Input High Level Voltage V,H 2.0 - Vee V Input Low Level Voltage V,L -0.3 - 0.8 V Inputs except Input Leak Current Do- D7 Ion Von = 0- 5.25 V -2.5 - 2.5 p.A Three State (Off State) Do - D7 Von = 0.4 - 2.4 V -10 - 10 p.A Memory Address ITSI Input Current Vee=525V Raster Address Output High Level Do - D7 1= -205p.A Voltage VOH 1=-l00p.A 2.4 - - V Others Output Low Level Voltage VOL 1- 1 5mA - - 0.4 V Do - D7 EXVSYNC Von =0 V - - 12.5 pF Input Capacity EXHSYNC Con Ta = 25°C f = 1.0 MHz Others - - 10 pF Von = 0 V Output Capacity Cout Ta = 25°C - - 10 pF f = 1 MHz feLK = 4.5 MHz fE = 2 MHz Power Dosslpatlon Po Vee = max, No Load - 50 - mW V'H=Vee- 1.OV V'L=0.8V " T. = 25°e, Vee = 5 OV ~HITACHI Hitachi Ameroca Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 129 HD6345/HD6445------------------------------------------------------------------------ AC CHARACTERISTICS (VCC = 5V±10%, Vss = OV, Ta = -20 - +75°C, unless otherwise noted.) 1. TIMING OF CRTC SIGNAL Item Symbol Test Condition Min Max Unit Clock Cycle Time teyeC 220 - ns Clock High Pulse Width PWCH 100 - ns Clock Low Pulse Width PWCL 100 - ns Rise and Fall Time for Clock Input ter, tcf - 20 ns Memory Address Delay Time tMAO - 80 ns Raster Address Delay Time tRAO Fig. 30 - 80 ns D ISPTMG Delay Time tOTO - 120 ns CUDISP Delay Time tcoo - 120 ns Horizontal Sync Delay Time tHSO - 100 ns Vertical Sync Delay Time tvso - 120 ns Light Pen Strobe Pulse Width PWLPH 60 - ns Light Pen Storobe Uncertain Time of tLPOl 70 ns Fig 32,33 Acceptance tLP02 - 0 ns Memory Address Three-State Off Time tMAZ - 50 ns Fig. 31 Raster Address Three-State Off Time tRAZ - 50 ns 2. EXTERNAL SYNC TIMING Item Symbol Test Condition Min Max Unit Clock Halt Time tCLKST 100 - ns External Horizontal Sync Pulse Width tPWHS 1000 - ns tH r - 20 ns External Horizontal Sync Rise and Fall Time tH! Fig. 34 - 20 ns External Vertical Sync Pulse Width' tpwvs 1660 - ns External Vertical Sync Rise and Fall Time tVr - 20 ns tV! - 20 ns .. : External Vertlcel Sync Pulse Width tpwvs = 1000 ns + 3·tcyc C 3. HD6345 MPU BUS TIMING 6345 63A45 63B45 Item Symbol Test Condition Min Max Min Max Min Max Unit Enable Cycle Time tcycE 1000 - 666 - 500 - ns Enable "High" Pulse Width PWEH 450 - 280 - 220 - ns Enable "Low" Pulse Width PWEL 400 - 280 - 210 - ns Enable Rise and Fall Time tEr, tEf - 20 - 20 - 20 ns Address Set Up Time tAS 80 - 80 - 40 - ns Data Set Up Time tosw Fig. 35 195 - 80 - 60 - ns Fig. 36 Data Delay Time tooR - 200 - 140 - 120 ns Data Hold Time tH 10 - 10 - 10 - ns Address Hold Time tAH 10 - - - 10 - ns Data Access Time tACC - 280 - 220 - 160 ns Input Signal Rise and Fall Time - 100 - 100 - 100 ns tr, tf (RES, LPSTB, RS, CS, R/W) ~HITACHI 130 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ____________________________________________________________________________ HD6345/HD6445 4. HD6445 MPU BUS TIMING HD6445-4 l Item Symbol Test Condition Min Max Unit Read Address Set Up Time tAR a - ns Read Low Level Time tRR 160 - ns Read Address Hold Time tRA a - ns Write Address Set Up Time tAW a - ns Write Low Level Time tww 190 - ns Write Address Hold Time tWA a - ns Data Delay Time tRO Fig. 37 - 120 ns Data Hold Time (Read) tOF Fig 38 10 - ns Data Set Up Time tow 60 - ns Data Hold Time (Write) two a - ns Access Inhibit Time tOIS 210 - ns Input Signal RISe Time t,- - 100 ns Fall Time tf (RES, LPSTB, RS, CS, RD, WR) toyoC 20V PWCl 08V O'V O'V O'V eLK I'--------...JI '" 2 4V MAO-MAl) _______________ +---..J 24V DISPTMG tOTO CUDISP ICOD HSYNC VSYNC tHSO IVSD lPSTB ---A 2OV PW~PH K Figure 30 CRle Timing Chart ~HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 131 HD6345/HD6445---------------------------------------------------------------------------- lPSTB (TC= 1) \ 20V o BV I MAo-MA13 \ / r---- tMAD I---- tMAZ \ J l"- tRAO i---- tRAZ Note) tMAZ and tRAZ show the timing when outputs are completely turned off. Actual waveform vanes according to loads conditions. Figure 31 Three-State Delay Timing (Three-state mode: TC = 1) ClK MAo-MA13 ~_ _~L_ _~'L_ __ ~~:~---~ lPSTB \'------ 20V lPSTB When LPSTB rises in this period, memory address "M+2" is set into the light pen registers. tLPD1. tLP02 : LPSTB's invalid time of acceptance Figure 32 CRTC-CLK, MAO-MA13, and LPSTB Timing ~HITACHI 132 Hitachi America Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 ClK M M+l ____________Ji OBV lPSTB When LPSTB rises after this timing, raster address 'M+l" IS set Into the light pen registers. tLPD3 LPSTB's invalid time of acceptance Figure 33 CRTC·ClK, RAo - RA4 and lPSTB Timing tclkst ClK I ° BV 20V 20V EXHSYNC ° BV.f- tpwHS ° BV iHr tH! ' 'l"' 2 OV EXVSYNC '"'4 tvr . tpwVS tv! Figure 34 External Sync Timing ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 133 HD6345/HD6445---------------------------------------------------------------------------- 1---------tcvcE -----<001 Dav R/W, RS DO- 0 7 ----------~ Q4V 04V Figure 35 HD6345 Read Sequence 1------tCyce------<.,f Dav CS ;:-:---, RS Figure 36 HD6345 Write Sequence cs RS DO-07 (Read~ Figure 37 HD6445 Read Sequence ~HITACHI 134 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 ------------------------------------------------------------------------HD6345/HD6445 cs RS 2.0V O.8V o 8V I - - - - - - t , . - - -__I+-., 24V 24V 0 0- 0 7 IWrlte) o 4V O.4V Figure 38 HD6445 Write Sequence TEST LOAD 50V 0, c= 130pF 100 - 071 Test POlnt o---_---..---+....__~ = 40pF (Output signals except Do - 0,) 0, R= l1kn IDa - 071 0, = 24kfl (Output Slgnlils except Do - 0,) i'," 04 01 - 04 are IS207443)or equivalent. Figure 39 Test Load ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 135 HD6345/HD6445------------------------------------------------------------------------ • COMPARISON BETWEEN HD6345/HD6445 AND HD6845S HD6345/HD6445 HD6845S elK: 4.5 MHz CMOS ClK: 3.7 MHz NMOS 68 System Bus Interface (HD63451 6800 System Bus Interface 80 System Bus Interface (HD64451 1. Refresh Memory Address (16k words) 1. Refresh Memory Address (16k wordsl 2. Paging, Scrolling 2 Paging, Scrolling 3. light Pen 3. Light Pen 4. TTL Compatible 4. TTL Compatible 5. Software Programmable: 5. Software Programmable: Number of Displayed Characters on Screen Number of Displayed Characters on Screen Number of Rasters per Character Row Number of Rasters per Character Row HonzontallVertlcal Sync Signal HorizontallVertical Sync Signal Raster Scanning Mode Raster Scanning Mode Cursor Cursor I I 6. Screen Spilt (Up to 4) I I I 7. Smooth Scroll Ing I I I B. External Synchronization :I I 9. I nterrupt Request I 10. Raster Interpolation I I I 11. Sync Position Adjustment , I 12. light Pen Raster Address ! I 13. Second Cursor I I I 14. Display Memory Width Setting I I I 15. Up to 256 Character Rows I 16. Timing Signal for Dual Port RAM : I I I 17. Three-State Control of Memory Address and Raster I Address • HITACHI 136 Hitachi America Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------------------HD6345/HD6445 • CHARACTERISTICS DIFFERENCES BETWEEN HD6345 AND HD6845S HD6345 HD6845S No. Item Symbol Unit Min Typ Max Min Typ Max 1 Power Dissipation Po - 50 - - 600 1000 mW 2 Clock Cycle Time tcycc 220 - - 270 - - ns 3 Clock "High" Pulse Width PWCH 100 - - 130 - - ns 4 Clock "Low" Pulse Width PWCL 100 - - 130 - - ns 5 Memory Address Delay Time tMAO - - 80 - - 160 ns 6 Raster Address Delay Time tRAO - - 80 - - 160 ns 7 Display Timing Delay Time tOTO - - 120 - - 250 ns 8 Horizontal Sync Delay Time tHSO - - 100 - - 200 ns 9 Vertical Sync Delay Time tvso - - 120 - - 250 ns 10 Cursor Display Delay Time tcoo - - 120 - - 250 ns 11 Enable CYGle Time tCYCE 500 - - 1000 - - ns 12 Enable "High" Pulse Width PWEH 220 - - 450 - - ns 13 Enable "Low" Pulse Width PWEL 210 - - 400 - - ns 14 Enable Rise and Fall Time tEr, tEl - - 20 - - - ns 15 Address Set Up Time tAS 40 - - 140 - - ns 16 Data Set Up Time tosw 60 - - 195 - - ns 17 Data Delay Time tOOR - - 120 - - 320 ns 18 Data Access Time tACC - - 160 - - 460 ns 19 Input Signal Rise and Fall Time t" tf - - 100 - - - ns • CHARACTERISTICS DIFFERENCES BETWEEN HD6445 AND HD6845S HD6445 HD6845S No. Item Symbol Unit Min Typ Max Min Typ Max 1 Power Dissl pation Po - 50 - - 600 1000 mW 2 Clock Cycle Time tcycC 220 - - 270 - - ns 3 Clock High Pulse Width PWCH 100 - - 130 - - ns 4 Clock Low Pulse Width PWCL 100 - - 130 - - ns 5 Memory Address Delay Time tMAO - - 80 - - 160 ns 6 Raster Address Delay Time tRAO - - 80 - - 160 ns 7 Display Timing Delay Time tOTO - - 120 - - 250 ns 8 Horizontal Sync Delay Time tHSO - - 100 - - 200 ns 9 Vertical Sync Delay Time tvso - - 120 - - 250 ns 10 Cursor Display Delay Time tcoo - - 120 - - 250 ns ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 137 HD6345/HD6445---------------------------------------------------------------------------- • PACKAGE DIMENSIONS [Unit: mm (inchtl Scale 1/1 528(2079) 540max (2126ma)l) 21 ~nn ,nnnn • -$i 10 - 41 (DP-40) Note) Inch value Indicated for your reference. ~HITACHI 138 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD6845R/HD6845S CRT Controller (CRTC) The CRTC is a LSI controller which is designed to provide an interface for microcomputers to raster scan type CRT displays. HD6845SP, HD68A45SP, HD68B45SP The CRTC belongs to the HD6800 LSI Family and has full HD6845RP, HD68A45RP, HD68B45RP compatibility with MPU in both data lines and control lines. Its primary function is to generate timing signal which is necessary for raster scan type CRT display according to the specification programmed by MPU. The CRTC is also designed as a program- mable controller, so applicable to wide-range CRT display from small low-functioning character display up to raster type full graphic display as well as large high-functioning limited graphic display. • FEATURES (DP-40) • Number of Displayed Characters on the Screen, Vertical Dot Format of One Character, HOrizontal and Vertical Sync Signal, Display Timing Signal are Programmable • PIN ARRANGEMENT • 3.7 MHz High Speed Display Operation • Line Buffer-less Refreshing VSYNC HSVNC • 14-bit Refresh Memory Address Output (16k Words RA. max. Access) RA, • Programmable Interlace/Non-Interlace Scan Mode MA, RA, • Built-in Cursor Control Function MA, RA, MA, RA, • Programmable Cursor Height and its Blink MA, D. • Built-in Light Pen Detection Function 0, • Paging and Scrolling Capability HD6845S 0, HD6845R 0, • TIL Compatible 0, • Single +5V Power Supply 0, 0, • SYSTEM BLOCK DIAGRAM 0, Cs' RS 1-----+-.----+--,------ 0Data-0,Bus 0 Aiw ClK (Top View) • ORDERING INFORMATION CRT Display CRTC Bus Timing Timing HD6845S 1.0 MHz HD68A45S 1.5 MHz 3.7 MHz max. HD68B45S 2.0 MHz HD6845R 1.0 MHz HD68A45R 1.5 MHz 3.7 MHz max. HD68B45R 2.0 MHz ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 139 HD6845R/HD6845S - - - - - - - - - - - - - - - - - - - - - - - - - - - - - • ABSOLUTE MAXIMUM RATINGS Item Supply Voltage Symbol Vee . Value -0.3-+7.0 Unit V Input Voltage Operating Temperature V,n Topr · -0.3-+7.0 - 20- + 75 V °c Storage Temperature T otg - 55- +150 °c · W'th respect to Vss (SYSTEM GNDI [NOTE] Permanent LSI damage may occur If maximum ratings are exceeded. Normal operation should be under recommended operating conditions. If these conditions are exceeded, it could affect reliability of LSI. • R,ECOMMENDED OPERATING CONDITIONS Item Supply Voltage Symbol Vee . 4.75 min typ 5,0 max 5,25 Unit V V IL · -0.3 - 0.8 V Input Voltage Operating Temperature V IH Topr · - 20 2.0 - 25 Vee 75 V °c • Woth respect to Vss (SYSTEM GNDI • ELECTRICAL CHARACTERISTICS • DC CHARACTERISTICS (Vee = 5V ± 5%, Vss = OV, Ta = -20-+75°C, unless otherwise noted.) Item Symbol Test Condition min typO max Unit Input "High" Voltage V IH 2.0 - Vce V Input "Low" Voltage V IL -0,3 - 0.8 V Input Leakage Current lin V ln = 0 - 5,25V (Except Do-D,) -2.5 - 2.5 p.A Three-State Input Current V ln = 0,4 - 2.4V (off-state) I TSI Vee = 5.25V (Do- D,) - 10 - 10 p.A I LOAD = -205p.A (Do- D,) Output "High" Voltage V OH 2,4 - - V I LOAD = -100 p.A (Other Outputs) Output "Low" Voltage VOL I LOAD = 1.6 mA - - 0.4 V Input Capacitance Cin V,n = 0 Ta = 25°C I Do - D, - - 12.5 pF f = 1.0 MHz I Other Inputs - -' 10.0 pF Output Capacitance Cout Vi" =OV, Ta = 25°C, f = 1.0 MHz - - 10.0 pF Power Dissipation Po - 600 1000 mW • Ta= 25° C, Vee = 5.0V ~HITACHI 140 Hitachi America Ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S • AC Characteristics (Vee = 5V ± 5%, T. = -20 - + 75°C, unless otherwise noted.) 1. TIMING OF CRTC SIGNAL HD6845R HD6845S Test No. Item Symbol Unit Condition min typ max min typ max 1 Clock Cycle Time tcycC 330 - - 270 - - ns 2 Clock "High" Pulse Width PWCH 150 - - 130 - - ns 3 Clock "Low" Pulse Width PWCL 150 - - 130 - - ns Fig. 1 4 Rise and Fall Time for Clock Input Tcr tCI - - 15 - - 20 ns 5 Horizontal Sync Delay Time t HSO - - 250 - - 200 ns 6 Light Pen Strobe Pulse Width PW LPH 80 - - 60 - - ns Light Pen Strobe t LP01 - - 80 - - 70 ns 7 Fig. 2 Uncertain Time of Acceptance t LPo2 - - 10 - - 0 ns 8 Memory Address Delay Time t MAO - - 160 - - 160 ns 9 Raster Address Delay Time t RAO - - 160 - - 160 ns 10 DISPTMG Delay Time toTO Fig. 1 - - 250 - - 250 ns 11 CUDISP Delay Time tcoo - - 250 - - 250 ns 12 Vertical Sync Delay Time tvso - - 250 - - 250 ns 2. MPU READ TIMING HDS845R HDS8A45R HDS8B45R Test HD6845S HD68A45S HD68B45S Item Symbol Unit Condition min typ max min typ max min typ max Enable Cycle yinje t eVeE 1.0 - - 0.666 - - 0.5 - - /lS Enable "High" Pulse Width PW EH 0.45 - - 0.28 - - 0.22 - - /lS Enable "Low" Pulse Width PWEL 0.40 - - 0.28 - - 0.21 - - /lS Enable Rise and Fall Time tEr. tEl - - 25 - - 25 - - 25 ns Address Set Up Time tAS Fig. 3 140 - - 140 - - 70 - - ns Data Delay Time tOOA - - 320 - - 220 - - 180 ns Data Hold Time tH 10 - - 10 - - 10 - - ns Address Hold Time tAH 10 - - 10 - - 10 - - ns Data Access Time tAcc - - 460 - - 360 - - 250 ns 3. MPU WRITE TIMING HD6845R HD68A45R HD68B45R Test HD6845S 'HD68A45S HD68B45S Item Symbol Unit Condition min typ max min typ max min typ max Enable Cycle Time t eveE 1.0 - - 0.666 - - 0.5 - - /lS Enable "High" Pulse Width PW EH 0.45 - - 0.28 - - 0.22 - - /ls Enable "Low" Pulse Width PW EL 0.40 - - 0.28 - - 0.21 - - /.ts Enable Rise and Fall Time tEr. tEf - - 25 - - 25 - - 25 ns Fig. 4 Address Set Up Time tAS 140 - - 140 - - 70 - - ns Data Set Up Time t"sw 195 - - 80 - - 60 - - ns Data Hold Time tH 10 - - 10 - - 10 - - ns Address Hold Time tAH 10 - - 10 - - 10 - - ns ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 141 HD6845R/HD6845S - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cvcc V 2.0V 20V--'f- PW CL o SV r- / 1\ 1- OSV -. O.SV --' O.SV -- ClK --' ICr PW CH ICt - L2.4V / --'~ tMAD tMAD 24V / --'~ tRAD tRAD 2.4V DISPTMG / ---' ~.4V tOTO tOTO !L2.4V CUDISP / - ~ 4V teDo teDo 2.4V HSYNC VSYNC / ~ ~ 4V tHSD IHSD tvso tVSD lPSTB ________ ~~-2-.0-V---------P-W-L-PH-------~~--------------------- ThiS Figure shows the relation," time between eLK signal and each output signals. Output sequence rs shown In FIgs. 10-15. Figure 1 Time Chart of the CRTC ~HITACHI 142 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S tLPD1 eLK M+2 LPSTB --------11 \\....--- LPSTB _ _ _ _ _ _ _ -+___20V -J ~ When LPSTB rises In this pertOd,) Refresh Memory Address "M+2" 15 set IOta the light pen registers. tLPD1' tLPD2 LPSTB's uncertain time of acceptance Figure 2 LPSTB Input Timing & Refresh Memory Address that IS set Into the light pen registers. ~------------t~E 08V e---------+--__JI cs-------. R/W. RS-------' 0,-0, __________________________--( O.4V O.4V Figure 3 Read Sequence • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 143 HD6845R/HD6845S------------------------------------------------------------ 1------------tC'/2 clock. to display the cursor on the CRT screen. This output is in- hibited while DISPTMG is at "Low" level. Normally this output Reset (RES) is mixed with video signal and provided to the CRT display Reset s p (RES) is an input signal used to reset the CRTC. device. When RES is at "Low" level, it forces the CRTC into the Light Pen Strobe (lPSTB) follOWing status. LPSTB is an active "High" level input signal which accepts 1) All the counters in the CRTC are cleared and the device strobe pulse detected by the light pen and control circuit. When stops the display operation. this signal is activated, the refresh memory address (MAo- 2) AIl the outputs go down to "Low" level. MAu) which are shown in Fig. 2 are stored in the 14-bit light 3) Control registers in the CRTC are not affected and remain pen ,egister. The stored refresh memory address need to be unchanged. corrected in software, taking the delay time of the display This signal is different from other H06800 family LSIs in the follow- device, light pen, and light pen control circuits into account. ing fonctions and has restrictions for usage. I) RES has capability of reset function only when LPSTB is at "Low" level. 2) The CRTC starts the display operation Immediately after RES goes "High" level. .HITACHI 146 HItachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S • REGISTER DESCRIPTION Table 1 Internal RegISters Assignment Register Register Name Program Unit # 0 AR Address Register X 0 0 RO HOrizontal Total· Character X 0 0 Rl HOrizontal Displayed Character X 0 Honzontal Sync· Character X 0 0 R2 Position 0 R3 Sync Width X 0 wv3 wv2 wvl wvO wh3 wh2 whl whO 0 R4 Vertical Total * Line X 0 0 R5 Vertical Total Adjust Raster X 0 0 R6 Vertical Displayed Line X 0 Vertical Sync· Line 0 0 R7 X Position 0 RS Interlaee & Skew X 0 V S Maximum Raster 0 R9 Raster X 0 Address 0 RIO Cursor Start Raster Raster X 0 0 Rll Cursor End Raster Raster X 0 0 R12 Start Address(H) 0 0 0 R13 Start Address( L) 0 0 0 R14 CursorlH) 0 0 0 R15 Cursor (L) 0 0 0 R16 Light Pen( H) 0 X 0 R17 Light Pen( L) 0 X [NOTE) 1. The Registers marked·. (Written Value) '" (Specified Value) - 1 2. Written Value of R9 IS mentioned below. 1) Non~lnterlace Mode } (Wrotten Value) = (Specified Value) - 1 Interlace Sync Mode 2) Interlace Sync & Video Mode (Wrotten Value) = (Specified Value) -2 3. CO and Cl speCify skew of CUD ISP 00 and 01 speCify skew of OISPTMG When S IS "1", V specifies video mode. S specifies the Interlace Sync Mode. 4. B specifies the cursor blmk. P specifies the cursor blink period. 5. wvO-wv3 specify the pulse width of Vertical Sync Signal. whO-wh3 speCify the pulse width of HOrizontal Sync Signal. 6. RO IS ordlnally programmed to be odd number In Interlace mode. 7. 0; Yes, x, No ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 147 HD6845R/HD6845S - - - - - - - - - - - - - - - - - - - - - - - - - - - - - • FUNCTION OF INTERNAL REGISTERS Table 2 Pulse Width of Vertical Sync Signal VSW • Address Register (AR) Pulse Width 27 7!' 2' 2' This is a 5-bit register used to select 18 internal control registers (RQ-RI7)_ Its contents are the address of one of 18 0 0 0 0 16H internal control registers. Programming the data from 18 to 31 produces no results. Access to RO-RI7 requires, first of all, to 0 0 0 1 1 write the address of corresponding control register into this 0 0 1 0 2 register. When RS and CS are at "Low" level, this register is 0 0 1 1 3 selected. 0 1 0 0 4 • Horizontal Total Register (RO) 0 1 0 1 5 This is a register used to program total number of horizontal 0 1 1 0 6 characters per line including the retrace period. The data is 8-bit 0 1 1 1 7 and its value should be programmed according to the specifi- 1 0 0 0 8 cation of the CRT. When M is total number of characters,M-l shall be programmed to this register. When programming for 1 0 0 1 9 interlace mode, M must be even. 1 0 1 0 10 1 0 1 1 11 • Horizontal Displayed Register (R 1) 1 1 0 0 12 This is a register used to program the number of horizontal displayed characters per line. Data is 8-bit and any number that 1 1 0 1 13 is smaller than that of horizontal total characters can be 1 1 1 0 14 programmed. 1 1 1 1 15 H; Raster penod • Horizontal Sync Position Register (R2) This is a register used to program horizontal sync position as multiples of the character clock period. Data is 8-bit and any number that is lower than the horizontal total number can be Table 3 Pulse Width of Horizontal Sync Signal programmed. When H is character number of horizontal Sync Position, H-I shall be programmed to this register. When pro- HSW grammed value of this register is increased, the display position Pulse Width 23 22 21 2" on the CRT screen is shifted to the left. When programmed value is decreased, the position is shifted to the right. Therefore, 0 0 0 0 - (Note) the optimum horizontal position can be determined by this 0 0 0 1 1 CH value. 0 0 1 0 2 • Sync Width Register (R3) This is a register used to program the horizontal sync pulse 0 0 1 1 3 width and the vertical sync pulse width. The horizontal sync 0 1 0 0 4 pulse width is programmed in the lower 4-bit as multiples of the 0 1 0 1 5 character clock period. "0" can't be programmed. The vertical 0 1 1 0 6 sync pulse width is programmed in higher 4-blt as multiples of the raster period. When "0" IS programmed in higher 4-bit, 0 1 1 1 7 16 raster period (16H) is specified. 1 0 0 0 8 1 0 0 1 9 • Vertical Total Register (R4) This is a register used to program total number of lines per 1 0 1 0 10 frame including vertical retrace period. The data is within 7-bit 1 0 1 1 11 and its value should be programmed according to the specifica- 1 1 0 0 12 tion of the CRTC. When N is total number of lines, N-l shall 1 1 0 1 13 be programmed to this register. 1 1 1 0 14 • Vertical Total Adjust Register (R5) 1 1 1 1 15 This is a register used to program the optimum number to CH; Character clock period adjust total number of rasters per field. This register enables to (No,e) HSW = "0" can', be used decide the number of vertical deflection frequency more strictly. • Vertical Displayed Register (R6) This is a register used to program the number of displayed character rows on the CRT screen. Data is 7-bit and any number that is smaller than that of vertical total characters can be programmed. ~HITACHI 148 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S • Vertical Sync Position Register (R7) Skew function is used to delay the output timing of This is a regIster used to program the vertical sync positIOn CUDISP and DISPTMG m LSI for the tIme to access refresh on the screen as multiples of the honzontal character lme pen- memory, character generator or pattern generator, and to od. Data IS 7-blt and any number that IS equal to or less than make the same phase wIth serial VIdeo sIgnal. vertical total characters can be programmed. When V IS charac- ter number of vertIcal sync posItIOn, V-I shall be programmed • Maximum Raster Address Register (R9)' to tlus regIster. When programmed value of tltis regIster IS in- ThIs IS a regIster used to program maxim urn raster address creased, the dlspl~y posItion IS shIfted up. When programmed WIthin 5-bit. Tltis regIster defmes total number of rasters per value IS decreased, the pOSItIOn IS slufted down. Therefore, the character mciudIng hne space ThIs regIster IS programmed as optimum vertical pOSItIOn may be determmed by tlus value. follows. Non-interlace Mode, I nterlace Sync Mode • Interlace and Skew Register (R8) When total number of rasters IS RN, RN-l shall be pro- This is a register used to program raster scan mode and skew grammed. (delay) of CUDISP and DISPTMG. Interlace Sync & Video Mode Raster Scan Mode Program Bit (V, S) When total number of rasters IS RN, RN-2 shall be pro- Raster scan mode IS programmed in the V, S bit. grammed This manual defines total number of rasters in non-interlace Table 4 Raster Scan Mode (2 1 ,2°) mode, interlace sync mode and interlace sync & video mode as follows: v S Raster Scan Mode Non-interlace Mode o o 0----- Total Number of Rasters:5 } Non'lnterlace Mode 1 o Programmed Value: Nr = 4 o Interlace Sync Mode ( The same as displayed I total number of rasters Interlace Sync & Video Mode 4----- Raster Address In the non-interlace mode, the rasters of even number Interlaee Sync Mode field and odd number field are scanned duplicatedly. In the 0----- Total Number of Rasters:5 interlace sync mode, the rasters of odd number field are ---- ---------- 0 Programmed Value: Nr = 4 scanned in the mIddle of even number field. Then it is 1----- controlled to display the same character pattern in two -------------- I In the interlace sync mode, ) 2----- total number of rasters in fields. In the mterlace sync & vIdeo mode, the raster scan -------------- 2 ( both the even and odd fields method is the same as the interlace sync mode, but it is 3 -__-_-_- __-_-_-__-_-_-__ 3 is ten. On programming, controlled to display different character pattern in two field. 4 -__-_-_- __-_-_- __-_-_-__ 4 the half of it is defIned as Skew Program Bit (C1, CO, 01, DO) Raster Address total number of rasters. These are used to program the skew (delay) of CUDISP and DISPTMG. I nterlace Sync & Video Mode Skew of these two kinds of signals are programmed 0----- Total Number of Rasters:5 separately. Programmed Value: Nr =3 4----- Total number of rasters ) ( displayed in the even field Raster Address and the odd field. Table 5 DISPTMG Skew Bit (2',24) D1 DO DISPTMG • Cursor Start Raster Register (R10) This is a register used to program the cursor start raster 0 0 Non-skew address by lower 5-bit (2° _2 4 ) and the cursor display mode by 0 1 One-character skew ltigher 2-bit (2' ,2 6 ). 0 Two-character skew Non-output Table 7 Cursor Display Mode (2 6 , 2') B p Cursor Display Mode o o Non-blink Table 6 CUDISP Skew Bit (2 7 ,2 6 ) o Cursor Non-display o Blink 16 Field Period C1 CO CUDISP Blink 32 Field Period o o Non-skew o 1 One-character skew Blink Penod dark 1 o Two-character skew , light Non-output 16 or 32 Field Perood "See Companson of HD6845S and HD6845R on page 40 . • HITACHI Hitachi Amenca Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (40B) 435-8300 149 HD6845R/HD6845S - - - - - - - - - - - - - - - - - - - , - - - - - - - - - - - - • Cursor End Raster Register (R11) 6) 2 ~ Nr ~ 30 (Interlace Sync &. Video mode) This is register used to program the cursor end raster address. 7) 3 ~ Nht (Except non-interlace mode) 5 ~ Nht (Non-interlace mode only) • Start Address Register (R12, R13) * In the interlace mode, pulse width is changed ±Y2 raster time when These are used to program the first address of refresh vertical sync signal extends over two fields. memory to read out. Paging and scrolling is easily performed using this register. This register can be read but the higher 2-bit (2 6 ,2") of RI2 are Notes for Use always "0". The method of directly using the value programmed in the internal registers of LSI for controlling the CRT is adopted_ • Cursor Register (R14, R15) Consequently, the display may flicker on the screen when the These two read/write registers stores the cursor location. The contents of the registers are changed from bus Side asynchro- higher 2-bit (2 6 ,2") of RI4 are always "0". nously with the display operation. Cursor Register • Light Pen Register (R 16, R 17) Writing into this register at frequent intervals for moving the These read only registers are used to catch the detection cursor should be performed during horizontal and vertical address of the light pen. The higher 2-bit (2 6 ,2") of RI6 are retrace period. always "0". Its value needs to be corrected by software because Start Address Register there is time delay from address output of the CRTC to signal Writing into the start address register at frequent intervals for input LPSTB 'Pin of the CRTC in the process that raster is lit scrolling and paging should be performed during horizontal and after address output and light pen detects it. Moreover, delay vertical display period. time shown in Fig. 2 needs to be taken into account. It is desirable to avoid programming other registers during display operation. Restriction on Programming Internal Register 1) O HOrizontal Retrace ~ i Period ~ 1! ~ ~ "C "C u a « ~ .t: i5 ~ . u ]I ti t' ~ a: x {? ~~ ~ ti '0 Display Period 'f ~ !E .~ > ~ ~ '0 z .t: U ~ .0 E ~ Z - Vertical Retrace Period Vertical fotal Adjust (NadJ I Figure 7 CRT Screen Format ~HITACHI 150 Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S Table 8 Programmed Values mto the Registers Register Reg Ister Name Value Register Register Name Value RO Honzontal Total Nht R9 Max Raster Address Nr Rl HOrIZontal Displayed Nhd RIO Cursor Start Raster R2 Horizontal Sync Position Nhsp Rll Cursor End Raster R3 Sync Width Nvsw. Nhsw Rl2 Start Address (H) 0 R4 Vertical Total Nvt Rl3 Start Address (L) 0 R5 Vertical Total Adjust Nadj R14 Cursor (H) R6 Vertical Displayed Nvd R15 Cursor (L) R7 Vertical Sync Position Nvsp Rl6 Light Pen (H) R8 Interlace & Skew Rl7 Light Pen (L) [NOTE] Nhd--6 4 7 • 7 -:-:::-:. __h _____~ 7__ 8 e • 8 • 8 --G--- - - - - - - - . . --8 9 A • • 9 8 A --0---------·--<>--9 8 B -_-_-_-_-_-_-_--_-_-_-_-_--_-_-A B - - - - - - - - - - - - - - -- B Non-mterlace Mode Interlace Sync Mode ~~r~~~~----:~=:f-~~ j 0_-0- ___________ 8-_ ' ] 2 --Sn _____ u __ :. __ 3 6--:-e e-t-- -CI -Cl .. · 5 Ime #0 4 • --0-.- .-8--.-.-. . -• 5 lone #0 :j~~ =~=~~~~-j:~ ~ 8 ~1~~----~--~~ ~ =~t~~ A--=------=- ~ =1=:----------------- ~--~ ~ ] . . ,--0-----------0--- 2 j A ________________ 0 5--:--.--.-.--.-.--:-- 4 3 • 8 (l~~:---~:~:~:.t~~ Ime #1 - .. ----------.-- 6 Ione#' 6 • • 8- -:----- -- -- -- :---7 A--O---- - - - ----0--9 ~ ng __ -------- -i--- - - - - - - ----------- A 8 ----- - - ----- -- ----- B Interlace Sync & Video Mode Interlace Sync & Video Mode (Total number of rasters in a line IS even) (Total number of rasters In a line IS odd.) Figure 8 Example of Raster Scan Display $ HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue. San Jose, CA 95131 • (408) 435-8300 151 HD6845R/HD6845S - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Interlace Sync & Video Mode Control In interlace sync & video mode, the output raster address when the number of rasters is even is different from that when the number of rasters is odd. O-+-++-+-+-+-+- O-+--++-H-++- 1-++++-+-H- Table 9 The Output of Raster Address in 2-+-++-+-+-+-+- 2-+--++-H-++- Interlace Sync & Video Mode 3-+--+-t-IH-+-+- 3-+-++-+-+-+-+- 4 -+--+-t-IH-+-+- 4-+--+t-IH-+-+- T~ Number of Rasters in a Line Even Field Odd Field s -+-I--+--+-+-H- 6-+-I--+--+-+-H- s-+-+-+-+-+-+-+- 6-+-I--+--+-+-H- 7-+-I--+--+-+-H- 7-+-++-+-+-+-+- Even Even Address Odd Address s-+--+-+-H-+-+- s-+--+-t-IH-++- Even Line" Even Address Odd Address 9 -G>-e. . . . .e-e-- 9 .......IHHll....... Odd I 10 -+-+-+-+-+-+-+- 10-6.................. I Odd Line" Odd Address Even Address • Internal line address begins from 0 Cursor Start Address :0 9 Cursor Start Address = 9 Cursor End Address" 9 Cursor End Address = 10 1) Total number of rasters in a line is even; When number of rasters is programmed to be even, even raster address is output in the even field and odd raster address o-++++-+-H- is output in the odd field. 1 .......IHHll...... 2) Total number of rasters in a line is odd; 2-G. . . . . .e-e-- When total number of rasters is programmed to be odd, odd 3 .......IHHll...... and even addresses are reversed according to the odd and even 4~...~~......- . - lines in each field. In this case, the difference in numbers of dots S .......IHHll...... displayed between even field and odd field is usually smaller the 6-+--+-t-IH-+-+- case of 1). Then interlace can be displayed more stably. [NOTE] The wide disparity of dots between number of dots s -+++--+-+-H- between even field and odd field influences beam current of CRT. CRT, which has a stable high·voltage 9-+--++-H-++- part, can make interlace dIsplay normal. On the con· 10 -+-+++-+-H- trary, CRT, which has unstable high·voltage part, Cursor Start Address = 1 moves deflection angle of beam current and also dots Cursor End Address = 5 dIsplayed in the even and odd fields may be shifted. Characters appears dlstrotlOg on a border of the Figure 9 Cursor Control screen. So 2) programming has an effect to decrease such evil influences as mentIoned above. Fig. 13 shows fine chart in each mode when IOteriace is performed. • Cursor Control Fig. 9 shows the display patterns where each value is programmed to the cursor start raster register and the cursor end raster register. Programmed values to the cursor start raster register and the cursor end raster register need to be under the following condition. Cursor Start Raster Register ~ Cursor End Raster Register ~ Maximum Raster Address Register. Time chart ofCUDlSP IS shown in FIg. 14 and Fig. 15. ~HITACHI 152 HItachi AmerIca Ltd . • 2210 OToole Avenue • San Jose, CA 95131 • (408) 435-8300 Character Clock PerIOd Number of Harolontal Dlsplaved Characters Tc / / Hor'lontal Sync POSition Number 01 Horlzontdl Total Characters eLK _________ nn __ N~ 1 Nhd Nhsp Nhsp + 1 NO' ___________ --I"1- OISPTMG c----I Ho"wnlal D,splay Pertod Nh,"T HorIzontal Til'" Chlln :I: I- Nhsp-Tc -I- Nh$W'Tc ==1 Tr ~ INhH1!oT c ~ ;<. HSYNC » 3 MA.-MA"Y 0 Y 1 12 I -------~-v--v-------------~--------------v------ ~ ~'---J\..... __ ...... __ a~ ....... ________ ~ .......... ________ ---"-- ___ _ ~r RA.-RA~ ~r------------------ !: ?- r----------------RasterP""odTr - - - - - - - - - - - - - - - - - J ~ o o eLK r U'U1..fL ______ JlJ1Il _______ Jl.flJl __________ J1JUl __ ------.rtn.rm ______ JlIlJlfl.. __ _ .,~.• o MA._MA€, ~::::H:~::::Y2I..~~-=::::::::~::::==E"::~"?:: TIme Chart 01 Ra51er LIne Period ~J: CD _ RA,-AA, _ 0 ~ 1 -,_:::::::=t== N, =+==0 X 1 L,n.e Penod TL -INr+OoTr ~ ~ ,--~r \,,,m,mR"'" Add:", I Line 00(') ~ J: r <... - lone Penod T L - - - - - - - - - - - - - - - - - - - - - - i ~ () » ~ ~ -r= ~ FramePe"odT FAM -1 i Tadl r NIIsp \ Verllcal T,me Chart D~Plaved Characters Number of Vertlci"l " ~~~"1':~ Sync t-- ~~~~~h~:a~,e;r,~ca' ~ ~_'@ /~- ,@ ~ Vert,cal D'sp1ay Period Nvd-T L DISPTMG ~.. nnn--nnn--nnn _JIUL_JUUlJUUl._- -. - •••••- - -___ •- -••- - - - - - - - - - - - - - - - - - - •~ ___________________ \ .1..V",,,,1 R.."" ',,,od I nlt-llll-J\IlJI.--.-' _ _ _ -- Frame Per,od TFRM ~ (N VT +1)oT l +TadJ ~ ,_ /' SeeFIg 11 ____ !--TIISW ' SeeF,g 12 Tadl FIne Adlu5lmem Period of Frame ~ - - - - - - - - - - - - N v s p o TL - - - - - - - - - - - Tadl - NadJoTr VSYNC Tvsw VertIcal Sync ::c PulseW,dlh TV$w -lIrIvswoTr o 0> 0) ~ Figure 10 CRTC Time Chart 01 :lJ Output waveform of hOrizontal & vertical diSPlaV) J: ( to the case where values shown In Table 8 are o Programmed to each r~lster 0 0> 0) 01 ~ to) 01 en HD6845R/HD6845S------------------------------------------------------------ - i - - - - - - - - - - - - V e r t l c a l Display Period ------------t-~---- Vertical Retrace Period - - - - - - - L'"e~----------~N~w~-~2------------L------------N~W~-~'------------L---~N~W~-------- ____________________ DI SPTMG Ih U ,.,U r---1U , . ,L ---- -- ___- - ...J, . ,U , . ,U r---1U, . ,U , . ,U , . ,L- - - -___ - - - ...J -,.-,U ,.-,1_ _ _ _ _ _ _ _ _ _ _ __ Figure 11 Switching from Vertical Display Period over to Vertical Retrace Period (Expansion of Fig. 10- ® ) 1 - - - - - - - - - Vertical Retrace Penod -::----:-,---c:---:--:---t--------Vertlcal Display Period - - - - - - - - - FlOe Adjustment Period of Frame Period Tad] = Nad)' Tr Lme ~::::::::JN~~~:::::::::::::::l~~~~~~~~~~~:::::::::::::J[:::::::::::::t::::::::I::::: DISPTMG 1---------------------------------------------------' Figure 12 Fme Adjustment Period of Frame m Vertical Display (Expansion of Fig. 10- (ij) ~HITACHI 154 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - HD6845R/HD6845S JJO "xm . t:Bl~ J ~ .J~ .I , :~ I ' ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 155 ::c en o(l) (l) 00 ~ 01 :xl X o (l) 00 Lone "'0 Line "1 I Line ""2 ~ 01 :I: CJ) i>1 I ";!. RA.-AA. o 1 11' 131-------1 N, o 1 1 1 ' 1 3 1- - - - - - - 1 N, 1 0 1 1 I ' 1 3 1 - - - - - - -I N, » 3 CD /--- ----- . . ,'© 6 CUDISP : n n n \ J 'p.." !: " --------- / Figure 14 Relation between Line' Raster and CUDISP N N a 0 Nnl" !\In, Nh Nhd + Nh '7" '7" '"Y''''' oi@ Q. • CD MAo -MA, Nhd I - - - - - - -I 1 NhO 1 -------1 1 NhO 1 -------1 NhtJ I 1 1- - - - - - -I 1 ~ ::t ::> I I I ~ C CD RAo-AA. I I I cnO r- '" ::t :::l t- CUOISP o(f) 5" () Cursor register = Nhd+2 ) » ( Cursor Start «> Raster Register = 1 c;. ~ Cursor End Raster Register = 3 are Programmed m cursor dIsplay mode ~ 0 .,. $ In bltnk mode, It IS changed Into display or non-dlsplay mode when field period IS 16 or '"Co c;. Figure 15 CUDISP Timing (Expansion of Fig. 14. ©) 32-tlme penod '" 0 0 Raster address ~ HOrizontal Display Period HOrizontal Retrace Penod I Line number -=t ,? ' char \ \ / ~ ~ » '0 C, I 0 0 I I I Nhd·' I Nhd-l Nhd I Nhd Nht Nht I 3 ~ -- -- I [ Nhd Nhd+l 2Nhd-l 2Nhd Nhd+Nht c;" III I Nhd I I I I !; g Nhd+l 2Nhd·' 2Nhd Nhd+Nht !'l- ~ :. > "!! 2 C I I I 2Nhd 2Nhd 2Nhd+l I 2Nhd+ 1 -- 3Hhd-l I 3Nhd·' 3Nhd I 3Nhd -- 2Nhd+Nht 2Nhd+Nht I <5 is ~ I) \ o (}~ !2. «> • I j I I I I - ~::I ~ S ~ NVd-{ I tNvd- 1 I Nhd Hvlf.l1 Nhd+l I •r INlld-l).Nhd I (Nvd-lINhd+l --- Nvd Nhd-' I Nvd Nhd·' Nvd Nhd I Nvd Nhd -- (Nvd 1) Nhd+NhI I (Nvd 1) Nlw:t+ Hhl (flO ~ ::I <- ~ i. Nvd I N ! Nvd·Nhd I , Nvd·Nhd Nvd Nhd+ 1 I Nvd Nhd+ 1 -- (Nvd+l)Nhd·' (Nvd+ lJNhd I I (Hvc1+1)Nhd-1 tNvd+ ')Nhd -- Nvd Nhd+Nhl I Nvd Nhd+Hht g Valid refresh memory address (O...... Nvd·Nhd-1) ~ () ~ ) ) j j I I I are shown within the thick·line square. Refresh memory address are provided even a: » CD r.n ~ Il~ > Nvt I I NI, ! Nvt·Nhd Nvt·Nhd Nvt -Nhd+ 1 I Nvt ·Nhd+l -- (Nvt+l}Nhd·' I (Hvt+ ljNhd 1 (Hvt+ 1lNhd I (Nvt+l )Nhd -- HVI NM+Nht I Nvt Nhd+Nht during hOrizontal and Vertical retrace period. This IS an example in the case where the programmed value of start address register is O. ~ ,Nvt+ tNhd Nvt+'l.,.hd+ Nad,· i (Nvt+l).Nhd Nvt+l1-Nhd+ -- (Nvt+2JHhd-l I INIJt+21·Nhd I -- (NVI+l)Nhd+Nhl I ~ (Nvt+2I Nhd.lj(Nvt+2).Nhd NvHlINhd+N"', ~ ~ Figure 16 Refresh Memory Address (MAo-MA 13 ) :r o OJ (Xl +> (J1 J:I :co (J1 OJ ..... (Xl +> (J1 (Jl HD6845R/HD6845S------------------------------------------------------------ • How to Use the CRTC ters is selected. RES is the system reset signal. When RES becomes "Low", • Interface to MPU the CRTC internal control logic is reset. But internal registers As shown in Fig. 17, the CRTC is connected with the stand- shown in Table I (RO- R17) are not affected by RES and rema- ard bus of MPU to control the data transfer between them. The in unchanged. CRTC address is determined by CS and RS, and the Read/Write The CRTC 1S designed so as to provide an interface to micro- operatIOn is controlled by R/W and E. When CS 1S "Low" computers, but adding some external circuits enables an inter- and RS 1S also "Low", the CRTC address register 1S selected. face to other data sources. When CS is "Low" and RS is "High", one of 18 internal regis- Ao - A15 RS VMA DECO- DER cs R/W R/W HD6800 CRTC MPU E Do - 07 °0-D 7 RES RES Sv stem ¢2 clock RES Figure 17 Interface to MPU • Dot Timing Generating Circuit of dot counter shown m F1g. 18. As this example shows ex- CRTC's CLK mput (21 pm) 1S prov1ded with CLK wh1ch phC1tly, CLK 1S at "Low" level !n the former half of horizontal defines honzontal character time period from the outs1de. character I1me and at "H1gh" level !n the latter half. It 1S neces- This CLK 1S generated by dot counter shown in F1g. 18. F1g. sary to be careful so as not to m1stake th1S polarity. 18 shows a example of circuit where honzontal dot number of the character 1S "9". F1g. 19 shows the operation I1me chart L-________ L-_----<...._ _ lOAD PIS REG-N -+________________ DOTCP-P l to PIS SHI FT REGISTER L -_ _ _ _ _ _ _ _ _ _ _ _ _ _ CHCP-P to CRTC (ClK) Figure 18 Example of Dot Counter ~HITACHI 158 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S 6 8 0 23456780 2 3 4 7 8 0 DOTCP-P a. a, a,----..L...-+-_ _ _...J a, ___....J lOAD PIS AEG-N CHCP-P (ClK) I - - - - O n . Honzontal-----l Character Time Figure 19 Time Chart of Dot Counter • INTERFACE TO DISPLAY CONTROL UNIT Fig. 21 shows detailed block diagram of display control unit . Fig. 20 shows the interface between the CRTC and display ThiS shows how to use CUDISP and DISPTMG. CUDISP and control unit. Display control unit is mamly composed of DISPTMG should be used bemg latched at least one lime Refresh Memory, Character Generator, and Video Control at external fllp·flop FI and F2. Fhp·flop FI and F2 functIOn circuit. For refresh memory, 14 Memory Address line to make one-character delay lime so as to synchrOnize them (0-16383) max are provided and for character generator, 5 with video Signal from parallel-serial converter. High-speed Raster Address line (0-31) max are provided. For video control D type flip-flop as TTL IS used for thiS purpose. After bemg cirCUit, DISPTMG, CUDISP, HSYNC, and VSYNC are sent delayed at FI and F2 DISPTMG IS AND-ed with character out. D1SPTMG IS used to control the blank penod of video video signal, and CUDISP IS Or-ed With output from AND signal. CUDISP IS used as video signal to display the cursor on gate. By using thiS ClfCUltry, blankmg of honzontal and verlical the CRT screen. Moreover, HSYNC and VSYNC are used as retrace lime is controlled. And cursor video IS mixed With drive SignalS respectively for CRT honzontal and vertical deflec· character video signal. lion CirCUitS. Fig. 21 shows the example in the case that both refresh Outputs from video control circuit, (video signals and sync memory and Character Generator can be accessed for honzontal signals) are provided to CRT display unit to control the one character lime. Time chart for thiS case IS shown m Fig. 24. deflection and brightness of CRT, thus characters are displayed This method IS used when a few character needed to be dis- on the screen. played In honzontal dlfectlon on the screen. ~HITACHI Hitachi Amertca Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 159 HD6845R/HD6845S------------------------------------------------------- 14max Refresh MA Memory RA 6 max II Character CRTC Generator DISPTMG ~ ClK CUDISP HSYNC VSYNC V Ideo Control Vodeo Signals Sync Sognals 0 0 0 f I Figure 20 Interface to Display Control Unit Fl CUDISP CHCP·N F2 DISPTMG CRTC VIDEO P MA Refresh Character ~ Memory Generator 5 RA ClK CHCP·P DOT COUNTER OSC Figure 21 Display Control Unit (1) • HITACHI 160 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S When many characters are displayed in horizontal direction there are some troubles about delay time of MA during hori- on the screen, and honzontal one-character time is so short zontal one-character I1me on high-speed display operation, that both refresh memory and Character Generator cannot be system shown in Fig. 23 IS adopted. The time chart m this case accessed, the circuitry shown in Flg_ 22 should be used. In thIs IS shown in Fig. 26. Character video SIgnal is delayed for two- case refresh memory output shall be latched and Character character time because each MA outputs and refresh memory Generator shall be accessed at the next cycle. The time chart outputs are latched, and they are made to be m phase with in thIs case IS shown in Fig. 25 CUDISP and DISPTMG should CUDISP and DISPTMG by delaymg for two-character time. be provided after being delayed by one-character time by using Table 10 shows the Clfcultry selection standard of display units. skew bit of mterlace & skew register (R8). Moreover, when Table 10 Circuitry Standard of Display Control Unit Interlace & Skew Register Block Bit Programming Case Relation among tCH Refresh Memory and Character Generator Diagram Cl CO Dl DO 1 tCH > RM Access + CG Access + tMAD Fig. 21 0 0 0 0 2 RM Access + CG Access + tMAD £ tCH > RM Access + tMAD Fig. 22 0 1 0 1 3 RM Access + tMAD £ tCH > RM Access Fig. 23 1 0 1 0 tCH CHCP Penod, tMAD MA Delay RM. Refresh Memory CG Character Generator Fl CUDISP CHCP-N DISPTMG CRTC P MA Refresh Memory S RA ClK L -_____________________________________ I DOT CHCP·P COUNTER OSC Figure 22 Display Control Unit (2) Fl CUDISP DISPTMG CRTC l A MA T Refresh C Memory H (21 RA ClK ~----------------------------------~C~H~C~P!-P~ED~O~T~C~O~U~N~T~E~R~----1--1 0SC Figure 23 Display Control Unit (For high-speed display operation) (3) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 161 HD6845R/HD6845S--------------------------------------------------------- CHCP·P MA DISPTMG --+---~ CUDISP - - t - - -.......__"""'-t-------t-----' F2·Q Fl·Q CGOUT --+---' VIDEO -+------' \ CRT DISplay ••••••• Figure 24 Time Chart of DISplay Control Unit (1) CHCP·P MA DISPTMG CUDISP --4-------~----~_+--~--~----" F2·Q Fl·Q CGOUT VIDEO CRT DISplay ••••••• Figure 25 Time Chart of DISplay Control Unit (2) ~HITACHI 162 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S -~ ~ ~ ~ ~ ~ L J MA -~ o X 1 X 2 X 3 X 4 X 5 L -~-\ DISPTMG r- -------- I \r-- r- Two-Character skew --=l r -----"'\ CUDISP \ I \ / \ } LATCH(2 ) 0 1 2 3 4 F2-Q 1\ F1-Q \ I RMOUT -- --~"Illlh ~r r - - - - ~ ;YilllC2 r-_........2. ~ --- - - - - "JIllii ...... LATCH!1 ) - - 0 1 2 3 4 X CGOUT ....... -~ Yx- ...... --Tx1" r --y-ro ~ ---- - - -~~ ~-- r---- h ...... VIDEO CRT Dl5pla y \ •••• ~ .. Figure 26 Time Chart of Display Unit (3) • HOW TO DECIDE PARAMETERS SET ON THE CRTC • How to Decide Parameters Based on Specification of CRT (Nvt + I) (Nr + 2). + 2NadJ Rt= 2 ............. (a) Display Unit (Monitor) Number of Horizontal Total Characters Horizontal deflection frequency fh is gIven by specification Rt = (Nvt + I )(Nr + 2) + 2NadJ +I (b) of CRT display unit. Number of horizontal total characters IS 2 determined by the follOWing equation. (a) is applied when both total numbers of vertIcal characters (Nvt + I) and that of rasters m a Ime (Nr + 2) are odd. fh = I (b) is applied when total number of rasters (Nr + 2) IS even, or te (Nhl + I) when (Nr + 2) is odd and total number of vertical characters where, (Nvt + I) IS even. te Cycle Time of CLK (Character Clock) where, Nhl : Programmed Value of Horizontal Total RegIster Rt Number of Total Rasters per frame (RO) (Including retrace period) Number of Vertical Total Characters Nvt Programmed Value ofVerttcal Total Vertical deflectlon frequency is given by specification of RegIster (R4) CRT dIsplay umt. Number of vertical Total characters is Nr Programmed Value of Maximum Raster determined by the followmg equatIOn. Address Register (R9) I) Non-interlace Mode Programmed Value of Vertlcal Total Adjust Rt = (Nvt + I) (Nr + I) + NadJ Register (RS) 2) Interlace Sync Mode Horizontal Sync Pulse Width Rt = (Nvt + I HNr + I) + NadJ + 0.5 Honzontal sync pulse WIdth IS programmed to low order 3) Interlace Sync & VIdeo Mode - 4-blt of honzontal sync WIdth regIster (R3) m unit of honzontal character time. Programmed value can be selected wlthm from I to 15. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 163 HD6845R/HD6845S------------------------------------------------------- Horizontal Sync Position Vertical Sync Position As shown in Fig. 27, horizontal sync position is normally As shown in Fig. 28, vertical sync position is normally selected to be in the middle of horizontal retrace period. But selected to be in the middle of vertical retrace period. But there there are some cases where is optimum sync position is not are some cases where its optimum sync position is not located in located in the middle of horizontal retrace period according to the middle of vertical retrace period according to specification specification of CRT. Therefore, horizontal sync position of CRT. Therefore, vertical sync position should be determined should be determined by specification of CRT. Horizontal sync by specification of CRT. Vertical sync pulse position is pro· pulse position is programmed in unit of horizontal character grammed to vertical sync position register (R 7) in unit of line time. period. • How to Decide Parameters Basad on Screen Format I' 1 Dot Number of Charaeta,. (Horizontal) OISf"TMG ---.J • I L- I- =:;::.. -+=:':.:,,::4-- ~::r:::~od --I , Dot number of characters (horizontal) is determined by character font and character space. An example is shown in Fig. HSVNC-"Io---------"n--------- 29. More strictly, dot number of characters (horizontal) N is Figure 27 Time Chart of HSYNC determined by external N·counter. Character space is set by means shown in Fig. 30. Dot Number of Characters (Vertical) Vertical Sync Pulse Width Dot number of characters (vertical) is determined by Vertical'Sync Pulse Width is programmed to high order 4·bit characters font and line space. An example is shown in Fig. 29. of vertical sync pulse width register (RJ) in unit of raster Dot number of characters (vertical) is programmed to maximum period. Programmed value can be selected within from I to 16. raster address (R9) of CRTC. t----- Vertical I Displey Period j• Vertical Retrace Period 'I ' .--------I Vertical Displey Period DISPTMG---.Ji--""I -""1-jSJ 1 1 1 i-I--r......,I~J~ I 1 Frame------ VSYNC ______________________ ~nL ________________________ Figure 28 Time Chart of VSYNC Character Font r '-.. Don Number of HOrizontel Characte~ arBeter • •• •• • • • • • • • •• • • • • ••• • • • • •• •• • • • • Dot Number of Vertical Characte.. ••• • • •• • • (Number of Rastersl • • • • •• J Line Spece Dot Number of Horizontal Charecter. 10 { Dot Number of Vertical Characters I. 7x9 Cheracter generator used. 13 Figure 29 Dot Number of Horizontal and Vertical Characters • HITACHI 164 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S Character Font \ ••••• • • • • • • • • •• • • • • • • • • • •• "0" ..0 ....0 .. I I I Sena I Data I I I I I I I Shift Register F,gure 30 How to Make Character Space 1 Horizontal Deflection Period (th) = fh Honzontal Display Period Honzontal Retrace Period Number of Horizontal Displayed Characters ~ HOrizontal Display Period Honzontal Character Time = --:-:--:----:--'-:---'------:--:-::-----:-----:-===- Number of Horizontal Displayed Characters F,gure 31 Number of Horizontal D,splayed Characters Number of Horizontal Displayed Characters cal retrace penod and the relation between number of vertical Number of horizontal displayed characters is programmed to displayed character and total number of rasters on a screen is horizontal displayed register (RI) of the CRTC. Programmed as mentioned above, CRT which is suitable for desired screen value is based on screen format. Horizontal display penod, format should be selected. wluch is given by specIfication of horizontal deflection fre· For optimum screen format, it is necessary to adjust number quency and horizontal retrace penod of CRT display unit, of rasters per line, number of vertical displayed characters, and determines horizontal character time, being divided by number total adjust raster (Nadj) within speCification of vertical of horizontal displayed characters. Moreover, its cycle time and deflection frequency. access time which are necessary for CRT display system are Scan Mode determined by horizontal character time. The CRTC can program three·scan modes shown in Table II Number of Vertical Displayed Characters to interlace mode register (R8). An exampb of character display Number of vertical displayed characters is programmed to in each scan mode is shown In Fig. 8. vertical displayed register (R6). Programmed value is based on screen format. As specification of vertical deflection frequency of CRT determines number of total rasters (Rt) including verti· • HITACHI HItachI Amenca Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 165 HD6845R/HD6845S--------------------------------------------------------- Table 11 Program of Scan Mode (RIO, RII) enable programming the display modes shown in Table 7 and display patterns shown in Fig. 9. Therefore, it is v S Scan Mode Mam Usage possible to change the method of cursor display dynamically 0 0 Normal D,splay of Characters according to the system conditions as well as to realize the Non·mterlace cursor display that meets the system requirements. 1 0 & Figures Start Address Fme Display of Characters Start address resisters (RI2, R13) give an offset to the 0 1 Interlace Sync & F,gures address of refresh memory to read out. Th,s enables paging and scrolling eas!ly. D,splay of Many Characters Interlace Sync Cu rsor Register 1 1 & Flgure~ WIthout Using Cursor registers (RI4, RIS) enable programming the cursor & V,deo Hlgh·resolutlon CRT display position on the screen. As for cursor address, it is not X, V address but linear address that is programmed. [NOTE] In the interlace mode, the number of times per • Applications of the CRTC sec. 10 raster scannmg on one spot on the screen is half as many as that 10 non·mterlace mode. • Monochrome Character Display Therefore, when persistence of luminescence IS Fig. 32 shows a system of monochrome character display. short, flickering may happen. It IS necessary to Character clock signal (CLK) is provided to the CRTC through seiect optImum scan mode for the system, takmg OSC and dot counter. It is used as basic clock which drives characterIstics of CRT, raster scan speed, and internal control circuits. MPU is connected with the CRTC by number of displayed characters and f,gures into standard bus and controls the CRTC initialization and read! account. WrIte of internal registers. Refresh memory is composed of RAM which has capacity of Cursor Display Method one frame at least and the data to be displayed is coded and Cursor start raster register and cursor end raster register stored. The data to refresh memory is changed through MPU ~====~~======================~~==================~AIS-Ao MPU REFRESH MEMORY IRAM) RA CRTC OISPTMG CUDISP HSYNC VIDEO CONTROL VIDEO SYNC SIGNAL 0 0 0 VSYNC Figure 32 Monochrome Character Display .HITACHI 166 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S bus, while refresh memory is read out successively by the CRTC CUDlSP, HSYNC, and VSYNC are provided to video control to display a static pattern on the screen. Refresh memory is CIrCUit. It controls blanking for output of parallel-serial con- accessed by both MPU and the CRTC, so it needs to change its verter, mixes these signals with cursor video signal, and gene- address selectively by multiplexer. The CRTC has 14 MA rates sync signals for an interface to monitor. (Memory Address output), but in fact some of them that are needed are used according to capacity of refresh memory . • Color Character Display Code output of refresh memory is provided to character Fig. 33 shows a system of color character display. In this generator. Character generator generates a dot pattern of a example, a 3-bit color control bit (R, G, B) is added to refresh specified raster of a specified character in parallel according to memory in parallel with character code and provided to video code output from refresh memory and RA (Raster Address control circuit. Video control circuit controls coloring as well output) from the CRTC. Parallel-serial converter is normally as blanking and provides three primary color video signals (R, composed of shift register to convert output of character G, B signals) to CRT display device to display characters in generator into a serial dot pattern. Moreover, D1SPl'MG, seven kinds of color on the screen. 1====;-r============;r=====~AIS -Ao MPU ~==~~~==========~===~=>D,-Do Configuration of the Refresh Memorv REFRESH MEMORY Blink (RAM) RA CRTC COLOR BIT IR, G, B) DISPTMG R. VIDEO CUDISP HSYNC VIDEO CONTROL G. VIDEO B. VIDEO 00 0 VSYNC SYNC SIGNAL Figure 33 Color Character Display • Color limited Graphic Display coded output of refresh memory. Umited graphic display is to display simple figures as well as In this example, graphic pattern generator adopts ROM, so character display by combination of picture element which only the combination of picture elements which are program- are defmed in unit of one character. med to it is used for this graphic display system. Adopting RAM As shown in Fig. 34, graphic pattern generator is set up in instead of ROM enables dynamically writable symbols in any parallel with character generator and output of these gener- combination on one display by changing the contents of them. ators are wire-ORed. Which generator is accessed depends on $ HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA l5131 • (408) 435-8300 167 HD6845R/HD6845S------------------------------------------------------- 1===:::::;-r============:;r=======~Au-Ao MPU MA REFRESH MEMORY IRAMI CRTC COLOR BIT IR, G, BI CUDISP HSYNC VIDEO CONTROL R. VIDEO G. VIDEO B. VIDEO oo 0 VSYNC ~======~~~~-JL- ______________________ --JSYNCSIGNAL Figure 34 Color Limited Graphic Display ~HITACHI 168 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S • Monochrome Full Graphic Display refresh memory is dot memory that stores all the dot patterns, Fig. 35 shows a system of monochrome full graphic display. so its output is directly provided to parallel·serial converter to While simple graphic display is figure display by combination of be displayed. Dot memory address to refresh the screen is set picture elements in unit of I picture elements, full graphic dis- up by combination of MA and RA of CRTC. play is display of any figures in unit of I dot. In this case, r-- MPU ---- ~ MA BUS DRIVER] OSC COUN- TER RA 1MULTIPLEXER H DOT MEMORY CRTC (RAM) 11 P - S J DISPTMG HSYNC VIDEO CONTROL VIDEO SYNC SIGNAL 00 0 VSYNC Figure 35 Monochrome Full Graphic Display .HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 169 HD6845R/HD6845S------------------------------------------------------------ Fig. 36 shows an example of access to refresh memory tween dot on the CRT screen and refresh memory address is by combination ofMA and RA. Fig. 36 shows a refresh memory shown in Fig. 37. address method for full graphic display. Correspondence be- RA, RA, RA, MA, mall CRTC MA, mall MA, malO MA, rna, MA, rna, MA, rna, ~I Refresh Memory MA, rna, Address MA, rna, MA, rna, MA, rna, - rna, rna, rna, Figure 36 Refresh Memory Address Method for Full Graphic Display 32 Characters x 8 dots = 256 dots ./ 1 b yte 18 b' -It I I 0 1 31 32 33 63 64 65 95 8 rasters 127 96 97 11 line) 224 225 255 241lne5 : x 8 rasters : = 192 rasters : , 6112 6113 6148 \ Value of rna Figure 37 Memory Address and Dot Display Position on the Screen for Full Graphic Display ~HITACHI 170 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S • Color Full Graphic Display their output is provided to three parallel·serial converters. Then Fig. 38 shows a system of color full graphic display by 7· video control circuit adds the blanking control to output of color display.· Refresh memory is composed of three dot these converters and provides it to CRT display device as red, memories which are respectively used for red, green, and blue. green, and blue video signals with sync signals. These dot memories are read out in parallel at one time and r--- MPU 0........- OSC DOT COUN· TER r MA RA Jill MULTIPLEXER BUS DRIVER BUS DRIVER BUS DRIVER B G R DOT MEMORY (RAM) CRTC 16 It P - S ]J RED VIDEO DISPTMG HSYNC VIDEO CONTROL GREEN VIDEO BLUE VIDEO 0 0 0 VSYNC SYNC SIGNAL Figure 38 Color Full Graphic Display • Cluster Control of CRT Display circuit separately, but these are controlled together by the The CRTC enables cluster control that is to control CRT CRTC. display of plural devices by one CRTC. Fig. 39 shows a system In this system, it is possible for plural CRT display devices to of cluster control. Each display control unit has refresh memory, have their own display separately. character generator, parallel-serial converter, and video control @HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 171 I o -..J CJ) N OJ A1S~Ao "'" 01 ::0 J: MPU o CJ) OJ I "'" 01 en ~ :! :P 3 ~ coOJ r: c. ~ o o c}~ Q. CD • l:I :J - g ~ (flO ~ :I C- o OISPTMG If> 5" () CUOISP :P VIDEO HSYNC CONTROL * § VSYNC ~ .. $ '" en Co ~ ~ ~ '" o o ~ L.::-J ~ o o o o o o Figure 39 Cluster Control by the CRTC -------------------------------------------------------HD6845R/HD6845S • EXAMPLES OF APPLIED CIRCUIT OF THE CRTC Table 12. Moreover, specification of CRT display unit is shown Fig. 41 shows an example of application of the CRTC to in Table 13 and initializing values for the CRTC are shown in monochrome character display. Its specification IS shown in Table 14. Table 12 Specification of Applied CirCUit Item Specification Character Format 5 x 7 Dot Character Space Horizontal: 3 Dot Vertical: 5 Dot One Character Time Ills Number of Displayed Characters 40 characters x 16 lines; 640 characters Access Method to Refresh Memory Snychronous Method (DISPTMG Read) Refresh Memory 640 B 2 15 214 :213 2'2 211 2 10 2" 2' 23 22 . . . . . . . . . 2". 28 2' 26 2' 21 Refresh 0 0 0 0 0 0 Memory CRTC Address Map Address 0 0 0 1 0 0 x x x X x x X X X 0 Register CRTC Control 0 0 0 1 0 0 { x x X x 1 Register X X X " x ... don't care, ••.• Oor 1 Synchronization Method HVSYNC Method Table 13 SpeCification of Character Display Item SpeCification Scan Mode Non'lnterlace Honzontal Deflection Frequency 15.625 kHz Vertical Deflection Frequency 60.1 Hz Dot Frequency 8MHz Character Dot (Horizontal x Vertical) 8 x 12 (Character Font 5 x 7) Number of Displayed Characters (Row x Line) 40x 16 HSYNCW,dth 4 lIS VSYNCWidth 3H Cursor Display Raster 9 - 10, Blink 16 Field Period Paging, Scrolling Not used • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 173 HD6845R/HD6845S--------------------------------------------------------- Table 14 Initializing Values for Character Display InitialiZIng Value Register Name Symbol Hex (Decimal) RO Horizontal Total Nht 3F (63) Rl HOrIZontal Displayed Nhd 28 (40) R2 Horizontal Sync POSition Nhsp 34 (52) R3 Sync Width Nvsw, Nhsw 34 R4 Vertical Total Nvt 14 (20) R5 Vertical Total Adjust Nadj 08 ( 8) R6 Vertical Displayed Nvd 10 (16) R7 Vertical Sync Position Nvsp 13 (19) R8 Interlace & Skew 00 R9 Maximum Raster Address Nr OB (11) RIO Cursor Start Raster B, P, NCSTART 49 All Cursor End Raster NCEND OA (10) R12 Start Address (H) 00 ( 0) R13 Start Address (L) 00 ( 0) R14 Cursor (H) 00 ( 0) R15 Cursor (L) 00 ( 0) tc 1 J.LS i01234567io123456J01234567I 1.lm:J.11 \ Cursor 11!!.1 III Figure 40 Non-interlace Display (Example) @HITACHI 174 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ... .TTL ./fl _hhhhhh~~~ ••• ~~ •• ii, O. D. 0 '5. D. 5, If. !!!!lW ::c » ~ :! ~ ~ HD.6.T.6 I 3 C Ml'U A _ (WhentlsP™G. 'a.-"j '= DlSPTMG REG. Jill c:::= i = 1 DISPREAD-N I .J, l' i i J 1i i ' i l~~~~~~~~~~=i~~~=====i~~~~========~S'~~~T~'.~======~~~~~[)~ H07400 ____ VIDEO-P I I H8 486 HVSYNC_P :::c o FI,5IO Ol CO "'" U1 :0 J: o .... U1 Ol CO Figure 41 Example of Applied Circuit of the CRTC (Monochrome Character Displav) "'~" HD6845R/HD6845S - - - - - - - - - - - - - - - - - - - - - - - - - - - - - • DISPLAY SEQUENCE AFTER An RELEASE OF HD6845S (I) DISPTMG and CUDISP are not output. (They remain at HD6845S starts the display operation immediately after the "Low" level. The display is inhibited.) release of RES. The operation at the first field is different from (2) The data programmed in the start address register is not the normal subsequent display operation. used. (MA and RA start at "0".) [Operation at the first field after the RES release) (3) The sequences are shown in the following figures. Display Operation Starts (first field) elK RES ------k' MAx 0 Figure 42 RES Release Sequence ~--------.:;f,c::rs"t..:.f:.::'e::.:ld~--------__f--- Normal Operation RES _ ~--------~F,~.m~e~~~"=oo~------~ Adjust AdJust VSYN,!:.C_ _ _ _---..l n ~ - ~~~~D n n L.._ _ _ _ _ _ _ _....J $I Nvsp #Nvt L.._ _ _ _ _ _ _ _- - ' :=0 #1 # Nvsp #Nvt '-_ _ _ _ _ _ _ _ _ _, #0 #1 uNvsp n L Figure 43 RES Release Sequence in The Non-interlace Mode ~--------...:fc::ir~st'-f:.::'e:.:l:::.d---------+_-NOfmal OperatIon I---------------------------Fr.me-------------------------~:'tl~----------- I_ Even. Fleldl-------~+_---------- Even Field ----------·-il----------Od~ F:eld Even RA'~ ~ x;;;rx;;x;x X[;;[. ~ ~ ~ VSYN~C~~~ ~~L------ N~ A._:d_J~U_.st. __________ ~~L-------0N>rt ____~ "____"__ __A~_:d_'~u_st: ______ __" ' ~rhL_______'__ :Ad _~'U_"s_t __' 0 ____•__ '-____ N"__"___ __ " '____ "2__ V$YNC$ h~____________________~h~________________________~h~_____________________ VSYNCt! Interlace Sync Control Interlace Sync & Video Control (Nr+2=Even) Interlace Sync & Video Control (Nr+2=Qdd, Nvt=Odd, Nvsp=Even) VSYNC(J: Interlace Sync & Video Control (Nr+2=Qdd, Nvt=Qdd, Nvsp=Qdd) Figure 44 RES Release Sequence in The Interlace Mode (1) 1-________-'f~ir~st'_f:.::ie:.:I"'d__________+---Normal Operation ~-----------------------Frame------------------------~17---------------- I. t ---------+---------- Even Field Even leld I Odd Field --------:f~------- Even--- RA'~~~~~~~ I Adjust 1 AdjUst: : Adjust VSYN~C~C ____________ ~~~----------------------~f1L--------------------~rh~--------____________________ VSyN~c:::.@_ _ _ _ _ _'h h hL._____________ VSYNCC Interlace Sync & Video Control (Nr+2=Odd, Nvt=Even, Nvsp=Even) VSYNC@ Interlace Sync & Video Control (Nr+2=Odd, Nvt=Even, Nvsp=Odd) Figure 45 RES Release Sequence in The I nterlace Mode (2) ~HITACHI 176 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------------------HD6845R/HD6845S • ANOMALOUS OPERATIONS IN HD6845S CAUSED BY REWRITING REGISTERS DURING THE DISPLAY OPERATION" RegIster Anomalous operatIons caused by rewriting registers & Conditions to avoid Rewrltlng** Register Name # those operations OK or NG -- r-----~- RO HOrizontal Total The hOrizontal scan period IS dIsturbed X Rl HOrizontal Displayed There are some cases where the width of DISPTMG becomes shorter than the 0 programmed value at the moment of a reWrite operation. An error operation occurs only durmg one raster period R2 HOrizontal There are some cases where HSY NC IS placed on the position different from X Sync Position the programmed value or the nOise IS output ----, R3 Sync Width When a rewnte operation IS performed at a "High" level on HSYNC pulse or VSYNC jI, pulse, there are some cases where the width pulse becomes shorter than the programmed value at the moment of a rewnte operation R4 Vertical Total When a rewnte operation IS performed dunng the last raster period In the line, there IS 6 a possibility that the disturbance occurs dUring the vertical scan penod There IS no problem of a reWrite operation dUring raster penod except this penod R5 Vertical Total When a rewrite operation IS performed In the last character time of the raster penod, 6 Adjust there are some cases where the numbers of Adjust Raster, specified by program, are I not added. (Only dUring the adjust raster penod) -- R6 Vertical Displayed After the moment of a rewnte operation, there are some cases where the Display IS 0 rnhlblted However, the display according to the programmed value IS performed from the next field R7 Vertical Sync There are some cases where VSYNC IS placed on the posItion different from the X Position programmed value or the nOIse IS output R8 Interlace & Skew Neither scan mode bit nor skew bit IS rewritten dynamically X DynamiC Rewnte rnto scan mode bit and skew bit IS prohibIted ------- -_. ----~-------. -_._--- R9 MaXimum Raster The mternal operatIOn will be disordered by a rewrite operation X Addre5::i RlO Cursor Start Raster When a rewrite operation IS performed In the last character time of the raster 6 period, there are some cases where the Jitter occurs on the cursor raster or the cursor IS not displayed correctly. There IS also a possibility that the blink rate becomes temporally shorter than usual. Rll Cursor End Raster When a rewrite operation IS performed 10 the last character time of the raster period, jI, there are some cases where the jitter occurs on the cursor raster or the cursor IS not displayed correctly Moreover, there are also some cases where the blink rate I becomes temporally shorter than normal operation R12 Start Address (H) R12 and R13 are used rn the last raster period of the field A rewrite operation can 0 be performed except dUring this period However, when R 12 and R 13 are rewritten In each field separately, the display operation, whose start address IS determrned R13 Start Address (L) temporally by programming sequence, Will be performed. 0 A rewrite operation should be performed dUring the hOrizontal/vertical display period. R14 Cursor (H) When a rewrite operation IS performed dunng the display period, there are some 0 cases where the cursor IS temporally displayed at the address different from the programmed value. A rewrrte operation should be performed durmg the hOrlzontal/ R15 Cursor (L) vertical retrace penod. Also, when R14 and R15 are rewntten rn each fletd separately, 0 the cursor IS displayed temporally at the temporal address determined by programmmg sequence means temporary abnormal operatIOns In rewntlng the Internal register dunng the display operation Normally, after a rewrite operation, the LSI performs the speCified display operation from the next field (The operations In this table are outside our guarantee and are regarded as matenals for reference) .. {~ A reWrite operation IS possible without affecting the screen In the display so much. If conditions are satisfied, a rewrite operatIon IS possible If conditIOns are not satisfied, there are some cases where a flicker and so on occur temporally X . When a rewrite operation IS performed, there are some cases where a flicker and so on occur temporally. ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 177 HD6845R/HD6845S------------------------------------------------------------ • COMPARISON BETWEEN HD6845S AND HD6845R • Comparison of function between HD6845S and HD6845R No. Functional Difference 1-106845 HD6845S Interlace Programming Cnaracter line address. Character line address Sync Method I I r - - - - - - - - - - - - - ,..., & of 0 ~_~_~______________________________ rrog~ammlngb 0 ABC u:~~i~~~~~~gber Video Mode DISplay N~~r~r~aff ~~~er~I~~lum er 1 of vertical Characters 1 ---------------------------------- characters 2 characters 3r-----------------~ 4r-------______________ ~ 2 ------------------------------ 5r-------____________~ 3 --- - -- - - -- --- -- --- - - -- - - ---- - --.-- 6r---------------______~ 7~-------.--------------~ 4 ----- -- - - -- ---- - - - - --- -- ---- ---- 8r-__________________~ 9L-__________________~ In H06845, number of characters is vertically pro- In HD6845S, number of characters IS vertically pro- grammed In unit of two lines, as Illustrated above. grammed In unit of one line, as illustrated above. (Number of vertical total characters, Number of (Number of vertical total characters, Number of vertical displayed characters, Vertical Sync POSI- vertical displayed characters, Vertical Sync POSI- tion) tion) Example of above figure Example of above figure Programmed number into Vertical Displayed Programmed number Into Vertical Displayed Register = 5 Register = 10 Number of Only even number can be specified. Both even number and odd number can be specified Rasters Per Character I ine address Character line address Character Line ~ !h--h--l-'lt ~-"8""-- -- ---t--'}. -4>---------9--3 r--Number of raster :~~JO 4~50 6~:-::1r::7 Character line address a i~---~~~-~-~-~~;} ~3~~' - ------- --3 --------------.O} :- -------- --5 -- ~-e -0-----7 , ;~6 ----------- ---8 8 ____ ____ _ 9 Number of raster = 10 scan line (specified) When number of raster When number of raster However, number which IS programmed IOto re- per character line is per character line IS gister IS calculated at follows. EVEN. ODD Number of raster Number of raster Programmed number (Nr) == 10 scan line == 9 scan line == (Number specified) - 1 (specified) (speCified) However, number which IS programmed into register IS calculated as follows. Programmed number (Nr) == (Number specified) -2 Cursor Cursor IS displayed In either EVEN field or 000 Cursor IS displayed In both EVEN field and ODD Display field. field. 0---------- ---------------, -EVEN number ~~3 _EVEN number -EVEN number 6~5 8---------------7 -EVEN number o ____________ , ~---------------, 2 -e-e-G-~_o_--3 -ODD number =~_:_i_~_itit-::3 -ODD number 4 --o.._o_-e--o-_o_--5 -ODD number 4~5 -ODD number 6 ______ ___ 7 6-------- 8 --------------7 8-------- 0--------- ---------------, -EVEN number 2~ 4~~ -ODD number 6______ _ _ --7 8---------- (to be continued) ~HITACHI 178 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD6845R/HD6845S No. Funcllonal Difference HD6845R HD6845S .-~ 2 Fixed at 16 raster scan cycle (16H) f.- Vertical Sync Programmable (1 ..... 16 raster scan cycle) Pulse Width P i xed at 16 scan cycle ~ Specified by high order -1 (VSYNC output) 4 bit of R3 VS~ V~ Attached bits R3~JJJJ R3 @BJQJ Not used Honzontal Sync Width Vertical Sync HOrizontal Sync Width Width 3 SKEW Function Not Included SKEW function IS newly Included In DISPTMG, CUDIS? signals Attached byte RS ~vlsl Rs~vlsi Not used CUDISP DISPTMG Example of D1SPTMG output ~Notskewed ~ne character skew H Two character skew 1 character time 2 character time 4 Start Address Register Impossible to READ Possible to READ 5 RESET Signal (RES) MAo "'-' MAl) Output 1 Synchronous reset MAo ....... MAn Outputl RAo - RA. Output J. RAo ..... RA4 OutPUt . . Asynchronous reset Other Outputs Asynchronous reset Other Outputs J Output signals of MAo ..... MA IJ , RAo ..... RA .. , Output signals of MAo"'" MA l3 , RAo ..... RA .. and synchroOlzlng with DLK "Low" level, go to others go to "Low" ievellmmedlately after R"ES "Low" level, after RES has gone to "Low" has gone to "Low" level. Other outputs go to "Low" Immediately after RES has gone to "Low" level -- • COMPATIBILITY OF HD6845S AND HD6845R data for vertical direction need to be changed. Non-tnterlace mode control }. Fully compatible with HD6845R* * The functions added to HD6845S utilize undefined bits of the Interlace sync mode control 'HD6845Rcanbedirectlyreplaced Control Register in HD6845R. If "0" is programmed to the by HD6845S in these modes. undefined bits in the initial set, it is possible to replace Interlace sync & VIdeo mode control. HD6845R with HD6845S without changing the parameters. Not compatible with HD6845R Note) The restriction on programming of HD6845S and HD6845R in regard to programming and should be taken into consideration. ~HITACHI Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 179 HD6845R/HD6845S--------------------------------------------------------- ~HITACHI 180 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD6350, HD6850 Asynchronous Communications Interface Adapter (CMOS) (NMOS) The HD6350/HD6850 Asynchronous Communications Inter- HD6350P, HD6850P face Adapter provides the data formatting and control to interface serial asynchronous data communications information to bus organized systems such as the HMCS6800 Micro-process- ing Unit. The bus interface of the HD6350/HD6850 includes select, enable, read/write, interrupt and bus interface logic to allow data transfer over an 8-bit bi-directional data bus. The parallel data of the bus system is serially transmitted and received by the asynchronous data interface with proper formatting and error checking. The functional configuration of the ACIA is programmed (DP-24) via the data bus during system initialization. A programmable Control Register provides variable word lengths, clock division ratios, transmit control, receive control, and interrupt control. For peripheral or modern operation three control lines are • PIN ARRANGEMENT provided. FEATURES • Serial/Parallel Conversion of Data • Eight and Nine-bit Transmission • Optional Even and Odd Parity • Parity, Overrun and Framing Error Checking • Peripheral/Modem Control Functions (Clear to Send CTS, Request to Send RTS, Data Carrier Detect DCD) • Optional-;- 1,+ 16, ancl+ 64 Clock Modes • One-or Two-Stop Bit Operation • Double Buffered -H06350- • Low-Power, High-Speed, High-Density CMOS • Compatible with NMOS ACIA (HD6850) • Wide Range Operating Voltage (Vcc = 5V ±10%) • Up to 1Mbps Transmission - HD6850- • Compatible with MC6850 and MC68A50 (Top View) • Up to 500Kbps Transmission TYPE OF PRODUCTS Type Process Clock Frequency Package HD6350 1.0MHz HD63A50 CMOS 1.5MHz DP-24 HD63B50 2.0MHz HD6850 1.0MHz NMOS DP-24 HD68A50 1.5MHz • Flat Package in Development for HD6350 ~HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 181 HD6350/HD6850--------------------------------------________________ • BLOCK DIAGRAM Tx ClK 4 E R/W t 1 - - - - 8 TxD... 1-4_--24C'B Do 22 D, 21 D, 2D 7 ilW D, II Do II ~===-~~~~23~ Do 17 Do II r---~--4-4-----5 ~ D, II 2 Ax Dato IIxClK 3 - - - - -_ _ _ _~I 01.... • ABSOLUTE MAXIMUM PATINGS Value Item Symbol Unit HD6350 HD6850 Supply Voltage Vee " -0.3-+7,0 -0.3-+7.0 V Input Voltage Vin" -0.3-+7.0 -0.3-+7.0 V Maximum Output Current"' Operating Temperature Storage Temperature 110 I Topr Tstg 10 -20 -+75 -55 -+150 ----- -20 -+75 -55 -+150 mA °c °c • With respect to VIS (SYSTEM GNO) ** Maximum output current is the maximum current which can flow out from one output terminal or 1/0 common terminal (Do -07, RTS, Tx Data, IRQ). (NOTE) Permanent LSI damage may occur if maximum fatings are exceeded. Normal operation should be under recommended operating conditions. If these conditions are exceeded, it could affect reliability of LSI. • RECOMMENDED OPERATING CONDITIONS ~ HD6350 HD6850 Item Symbol Unit Supply Voltage Vee . min typ max min typ max 4.5 5.0 5.5 4.75 5.0 5.25 V Input "low" Voltage Vil " 0 - 0.8 -0.3 - 0.8 V Do-D 7 , RS, Tx ClK, DC5, CTS Input "H igh" Rx Data 2.0 - Vee 2.0 - Vee V Voltage VIH* eso , CS 2 , es., RIW, E, Rx ClK 2.2 - Vee Operating Temperature Topr -20 25 75 -20 25 75 °e • With respect to Vss (SYSTEM GNO) f>HITACHI 182 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------HD6350/HD6850 • ELECTRICAL CHARACTERISTICS • DC CHARACTERISTICS (HD63S0; Vee· SV ±lO%, HD68S0; Vee· SV ±S%, V,,· OV, Ta· -20 -+7SoC, unle•• otherwise noted.) HD6350 HD6650 Item Symbol Unit Telt Condition min typ. max Test Condition min typ* max 00 . . . 07. RS, Tx elK, 151m, E~, Ax Data 2.0 - Vee Input "High" Voltage CSo, cs" CS" A/iii, E V IH 2.0 - Vee V Ax ClK 2.2 - Vee Input "Low" Voltat. All Inputs Vil -0.3 - O.B -0.3 - O.B V Input Leakage Current A/iii, CSa, CS" CS" E I in Vin·O"'" Vee -2.5 - 2.6 Vin - 0 - 6.26V -2.6 - 2.6 IJA Three-State (Off St8te) Input Current 00 - 0 7 ITS I Vin • 0.4 .... Vee -10 - 10 Vin • 0.4 - 2.4V -10 - 10 IJA - - IOH • -205~A, Enable 00"'" D7 IDH' -4oo~A 4.1 Pulse Width ~ 25",1 2.4 - - V IOH';; -10~A V cc -o· 1 - - Output "High" Voltage VO H Tx Data,"Fiff IOH' -400~A 4.1 - - IOH' -lOO~A, Enable 2.4 - - V IOH $. -10~A Vee-0.1 - - Pu Ise W idth ~ 251o&s Output "Low" Voltage All Outputs VOL IOH ·1.6mA - - 0.4 IOl' 1.6mA, Enable Pulse Width $. 25",1 - - 0.4 V Output Leakage Current iRiS IOftStata) ILDH VO H "" Vee - - 10 VOH' 2.4V - - 10 IJA 00"" 0 7 - - 12.5 - - 12.5 Vin '" av, Ta "" 2SoC, Vin' OV, Ta' 26°C, pF Input Capacitance E, Tx ClK, Ax ClK, AIW, AS, AX Data, CSo, C,n 1-1.0 MHz - - 7.6 1'1.0 MHz - - 7.6 CS cs:, CTS i5Ci5 ~, TxDa.. Vin" av, Ta - 2SoC, - - 10 Vin = av, Ta = 2SoC - - 10 pF Output Capacitance Cout TIm l-l.0MHz - - 5.0 1·1.0MHz - - 5.0 • Under transmitting an Receiving operation E -1.0 MHz - - 3 .500 kbp. • Data bus In RIW E = 1.5 MHz - - 4 operation E .. 2.0 MHz - - 5 Supply Current • Chip is not selected. E '1.0 MHz - - 200 mA e500 kbps • Under non transmitting and receiving operation E' 1.6 MHz - - 250 elnput level (ExcePt E) VIH min" V cc -O.8V E· 2.0 MHz - - 300 Vil max - O.BV, Power Dissipation Po 300 626 mW ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 183 HD6350/HD6850--------------------------------------------------------- • AC CHARACTERISTICS (HD6350; Vee= 5.0V ±10%.HD6850; Vee= 5V ±5%. Vss = OV. Ta = -20-+75°C. unless otherwise noted.! 1. TIMING OF DATA TRANSMISSION HD68S0 Test HD6350 HD63A50 HD63B50 IHD68ASO Item Symbol Unit Condition min max min max min max min max +1 Mode 900 - 650 - 500 - 900 - ns Minimum Clock Pulse +16,+64 Modes PW CL Fig. 1 600 - 450 - 280 - 600 - ns Width +1 Mode 900 - 650 - 500 - 900 - ns PW CH Fig.2 +16, +64 Modes 600 - 450 - 2BO - 600 - ns +1 Mode - 500 - 750 - 1000 - 500 Clock Frequency IC kHz r.-16, +64 Modes - BOO - 1000 - 1500 - BOO Clock-to-Data Delay for Transmitter tTOD Fig. 3 - 600 - 540 - 460 - 1000 ns Receive Data Setup Time +1 Mode tRDSU Fig. 4 250 - 100 - 30 - 500 - ns Receive Data Hold Time +1 Mode tRDH Fig. 5 250 - 100 - 30 - 500 - ns IRQ Release Time tlR Flg.6 - 1200 - 900 - 700 - 1200 ns RTS Delay Time tRTS Fig.6 - 560 - 4BO - 400 - 1000 ns Rise Time and Fall Time (or 10% of the pulse width if smaller) tr,tl - 1000 - 500 - 250 - 1000 ns 2. BUS TIMING CHARACTERISTICS 1! READ Test HD6350 HD63A50 HD63B50 HD6850 HD68A50 Item Symbol Unit Condition min max min max min max min max min max Enable Cycle Time teyeE Fig. 7 1000 - 666 - 500 - 1000 - 666 - ns Enable "High" Pulse Width PWEH Fig.7 450 - 280 - 220 - 450 25000 280 25000 ns Enable "Low" Pulse Width PWEL Fig.7 430 - 2BO - 210 - 430 - 2BO - ns Setup Time, Address and R/W Valid to Enable Positive Transition lAS Fig.7 80 - 60 - 40 - 140 - 140 - ns Data Delay Time tDDR Fig. 7 - 290 - lBO - 150 - 320 - 220 ns Data Hold Time tH Fig. 7 20 100 20 100 20 100 10 - 10 - ns Address Hold Time tAH Fig. 7 10 - 10 - 10 - 10 - 10 - ns Rise and Fall Time for Enable Input tEr' tEl Fig. 7 - 25 - 25 - 20 - 25 - 25 ns 2! WRITE Test HD6350 HD63A50 H063B50 HD6850 HD68A50 Item Symbol Unit Condition min max min max min max min max min max Enable Cycle Time leyeE Fig. 8 1000 - 666 - 500 - 1000 - 666 - ns Enable "High" Pulse Width PWEH Fig. 8 450 - 280 - 220 - 450 25000 280 25000 n. Enable "Low" Pulse Width PWEL Fig. 8 430 - 280 - 210 - 430 - 280 - ns Setup Time, Addre .. and R!W Valid to Enable Positive Transition tAS Fig. 8 80 - 60 - 40 - 140 - 140 - ns Data Setup Time tDSW Fig. 8 165 - 80 - 60 - 195 - 80 - ns Data Hold Time tH Fig.8 10 - 10 - 10 - 10 - 10 - ns Address Hold Time tAH Fig. 8 10 - 10 - 10 - 10 - 10 - ns Rise and Fall Time for Enable Input tEr' tEf Fig. 8 - 25 - 25 - 20 - 25 - 25 ns ~HITACHI 184 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6350/HD6850 Tx C l K - - C ] \ - ' H m i n or Rx ClK PWCH Figure 1 Clock Pulse Width, "Low" State Figure 2 Clock Pulse Width, "High" State O.BV tTDD)l Tx O.t. vee -2.0V." _ _ _ _--'. ~.-..ljO.:l.4~V---- Figure 3 Transmit Data Output Delay Figure 4 Receive Data Setup Time (+1 Mode) ffi ---4----+-,~~--- • (11 iROR., .... Tim••pplied to Rx O.ta Register reed operation. (21 iRa R., •••• Tim•• ppll.d to Tx O.t. Register writ. operation. (31 iRa R., •••• Tim •• pplled to control R.gl.t.r writ. TIE = 0, RIE = 0 oper.tlon. Figure 5 Receive Data Hold Time (+1 Mode) •• iRQ R.I •••• Time .pplled to Rx O.t. Register read oper.tion right .ft.r r••d .t.tu. regllter, wh.n iRO I.....rted by Di:!l:i riling edge. _.- 2.4V for H06860. (Not.1 Not. that followings take pl.ce wh.n IRQ i.....rted by the d.tectlon of tr.n.mit data regl.ter .mpty .tatu.. iRO I. rel ...ed to "High" ••ynchronou.'y with E ,'gn.' wh.n CTS go.. "High". (Ref.r to Figure 141 Figure 6 RTS Delay and I RQ Release Time Enable RS,CS, R/W _ _- J O.t. Bus Figure 7 Bus Read Timing Characteristics (Read information from ACIA) ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 185 HD6350/HD6850----------------------------------------------------------- Enable Data Bus Figure S Bus Write Timing Characteristics (Write information into ACIA) Load A Load B 5'OV ~ 5.0V (Vee) (D. -D,. RTS. Tx Data) (lROOnly) RL - 2.4kn 3kn Test POint o-.,....~-.f4.--i Test pOint C R fOOpF C = 130pF for D.-D, = 30pF for RT5 and Tx Data • HD6B40 R*o 10kn for D. - D,. RTS and Tx Data R = l1kn for Do-D7 All diode•• ,e.1520749 or Equivalent. = 24kn for RTS and Tx Data. Figure 9 Sus Timing Test Loads MARKING ur--r--r--r--r--r-l--l--n-- I I I I I I I I I I I I I I I I I I :::::, '.00 ~-L_-l __ -l __ ~;;;-~,;_-l __ -'__ '-- msec START D. D, 0, 0, D. 0, 0, PARITY STOP STOP BIT BIT BIT BIT f---------CHARACTER TIME @ 10 CPS (11 BITS) - - - - - - - - - 0 1 100 msec Figure 10 110 Baud Serial ASCII Data Timing ~HITACHI 186 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 START D. D, D, D, D, D, PARITY STOP BIT BIT BIT i-------CHARACTER TIME @ 15 & 30 CPS (10 B I T S ) - - - - - " 1 (SEE TABLE BELOW) BAUD RATE 150 300 CHARACTERS/SEC 15 30 BIT TIME (m,.c) 6.67 3.33 BIT TIME. SEC CHARACTER TIME (msec) 66.7 33.3 BAUD RATE Figure 11 150 & 300 Baud Serial ASC) I Data Timing MARK I I NEXT START I D, D, D, D, PARITY STOP STOP CHAR. SPACE Figure 12 Send a 7 Bit ASCII Char. "H" Even Parity - 2 Stop Bits H = 4B I6 = 10010002 • ACIA OPERATION • Master Reset • DATA OF ACIA ACIA has an internal master reset function controlled ACIA is an interface adappter which controls transmission by software. since it has no hardware reset pin. Bit 0 and and reception of Asynchronous serial data. Some examples of bit 1 of control register should be set to "11" to execute serial data are shown in Figs. 10 - 12. master reset. also bit 5 and bit 6 should be programmed to get predetermined RTS output accordingly. To release the • INTERNAL STRUCTURE OF ACIA master reset. the data other than "11" should be written ACIA provides the following; 8·bit Bi·directional Data into bit O. bit I of the control register. When the master Buses (Do - D7 ), Receive Data Input (Rx Data), Transmit reset is released, the control register needs to be programmed Data Output (Tx Data). three Chip Selects (CSo • CS I • C8;). to get predetem1ined options such as clock divider ratios. Register Select Input (RS). Two Control Input (Read/Write: word length. one or two stop bits. parity(even. old. or none). RIW. Enable: E). Interrupt Request Output(IRQ). Oear·to- etc. Send (CTS) to control the modem. Request·ta-Send (IUS). It may happen that "Low" level output is provided in Data Carrier Detect(DCl'» and Clock Inputs(Tx CLK. Rx CLK) IRQ pin during the time after power-on till master reset. used for synchronization of received and transmitted data. This In the system using ACIA. interrupt mask bit of MPU should ACIA also provides four registers; Status Register. Control be released after the master reset of ACIA. (MPU interrupt Register. Receive Register and Transmit Register. should be prohibited until MPU progranl completes the master 24-pin dual-in-Iine type package is used for the ACIA. Inter· reset of ACIA.) Transmit Data Register (TDR) and Receive nal Structure of ACIA is illustrated in Fig. 13. Data Register (RDR) can not be reset by master reset. ~HITACHI Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 187 HD6350/HD6850------------------------------------------------------ r-------------------------------, ACIA -i 1::0. ~ TRANSMIT DATA REGISTER (TOR) ~+~ I I D.I 0.1 I I I I 0.1 WRITE ONLY 0. 0.' OJ 0, 0, SERIAL DATA OUT T. o..! • i ~~ ~--_r--,_~~~~~~,_--r__, }~!/JJJJ D, TO SERIAL CONVERTER) r D, DATA TO LINES D. DR FROM 0, MPU 0, CONTROL REGISTER ICR) D. D. IR:.I·Tt ·141~.121'ClDI WAITE ONLY ~L~f---~f:C:V~tT~:G~:r:R~D~lf ' CSr' -lB'- ~r- IR'CLK SERIAL DATA IN A_ [)al. II READ ONLY D. 0, 0, OJ D. DOD I • • r r r - -C ..FCD J O - - RECEIVE INTe,.~RUPT ~~AD ENABLE ~EAR ~~QUeST CLOCK MPU ~~6't: :~~'?AL '-----...----' ;~ND TRANSMIT Mf'U IAOI :';'~~M CHIP SEL.ECT MODEM CLOCK REGISTER FROM MPU DATA ~~t~T ~1~~E'iS g:~:t~R MPU FROM ADDRESS MODEM LINE Figure 13 Internal Structure of ACI A • Tr...mit the detection of the leading mark-space transition of the start A typical transmitting sequence consists of reading the ACIA bit. False start bit delection capability insures that a full half bit Status Register either as a result of an interrupt or in the of a start bit has been received before the internal clock is ACIA's tum in a polling sequence. A character may be written synchronized to the bit time, As a character is being received, into the Transmit Data Register If the status read operation has parity (odd or even) wIll be checked and the error indication indicated that the Transmit Data Register is empty. This will be available in the Status Register along with framing error, character is transferred to a Shift Register where it is serialized overrun error, and Receive Data Register full. In a typical and transmitted from the Transmit Data output preceded by a receivIng sequence, the Status Register is read to determine if a start bit and followed by one or two stop bits. Internal parity character has been received from a peripheral. If the Receiver (odd or even) can be optionally added to the character and will Da... Register is full, the character is placed on the 8-bit ACIA occur between the last data bit and the first stop bit. After the bus when a Read Data command is received from the MPU. first character IS written in the Data Register, the Status When parity has been selected for an 8-bit word (7 bits plus RegIster can be read again to check for a Transmit Data Register parity), the receiver strip the parity bit (07="0") so that data Empty condition and current peripheral status. If the register is alone is transferred to the MPI,I. This feature reduces MPU empty, another character can be loaded for transmission even programming. The Status Register can continue to be read again though the first character is in the process of being transmitted to determine when another character is available in the Receive (because of double buffering). The second character will be Data Register_ The receiver is also double buffered so that a automatically transferred into the Shift Register when the first character can be read from the data register as another character character transmission is completed. This sequence continues is being received in the Sluft register, The above sequence con- until all the characters have been transmitted. tinues until all characters have been received. • Receive • ACIA INTERNAL REGISTERS Data is received from a peripheral by means of the Receive The ACIA provides four registers; Transmit Data Register Data input. A divideobyoone clock ratio is provided for an (TOR), Receive Data Register(RDR), Control Register(CR) and externally synchronized clock (to its data) while the divide-by- Status Register(SR). The content of each of the registers is 16 and 64 ratios are provided for internal synchronization. Bit summarized in Table I. synchronization in the divide-by-16 and 64 modes is initiated by ~HITACHI 188 Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ---------------------------------------------------------HD6350/HD6850 .... Table 1 Definition of ACIA Register Contents Buffet RS=l' R/W=O RS=l • R/W=l RS=O'RtW=O RS=O'RtW=l Address Transmit Data Receiver Data Control Register Status Register Data Bus Register Register (Write Only) (Read Only) (Write Only) (Read Only) Counter Divide Rx Data Reg. Full 0 Data Bit O· Data Bit 0 Select (CRO) (RDRF) Counter Divide Tx Data Reg. Empty 1 Data Bit 1 Data Bit 1 (TORE) Select (CR1) Word Select 1 Data Carrier Detect 2 Data Bit 2 Data Bit 2 (DCD) (CR2) Word Select 2 Clear to Send 3 Data Bit 3 Data Bit 3 (CR3) (CTS) Word Select 3 Fram ing Error 4 Data Bit 4 Data Bit 4 (CR4) (FE) Tx Contrail Overrun 5 Data Bit 5 Data Bit 5 (CR5) (OVRN) Tx Control 2 Parity Error 6 Data Bit 6 Data Bit 6 (PE) (CR6) Rx Interrupt Enable Interrupt Request 7 Data Bit 7 00 • Data Bit 7 0 • (CR7) (IRQ) * Leading bit· LSB = Bit 0 * .. Data bit will be zero in 7-bit plus parity modes . ••• Dati bit is "don't car." in 7--bit plus parity mode•. •••• 1 .• , "High" level, 0 , •• "Low" level • T....mit o.ta Regimr (TORI Data is written in the Transmit Data Register during the register controls the functien of the receiver, transmitter, negative transition of th,! enable (E) when the ACIA has been interrupt enables, and the Request·ta-Send (RTS) peripheral/ addressed and RS' R/W is selected. Writing data into the modem control output. register causes the Transmit Data Register Empty bit in the Status Register to go "0". Data can then be transmitted. If the Counter Divide Select Bits (CRO Ind CR1) transmitter is idling and no character is being transmitted, then The Counter Divide Select Bits (CRO and CRI) determine the transfer will take place within 2 bit time + several E cycles the divide ratios utilized in both the transmitter and receiver of the trailing edge of the Write command. If a character is section of the ACIA. Additionally, these bits are used to provide being transmitted, the new data character will commence as a master reset for the ACIA which clears the Status Register soon as the previous character is complete. The transfer of (except for external conditions on ers and OCD) and initializes data causes the Transmit Data Register Empty (TORE) bit to both the receiver and transmitter. Master reset does not affect indicate empty. other Control Register bits. Note that after power-on or a power fail/restart, these bits must be set "I" to reset the ACIA. Mter • Receive o.ta Regil1IIr (RDR) resetting, the clock divide ratio may be selected. These counter Data is automatically transferred to the empty Receive Data select bits provide for the following clock divide ratios: Register (RDR) from the receiver deserializer (a shift register) upon receiving a complete character. This event causes the Table 2 Function of Counter Devide Select Bit Receive Data Register Full bit (RDRF) on the status buffer to go "I" (full). Data may then be read through the bus by ad· CRl CRO Function dressing the ACIA and Rftij "High" when the ACIA is enabled. The non-destructive read cycle causes the RDRF bit to be 0 0 :1 cleared to empty although the data is retained in the RDR. The 0 1 +16 status is maintained by RDRF as to whether or not the data 0 +64 is current. When the Receive Data Register is full, the automatic transfer of data from the Receiver Shift Register to the Data Master Reset Register is inhibited and the RDR contents remain valid with its current status stored in the Status Register. Word Select Bits (CR2. CR3.1nd CR4) • Control Regilter The Word Select bits are used to select word length, parity, The ACIA Control Register consists of eight bits of write- and the number of stop bits. The encoding format is as follows: only buffer that are selected when RS and R/W are "Low". This ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 189 HD6350/HD6850--------------------------------------------------------- • Status Regilter Table 3 Function of Word Select Bit Information on the status of the ACIA is available to the MPU by reading the ACIA Status Register. This read-only CR4 CR3 CR2 Function register is selected when RS is "Low" and R/W is "High". 0 0 0 7 Bits + Even Parity + 2 Stop Bits Information stored in this register indicates the status of the Transmit Data Register, the Receive Data Register and error 0 0 1 7 Bits + Odd Parity + 2 Stop Bits logic, and the peripheral/modem status inputs of the ACIA. 0 1 0 7 Bits + Even Parity + 1 Stop Bit 0 1 1 7 Bits + Odd Parity + 1 Stop Bit Receive Data Regilter Full (RDRF), Bit 0 1 0 0 8 Bits + 2 Stop Bits RDRF indicates that received data has been transferred to the Receive Data Register. RDRF is cleared after an MPU read 1 0 1 8 Bits + 1 Stop Bit of the Receive Data Register or by a master reset. The cleared or 1 1 0 8 Bits + Even Parity + 1 Stop Bit empty state indicates that the contents of the Receive Data 1 1 1 8 Bits + Odd Parity + 1 Stop Bit Register are not current. Data Carrier Detect (DC D) being "High" also causes RDRF to indicate empty. Word length, Parity Select, and Stop Bit changes are not Transmit Data Register Empty (TORE), Bit 1 buffered and therefore become effective immediately. The Transmit Data Register Empty bit being set "I" indicates that the Transmit Data Register contents have been Transmitter Control Bits (CR5 and CR6) transferred and that new data may be entered. The "0" state Two Transmitter Control bits provide for the control of indicates that the register is full and that transmission of a new the interrupt from the Transmit Data Register Empty condition, character has not begun since the last write data command. the Request-ta-Send (RTS) output, and the transmission of a Break level (space). The following encoding format is used: Data Carrier Detect foeD), Bit 2 The OCD bit will be "\" when the DCD input from a modem has gone "High" to indicate that a carrier is not present. This bit going "I" causes an Interrupt Request to be generated when the Table 4 Function of Transmitter Control-Bit Receive Interrupt Enable is set. It remains" I" after the ocr> input is returned "Low" until cleared by first reading the Status CR6 CR5 Function Register and then the Data Register or until a master reset o 0 RTS = "Low", Transmitting Interrupt Disabled. occurs. If the DCD input remains "High" after read status and o 1 RTS = "Low", Transmitting Interrupt Enabled. read data or master reset has occurred, the interrupt is cleared, the DCD status bit remains "I" and will follow the DCD input. o RTS = "High", Transmitting Interrupt Disabled. Clear-to-Send Iml, Bit 3 RTS = "Low", Transmits a Break level on The CTS bit indicates th~ state of the CTS input from a modem. A "Low" CTS input indicates that there is a CTS from the Transmit Data Output. the modem. In the "High" state, the Transmit Data Register Transmitting Interrupt Disabled. Empty bit is inhibited and the CTS status bit will be "1". Master reset does not affect the Clear-to-Send Status bit. Receive Interrupt Enable Bit (CR7) Framing Error (FE), Bit 4 The following interrupts will be enabled by a "\" in bit FE flag indicates that the received character is improperly position 7 of the Control Register (CR7): Receive Data framed by a start and a stop bit and is detected by the absence Register Full, Overrun, or a "Low" to "High" transistion on the of the 1st stop bit. This error indicates a synchronization error, Data Carrier Detect (DC D) signal line. faulty transmission, or a break condition. The FE flag is set or reset during the receive data transfer time. Therefore, this error RORF F'-e AlE indicator is present throughout the time that the associated character is available. [ '"'''M' ROAF FI.. Reotilier OVRN FIll; iRQ Receiver Overrun IOVRN), Bit 5 DCOFl,mg Overrun is an error flag that indicates that one or more characters in the data stream were lost. That is, a character or a number of characters were received but not read from the Tran,mltter [,""m"TDRO FI.. Receive Data Register (RDR) prior to subsequent characters being received. The overrun condition begins at the midpoint of the last bit of the second character received in succession Cis Inpo,il TORE FIll\! without a read of the RDR having occurred. The overrun does not occur in the Status Register until the valid character prior to Overrun has been read. The RDRF bit remains set until the Figure 14 IRQ Internal Circuit Overrun is reset. Character synchronization is maintained during the Overrun condition. The Overrun indication is reset after the reading of data from the Receive Data Register or by a Master Reset. ~HITACHI 190 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------HD6350/HD6850 Parity Error (PE), Bit 6 is present and the appropriate interrupt enable within the ACIA The PE flag indicates that the number of "I"s (highs) in the is set. character does not agree with the preselected odd or even parity. Odd parity is defined to be when the total number of Clock Inputs ones is odd. The parity error indication will be present as long as Separate high impedance TTL compatible inputs are pro- the data character is in the RDR. If no parity is selected, then vided for clocking of transmitted and received data. Clock both the transmitter parity generator output and the receiver frequencies of I, 16 or 64 times the data rate may be selected. parity check results are inhibited. Transmit Clock (Tx ClK) Interrupt Request (IRQ), Bit 7 The Tx CLK input is used for the clocking of transmitted The IR~ bit indicates the state of the IRQ output. Any data. The transmitter initiates data on the negative transition of interrupt condition with its applicable enable will be mdicated the clock. in this status bit. Anytime the IRQ output is "Low" the IRQ bit will be "I" to indicate the interrupt or service request status. Receive Clock (Rx ClK) IRQ is cleared by a read operation to the Receive Data Register The Rx CLK input is used for synchronization of received or a write operation to the Transmit Data Register. (Refer to data. (In the .;. I mode. the clock and data must be Figure 14.) synchronized externally.) The receiver samples the data on the positive transition of the clock . • SIGNAL FUNCTIONS • Serial I nput/Output Lines • Interface Signal for MPU Receive Data (Rx Data) Bi-Directional Data Bus (0 0 -0 7 1 The Rx Data line is a high impedance TTL compatible input The bi-directional data bus (Do -0 7 ) allow for data transfer through which data is received In a serial format. Synchroniza- between the ACIA and the MPU. The data bus output drivers tion with a clock for detection of data is accomplished internal- are three-state devices that remain in the high impedance (off) ly when clock rates of 16 or 64 times the bit rate are used. Data state except when the MPU performs an ACIA read operatIOn. rates are in the range of 0 to 500 kbps when external synchronization is utilized. Enable (E) The Enable signal, E, is a high impedance TTL compatible Transmit Data (Tx Datal input that enables the bus input/output data buffers and clocks The Tx Data output line transfers senal data to a modem or data to and from the ACIA. This signal will normally be a other peripheral. Data rates in the range of 0 to 500 kbps when derivative of the HMCS6800 q,2 Clock. The ACIA accepts both external synchronization is utilized. continuous pulse signal and strobe type signal as Enable input. Modem Control ReadIWrite (R/W) The ACIA includes several functions that permit limited The R!W line is a high impedance input that is TTL control of a p~eral or modem. The functions included aie compatible and is used to control the direction of data flow CTS, RTS and DCD. through the ACIA's input/output data bus interface. When R/W is "High" (MPU Read cycle), ACIA output drivers are turned on Clear-ta-Send (eTS) and a selected register is read. When it is "Low", the ACIA This high impedance TTL compatible input provides auto- output drivers are turned off and the MPU writes into a selected matic control of the transmitting end of a communications link register. Therefore, the R/W signal is used to select read-only or via the modem CTS active "Low" output by inhibiting the wri te-only registers within the ACIA. Transmit Data Register Empty (TORE) status bit. (Refer to Figure 15.) Chip Select (CSo , CS, , CS,) These three high impedance TTL compatible input lines are Request-to-Send (RTS) used to address the ACIA. The ACIA is selected when CS o and The RTS output enables the MPU to control a peripheral or CS, are "High" and CS; is "Low". Transfers of data to and modem via the data bus. The RTS output corresponds to the from the ACIA are then performed under the control of the state of the Control Register bits CR5 and CR6. When CR6=O Enable signal, Read/Write, and Register Select. or both CR5 and CR6=1, the RTS output is "Low" (the active state). This output can also be used for Data Terminal Ready Register Select (RS) (DTR). (Refer to Figure 15.) The RS line is a high impedance input that is TTL compatible. A "High" level is used to select the Transmit/ Receive Data Registers and a "Low" level the Control/Status Registers. The R/W signal line is used in conjunction with Register Select to select the read-only or write-only register in each register pair. Interrupt Request (IRQ) IRQ is a TTL compatible, open-drain (no internal pullup), active "Low" output that is used to interrupt the MPU. The IRQ output remains "Low" as long as the cause of the interrupt ~HITACHI Hltach, America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 191 HD6350/HD6850--------------------------------------------------------- Tx Data TORE flag Control Register Write Status Register Read Tx Data Register Write Transmit operation is not disabled. even if CfS goes "High". Figure 15 RTS and CTS Timing Chart (Example of 2 bytes transmission) Dam Carrier Detect (OCD) status and the operation in the receiving part is prohibited. OCD is the input signal corresponding to the "carrier When OCD goes "Low", the receiving part is allowed to detect" signal which shows £arrier detect of modem. receive data. In this case, the following process is needed to OCD signal is used to control the receiving operation. When reset OCD flag and restarts the receive operation. (Refer to OCD input goes "High", ACIA stops all the receiving operation Figure 16.) and sets receiving part in reset status. It means that receive (l) Return OCD input from "High" to "Low". shift register stops shifting, error detection circuit and syn- (2) Read status register. (OCD flag ="I") chro, 'zation circuit of receive clock are reset. When OCD is (3) Read receive data register (Uncertain data will be read.) in "High" level, the receiving part of ACIA is kept in initial OCO input ~ I OCO flag ~ l\ rno / ,1 (RIE = "1") ..l Status Register Read r~ Rx Data Register Read /. ~ -/ All the receiving operation are prohibitad and ACIA is stoppad in this period. Figure 16 DCD Flag Timing Chart • Nom for Use (H06350 ohly) applicable to the following signal pins. Input Signal, which is not necessary for user's application, Rx Data, Rx CLK, Tx CLK, CTS, i5Ci) should be used fIXed to "High" or "Low" level. This is ~HITACHI 192 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD6852, HD68A52 SSDA (Synchronous Serial Data Adapter) The HD6852 Synchronous Serial Data Adapter provides a bi·directional serial interface for synchronous data information HD6852P, HD68A52P interchange. It contains interface logic for simultaneously transmitting and receiving standard synchronous communica· tions characters in bus organized systems such as the HMCS6800 Microprocessor systems. The bus interface of the HD6852 includes select, enable, read/write, interrupt, and bus interface logic to allow data transfer over an 8-bit bi·directional data bus. The parallel data of the bus system is serially transmitted and received by the synchronous data interface with synchronization, fill charar-ter insertion/deletion, and error checking. The functional con· fJgllration of the SSDA is programmed via the data bus during (DP-24) system initialization. Programmable control registers provide control for variable word length, transmit control, receive control, synchronization • PIN ARRANGEMENT control and interrupt cO!1troL Status, timing and control lines provide peripheral or modem control. 1»picaI applications include data communications terminals, floppy disk controllers, cassette or cartridge tape controllers and numerical control systems. • fEATURES • Programmable Interrupts from Transmitter, Receiver, and Error Detection Logic • Character Synchronization on One or Two Sync Codes • External Synchronization Available for Parallel·Serial Operation • Programmable Sync Code Register • Up to 1 Mkbps Transmitter • Peripheral/Modem Control Functions • Three Bytes of FIFO Buffering on Both Transmit and Receive • 6, 7, or B Bit Data Transmission • Optional Even and Odd Parity • Parity, Overrun, and Underflow Status (Top View) • Compatible with MC6B52 and MC68A52 C$ 10 RS 11 8 TUF D. " 23 0C0 0, 21 7 iRa 01 20 D. 19 D. 18 0, 17 O. 16 D. IS fiiS 9 2 RlI Datil 3 Rx eLK 5 SM/6'fR @HITACHI Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 193 HD6852,HD68A52---------------------------------------------------------- • ABSOLUTE MAXIMUM RATINGS Item Supply Voltage Symbol Vee . Value -0.3-+7.0 Unit V Input Voltage V'n * -0.3-+7.0 V Operating Temperature Topr - 20-+75 ·C Storage Temperature T Itg -55 - +150 ·C • With respect to vss ISYSTEM GNO) (NOTE) Permanent LSI damage may occur if maximum ratings are exceeded. Normal operation should be under recommended operating conditions. If these conditions are exceeded, it could affect reliability of LSI. • RECOMMENDED OPERATING CONDITIONS Item Symbol min typ max Unit Supply Voltage Vee * 4.75 5.0 5.25 V V1L * -0.3 - 0.8 V Input Voltage V1H * 2.0 - Vee V Operating Temperature Topr - 20 25 75 ·C • With respect to Vss (SYSTEM GNO) • ELECTRICAL CHARACTERISTICS • DC CHARACTERISTICS (Vee = 5V ± 5%, Vss = OV, Ta = -20-+75'C, unless otherwise noted.) Item Symbol Test Condition min typo max Unit Input "High" Voltage All Input V,H 2.0 - - V Input "Low" Voltage All Input V,L -0.3 - 0.8 V IOH - -205/.LA, Do -D 7 VOH PW EH , PWEL~ 25/.Ls 2.4 - - V Output "High" Voltage Tx Data IOH - -l00/.LA, DTR, TUF VOH PW EH , PW EL S:25/.LS 2.4 - - V IOL - 1.6 mA, Output "Low" Voltage All Output VOL - - 0.4 V PWEH , PWEL~ 25/.Ls TxCLK, RxCLK, Rx Data, E, Input Leakage Current RES, RS, R/W lin Vin =0-5.25V -2.5 - 2.5 /.LA CS, DCD, CTS Three·State Input Current Vin - 0.4 - 2.4V, Do-D 7 ITS1 -10 - 10 /.LA (Off State) Vee = 5.25V Output Leakage Current IRO I LOH VOH = 2.4V - - 10 /.LA (Off State) Power Dissipation Po - 300 525 mW Do- D7 - - 12.5 , RxData, RxCLK, Vi" = OV, Input Capacitance TxCLK, RES, Ta = 25'C, pr CS, RS, R/W, E, Cin f = 1 MHz - - 7.5 DCD,CTS TxData, DTR, TUF, Cout Vi" = OV, Ta=25'C - - 10 Output Capacitance pF IRO f = 1 MHz - - 5.0 • Ta = 25" C, Vee = 5V ~HITACHI 194 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 ----------------------------------------------------------HD6852,HD68A52 • AC CHARACTERISTICS (Vcc=5V±5%, VSS=OV, Ta=-20-+75"C, unless otherwise noted.) 1. TIMING OF THE DATA TRANSFER Test HD6852 HD68A52 Item Symbol Unit Condition min typ max min typ max Clock "Low" Pulse Width PWCL Fig. 1 700 - - 400 - - ns Clock "High" Pulse Width PWCH Fig. 2 700 - - 400 - - ns Clock Frequency fc - - 600 - - 1,000 kHz Receive Data Setup Time tROSU Fig. 3 350 - - 200 - - ns Receive Data Hold Time tRoH Fig.3 350 - - 200 - - ns Sync Match Delay Time tSM Fig.3 - - 1.0 - - 0.666 IlS Clock-to-Data Delay for tTOO Fig. 4,6 - - 1.0 - - 0.666 IlS Transmitter Transmitter Underflow tTUF Fig. 4 - - 1.0 - - 0.666 IlS DTR Delay Time tOTR Fig. 5 - - 1.0 - - 0.666 IlS I RQ Release Time tlR Fig. 5 - - 1.2 - - 0.8 IlS RES Pulse Width tRES 1.0 - - 0.666 - - IlS CTS Setup Time tCTS Fig.6 200 - - 150 - - ns DCD Setup Time toco Fig.7 500 - - 350 - - ns Input Rise and Fall Times(Except E t" tf 0.8V to 2.0V - - 1.0' - - 1.0' Ils * 1.0", or 10%of the pulse width. whichever is smaller. 2. BUS TIMING 1) READ Test HD6852 HD68A52 Item Symbol Unit Condition min max min max Enable Cycle Time teveE 1.0 - 0.666 - IlS Enable "High" Pulse Width PW EH 0.45 25 0.28 25 IlS Enable "Low" Pulse Width PW EL 0.43 - 0.28 - IlS Setup Time, Address and RIW valid to Enable positive transition tAS Fig. 8 140 - 140 - ns Data Delay Time tOOR - 320 - 220 ns Data Hold Time tH 10 - 10 - ns Address Hold Time tAH 10 80 10 80 ns Rise and Fall Time for Enable input tEr, tef - 25 - 25 ns 2) WRITE Test HD6852 HD68A52 Item Symbol Unit Condition min max min max Enable Cycle Time teveE 1.0 - 0.666 - Ils Enable Pulse Width, "High" PW EH 0.45 25 0.28 25 IlS Enable Pulse Width, "Low" PW EL 0.43 - 0.28 - IlS Setup Time, Address and R/W valid to Enable positive transition tAS Fig.9 140 - 140 - ns Data Setup Time tosw 195 - 80 - ns Data Hold Time tH 10 - 10 - ns Address Hold Time tAH 10 - 10 - ns Rise and Fall Time for Enable input tE" tEf - 25 - 25 ns ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 195 HD6852,HD68A52-------------------------------------------------------- TXCLK~.OV or Tx CLK Rx CLK or PWCH Rx CLK Figure 1 Clock Pulse Width ("Low" level) Figure 2 Clock Pulse Width ("High" level) Rx CLK Rx Data n = Number of bits In character ~= Don't care Sync Matc_h__________________________________________J O.4V '" Rx CLK Period Figure 3 Receive Data Setup and Hold Times and Sync Match Delay Time Tx CLK Enable tOTR Tx Data -----,~o.\!.o:Wf_----.:.:...--J TUF _ _ _ _ _ _ _ _ _J IRQ n = Number of bits in character • iRa A.I.... Tim••ppli.d to TxO.t. FIFO writ. oper.tion .nd AxOat. FI FO r•• d op.ration . Figure 4 Transmit Data Output Delay and •• iRa A.I •••• Tim••ppli.d to writ. "1" op.r.tion to AxAS, TxAS, Transmitter Underflow Delay Time CTUF, CI •• r CTS bits. Figure 5 DTR and IRQ Release Time ~O.8V • ~_---Jr Tx CLK ""'~ Notes: @ Mu.t occur before OCO goes low. @ ~ @ ® @ First d.t. bit pl.ced in Ax 'hift register. Tx O.ta © Last d.t. bit of byte pl.ced In Ax 'hift register. @A'Dat.bytetr.nsferredfro.m shift re~r to A. FIFO. @ Clock edga required for g.ner.tlon of fFlOby ADA .t.tu •. Note: Aefer to Figure 3 for the A. O.te .etup and hold times. Figure 6 CTSSetup Time Figure 7 DCD Setup Time ~HITACHI 196 Hitachi A'Tlerica Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------HD6852,HD68A52 Enable Enable RS, CS, R/W - .......'l'JjoIi~_+-_Pr"'_;'7':':-- RS, CS,R/W Data Bus Data Bus Figure S Sus Read Timing Characteristics Figure 9 Sus Write Timing Characteristics (Read information from SSDA) (Write information into SSDA) Load A Load B (0, - D., DTR, Tx Data, TUF) (IRQ Only) 5.0V ~ 5'OV RL - 2.4K 3k Test point Test point C R r l00pF C-13OpF for 0, -0, -3OpF for DTR, Tx Data, and TUF All diodes are 1S2074 ® or Equivalent R=llkll for 0,-0. =24kll for DTR, Tx Data, and TUF Figure 10 Test Loads • DEVICE OPERATION Data Carrier Detect (DCD) input and transfers successive bytes At the bus interface, the SSDA appears· as two addressable of data to the input of the Receiver FIFO. The single-sync- memory locations. Internally, there are seven registers: two character mode ~equires that a match occur between the Sync read-only and five write-only registers. The read-only registers Code Register and one incoming character before data transfer are Status and Receive Data; the write-only registers are Control to the FIFO begins. The two-sync-character mode requires that I, Control 2, Control 3, Sync Code and Transmit Data. The two sync codes be received in sequence to establish synchro- serial interface consists of serial input and output lines with nization. Subsequent to synchronization in any mode, data is independent clocks, and four peripheral/modem control lines. accumulated in the shift register, and parity is optionally Data to be transmitted is transferred directly into the 3-byte checked. An indication of parity error is carried through the Transmit Data First-In First-Out (FIFO) Register from the data Receiver FIFO with each character to the last empty location. bus. Availability of the input to the FIFO is indicated by a bit Availability of a word at the FIFO output is indicated by a bit in the Status Register; once data is entered, it moves through in the Status Register, as is a parity error. the FIFO to the last empty location. Data at the output of the The SSDA and its internal registers are selected by the FIFO is automatically transferred from the FIFO to the address bus, Read/Write (R/W) and Enable control lines. To Transmitter Shift Register as the shift register becomes available configure the SSDA, Control Registers are selected and the to transmit the next character. If data is not available from the appropriate bits set. The Status Register is addressable for FIFO (underflow condition), the Transmitter Shift Register is reading status. automatically loaded with either a sync code or an all "I "s Other I/O lines, in addition to Clear-to-Send (CTS) and Data character. The transmit section may be programmed to append Carrier Dete£!..J.DCD), include Sync Match/Data Terminal even, odd, or no parity to the transmitted word. An external Ready (SM/DTR) and Transmitter Underflow (TUF). The control line (C'fS) is provided to inhibit the transmitter with- transmitter and receiver each have individual clock inputs out clearing the FIFO. allowing simultaneous operation under separate clock control. Serial data is accumulated in the receiver based on the Signals to the microprocessor are the Data bus and Interrupt synchronization mode selected. In the external sync mode used Request (iRQ). for parallel-serial operation, the receiver is synchronized by the ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 197 HD6852,HD68A52-------------------------------------------------------- • Initialization In the external sync mode, TDRA is unaffected by CTS in During a power-on sequence, the SSDA is reset via the RES order to provide Transmit Data FIFO status for preloading and input and internally latched in a reset condition to prevent operating the transmitter under the control of the CTS input. erroneous output transmissions. The Sync Code Register, When the Transmitter Reset bit (Tx Rs) is set, the Transmit Control Register 2, and Control Register 3 should be pro- Data FIFO is cleared and the TDRA status bit is cleared. Mter grammed prior to the programmed release of the Transmitter one E clock has occurred, the Transmit Data FIFO becomes and/or Receiver Reset bits; these bits in Control Register I available for new data with TDRA inhibited. should be cleared after the RES line has gone "High". • Receiver Operation • Transmitter Operation Data and a presynchronized clock are provided to the SSDA Data is transferred to the transmitter section in parallel form receiver section by means of the Receive Data (Rx Data) and by means of the data bus and Transmit Data FIFO. The Receive Clock (Rx CLK) inputs. The data is a continuous Transmit Data FIFO is a 3-byte register whose status is stream of binary data bits without means for identifying charac- indicated by the Transmitter Data Register Available status bit ter boundaries within the stream. It is, therefore, necessary to (TDRA) and its associated interrupt enable bit. Data is achieve character synchronization for the data at the beginning transferred through the FIFO on negative edges of Enable (E) of the data block. Once synchronization is achieved, it is pUlses. Two data transfer modes are provided in the SSDA. The assumed to be retained for all successive characters within the I-byte transfer mode provides for writing data to the trans- block. mitter section (and reading from the receiver sectionYone byte Data communications systems utilize the detection of sync at a time. The 2-byte transfer mode provides for writing two codes during the initial portion of the preamble to establish data characters in succession. character synchronization. This requires the detection of a Data will automatically transfer from the last register single code or two successive sync codes. Floppy disk and location in the Transmit Data FIFO (when it contains data) to cartridge tape units require sixteen bits of defmed preamble and the Transmitter Shift Register during the last half of the last bit cassettes require eight bits of preamble to establish the reference of the previous character. A character is transferred into the for the start of record. All three are functionally, equivalent to Shift Register by the Transmitter Clock. Data is transmitted the detection of sync codes. Systems which do not utilize code LSB first, and odd or even parity can be optionally appended. detection techniques require custom logic external to the SSDA The unused bit positions in short word length characters from for character synchronization and use of the parallel-to-serial the data bus are "don't cares". (Note: The data bus inputs may (external sync) mode. be reversed for applications requiring the MSB to be transferred (Note: The Receiver Shift Register is set to ones when reset) taken, e.g., IBM format for floppy disks; however, care must be taken to properly program the control registers - Table 1 will • Synchronization have its bit positions reversed.) The SSDA provides three operating modes with respect to When the Shift Register becomes empty, and data is not character synchronization: one-syne-character mode, two-sync- available for transfer from the Transmit Data FIFO, an character mode, and external sync mode. The external sync "underflow" occurs, and a character is inserted into the mode requires synchronization and control of the receiving transmitter data stream to maintain character synchronization. section through the Data Carrier Detect (DCD) input. This The character transmitted on underflow will be either a "Mark" external synchronization could consist of direct line control (all "I "s) or the contents of the Sync Code Register, depending from the transmitting end of th~ serial data link or from upon the state of the Transmit Sync Code on Underflow control external logic designed to detect the start of the message block. bit. The underflow condition is indicated by a pulse ('" Tx CLK The one-sync-<:haracter mode searches on a bit-by-bit basis until "High" period) on the Underflow putput (when in Tx Sync on a match is achieved between the data in the Shift Register and underflow mode). The Underflow output occurs coincident the Sync Code Register. The match indicates character synchro- with the transfer of the last half of the last bit preceding the nization is complete and will be retained for the message block. underflow character. The Underflow status bit is set until In the two-sync-<:haracter mode, the receiver searches for the cleared by means of the Clear Underflow control bit. This fllst sync code match on a bit-by-bit basis and then looks for a output may be used in floppy disk systems to synchronize write second successive sync code -character prior to establishing operations and for appending CRCC. character synchronization. If ~ second sync code character is Transmission is initiated by clearing the Transmitter Reset not received, the bit-by-bit search for the first sync code is bit in Control Register 1. When the Transmitter Reset bit is resumed. cleared, the first full positive half-cycle of the Transmit Clock Sync codes received prior to the completion of synchro- will initiate the transmit cycle, with the transmission of data or nization (one or two character) are not transferred to the underflow characters beginning on the negative edge of the Receive Data FIFO. Redundant sync codes during the preamble Transmit Clock pulse which started the cycle. If the Transmit or sync codes which occure as "fill characters" can automat- Data FIFO was not loaded, an underflow character will ically be stripped from the data, when the Strip Sync control bit be transmitted. is set, to minimize system loading. The character synchroniza- The Clear-to-Send (CTS) input provides for automatic tion will be retained until cleared by means of the Clar Sync bit, control of the transmitter by means of external system which also inhibits synchronization search when set. hardware; e.g., the modem CTS out~provides the control in a data communications system. The CTS input resets and inhibits • Receiving Date the transmitter section when "High", but does not reset the Once synchronization has been achieved, subsequent char- Transmit Data FIFO. The TDRA status bit is inhibited by CTS acters are automatically transferred into the Receive Data FIFO being "High" in either the one-sync character or two-sync- and clocked through the FIFO to the last empty location by E character mode of operation. pulses (MPU System 4>2). The Receiver Data Available status bit ~HITACHI 198 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------HD6852,HD68A52 (RDA) indicates when data is available to be read from the last Control, Parity Error status bit, and DCD interrupt. The FIFO location (#3) when in the I-byte transfer mode. The Receiver Shift Register is set ones. The Rx Rs bit must be 2-byte transfer mode causes the RDA status bit to indicate data cleared after the occurrence of a "Low" level on RES in order is available when the last two FIFO register locations are full. to enable the receiver section of the SSDA. Data being available in the Receive Data FIFO causes an interrupt request if the Receiver Interrupt Enable (RIE) bit is Transmitter Reset (Tx Rs). C1 Bit 1 set. The MPU will then read the SSDA Status Register, which The Transmitter Reset control bit provides both a reset and will indicate that data is available for the MPU read from the inhibit to the transmitter section. When Tx Rs is set, it clears Receiver Data FIFO register. The IRQ and RDA status bits are the transmitter control section, Transmitter Shift Register, Tx reset by a read from the FIFO. If more than one character has Data FIFO Control (the Tx Data FIFO can be reloaded after been received and is resident in the Receive Data FIFO, one E clock pulse), the Transmitter Underflow status bit, and subsequent E clocks will cause the FIFO to update and the the CTS interrupt, and inhibits the TDRA status bit (in the RDA and IRQ status bits will again be set. The read data one-sync-(;haracter and two-sync-(;haracter modes). The Tx Rs operation for the 2-byte transfer mode requires an intervening E bit must be cleared after the occurrence of a "Low" level on clock between reads to allow the FIFO data to shift. Optional RES in order to enable the transmitter section of the SSDA. If parity is automatically checked as data is received, and the the Tx FIFO is not preloaded, it must be loaded immediately parity status condition is maintained with each character until after the Tx Rs release to prevent a transmitter underflow the data is read from the Receive Data FIFO. Parity errors will condition. cause an interrupt request if the Error Interrupt Enable (EIE) has been set. The parity bit is not transferred to the data bus Strip Synchronization Characters (Strip Sync). C1 Bit 2 but must be checked in the Status Register. NOTE: In the If the Strip Sync bit is set, the SSDA will automatically strip 2-byte transfer mode, parity should be checked prior to reading all received characters which match the contents of the Sync the second byte, since a FIFO read clears the error bit. Code Register. The characters used for synchronization (one or Other status bits which pertain to the receiver section are two characters of sync) are always stripped from the received Receiver Overrun and Data Carrier Detect (OCD). The Overrun data stream. status bit is automatically set when a transfer of a character to the Receive Data FIFO occurs and the first register of the Clear Synchronization (Claar Sync). C1 Bit 3 Receive Data FIFO is full. Overrun causes an interrupt if Error The Clear Sync control bit provides the capability of Interrupt Enable (EIE) has been set. The transfer of the dropping receiver character synchronization and inhibiting overrunning character into the FIFO causes the previous resynchronization. The Clear Sync bit is set to clear and inhibit character in the FIFO input register location to be lost. The receiver synchronization in all modes and is reset to zero to Overrun status bit is cleared by reading the Status Register enable resynchronization. (when the overrun condition is present), followed by a Receive Data FIFO Register read. Overrun cannot occur and be cleared Transmitter Interrupt Enable (TIEl. C1 Bit 4 without providing an opportunity to detect its occurrence via TIE enable both the Interrupt Request (IRQ) output and the Status Register. Interrupt Request status bit to indicate a transmitter service A positive transition on the OCI> input causes an interrupt if ~est. When TIE is set and the TDRA status bit is "I", the the EIE control bit has been set. The interrupt caused by DCD IRQ output will go "Low" (the active state) and the IRQ status is cleared by reading the Status Register when the DCD s~ bit will go "I". bit is "1", followed by a Receive Data FIFO read. The OCD status bit will subsequently follow the state of the OCD input Receiver Interrupt Enable (RIEl. C1 Bit 5 when it goes "Low". RIE enable both the Interrupt Request output (IRQ) and the Interrupt Request status bit to indicate a receiver service request. When RIE is set and the RDA status bit is "I", the IRQ • SSDA REGISTERS output will go "Low" (the active state) and the iRQ status bit Seven registers in the SSDA can be accessed by means of the will go "I". bus. The registers are dermed as read-only or write-only according to the direction of information flow. The Register Addre.. Control 1 (AC1) and Address Control 2 (AC21. C1 Select (RS) input selects two registers in each state, one being Blt16 and 7 read-only and the other write-only, The Read/Write (R/W) input ACI and AC2 select one of the write-only registers - Control dermed which of the two selected registers will actually be 2, Control 3, Sync Code, or Tx Data FIFO - as shown in Table accessed, Four registers (two read-only and two write-only) can 1, when RS = "High" and R/W = "Low". be addressed via the bus at any particular time. These registers and the required addressing are defined in Table I. • Control Regilter 2 (C21 Control Register 2 is an 8-bit write-only register which can be • Control Reglater 1 (C11 programmed from the bus when the Address Control bits in Control Register I is an 8-bit wirte-only register that can be Co,!!trol Register I (ACI and AC2) are reset, RS = "High" and directly addressed from the data bus. Control Register I is R/W="Low". addressed when RS = "Low" and R/W = "Low". Peripheral Control 1 (PC1) and Peripheral Control 2 (PC2I. Receiver Reset (Rx Ral. C1 Bit 0 C2 Bits 0 and 1 The Receiver Reset control bit provides both a reset and Two control bits, PCl and PC2, determine the operating inhibit function to the receiver section. When Rx Rs is set, it characteristics of the Sync Match/DTR output. PCl, when clears the receiver control logic, error logic, Rx Data FIFO "High", selects the Sync Match mode. PC2 provides the inhibit/ ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 199 HD6852,HD68A52---------------------------------------------------------- enable control for the SM/DRT output in the Sync Match mode. a character with DCO "Low". Both the transmitter and receiver A one-bit-wide pulse is generated at the output when PC2 is "0", sections operate as parallel - serial converters in the External and a match occurs between the contents of the Sync Code Sync mode. The Clear Sync bit in Control Register 1 acts as a Register and the incoming data even if sync is inhibited (Clear receiver sync inhibit when "High" to provide a bus controllable Sync bit = "1 "). The Sync Match pulse is referenced to the inhibit. The Sync Code Register can serve as a transmitter fill negative edge of Rx CLK pulse causing the match. character register and a receiver match register in this mode. A The Data Terminal Ready (OTR) mode is selected when PCI "Low" on the RES input resets the E/I Sync Mode bit placing is "0". When PC2 = "I" the SM/OTR output = "Low" and vice the SSOA In the internal sync mode. versa. The operation of PC2 and PCI is summarized in Table 4. One-Sync-Character!Two-Sync-Character Mode, Control 11 1-Byte!2-Byte Transfer (1-Byte!2-Byte), C2 Bit 2 Sync!2 Sync), C3 Bit 1 When I-Byte/2-Byte is set, the TORA and RDA status bits When the 1 Sync/2 Sync bit is set, the SSOA will will indicate the availability if their respective data FIFO synchronize on a single match between the received data and registers for a single byte data transfer. Alternately, if I-Byte/ the contents of the Sync Code Register. When the I Sync/2 2-Byte is reset, the TORA and ROA status bits indicate when Sync bit is reset, two successive sync characters must be two bytes of data can be moved without a second status read. received prior to receiver synchronization. If the second sync An intervening Enable pulse must occur between data transfers. character is not detected, the bit by bit search resumes from the fIrst bit in the second character. See the description of the Sync Word Length Selects IWS1, WS2, WS3), C2 Bits 3, 4, 5 Code Register for more details. Word lengtll Select bits WSI, WS2, and WS3 select word length of 7,8, or 9 bits including parity as shown in Table 3. Clear CTS Status IClear CTS), C3 Bit 2 When a "I" is written into the Clear CTS bit, the stored Transmit Sync Code on Underflow ITx Sync), C2 Bit 6 status and interrupt are cleared. Subsequently, the CTS status When Tx Sync is set, the transmitter will automatically send bit reflects the state of the CTS input. The Clear ,~ control a sync character when data is not available for transmission. If bit does not affect the CTS. input nor its inhibit of the Tx Sync is reset, the transmitter will transmit a Mark character transmitter secton. The Clear CTS command bit is self-clearing, (including the parity bit position) on underflow. When the and writing a ''0'' into this bit is a nonfunctional operation. underflow is detected, a pulse approximately a Tx CLK "High" period wide will occur on the underflow output if the Tx Sync Clear Transmit Underflow Status (CTUF), C3 Bit 3 bit is "I". Internal parity generation is inhibited during When a "I" is written into the crUF status bit, the CTUF underflow except for sync code fill character transmission in 8 bit and its associated interrupt are reset. The CTUF command bit plus parity word lengths. bit is self-clearing and writing a "0" into this bit is a nonfunctional operation. Error Interrupt Enable lEI E), C2 Bit 7 When EIE is set, the IRQ status bit will go "I" and the IRQ • Sync Code Register output will go "Low" if: The Sync Code Register is an 8-bit register for storing the I) A receiver overrun occurs. The interrupt is cleared by reading programmable sync code required for received data character the Status Register and reading the Rx Data FIFO. synchronization in the one-sync-character and two-sync- 2) fiCO input has gone to a "High". The interrupt is cleared by character modes. The Sync Code Register also provides for reading the Status Register and reading the Rx Data FIFO. stripping the sync/fill characters from the received data (a 3) A parity error exists for the character in the last location programmable option) as well as automatic insertion of fill (#3) of the Rx Data FIFO. The interrupt is cleared by characters in the transmitted data stream. The Sync Code reading the Rx Data FIFO. The interrupt is cleared by Register is not utilized for teceiver character synchronization in reading the Rx Data FIFO. the external sync mode; however, it provides storage ofreceiver 4) The CTS input has gone to a "High". The interrupt is cleared match and transmit fill characters. by writing a "I" in the Clear crs bit, C3 bit 2, or by a Tx The Sync Code Register can be loaded when AC2 and ACI Reset. are a "I" and "0" respectively, and R/W = "Low" and RS = 5) The transmitter has underflowed (in the Tx Sync on "High". Underflow mode). The interrupt is cleared by writing a "I" The Sync Code Register may be changed after the detection into the Clear Underflow, C3 bit 3, or Tx Reset. of a match with the received data (the first sync code having When EIE is a "0", the ffiQ status bit and the IRQ output been detected) to synchronize with a double-word sync pattern. are disabled for the above error conditions. A "Low" level on (This sync code change must occur prior to the completion of the RES input resets EIE to "0". the second character.) The sync match (SM) output can be used to interrupt the MPU system to indicate that the first eight bits • Control Register 3 IC3) have matched. The service routine would then change the sync Control Register 3 is a 4-bit write-only register which can be match register to the second half of the .pattern. Alternately, the programmed from the bus when RS = "High" and R/W one-sync-character mode can be used for sync codes for 16 or "Low" and Address Control bit ACI = "1" and AC2 = "0". more bits by using software to check the second and subsequent bytes after reading them from the FIFO. External/Internal Sync Mode Control IE!I Sync), C3 Bit 0 The detection of the sync code can be programmed to appear When the Ell Sync Mode bit is "I ", the SSOA is in the on the Sync Match/OTR output by writing a "I" in PCI (C2 bit external sync mode and the receiver synchronization logic is 0) and a "0" in Pe2 (C2 bit I). The Sync Match output will go disabled. SynchrOnization can be achieved by means of the DCI) "High" for one bit time beginning at the character interface input or by starting Rx CLK at the midpoint of data bit "0" of between the sync code and the next character. ~HITACHI 200 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------HD6852,HD68A52 • Parity for Sync CharllCter bit. The Overrun bit will be set when the overrun occun and Tranlmitter remains set until the Status Register is read, followed by a read Transmitter does not generate parity for the sync character of the Rx Data FIFO. except 9-bit mode. Unused data bits for short word lengths (including the parity 9-bit (8-bit + parity) - 8-bit sync character + parity bit) will appear as "O"s on the data bus when the Rx Data FIFO 8-bit (7-bit + parity) - 8-bit sync character (no parity) is read. 7-bit (6-bit + parity) - 7-bit sync character (no parity) R_iver • Tranlmit Data Fint-In Fint-Out Regilter . At Synchronization (Tx Data FIFO) Receiver automatically strips the sync character(s) (two sync The Transmit Data FIFO Reglstor consists of three 8-bit characters if '2 sync' mode is selected) which is used to establish registors which are used for buffer storage of data to be synchronization. And parity is not checked for these sync transmitted. Each 8-bit register has an internal status bit which characters. monitors its full or empty condition. Data is always transferred Mter Synchronization is Established from a full register to an adjacent empty registor. The transfer is When 'strip sync' bit is selected, the sync characters (fill clocked by E pulses. characters) are stripped and parity is not checked for the The TDRA status bit will be "High" if tho Tx Data FIFO is stripped sync (fill) characters. When 'strip sync' bit is not available for data. selected (0), the S)'!Ic character is assumed to be normal data Unused data bits for short word lengths will be handled as and it is transferred into FIFO after parity checking. (When "don't cares". The parity bit is not transferred over the data non-parity format is selected, parity is not checked.) bus since the SSDA generates parity at transmission. When an Underflow occurs, the Underflow character will be either the contents of tho Sync Code Register or an all "I "s character. The underflow will be stored in the Status Register Strip Sync Data Format Operation until cleared and will appear on the Underflow output as a pulse (C1 Bit 2) (C2 Bit 3-5) approximately a Tx CLK "High" period wide. No transfer of sync code. • Status Register 1 x No par ity check of The Status Register is an 8-bit read-only register which sync code. provides the real-time status of the SSDA and the associated ·Transfer data anG seria1 data channel. Reading the Status Register is a non-destruc- 0 With Parity sync codes. tive process. The method of clearing status bits depends upon Par ity check. the function each bit represents and is discussed for each bit in ·Transfer data and the register. 0 Without Parity sync codes. R_iver Data Available (RDA), S Bit 0 No parity check. The Receiver Data Available status bit indicates when receiver data can be read from the Rx Data FIFO. The receiver • Subsequent to Iynchronization data being present in the last register (#3) of the FIFO causes x ..... don't cere RDA to be "1" for the I-byte transfer mode. The RDA bit being "I" indicates that the last two registors (#2 and #3) are It is necessary to pay attention to the selected sync character full when in the 2-byte transfer mode. The second character can in the following cases. be read without a second status rad (to determine that the I) Data format is (6 + parity), (7 + parity), charactor is available). And E pulse must occur between reads of 2) Strip sync is not selected ("0"). the Rx Data FIFO to allow the FIFO to shift. Status must be 3) Mter synchronization when sync code is used as a fill read on a word-by-word basis if receiver data error checking is character. important. The RDA status bit is reset automatically when data Transmitter sends sync character without parity, but receiver is not available. checks the parity as if it is normal data. Therefore, the sync character should be chosen to match the parity che~k selected Transmitter Data Register AvallabielTDRA), S Bit 1 for the receiver in this special case. The TDRA status bit indicates that data can be loaded into the Tx Data FIFO Register. The fint register (#1) of the Tx • R_ve Data Fint-In Flnt-Out Register Data FIFO being empty will be indicated by a "I" in the TDRA IRx Data FIFO) status bit in the I-byte transfer mode. The ftnt two registen The Receive Data FIFO Register consists of three 8-bit (#1 and #2) muat be empty for TDRA to be "I" when in the reglsten which are used for buffer storage of received data. Each 2-byte transfer mode. The Tx Data FIFO can be loaded with 8-bit reglstor has an intema! status bit which moniton its full or two bytes without an intervening status read; however, one E empty condition. Data is always transferred from a full register pu1se must occur between loads. TDRA is inhibited by the Tx to an adjacent empty reglstor. The transfer from register to Reset or ~. When Tx Reset is set, the Tx Data FIFO Is register occurs on E pulses. The. RDA status bit will be "1" cleared and then released on the next E clock pu1se. The Tx when data is avanable in the last locetioll of the Rx Data FIFO. Data FIFO can then be loaded with up to three character& of In an Overrun condition, the overrunning character will be data, even though TDRA is inhibitod. This feature allows transferred into tho full flnt stage of the FIFO registor and will preloa~ta prior to the release ofTx Reset. A "High"lovol cause the loss of that data character. !laceessive overruns on the CTS' input inhibits the TDRA status bit in either sync continue to overwite the fint registor of the FIFO. This mode of operation (one-sync-cl!aracter or two-sync-character). destruction of data' is indicated by means of the Overrun status m does not affect TDRA in the extema! sync mode. This ~HITACHI Hitachi America Ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 201 HD6852,HD68A52---------------------------------------------------------- enables the SSDA to operate under the control of the ffi input the Tx Rs bit. TUF indicates that a sync character will be with TDRA indicating the status of the Tx Data FIFO. The CTS transmitted as the next character. A TUF is indicated on the input does not clear the Tx Data FIFO in any operating mode. output only when the contents of the Sync Code Register is to be transferred (transmit sync code on underflow = "I"). Data Carrier Detect (DCD), S Bit 2 A positive transition on the DCD input is stored in the SSDA Receiver Overrun (Rx Ovrn), S Bit 5 until cleared by reading both Status and Rx Data FIFO. A "1" Overrun indicates data has been received when the Rx Data written into Rx Rs also clears the stored DCD status. The DCD FIFO is full, resulting in data loss. The Rx Ovrn status bit is set status bit, when set, indicates that the DCD input has gone when Overrun occurs. The Rx Ovrn status bit is cleared by "High", The reading of both Status and Receive Data FIFO reading Status followed by reading the Rx Data FIFO or by allows Bit 2 of subsequent Status reads to indicate the state of setting the Rx Rs control bit. the DeD input until the next positive transition. Rec:eiver Parity Error (PE), S Bit 6 Clear-to-Send (CTS), S Bit 3 The parity error status bit indicates that parity for the A positive transiton on the CTS input is stored in the SSDA character in the last register of the Rx Data FI FO did not agree until cleared by writing a "1" into the Clear CTS control bit or with selected parity. The parity error is cleared when the the Tx Rs bit. The CTS status bit, when set, indicates that the character to which it pertains is read from the Rx Data FIFO or CfS input has gone "High". The Clear CTS command (a "I" when Rx Rs occurs. The DCD input does not clear the Parity into C3 Bit 2) allows Bit 3 of subsequent Status reads to Error or Rx Data FIFO status bits. indicate the state of the CTS input until the next positive transition. Interrupt Request (IRQ), S Bit 7 The Interrupt Request status bit indicates when the IRQ Transmitter Underflow (TUF), S Bit 4 output is in the active state (IRQ output = "Low"). The IRQ When data is not available for the transmitter, an underflow status bit is subject to the same interrupt enables (RIB, TIE, and occurs and is so indicated in the Status Register (in the Tx Sync EIB) as the fIUJ output. The IRQ status but Simplifies status on underflow mode). The underflow status bit is cleared by inquiries for polling systems by 'providing single bit indication of writing a "I" into the Clear Underflow (CTUF) control bit or service requests. Table 1 SSDA Programming Model Control* Address Register Content Register Inputs Control AS A/W AC2 AC1 Bit 7 Bit6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 BitO Status (5) 0 1 X X Interrupt Receiver Receiver Transmitter Clear-to- Data Carrier Transmitter Receiver R~st Parity Overrun Underflow Send Detect Data Data liAQ) Error (Ax Ovrn) (TUF) (CTS) (DCD) Register Available (PEl Available (ADA) (TDAA) Control 1 0 0 X X Address Address Receiver Transmitter Clear Strip Sync Transmitter Receiver (C1) Control 2 Control 1 Interrupt Interrupt Sync Characters Reset Reset (AC2) IAC1) Enable Enable (Strip Sync) (Tx As) {Ax As) ... Receive 1 1 X X 0, 0, (AlE) 0, (TIE) D. 0, 0, 0, D. Data FIFO Control 2 1 0 0 0 Error Transmit Word Word Word 1·Byte/2·Byte Peripheral Peripheral (C2) Interrupt Sync Code Length Length Length Transfer Control 2 Control 1 Enable on Select 3 Select 2 Select 1 (1·Byte/2·Byte) IPC2) (PC1) (EIE) Underflow (WS3) (WS2) (WS1) (Tx Sync) Control 3 1 0 0 1 Not Used Not Used Not Used Not Used Clear Clear CfS One-Sync· Externall (C3) Transmitter Status Characterl Internal Underflow (Clearers.) Two·Sync Sync Mode Status Character Control (CTUF) Mode Control (Ell Sync) (1 Syncl 2 Sync) $ync ~d:* 1 0 1 0 0, 0 0 0 0 0 0 0 Transmit Data FIFO 1 0 1 1 0, 0, 0, 0, 0, 0, D. D. • 0; "Low" level, 1; "High" level ** "FF" should not be used as Sync Code. *** When the SSDA is used in applications requiring the MSB of data to be receive and transmitted first, the data bus inputs to the SSDA ° may be reversed (Do to 1 < etc.). Caution must be used when this is done since the bit positions in this table will be reversed, and the parity should not be selected. ~HITACHI 202 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131'. (408) 435-8300 --------------------------------------------------------HD6852,HD68A52 Table 2 Functions of SSDA Register Register Bit Symbol Function 7 iRa The i1m flag IS cleared when the source of the IRQ is cleared. The source is determined by the enables in the Control Registers: TIE, RIE, EIE. (I ---------- PE When parity error is detected in Read Rx Data FIFO, or a "1" into receive data. Rx Rs (CI Bit 01. 5 ----------- Rx Ovrn ------------------ When receive data FIFO overruns. ------------------- --- Read Status and then Rx Data FI FO, or a "1" Into Rx Rs (Cl Bit 01. 4 ---------- TUF When under flow is occurred In -A"7.,.:-i;;toCTUF(CiBlt3rciinto--- the transmitter. Tx Rs (Cl Bit 11. 3 -c'TS------ ·v.,;h;mffl~ig,;alris;":------- -A "1"";'i;;toCI...--;-cis-(C3Bit2)-";--- _! ::~:';!!.t~!~~!..(.9!"!!'i!.!) ______ _ Stetus RegISter 2 --------- DCD ConditIOns for Sat When DC15 signal rises. Conditions for Reset Read Status and then Rx Date FIFO or a "1" into Rx Rs lCl Bit 01 lSI --- --------- 1 Byte Transfer Mode; when the transmit data FIFO (#11 isempty. TDRA ----------------- 2 Byte Transfer Mode; when the Write Into Tx Data FIFO. transmit data FIFO (#1, #21 is ____________ _ --- --------- !~t!. 1 Byte Transfer Mode; when the data is received in the receive data FIFO (#31. o RDA ---------------- 2 Byte Transfer Mode; when the Reed Rx Data FI FO. data is received in the receive date FIFO (#2, #31. 7 AC2 Used to access other registers, as shown Table 1 • ... ~ .....~~~ ............\ ............................................................................................................................................. 5 RIE When "1", enables interrupt on RDA (S Bit 0), Control Register 1 :::~::: ::!.~~::::::::::::::::: :::~~~~:~:~::~~~~~~~~:~~~!.~~~~:~~:i.~~~:(~:~~!:!j;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: (CU ___ ~_._ .. ~~~~!.~~!!~ .. __ .... ___ ~_~~.~.:·.~::.. ~.I~!'!.~!'!:~~~~_~_~~!~~~~!.~!l.~~!!~!l.i.~~!~?!~: ....... __ ........ __ .. _____ ........................ __ ............. ___ .. 2 Strip Sync When "1", striPS all sync codas from the received data stream • ... ," ... --Tx' Ai···· .. --_ .. --- .0. :;';;i8i;-;;';ciin"hibiii- the' i;.a-~;;itt;;; ';;ti~~:"" ... \fihe~' ;;i;; _0 • • • • • • • • • • • • • 0 • • • • • • • • _ _ • • • • • • _0 • • • • • • • • • • • • _ _ _ _ . 0 • • - • • • • • • • --'0'" --Rx'R~"--""--"" -"wh;;~-;'-;;;:~_i~'i;;d'i;"h;biu'th~';~;iw~MCtio"r;:"'-'" ........................................__ ............ --.. _--_ ... . 7 EIE When "1", enables the PE, Rx Ovrn, TUF, CTS, and DCD interrupt flogs IS Bits 6 through 21 • ........ ....................... ···wlij,;;·;;';;:iili;,;;;~·iV;;.;·i:od;;·co;;j;,;;U·;;,·bi.. i;~;;iie~;:~d·o~·;;~d~;:il;,;;;;ii~d·,;;;~bl;;;·itijiTUF······················· 6 Tx Sync StatuI bit and output. When "0". an all mark character is transmitted on underflow. "'5'" ·Wii3················ .......................................................................................................................................... Control Register 2 4 WS2 Word Length Select (C21 3 WSI 2 I.Byte/2.Byte When "1", enables 1he,TDRA and RDA bits to indICate when al-byte transfer can occur; when ..................................::~::~.~~.:!"!?~.~.~~~.r:':~~.~!~~.!~!~~.~.~~~~.~.~..~.~~.!~~!!~~~.~.~~.?~~~~: ....... .-................................... . 1 PC2 SM/I5'fl!i Output Control o PCl 3 CTUF When "1", cleers TUF (S Bit 41, and IRQ if enabled. Control "'2'" .. cl;;~;·rn········ ···wh.·~·;;;;;:;;I;;,;;;·rn·is·Bii·3y:~;;dnm·ij·~·~~bi~d .. ····· ................................................................. Register 3 (C31 ...., ... ",:SyiiCi2:Sync'" ···wti;;~·;;;;;:~I;;i:u·ih~·O;;HV,;;;.;;h;;~~i:t;;.;·riiOii.·;·~h;;;;;iY;:·;;i;,;;i;t·h~·t~~y;;;,:;;.;.;,~;;.;i~~·;;;~d,;:················ ---0--- --eji"svi,c·--------- -"-W"hen-;;P;;ielecu-ihe-externai"iYiic-n.;0d8;w-hen-;'O;i:ie"lt;cii-ihe";.;terniriy".;c-mode:-----------------------""----- Table 3 Word Length Bit 5 Bit 4 Bit3 WS3 WS2 WSI Word Length 0 0 0 6 Bits + Even Parity 0 0 1 6 Bits + Odd Parity 0 1 0 7 Bits 0 1 1 8 Bits 1 0 0 7 Bits + Even Parity 1 0 1 7 Bits + Odd Parity 1 1 0 8 Bits + Even Parity 1 1 1 8 Bits + Odd Parity ~HITACHI Hilachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 203 HD6852,HD68A52-------------------------------------------------------- • Register Select (RS) Table 4 SM/DTR Output Control The Register Select line is a high impedance input that is Bit 1 Bit 0 TIL compatible. A "High" level is used to select Control PC2 PCl SM/DTR Output at Pin 5 Registers C2 and C3, the Sync Code Register, and the Transmit/Receive Data Registers. A "Low" level selects the 0 0 "High" level· Control 1 and Status Registers (see Table I). 0 1 Pulse --.r-Ll-Bit Wide, on SM 1 0 "low" level· • Interrupt Request (I RQ) 1 1 SM Inhibited, "low'" IRQ is a TTL compatible, open-drain (no internal pullup), active "Low" output that is used to interrupt the MPU. The • OUTPUT level is fixed by the data written into PC2, PC1 . IRQ remains "Low" until cleared by the MPU. •• When "10" or "11 ", output is fixed at "low". • Reset (RES) RDA'PE The RES input provides a means of resettin~e SSDA from Rx Dvm an external source. In the "Low" state, the RES input causes CTS the following: DCD I) Receiver Reset (Rx Rs) and Transmitter Reset (Tx Rs) bits TUF are set causing both the receiver and transmitter sections to TDRA be held in a reset condition. 2) Peripheral Control bits PCI and PC2 are reset to zero, causing the SM/DTR output to be "High". RDA 3) The Ertor Interrupt Enable (EIE) bit is reset. 4) An internal synchronization mode is selected. 5) The Transmitter Data Register Available (TDRA) status bit is • INTERFACE SIGNALS FOR MPU cleared and inhibited. The SSDA interfaces to the HD6800 MPU with an 8-bit When RES returns "High" (the inactive state), the transmit- bi-directional data bus, a chip select line, a register select line, an ter and receiver sections will remain in the reset state until the interrupt request line, read/write line, an enable line, and a reset Receiver Reset and Transmitter Reset bits are cleared via the line. These signals, in conjunction with the HD6800 VMA bus under software control. The control Register bits affected output, permit the MPU to have complete control over the by RES (Rx Rs, Tx Rs, PCI, PC2, EIE, and E/I Sync) cannot be SSDA. changed when RES is "Low". • Bi-Directional Data Bus (0 0 -07 ) • CLOCK INPUTS The bi-directional data bus (Do -D 7 ) allow for data transfer Separate high impedance TIL compatible inputs are pro- between the SSDI\ and the MPU. The data bus output drivers vided for clocking of transmitted and received data. are three-state devices that remain in the high impedance (off) state except when the MPU performs an SSDA read operation. • Transmit Clock (Tx ClK) The Transmit Clock input is used for the clocking of • Enable (E) transmitted data. The transmitter shifts data on the negative The Enable signal, E, is a high impedance TTL compatible transition of the clock. input that enables the bus input/output data buffers, clocks data to and from the SSDA, and moves data through the FIFO • Receive Clock (Rx ClK) Registers. This signal is normally the continuous HMCS6800 The Receive Clock input is used for clocking in received data. System <1>2 clock, so that incoming data characters are shifted The clock and data must be synchronized externally. The through the FIFO. receiver samples the data on the positive transition of the clock. • Read/Write (R/WI • SERIAL INPUT/OUTPUT LINES The Read/Write line is a high impedance input that is TIL • Receive Data (Rx Data) compatible and is used to control the direction of data flow The Receive Data line is a high impedance TIL compatible through the SSDA's input/output data bus interface. When input through which data is received in a serial format. Data Read/Write is "High" (MPU read cycle), SSDA output drivers rates are from 0 to 600 kbps. are turned on if the chip is selected and a selected register is read. When it is "Low", the SSDA output drivers are turned off • Transmit Data (Tx Data) and the MPU writes into a selected register. The Read/Write The Transmit Data output line transfers serial data to a signal is also used to select read-only or write-only registeres modem or other peripheral. Data rates are from 0 to 600 kbps. within the SSDA. • PERIPHERAL/MODEM CONTROL OIl Chip Select ICS) The SSDA includes several functions that permit limited 'This high impedance TTL compatible input line is used to control of a peripheral or modem. The functions included are address the SSDA. The SSDA is selected when CS is "Low". C'rS, SM/DTR, DCD, and TUF. VMA should be used in generating the CS input to insure that false selects will not occur. Transfers of data to and from the • Clear-to-Send ICTS) SSDA are then performed under the control of the Enable The CTS' input provides a real-time inhibit to the transmitter signal, Read/Write, and Register Select. ~HITACHI 204 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------HD6852,HD68A52 section (the Tx Data FIFO is not disturbed). A positive ers cycle after release of Den (see Figure 7). transition resets the Tx Shift Register and inhibits the TDRA status bit and its associated interrupt in both the one-sync- • Sync Mach/Datil Terminal Ready (SM/DTR) character and tw is stored within the SSDA to insure that its occurrence will be acknowledged by the system. • NOTE FOR USAGE The stored Den information and its associated om (if enabled) If the hold time of CS signal and R/W signal is within 50- are cleared by reading the Status Register and then the Receiver 230 ns, there is a case that Transmit Data FIFO is not cleared FIFO, or by writing a "1" into the Receiver Reset bit. The J5CI) and TDRA flag is not set when software reset using TxRS status bit sub~ently follows the DeD input when it goes (TxRS=I) is executed. Hmal program for data transmission will "Low". The DCIJ input provides character synchronization start to send the data as shown in Fig. II and Fig. 12. timing for the receiver during the external sync mode of In this case, the data of the first three bytes are not preset operation. The receiver will be initialized and data will be and unexpected data which is remaining in Transmit Data FIFO sampled on the positive transition of the fl1"St full Receive Clock are sent in the first two bytes. DTA TxAs RxRs TxData #3 1!14 RxData TORA When addrlll hold time IS Within 50-230 nt, sometlmel TOR A flag IS not set. Figure 11 Normal Flow of Starting Figure 12 Transmission Start Sequence the Transmission and Reception In case of SSDA, Address Hold Time should be from 20 to • OeD Input in External Synchronization Mode 50 ns or over 230 ns. In case of receiving data in External Synchronization Mode, Receive data is put off by one bit at times, when DeD is drived like..f1. in RxCLK cycle in which RDA flag is set. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 951:31 • (408) 435-8300 205 HD6852,HD68A52-------------------------------------------------------- (Usual easa) RxCLK ,D. starts at RxCLK risa after 1lCD""L 0, 0, D. RxData 0, D. 0, 0, 0, RDA flag-:....--...II'~--t-_If_------------------I ,~_ _ __ Road oparation of Racai... Data FIFO aftar road t Road operation of Raeai ... Data FIFO aftar _ _ operation of Status Ragister road oparation of Status Ragist.. DCD input (Data $FO) RxCLK RxData 0, D. 0, 0, 0, D. D. 0, 0, 0, RDA flag ~------~~I'~------------------------------~,~--- Read oporation of Racai ... Data FIFO aftar read oporation of Status Ragistar I Road oporation of Racai... Data FIFO after road operation of Status Ragistar (Data $78) DCD input ------+---..1 Figure 13 Exceptiona) External Sync Operation To avoid this case, use SSDA in the following method. (1) DCD Land RxCLK L should meet the relation shown in Fig. 14. RxCLK ! RxData,_ _ _ _ _ _ _--!-o! o o 0 ' ""!_..JX 0 0 D. X...__D..;,'__ o 0 0 o 0 0 ~ . tl . t2 • t, ~ 500 nsec t, >0 Figure 14 OeD Input Timing in External Sync Mode (2) RxData should be input regarding the second RxCLK rise as Do bit, after DCD~. ~HITACHI 206 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD4650S, HD4650S-1, HD4650SA, HD4650SA-1 ADU (Analog Data Acquisition Unit) The H046508 is a monolithic NMOS device with a IO-bit analog-t o(Xl °0-°7 r - - - - --- l1 0> U1 0 f I LATCH _r----,.o---- E s.o :J: TRI-STATE BUFFER - 0 CS, .j:> ( J J tJ 0> U1 I IRQ CH. MPX I REG.O I r REG. 1 REG.4 0+- CS, 0 C{J ~ ,I,J, ~,~: ~ '. ~!~!:::,k---- ~ () ='- '::c » 0 3 CD I T"., @"""I RS, .j:> 0> ". () '!:'" ~C~ rl r'l - Tj 11 CIRCUIT U1 0 ~ CLK RS, (Xl ?- (Reg. 0) I L1 lJ }> :J: '"'"0 BASIC ••~----I II I CH. MPX I R/W 0 .j:> 0> U1 0 TIMING ~ / RES 0 o1~ (Xl GENERATOR Q. • SUCCESSIVE D/A ~ '"~ T APPROXIMATION (1024 LADDER 1: f--- AI, 'c:" :::> REGISTER RESISTANCE & '" ~ DECODER) @,® ~ AI, (flC") EXPAND @ PC, GS, GO, Gl L..._ _ _ _ _ _...,..._ _--' , '" 1: ::> CONTROL i--ST (Regl'~' 1) : c.... 0 (Reg.O) .J , (J> .'0" MODE SELECT I--- ANALOG MPX : : » & GAINSEL , CD OONffiOL : '"~ L+~----~~C /:- : : ~ 0 S ... COMPARATOR AilS '"Co'" w 0 0 1 DO-D3 (Reg. 1) ® MI GAINSEL REF(+) REFH COMPIN COMMON "206" : Fixed Data for Auto Range-Switching x 4 "410": Fixed Data for Auto Range-Switching x 2 Figure 1 Internal Block Diagram - - - - - - - - - - - - - - - - - - - H D4650B,HD4650B-1,HD4650BA,HD4650BA-1 • ABSOLUTE MAXIMUM RATINGS Item Symbol Value Unit Supply Voltage Input Voltage Vcc VIn· · -0.3-+7.0 -0.3-+7.0 V V Analog Input Voltage Operating Temperature VAin T oDr · -0.3-+7.0 - 20- +75 V ·C Storage Temperature T ltg - 55- +150 ·C • Wnh_t to Vss (SYSTEM GNDI [NOTE) Pe"""nent LSI de~ may occur if maximum ratingsara exceeded. Normal """ration should be uncler "",ommendad operllling conditions. If theaa condition. era ex088dad, It could affect raliability of LSI. • RECOMMENDED OPERATING CONDITIONS Item Symbol min typ max Unit .. Supply Voltage Vcc· 4.75 5.0 5.25 V Input "High" Voltage V,H 2.0 - V"" V Input "Low" Voltage V ,L -0.3 - 0.8 V Analog Input Voltage VAin · 0 - VREF(+1 V Reference Voltage VREF(+I· VREF(-l .. - -0.1 Vee 0 Vcc+O.25 - V Voltage Centar of Ladder VREF(+1 + VREF(-l - Vcc -2- V~C+O.25 V 2 Operating Temperature Topr -20 25 75 ·C ·With respect to Vss (SYSTEM GNO) • J:LECTRICAL CHARACTERISTICS • DC CHARACTERISTICS<1> (Vee -6V ± 5%, Vss -OV. Ta - -20-+75·C.unless otherwise notad.) Item Symbol Test Condition min typ max Unit Input "High" Vultage V'H 2.0 - Vcc V Input "Low" Voltage V,L -0.3 - 0.8 V Do -0 7 IOH =-205IlA 2.4 - - Output "High" Voltage GAINSEL VOH IOH z -200,.tA 2.4 - - V IOH =-lOj.tA Vcc- 1.O - - Output "Low" Voltage 0.-0" GAINSEI, VOL IOL = 1.6mA - - 0.4 V IRQ IOL =3.2mA - - 0.4 E.CLK, R/W Input Leakage Current RES. Rio. RS I lin Vin =0 - 5.25V -2.5 - 2.5 p.A CSO. CS I Three-State (off state) Input Current Do - 0 7 ITSI Vin =0.4- 2.4V -10 - 10 p.A OutPUt Leakage Current IRQ I LOH VOH =2.4V - - 10 p.A Power Dissipation Po - - 500 mW 0 0 -07 - - 12.5 pF E.CLK. R/W Vin =OV. Ta = 25·C Input Capacitance RES. Rio, RS I C'n f = 1 MHz - - 10.0 pF CSo. CSI Vin =OV, Ta = 25"C Output Capacitance IRQ. GAINSEL Cout f= 1 MHz - - 10.0 pF ~HITACHI Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 209 H D46508,HD46508-' ,H D 4 6 5 0 8 A , H D 4 6 5 0 8 A - 1 - - - - - - - - - - - - - - - - - - - - • DC CHARACTERISTICS <2> (Vee = 5V ± 5%, Vss = OV, Ta - -20-+75°C, unless otherwise noted.) Item Test Condition min typ max Unit VAin = 5.0V, Analog Multiplexer ON Resistance - - 1 k!l Vee = 4.75V, Ta = 25°C VAin = 5.0V Vee = 4.75V, Ta = 25°C - 10 100 nA OF F Channel Leakage Current COMMON=OV VAin = OV, Ta = 25°C -100 -10 - nA Vee = 4.75V, COMMON = 5V Analog Multiplexer Input Capacitance - - 7.5 pF Ladder Resistance V REF (+) = 5.0V (from REF(+) to REF(-)) 10 - 40 k!l VREF H = OV, Ta = 25°C • CONVERTER SECTION (Ta = 25°C, Vee = VREF (+) = 5.0V, tcyoC - 1111, unless otherwise noted.) 1. 10-BIT AID CONVERSION HD46508A, HD46508A·l HD46508, HD46508·1 Item Unit min typ max min typ max Resolution - 10 - - 10 - bits Non-linearity Error Zero-Error · - - ±112 ±1/2 ±1 ±3/4 - - ±1 ±112 ±3 ±1 LSB LSB Full-Scali Error - ±1/4 ±1/2 - ±112 ±1 LSB Ouantization Error - - ±112 - - ±112 LSB Absolute Accuracy · - ±1 ±3/2 - ±2 ±4 LSB 2. 8-BIT AID CONVERSION HD46508A, HD46508A-l HD46508, HD46508-1 Item Unit min typ max min typ max Resolution - 8 - - 8 - bits Non-linearity Error Zero-Error · - - ±1/8 ±1/4 ±1/4 ±3/8 - - ±1/4 ±3/8 ±3/4 ±1/2 LSB LSB Full-Scali Error - ±1/4 ±3/8 - ±3/8 ±112 LSB Ouantization Error - - ±1/2 - - ±1/2 LSB Absolute Accuracy · - ±5/8 ±3/4 - ±3/4 ±5/4 LSB 3. PROGRAMMABLE VOLTAGE COMPARISON (PC) HD46508A, HD46508A-l HD46508, HD46508-1 Item Unit min typ max min typ max Resolution - 8 - - 8 - bits Non-linearity Error Zero-Error · - - ±1/8 ±1/4 ±1/4 ±3/8 - - ±1/4 ±3/8 ±3/4 ±1/2 LSB LSB Full-Scali Error - ±1/4 ±3/8 - ±3/8 ±1/2 LSB Absolute Accuracy · - 'Temperature Coefficient; 25 ppm of FSAfc (max) ±3/8 ±5/8 - ±112 ±1 LSB ~HITACHI 210 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - H D46508,H D46508-1 ,H D46508A,HD46508A-1 • AC CHARACTERISTICS (Vee= 5.0V ± 5%, Vss = OV, Ta = -20- +75°C, unless otherwise noted.) 1. CLOCK WAVEFORM Test CD" = 0 CD" = 1 Item Symbol Unit Conditions min typ max min typ max ClK Cycle Time tcvcc 1.0 - 10 0.5 - 5 liS ClK "High" Pulse Width PW CH 0.45 - 4.5 0.22 - 2.2 liS ClK "low" Pulse Width PW CL Fig. 2 0.40 - 4.0 0.21 - 2.1 liS Rise and Fall Time of ClK tCr, tCf - - 25 - - 25 ns " eo: ClK Divider bit 2.0V 2.0V CLK O.8V ~------PWCH--------~tCf~------PWCL--------· ~----------------------tcvcC ----------------------'"1 Figure 2 ClK Waveform 2. IRQ, GAINSEl OUTPUT Item Symbol Test condition min typ max Unit I RQ Release Time tlR Fig. 3 - - 750 ns t GSD1 - - 750 ns GAINSEl Delay Time Fig.4 tGS02 - - 750 ns tGS01: TTL Load tGS 02: CMOS Load - - - I E/ Figure 3 IRQ Release Time @HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 211 H D4650S,HD4650S-1,H D4650SA,H D 4 6 5 0 S A - 1 - - - - - - - - - - - - - - - - - - - (1) Sample & Hold 2.0V CLK_ _ _- , Vee"O.7· ~ . .",.-------------- GAINS_E_L_ _ _ _~------' tGS01 'CMOS Load 'aS02 (2) x2, x4 Auto Range·Switching, Programmable Gain CLK O.BV ------- Vcc xO.7* ,., 1-+------ 'CMOS Load Figure 4 GAINSEL Delay Time 3. BUS TIMING CHARACTERISTICS READ OPERATION SEQUENCE HD46508 H 046508· 1 Test HD46508A HD46508A·l Item Symbol Unit Condition min typ max min typ max Enable Cycle Time tcycE 1.0 - - 0.666 - - /oIs Enable "High" Pulse Width PWEH 0.45 - - 0.28 - - /oIS Enable "Low" Pulse Width PWEL 0.40 - - 0.28 - - /oIS Rise and Fall Time of Enable t Er tEf - - 25 - - 25 ns Address Set Up Time tAS Fig. 5 140 - - 140 - - ns Data Delay Time tOOR - - 320 - - 220 ns Data Access Time tAee - - 460 - - 360 ns Data Hold Time tH 10 - - 10 - - ns Address Hold Time tAH 10 - - 10 - - ns @HITACHI 212 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 - - - - - - - - - - - - - - - - - - - H D46508,HD46508-1 ,HD46508A,HD46508A-1 WRITE OPERATION SEQUENCE HD4650S HD4650S·1 Item Symbol Test HD4650SA HD4650SA·l Unit Condition min typ max min typ max Enable Cycle Time tcvcE 1.0 - - 0.666 - - /1.5 Enable "High" Pulse Width PWEH 0.45 - - 0.2S0 - - /1.5 Enable "Low" Pulse Width PWE 0.40 - - 0.280 - - ItS Rise and Fall Time of Enable tEr, tEf Fig. 6 - - 25 - - 25 ns Address Set Up Time tAS 140 - - 140 - - ns Data Set Up Time tosw 195 - - 80 - - ns Data Hold Time tH 10 - - 10 - - ns Address Hold Time tAH 10 - - 10 - - ns tcycE - 2.DV 2.0V !2.0V IEr_ /r- O.sv \f.-IEf O.BY O.BV E __lAS PWEH PWEL I--IOOFl_ !-IAH· cs, ~ 2.DV 2.DV-' RS., RS, r O.BY O.sv K - R/W,CS. t ACC IH I-- 2.4V ~2.4V 0.-0, , O.4V 1/ O.4V Figure 5 Read Timing ~HITACHI Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 213 HD4650B,HD4650B-1,H D4650BA,H D 4 6 5 0 B A - 1 - - - - - - - - - - - - - - - - - - - tcvcE tEr_ O.SV V ~~2.0V I+- -- 2.0V \ _ t Er O.SV 1 2 O.SV ov • E -tAS PWEH PWEL _tDSW_ ~tAH'" Cs" A/W ~ 2.0V 2.0V RS" RS, CS, O.SV O.SV K - --2.0V tH 2.0V-' X K O.SV O.SV Figure 6 Write Timing 5.0V 5.0V R TNt Point 0 - -....- .....--1. .---. Telt Point o--..... _.---+.. ~ ! R LOAD A (D,~D,. GAINSELI AL R • 2.4kO • llkO r!LOAD B (iRQl Rc R • 2.4kO • 3kO C • 130pF C • l00pF Diode· 152074(8 Diode· 152074S or Equivalent or Equivalent LOAD C (GAIN5ELI Figure 7 Test Load ~HITACHI 214 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - H D46508,HD46508-1 ,HD46508A,HD46508A-1 • SIGNAL DESCRIPTION does not affect this signal. • Analog Date Interflce • Proceaor Interface Analog Input (Al o-AI 15 ) Date Bu. (00 -0,) The Input Analog Data to be measured is applied to these The Bi-directional data lines (Do -D,) allow data transfer Analog Input (Alo-AI ls ). These are multiplexed by internal between the ADU and MPU. Data bus output drivers are 16 channel multiplexer and output to COMMOM pin. A three state buffers that remain in the high·impedance state particular input channel is selected when the multiplexer except when MPU performs a ADU read operation. channel address is programmed into the control Register 1 Enable (E) (Rt). The Enable signal (E) is used as strobe signal in MPU R/W Multipllxer Common Output (COMMON) operation with the ADU internal registers. This signal is This signal is the output of the 16 channel analog multi- normally derived from the HMCS6800 system clock (~). plexer, and may be connected to the input of pre-amplifier Chip Select (CSo,CSI ) or sample/hold circuit according to user's purposes. When no The Chip Select lines (CSo , CS I ) are used to address the external circuit needed, this output should be connected to ADU. The ADU is selected when CSo is at "High" and CSI is the COMPIN input. at "Low" level. Comparltor Input (COMPIN) ReadlWrite (R/W) This is a high impedance input line that is used to transmit The R/W line controls the direction of data transfer be- selected analog data to comparator. The COMMON line is tween the ADU and MPU. When R/W is at "High"level, data usually connected to this input. When external Pre-amplifier of ADU is transferred to MPU. When R/W is at "Low" level, or Sample/hold circuit is used, output of these circuits may data ofMPU is transfemd to ADU. be connected to this input. Register Select (RSo, RS I ) Reference Voltage (+) (REF (+)) The Register Select line (RS o , RS I ) are used to select one This line is used to apply the standard voltage to the in- of the 4 ADU internal registers. Table 1 shows the relation ternalladder resistors. between (RSo, RS I) address and the selected register. The Reference Voltage (-) (REF (-II lowest 2 address lines of MPU are usually used for these This line is connected to the analog ground. signals. Reset (RES) • ADU Control This input is used to reset the ADU. An input "Low" level Conversion Clock (ClK) on RES line forces the ADU into following status. The CLK is a standard clock input signals which defines 1) All the shift-registers in ADU are cleared and the conver- internal timing for AID conversion and PC operation. sion operation is stopped. Glln Select (GAINSEl) (CMOS Compatible Output) 2) The GAINSEL output goes down to "Low" level. The This output is used to control the external circuit. The IRQ output is made "Off" state and the Do -D, are made function of this signal is programmable and it is specified high impedance state. by (GI, GO) bits in Control Register O. By using this output, Interrupt Requllt mrn) (Open Drlin OutpUt) user can control the auto-range-switching of external pre- This output line is used to inform the AID conversion end amplifier, also control external sample & hold circuit, etc. as signal to the MPU. This signal becomes active "Low" level well. when IE bit in the control register I is "I" and IRQ bit in the control register 2 goes "I" at the end of conversion. And [NOTE) This LSI is different from other HMCS6800 famBy this signal returns to "High" right after The MPU reads the LSIs in following function !tD Data Register (R3). Programmable voltage comparison •m doesn't affect IE bit of RO • FUNCTION OF INTERNAL REGISTERS • Structure Table 1 Internal Registers of the ADU (Notel 0 - •• VES x ·--NO $ HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 215 H 046508,H 046508-1 ,H 0 4 6 5 0 8 A , H 0 4 6 5 0 8 A - 1 - - - - - - - - - - - - - - - - - - - - Control Register 0 (RO) "1" "0" Mode Select See Table 2 Not Used Not Used Not Used Settling Time Available Not Available II'------- : ClK Divider Interrupt Enable' ClK/2 Enable IRQ ClK Mask IRQ ·RES doesn't affect IE bit. Figure 8 Control Register 0 Control Register 1 (R1) 17161514131211101 I' 1 sc 1 GS 1 PC 1 MI 1 D3 1 D2 1 D1 1 DO 1 "1" "0" I ' • MPX Channel Address See Table 3 MPX Inhibit Inhibited Not Inhibited Prog. Comparator Select Prog. Comparator mode AID Converter mode GAINSEl Enable GAINSEl Enable GAINSEL Disable Short-cycle Conversion 8-bit length 10-bit length Figure 9 Control Register 1 Status & AID Data Register (H) 17161514131211101 IIRQIBSVlpco ~ OV 1 DW 1 C9 1 C8 1 "1" "0" L Upper bit (10 bit data) , I Data Weight See Table 4. Data Over Scale flag Data is over scale With in the scale Not Used Programmable Comparator Output VAin >Vp VAin PCO VAin >Vp 1 ENABLE" Output) "0" -> PeO VAin < Vp 1 x PROG. COMP (8 bit) x DISABLE VAin: Analog Input x = Do not care Voltage to be • = See Table 6 compared [NOTE] CO bit and ST bit are effective in every cas•. Vp : Programmed Voltage (R4) Status & AID Data Register (H) (R2) This register is a 7·bit read only register that is used to BSYbit This bit indicates that the ADU is now store the upper 2-bit data (C8, C9), data weight (OW), data (Busy) under conversion. overscale (OV), programmable comparator output (PCO), busy (BSY) and interrupt request(iRQ). IRQ bit This bit is set when the AID conversion (interrupt has completed and cleared by reading (C8, C9) These bits store upper 2-bit data mea· Request) the R3. (Upper bit data) sured by 10 bit length conversion. AID Data Register (L) (R3) OW bit This bit indicates data weight when This register is an 8-bit read-only register that is used to (Data weight) Auto range-switching mode is selected. store the lower 8 bits data of lO·bit conversion or full 8 bits This bit is set or reset when the con- data of the 8-bit conversion. version has completed. The conditions PC Data Register (R4) are shown in following Table. This register is an 8-bit write-only register prepared for In this mode GAINSEL output also goes Programmable Voltage comparison. Stored data is converted "High" or "Low" on the same condi- to digital voltage, and compared with analog input to be tion shown in Table 5. measured. The result of comparison is set into PeO bit. Other status of OW bit is shown in Table 6. Table 5 Data Weight (DW) Set or Reset Condition ~ Mode Set ("1") Reset ("0") Auto Range-Switching (x2) V . Aln < 1024 410 • V REF(+) 410 VAin> 1024 • V REF (+) 206 206 Auto Range-Switching (x4) VAin < 1024 • V REF (+) VAin> 1024 • V REF (+) VAin : Analog Input Voltage to be measured VREF(+) . Voltage Applied to REF(+) ~HITACHI 21S Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 WRITE WAITE READ READ Reg 0 Reg 1 Reg 2 Reg 3 I • I I I I I I I I I I I I I I I I I I J: : i : I I I ~ Cst : I ! : : o ~ Afil'l.CS, ~ » "~':lE'-"- 3 ~-=.'== ~ o· °0-°7 III ~ mOl \ ~ o Contml Register ~I 0W//uH4@X K ilh I II o ol~ ClK o • to ~J: CD_ ~~~,,,on~ MSBI2') 2" II lSBI2") ~ ~ mO ~ <- J: ; MPX Out Analog BSV =~=-================:::::::3lll::::=::::~L~==nllfTl 1,1 " ConversIon end = J: o .j:> ~ Ol 51> iRa tI ~ (J1 o ~ ~ ~ Status & AID J: ~ ~a;f Register (HI W}}}}"~ o.j:> Ol ~ $ ~ AID Data Register (U IR3) • ~~~~------------ (J1 o CfJ Figure 13 AID Conversion Timing Chart (Basic Sequence) J: i o .j:> Ol (J1 o(Xl "J> J: o .j:> Ol (J1 N o (Xl ~ CD ~ HD4650S,HD4650S-1,HD4650SA,H D 4 6 5 0 S A - 1 - - - - - - - - - - - - - - - - - - - • AID Conversion and PC sequence (tcvc=1Ils) 10 bits AID Conversion Conversion Start Conversion End ,) Basic Sequence ( ~~: ::g::) 20 (LSB) GS= "0" 2) Basic Sequence (When overscale is detected) Overscale check Cycle (Analog Input is com- pared with V REF (+).) 3) Expanded Sequence ( SC = ST = "'" "0") GS= "0" MSB cycle is expanded to compensate external amplifier's settling delay. 4) Auto Range- Switching Control Sequence SC = "0" ST = "0" GS= "'" 9j.ts=.:J---- Auto Range-switching cycle GO= "0" (G, = ",,,) (Analog Input is compared with '/2 V REF (+) or '/4 V REF (+) at this cycle) or ( GO = "''') G, = "0" 5) Auto Range- al Analog Input < 1/2 V REF (+) or 114 V REF (+) Switching & Expansion Control r - - - -.... "GAINSEL"goes "High" Sequence SC = "0" ST "'" 1~r.r.<.i;~""'~~"""'L::.::.::~--4--L---L-.......J--..L---L---lL--..L.,;=:.:.J GS == " ' GO= "0" (G, = ",,,) or b) Analog Input> l/2V REF (+) or 1/4VREF (+) ,GO= "'" \G1 = "0") 6) Sample & Hold Control Sequence ( ~~: ::g::) GS= "'" GO= "0" G, = "0" ~HITACHI 220 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - H D4650B.H D4650B-1.HD4650BA.HD4650BA-1 7) Programmable Gain Control "GAINSEL" always goes "High" Sequence ( ~~: ::g::) GS= "I" GO= "I" Gl = "I" 8) Programmable Gain & Expansion Control Sequence SC = "0") ST = "I" ( GS= "I" GO= "I" Gl ="I" 8 Bit AID Convarsion 1) Basic Sequence SC = "I" ( ST -"0") GS= "0" Additional conversion cycle for rounding the LSB - 1 Bit . 2) Expanded Sequence ./. ( SC = "I") ST = "I" GS= "0" Programmable Voltage Comparison 1) Basic Sequence ( PC = "1") ST = "0" 2) Expanded Sequence ( PC = "I") ST = "I" • HOW TO USE THE ADU 1) Auto Range-Switching (Auto Gain) Control 2) Programmable Gain control • Functions of GAINSEL 3) Sample & Hold control The ADU is equipped with programmable GAINSEL out- GAINSEL output is controlled by Mode Select bit (GO, put signal. By using GAlNSEL output and external circuit, GI) when GAINSEL enable bit (GS) is "I". the ADU is able to implement following control. Table 6 GAINSEL Control GS Gl GO GAINSEL Control Mode OW 0 x x "Low" Normal Use (GAINSEL is not used) 0 1 1 1 0 0 1 0 1 0 .. "High" Sample & Hold control Auto Range S~itching x 2 control Auto Range Switching x 4 control .... 0 1 1 1 "High" Programmable Gain control 1 • GAINSEL goel "High" or "Low" according to the condition shown in Table 5. Sao, Table 5. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 221 H D46508,HD46508-1 ,H D 4 6 5 0 8 A , H D 4 6 5 0 8 A - 1 - - - - - - - - - - - - - - - - - - - +8V How to Control External Circuit (I) Sample & Hold Control (GI=O, GO=O) An example of Sample & Hold circuit is shown in Fig. 14. When ADU is set in Sample & Hold Control Mode, GAINSEL becomes "High" level on conversion and controls the data hold- ing. (2) Automatic Range Switching Control (GI=O, GO=I or GI= I, GO=O) The GAINSEL signal controls the external amplifier which can change the ratio of voltage amplification. (GAIN: 1 .... 2 times or GAIN REF (-I COMPIN I .... 4 times). Fig. 15 shows Automatic Range Switching Con- v .. SEL trol. In this case, when the input voltage is lower than 206/1024 ADU V REF(+), GAINSEL becomes "High"'evel. This makes the GAIN of the amplifier change from I to 4 times, and 4 times value Figure 15 Pre-amplifier Circuit of the input voltage is AID converted. Using this function even (xl, x4 Auto-Range Switching) if an input signal is small, it is possible to execute AID conver- sion in nearly full scale. In this mode, when GAINSEL signal • Overseale Check becomes "High", DW bit becomes "I" to show the range ADU is equipped with hardware overscale detection switching is in a progress. function. The overscale detection is performed auto- matically when the result of AID conversion is 2n-1 (all (3) Programmable GAIN Control (GI=I, GO=I) bits = I). When analog input VAin is higher than VREF(+), The GAINSEL signal is used for controlling the external overscale bit (OY) is set to "I". The defmition ofthe over- amplifier of any GAIN which is fit to the system. scale is illustrated in Fig. 17. And the flow of overscale In this mode, GAINSEL always becomes "High" at the check is shown in Fig. 16. beginning of AID conversion, so the change of range is con- trolled by GS bit. Converted data need to be corrected in soft- ware in accordance with GAIN of the amplifier. This mode is effective in the case of converting very small input voltage. (Note) Refer to "ADU Function Sequence" (AID Conversion and PC Sequence) for the timing in which GAIN- SEL signal becomes "High". GAINSEL signal becomes "Low" in accordance with "I" .... "0" change of BSY bit. Refer to Fig. 13. x1 Sample & Hold HD14066 OR EQU Figure 16 Overscale Check Flow 2" r------------------- I 2"-111,: I ff1 1101 : overseale area " I ~AOU 8 '0':I I I '00, I ,I COMMON I Vss GAINSEL REF(-) COMPIN 01,1 I I I 0101 I I I I ADU 0011 I I I I 000 I 0: lIB: 1/4: 3/8: 1/2 15/8: 3/4: 718 S'/8overseale I I I 1 : :: refmvoltage VREF(+I Figure 14 Sample & Hold Circuit R/2 R R 3A/2 (FS) NORMALIZED ANALOG INPUT Figure 17 Definition ADU's Oversea Ie ~HITACHI 222 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - HD46508,HD46508-1 ,HD46508A,HD46508A-1 • Usage of the PC output is stored into PeO bit at the end of comarison. The ADU has a progranunable threshold voltage com- The programmable voltage comparison time is so short parator (PC) function. The threshold voltage is pre-setable that the interrupt is not requested at this mode. The end of from OV to SV range with 8 bit resolution. The comparator's comparison needs to be conf"mned by reading the 1-+0 transi- tion of the BSY bit in R2. r------~p~------------------ I to >--- Reg. R2 - MPU I from I MPU I L I ________________________ _ Figure 18 Function Diagram of the PC address 0 ~ ~ PC=Q : AID conversion mode Rq SC GS PC MI DO PQ;=1 . Programmable Voltage 1 03 1 021 01 1 1 Comparison Mode 0 R211RQ I I I BSY PCO OV I IOW C9 C8 pca : Programmable compardtor output (1 bit data) B,-B, : Vp setting byte (upper R41 B7 B6 B51 84 B3 B2 Bl BO byte of 10 bit O/A. Lower byte IS set to 0) Figure 19 Registers of the PC Mode (a) General PC (c) Check and AID eonv. (b) Window comparator Figure 20 PC Application F)ow Chart Examples ~HITACHI Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 223 H D46508,HD46508-1 ,HD46508A,HD46508A-1-----------_ _ _ _ _ _ __ • How to use MI bit MI bit (RI) functions as follows. Ml = I: Internal MPX channel is inhibited in order to use { attached external MPX channel. MI =0: Internal MPX channel is enabled. (Bb't AID conversion) Ml bit used to select either of External MPX and Internal MPX. External ~ is connected as follows. EXlernal MPX T (Addressed at MI=I) COMMON COMPIN (Programmable Voltage ADU Comparison) [NOTE] When exlernal MPX IS used as Ihe way figure 20. 1 dammy AD converSion or PC at MI=l should be performed. Figure 21 How to use External MPX (d) Voltage Comparison between two channels. Figure 20 PC Application Flow Chart Ex~mples (continued) • EXAMPLE OF APPLIED CIRCUIT OF THE ADU AI. RtW RtW CS, Au AI, ,, ,, CS. VMA , ,,, HD4650B ,, A. HD6BOO , ADU A, MPU , ! Alu ;;@ +5V iAQ Figure 22 Single ADU System ~HITACHI 224 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - H D4650B,HD4650B-1 ,HD4650BA,H D4650BA-1 r--- AI. E RfW AI, Signal , ~ ~ CS. Source I AI.-A, I HD46508 , I ADU A. -A" RS. HD6800 I RS, A, T A, MPU Ails i.....- 0 0 -0, II nm +5Vi COMMON I-r- [ COMPIN CLK t--t- GAINSEL REF(+) ~REr)1 I I I CLOCK r-- AI. E RIW AI, cs,' CS. f=§ Signal I I Source I HD46508 I A. REF I ADU RS. I RS, ~ AI .. Lfft 0.-0, r-------.., i I PA : _MO' '"" COMPIN CLK : I iGAINSEL REF(+) l______ J • I 1REr) I 'SEE GAIN SEL USAGE Figure 23 Multi ADU System ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 225 H D4650S,HD4650S-1 ,H D4650SA,H D4650SA-1 - - - - - - - - - - - - - - - - - - _ • DEFINITIONS OF ACCURACY 111 ... 11.) Definitions of accuracy applyed to HD46508 are as follows. (4) Quantizing Error ... Error equipped in A/D converter (1) Resolution ... The number of output binary digit. inherently. Always ±~ LSB is applied. (2) Offset Error ... The difference between actual input volt· (5) Non-linearity Error ... The maximum deviation of the age and ideal input voltage for the fust transition. (when actual transfer line from an ideal straight line. This error digital output code is changed from 000 ... 00 to 000 ... doesn't include Quantizing Error, Offset, or Full Scale 01.) Errors. (3) Full Scale Error ... The difference between actual input (6) Absolute Accuracy ... The deviation of the digital output voltage and ideal input voltage for the fmal transition. code from an analog input voltage. Absolute accuracy in- (when digital output code is changed from III ... 10 to cludes all of (2), (3), (4), (5). Digital Output Code Digital Output Code Full Scale Error Analog Input Voltage Analog Input 4/8 FS JL-+-_____________-'-Voltage Figure 24 Definition of Accuracy ~HITACHI 226 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 H063084---------------- 01 PP (Document Image Pre-Processor) -PRELIMINARY- The HD63084 (DIPP) is an document image processor used as a peripheral of a microcomputer. It reads analog image signals HD63084P that have been photoelectrically converted by CCD line sensors or other optical devices, corrects the shading distortion of the signals, then converts the signals to digital form. • FEATURES • High speed reading of image signals . 5M pixel/sec (at input clock frequency of 10 MHz) • Highly accurate processing of image signals Peak level of image signals. 0.1 V - 2.0V Built·in a·bit peak value detection circuit Built·in 7·bit successive approximation pixel A/D and D/A converter Built·in 4·bit flash·type AID converter (DP·64S) • Various output modes Binary data output mode Dithered data output mode (Programmable dithered pattern of 16 pixel x 16 pixel) • PIN ARRANGEMENT 4·bit coded data mode (16 gradations) • Automatic judgement of horizontal and vertical resolutions RST, @ MAa/MIWR • Interfaceable with either Motorola type or Intel type MPU lNSl , MAa/lSTN • Programmable magnification and reduction rates Plf[j 3 MA,o/MPRD Reduction of read image signal l'WR' • , MAn/PDEN/MBE : 0.125 - 1 times (about 1000 gradations) 4>TG Magnification of image signal to be recorded ClKI : 1 - a times (about 1000 gradations) 4>" 7 4>' • Implements the following functions on a single chip MADs 9 TRIG (Built·in) sample and hold circuit MADs 1 lOUT (Built·in) shading distortion correction RAM MAD4 " AVss (Built·in) sensor interface MAD3 1 ISIN, MAD2 1 , ISIN, Parallel to serial conversion of the image signal to be Voo 1 1 VCL recorded. MADt 1 AVOD • 2.5 11m CMOS process technology Vss 1 PEAKO • Single 5V supply MADo 1 PEAKI TMSK, 7 VBl T/R ClK , DAo T/R DATA SLICE, T/R ORO 21 SLICE, RClKI , VT TIMO, 2 Vss Do , lNST/IWIN T/R SCAN T/R DACK 03 7 8 R/W D. 37 OS 0, AS D. CS 68/80 - ._ _ _ _ _ _-r-" Voo (Top View) ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 227 HD63084----------------------------------------------------------- 1.1 Absolute Maximum Rating 1.1.1 Internal Digital Circuits (Voltages referenced to VSS OV. Ta 25·C) No. Item Symbol Value Unit 1 Supply Voltage VDD -0.3 to +7.0 V Input Voltage 2 (D~gital Input) VI -0.3 to VDD +0.3 V Plns Input Voltage 3 (D~gital I/O) VIT -0.3 to VDD +0.3 V Plns $ HITACHI 228 Hitachi America Ltd.• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63084 1.1.2 Internal Analog Circuits (Voltages referenced to AVss OV. Ta 25°C) No. Item Symbol Value Unit 1 Supply Voltage AVnn -0.3 to +7.0 V Reference V2.5 2 VCL -0.3 to Vnn +0.3 V Voltage VBL Input Voltage 3 (A~alog Input) VIA -0. 3 to Vnn+O. 3 V Pl.ns ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 229 .--~ --------- HD63084---------------------------------------------------------------- 1.1.3 Common Characteristics between Digital and Analog Circuits No. Item Symbol Value Unit Operating 1 Temperature Topr o to +70 °c Storage 2 Tstg -55 to +125 °c temperature Power 3 Consumption *1 Pc 500 mW Precaution in Using the DIPP o Applying overvoltage more than the maximum rating to the input terminals due to overshooting or under shooting may cause latch-up, electro-static break- down, etc. o Precaution is needed in noise protection and shield for the analog terminals . • HITACHI 230 Hitachi America Ltd . • 2210 O'Toole Avenue. San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63084 1. 2 Electrical Characteristics 1. 2.1 Internal Digital Circuits 1. 2 .1.1 DC Characteristics (Vnn=5.0V±5i., VSS=OV, Ta=O to +70°C) No. Item Symbol Test Condition min typ max Unit Input High 1 Voltage VIH Vnn =5.25V 2.0 - VDn V Input Low 2 Voltage VIL Vnn=4.75V -0.3 - 0.8 V VDD =4.75V Output High IO H=-400lJA 3 Voltage VOH VIH =2.0V 3.0 - - V VIL =0.8V Vnn=4.75V VIH 2.0V Output Low VIL=0.8V 4 Voltage VOL Other output - - 0.4 V pins : Low IOL =1. 6rnA Input Leakage Vnn=5.25V -10 5 Voltage lIN VI =0 to Vnn *1 - 10 \lA Vnn=5.25V Three-State IOZH Vo =VnD -10 - 10 \lA 6 (Off State) Leakage Current VDn =5.25V IOZL Vo =V SS -10 - 10 \lA *1) The minimum leakage current at pin 34 (68/80) is -lOOIlA because it has an internal pull-up resistor. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 231 HD63084---------------------------------------------------------------- 1. 2.1. 2 AC Characteristics (VDD=5.0V±5%, VSS=OV, Ta=O to +70°C) (1) Motorola MPU Interface Timing (68000, etc.) Item Symbol Test Applicable 1/0 min typ max Unit Condition Pin DS Pulse Width tWDS6 I Fig. 1-1 DS 450 - - ns DS to R/W Setup Time tSRW6 I Fig. 1-1 R/W 140 - - ns DS to R/W tHRW6 I Fig. 1-1 R/W 10 - - ns Hold Time DS to CS Setup Time tSCS6 I Fig. 1-1 CS 140 - - ns DS to CS Hold Time tHCS6 I Fig. 1-1 CS 10 - - ns DS to RS -- Setup Time tSRS6 I Fig. 1-1 RS 140 - - ns DS to ks Hold Time tHRS6 I Fig. 1-1 RS 50 - - ns Read Data Access Time tRAC6 0 Fig. 1-1 DO to D7 - - 320 ns Read Data Hold Time tRH6 0 Fig. 1-1 DO to D7 10 - - ns Write Data Setup Time tWS6 I Fig. 1-1 DO to D7 200 - - ns Write Data Hold Time tWH6 I Fig. 1-1 DO to D7 40 - - ns DS to T/RDACK Setup Time tSDK6 I Fig. 1-2 T/RDACK (140) - - ns DS to T/RDACK Hold Time tHDK6 I Fig. 1-2 T/RDACK (10) - - ns ~HITACHI 232 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------HD63084 (2) Intel MPU Interface Timing (8080, 8086, etc.) Item Symbol I/O Test Applicable Condition Pin min typ max Unit DS (RD) Pulse Width tWDS8 I Fig. 1-3 DS 300 - - ns R/W (WR) Pulse Width tWRW8 I Fig. 1-3 R/W 250 - - ns RD to CS Setup Time tSRC8 I .Fig. 1-3 CS 125 - - ns lID to CS Hold Time tHRC8 I Fig. 1-3 CS 0 - - ns ii!R to CS Setup Time tSWC8 I Fig. 1-3 CS 125 - - ns WR to CS Hold Time tHWC8 I Fig. 1-3 CS 20 - - ns RD to RS Setup Time tSRR8 I Fig. 1-3 RS 125 - - ns RD to RS Hold Time tHRR8 I Fig. 1-3 RS 50 - - ns WR to RS Setup Time tSWR8 I Fig. 1-3 RS 125 - - ns WR to RS Hold Time tHWR8 I Fig. 1-3 RS 70 - - ns Read Data Access Time tRAC8 0 Fig. 1-3 DO to D7 - - 300 ns Read Data Hold Time tRH8 0 Fig. 1-3 DO to D7 10 - - ns Write Data Setup Time tWS8 I Fig. 1-3 DO to D7 180 - - ns Write Data Hold Time tWH8 I Fig. 1-3 DO to D7 50 - - ns RD to T/RDACK Setup Time tSDK8 I Fig. 1-4 T/RDACK (125) - - ns RD to T/RDACK Hold Time tHDK6 I Fig. 1-4 T7RDACK (0) - - ns WR to T/RDACK Setup Time tSRK8 I Fig. 1-4 T7RDACK (125) - - ns WR to T/RDACK Hold Time tHRK8 I Fig. 1-4 T/RDACK (25) - - ns • HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 233 HD63084---------------------------------------------------------------- (3) MPU Interface Timing (common to Motorola MPU and Intel MPU) Item Symbol I/O Test Applicable typ Condition min max Unit Pin T/RDRQ Positive Edge Delay tDRQH 0 Fig. 1-5 T/RDRQ - - 200 ns T/RDRQ Negative Edge Delay tDRQL 0 Fig. 1-5 T/RDRQ - - 200 ns INT Positive Edge Delay tINTH 0 Fig. 1-6 INT - - 300 ns T/RSCAN input to INT Negative tINTL 0 Fig. 1-6 INT - - 100 ns Edge Delay DS input to INT Fig. 1-1 Negative Edge tDSIL 0 Fig. 1-3 INT - - (300) ns Delay (4) Clock and Control Input Timing Item Symbol I/O Test Applicable typ Condition min max Unit Pin CLKI CLKI Cycle Time tCYC I Fig. 1-7 *2 100 - 1000 ns RCLKI RCLK Cycle Time tRCYC I Fig. 1-7 *2 200 - 10 6 ns TSCAN Pulse Width tTSW I Fig. 1-7 T/RSCA..'11 ex tCYC - - ns RSCAN Pulse Width tRSW I Fig. 1-7 T/RSCAN (~C;C) - - ns RST Pulse Width tRSTW I Fig. 1-7 RS'f 2 (tCYC x) - - ns TRIG Pulse Width tTRIG I Fig. 1-7 TRIG (8) - - \.IS *2) Both CLKI and RCLKI input frequencies provide duty cycle of 50% • • HITACHI 234 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63084 (5) Serial Output Timing Test Applicable Item Symbol I/O min typ max Unit Condition Pin CLKI Input to TMSK Output Delay tTMDT 0 Fig. 1-8 TMSK - - 200 ns CLKI Input to TMSK Output Hold tTMHT 0 Fig. 1-8 TMSK - - 200 ns TDATA Output Delay tTDD 0 Fig. 1-8 T/PJ)ATA - - 200 ns TDATA Output Hold tTDH 0 Fig. 1-8 T/RDATA - - 250 ns TCLK Positive Edge Delay tTCH 0 Fig. 1-8 T/RCLK - - 200 ns TCLK Negative Edge Delay tTCL 0 Fig. 1-8 T/RCLK - - 200 ns RCLK Output to (200) TMSK Output Delay tTMDR 0 Fig. 1-9 TMSK - - *3 ns RCLK Output to (200) TMSK Output Delay tTMHR 0 Fig. 1-9 TMSK - - *3 ns RDATA Output (200) Delay tRDD 0 Fig. 1-9 T/RDATA - - *3 ns RDATA Output (200) Hold tPJ)H 0 Fig. 1-9 T/RDATA - - *3 ns RCLK Positive (200) Edge Delay tRCH 0 Fig. 1-9 T/RCLK - - *3 ns RCLK Negative (200) Edge Delay tRCL 0 Fig. 1-9 T/RCLK - - *3 ns *3) Values for reference. eHITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 235 HD63084-------------------------------------------------------------- (6) Application Output and Sensor Interface Timing Item Symbol I/O Test Applicable Condition Pin min typ max Unit TIMO Output Delay tTO 0 Fig. 1-10 TUIO - - 200 ns LNST/IWIN Output Fig. 1-10 Delay tLN 0 (IWIN) LNST/IWIN - - 250 ns "TG Output Positive Edge t<&TD 0 Fig. 1-11 "TG - - 150 ns Delay "TG Output Negative Edge t<&TH 0 Fig. 1-11 <&TG - - 160 ns Delay iiI Output Delay t<&lD 0 Fig. 1-11 iiI - - 100 ns iiI Output Hold t<&lH 0 Fig. 1-11 ,,1 - - 130 ns <&R Positive Edge Delay t<&RD 0 Fig. 1-13 liR - - 100 ns liR Positive Edge Hold t<&RH 0 Fig. 1-13 <&R - - 100 ns (7) Memory Bus Interface Timing Item Test Applicable Symbol I/O min type max Unit Condition Pin MAS/MDS Positive Fig. 1-14, Edge Delay tMASD 0 -16, -18, MAS/MDS - - 200 ns -19, -20, MAS/MDS Negative Fig. 1-14, Edge Delay tMASH 0 -16, -18, MAS/MDS - - 200 ns -19, -20, LNSL Output Fig. 1-14, Delay tLSD 0 -8, -19, LNSL - - 200 ns MA8 to 11 Output MA8/MIWR Fig. 1-14, Delay *4 tMAUD 0 -8, -19, to MAll/ - - 200 ns PDEN/MBE LRD Negative Fig. 1-14, Edge Delay tLRD 0 -8, -19, LRD - - 200 ns LRD Positive Fig. 1-14, Edge Hold tLRH 0 -8, -19, LRD - - 200 ns LWR Negative Edge Delay tLWD 0 Fig. 1-14, -8, -19, LWR - - 200 ns (To be cont~nued) *4) Values for reference. ~HITACHI 236 Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------------HD63084 (Continued) Test Applicable Unit Item Symbol I/O min typ max Condition Pin LWR positive t LWH Fig. 1-14 - Edge Hold 0 LWR - - 200 ns Fig. 1-19 Fig. 1-14 MAD 0 to 7 Delay tMADD 0 etc. MADO-7 - - 200 ns tMADH Fig. 1-14 MADO-7 - - ns MADO to 7 Hold 0 etc. 200 MADO to 7 Setup Time tRDS I Fig. 1-14 MADO-8 50 - - ns MADO to 7 Hold Time tRDH I Fig. 1-14 MADO-7 50 - - ns MBE Negative tMBEL - - 200 ns 0 Fig. 1-15 MBE Edge Delay T/RDACK Input to MAS Negative Edge tBASL 0 Fig. 1-17 MAS/MDS - - 200 ns Delay T/RDACK Input to MAS Positive Edge tBASH 0 Fig. 1-17 MAS/MDS - - 200 ns Delay T/RDACK Input to T/RDRQ Negative tBTDR 0 Fig. 1-17 T/RDRQ - - 400 ns Edge Delay MLNST positive Fig. 1-16 Edge Delay tMLNH 0 Fig. 1-17 MA9/LNSTN - - 250 ns Fig. 1-18 MLNST Negative Fig. 1-16 Edge Delay tMLNL 0 Fig. 1-17 MA9/LNSTN - - 300 ns Fig. 1-18 PRD Negative Fig. 1-16 Edge Delay tPRD 0 Fig. 1-19 PRD - - 200 ns PRD positive Fig. 1-16 Edge Hold tpRH 0 Fig. 1-19 PRD - - 200 ns PWR Negative Fig. 1-18 Edge Delay tpWD 0 Fig. 1-20 PWR - - 200 ns PWR Positive Fig. 1-18 Edge Hold tpWH 0 Fig. 1-20 PWR - - 200 ns MIWR Negative Edge Delay tMIWL 0 Fig. 1-16 MA8/MIWR - - 400 ns MIWR positive Edge Delay t M1WH 0 Fig. 1-16 MA8/MIWR - - 200 ns MPRD Negative Edge Delay tMPRL 0 Fig. 1-18 MAlO/MPRD - - 250 ns MPRD Positive Edge Delay tMPRH 0 Fig. 1-18 MAlO/MPRD - - 250 ns PDEN Negative MAll/PDEN Edge Delay tpDEL 0 Fig. 1-18 /MBE - - 200 ns ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 237 HD63o84------------------------------------------------------------------- (Note 1) Bus Timing Test Loads Other output and I/O pins DO to D7 pins (excluding analog pins) Test point Test point Output Output D---,.....K pin ~~~~K pin [Notes) 1. CL includes stray capacitance caused by the probe and load capacitance. 2. Diodes are 152074 ® or equivalents. (Note 2) I/O Signal Test Points 1,.---------. - - - - - - - - - - - - - - - --- 3. OV 2.0V 2.0V Input ~~--------------OV Output 0.4V 2.4V ~HITACHI 238 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63084 DS(2) tSRW6 R/W INT Note) r/RDACK input must be fixed high. Fig. 1-1 Motorola MPU Access Timing DS (<1>2) R/W T/RDACK ~ __---Jr ------« INPUT ~------« >-- OUTPUT Note) CS input must be fixed high. Fig. 1-2 DMA Operation Timing (Using Motorola MPU) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 239 HD63084-------------------------------------------------------------- I---twnss_ DS (RD) \ - I---tWRWS- \ - IF f-f-tSRCS -I-- I-tHRCS f- tSWCS S \ V \ - f - f- tSRRS -f-f- tHRRS -- tSWRS f-- tHWRS )~ tRAcs- ~ f-tRHS >- tWSSf----- - C r-tWHS OUTPUT ... INPUT Ir----- f----- tDSIL iNT \ Note) T/RDACK ~nput must be fixed h~gh. Fig. 1-3 Intel MPU Access Timing DS(RD) R/W(WR) tSDKS T/RDACK --------« OUTPUT >~-------~( INPUT ) - - - - Note) CS input must be fixed high. Fig. 1-4 DMA Operation Timing (Using Intel MPU) ~HITACHI 240 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ______________________________________________________________ HD63084 CLKI /RCLK T/RDRQ T/RDACK -------------------------1r--------~ Fig. 1-5 T/RDRQ Output Timing CLKI INT T/RSCAN ____________________________-.J Fig. 1-6 INT Output Timing ~HITACHI Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 241 HD63084---------------------------------------------------------------- J tCYC CLK! \ t RCYC 1 L RCLK J \ 1 L ,.. ~i~~ ., T/RSCAN~ \ tRSTW RST --{ 1 Fig. 1-7 CLKI, RCLK, T/RSCAN, RST and TRIG Input Timing ~HITACHI 242 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63084 CLKI TMSK TDATA TCLK Fig. 1-8 Serial Output Timing (in Read (T) Mode) RCLKI TMSK TDATA RCLK Fig. 1-9 Serial Output Timing ( in Receive (R) Mode) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 243 HD63084-------------------------------------------------------------- eLKI TIMO LNST/IWIN Fig. 1-10 Application Output Timing eLK I ¢TG ¢l Note) The SMOO, SMOI and SMD2 bits in the R09 register must be 0,0 and 0 or 0,0 and 1 respectively. Fig. 1-11 cpTG and cp1 Output Timing (1) eLKI ¢TG ¢l Note) The SMOO, SMOI and SM02 bits must be 0,1 and o or 0,1 and 1 respectively. Fig. 1-12 cpTG and cp1 Output Timing (2) eLKI ¢l Fig. 1-13 cp1 and cpR Output Timing ~HITACHI 244 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 I ~ (') ::. ~ 3 !!1 eLKI o· II> ~ IMA[I/MDS N N 0 0 ~. LNSL ~J: ::> '" ~ c: MA8-10 tLRH (f)e') ~ c... J: LRD ~ I I \'--_ _- - - ' r - - - - - - - - - 0 en ~ 0 ~ (() Ul LWR tRDH I ~ . 0 MADO-7 ~ DATA INPUT DATA INPUT \ DATA OUTPUT ~ .... '" Ul ''" 0 0 MAll/ PDEN/ IMBEI I o 0> I\.) (.) .j>. o 0"1 - Fig. 1-14 Memory Bus Interface Timing in A Mode (1) During Image Data Processing :r: i') oOl """ ~ Ol ~ CLKI PI "- » 3 ~ c;- III r !i IMASJ/MDS N N LNSL H or L o o .,Q.~~ • MAS-IO ~:::t t :> - LRD ~ ~ '{------~ 000 LWR - -------r( ~ <- :::t ~ If' () MADO-7 11 If ~;~O~TPUT X ADR.OUTPUT c=( x=jl~ADQ!R[.oQiU!lTfjPU!lTji~---- » ~L _ _~ '~ 1!l T/RURQ ~ , T7RDACK '~ ~ .!'!! tMBEL ~ MAH/PDEN/IMBEI cia 8 Fig. 1-15 Memory Bus Interface Timing in A Mode (2) During Burst DMA Transfer I ~ (') eLKI :! » 3 MAIOI I MPRUI & c.> MAlll I PDENI IMBE 0 0 Fig. 1-16 Memory Bus Interface Timing in B Mode (1) I During 4-bit Coded Data Output o I\) m .j>. c.> ...... o CD .j>. ::c f\.) ~ 0 "'" (Xl ~ ~ CLKI ~ ~tMLNL I -+ tMLNH ~ 0 :!: MA9/1LNSTNI - L- ---i .r \ » 3 ~ - r -H=.tMASD -. .,c; MAS I I MDsl J ~ - fi - -4 joe- tLRD JtBASL rt1l tBASH LRD J '"0'" I LWR I a oi *~ PRD I ~:I :::l _ ~ ~ PWR I (flO ~ :I MADO-7 HIZ I '-- 0 51> I () » MAS I I MIWRI ~ '"' (]1 ~ MAlO/1 MPRDI - , - ~ 0 ~ MAll I ..,. Co> (]1 I PDEN liMBE - ...j. >- tDRQH 'B'~~ '" Co> 0 T/RDRQ .:t 0 T/RDACK r- Fig. 1-17 Memory Bus Interface Timing in B Mode (2), During Burst DMA Transfer ::t S "2: eLK I ~ ~~ ~J-:r=--J\-.}. ~ ~~w: ~ > 3 CD :::!. 0 tMLNH -+NL I» MA9/iLNSTNf T .. J ~ tMASD- -t-- H-tMASH N MAS !I MDS I . T T I .. ~ ~ 0 0 LRD ~. LWR R ~ ~% ::l - ~ ~ PRD tpWD tPWH 1-- rn() ~ % 1-- -K= PWR tMADD ~ ., <- > 0 !:D () - MADO-7 tMADD I DATA OUTPUT -~ . ~ tMADH \ DATA OUTPUT /I -- DATA OUTPUT -+MADH l-- eo ~ - f - t - tMIWL tMIWH ~ -j ~ MAB/IMIWRI J tMPRH .. T - + tMPRL ~ ~ ~ MAIO/IMPRDI q 'T I .. .1. ~ I tpDEL '" to MAll/lpDEMI/MBE -" .1. '" g ::J: om Fig. 1-18 Memory Bus Inte1"face Timing in B Mode (3) ~ ~ CO During Pel Correction Data Detection ~ I I'V (J'1 oC1l o ~ ~ :I: S- eLKI o :!: » 3 ~ IMASI/MDS 15 'c:" a. LNSL I\) I\) 0 MA8-11 0 ~ ~~ LRD ~J: '" ~ :::l c LWR cnO PRD !!l '-- J: 0 -'()"" PWR » to '"~ MADO-7 OUTPUT ~ 0 $ ~ '"'" ''" 0 0 Fig. 1-19 Memory Bus Interface Timing in C or D Mode (1) During Image Data Processing ::J: iii' 0 ;<. CLKI JV'~ J\.J\...t\F\.f J \JU.JV'~\..J\..r\JJ\JI...r » 3 ~ 0" I» LNSTN -f,\ r~ ~ " N N iMASi/MDS tMASD- -F1 - t MASH oi. 0 a Q. • LNSL I,,,,, Don't care CD ~J: ~ MA8-11 ==:J (( .1. II f( 0 c: CD ;:ioo )i:1 LRD en ()l::;l " I» ~ "- J: 0 LWR " " '" .!D 0 » PRD ~ " _;WD_~tPWH W '" C11 During Pel Correction Data Detection o (l) .... HD63084------------------------------__________________________________ 1.2.1.3 Capacitance Item Symbol Test Condition min typ max Unit Input Capac i tance CIN - - 12.5 pF Output Capacitance COUT f = 100kHz - - 12.5 pF Input/Output Capac itance Cin/out - - 12.5 pF * These parameters are sample values. 1.2.2 Internal Analog Circuits 1.2.2.1 DC Characteristics Item De tai led Item Test Symbol min typ max Unit Condition Input Current VBL LBL VBL=3.5V - - 1.0 rnA ISIN1,2 VISIl ,2 1.5 - 3.5 PEAKI VINP 1.5 - 3.0 Input SLICEl VINSl 1.5 - 3.5 Voltage V Range SLICE2 VINS2 1.5 - 3.5 0.3 x 0.7 x VBL VIBL VDD - VDD 0.3 x 0.7 x VCL VICL VDD - VDD lOUT 1010 -16.0 - -4.0 Output IO PK Current PEAKO -5.0 - -0.7 DAO 10DO -6.0 - -0.7 rnA Supply Standby IDS - - 1 Current Operating IDD CLKI=lOMHz - - 60 (to be cont~nued) ~HITACHI 252 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63084 (continued) Item Test Detailed Item Symbol min typ max Unit Condition Resistance Chain VPO 3.20 - 3.40 Step 0 PEAKO Resistance Chain Vp255 VCL=V BL 1. 25 - 1. 65 Output Step 255 Voltage =3.4V Resistance V Chain VDO PEAK I = 1.40 - 1.60 DAO Step 0 1.5V Resistance Chain VD1 27 2.60 - 3.00 Step 127 VIOUT VISINl = lOUT 2.5V 2.40 - 2.65 ISINl ILISl ISIN2 I LIS 2 Input PEAKI ILPI VIN = Leakage o to VDD -10 - 10 IlA Current SLICE 1 I LSLI SLICE2 I LSL 2 VCL ILVCL 1. 2.2.2 AC Characteristics Item Test Detailed Item Symbol min typ max Unit Condition Input Peak to Peak Voltage Voltage VIP fCLK=lOMHz 0.1 - 2.0 V Range Image Signal VBL =3.4V Operating Reading VIF Frequency Frequency VSLICE 0.5 - 5.0 MHz = 1.8V ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 253 N -----, I 0 0') .... (11 (0) 0 ....0> I '" l\) I ....'"'l (PIN NO.) ~ hj ~ "p ""3 :==~~------------~~~=>r---------------------r-----~~~~~J l\) (l » ,.., I VCL I> 1/,7\ Um (51) I I ['eak ,","oJ ....0 rt [}etection ~ p '"'l R19 (7) MODE -VBL-l0amV 0 ,:: ~3/1a 0 III ::; MPUAE H> !: Q LOAD DMODEl ?- ....ac+ [7 bit AID/A] :Po P I\) ::; po C ~ Inltial _ MADO III I-' 0 I\) I--' ~ ) (17) OQ 0 (15) 0 "....,a '"~ 0 D:l-fferenc:e '" 127 (13) ....en "I ::; a '" ol~ data .... 0 OQ "I ! MAD7 (8) Q. • (") 0 ~ P III ~ ROt (5) MODE CD ~ c: Z WCOM (") 0 1 I DO(24) I-' J: 'i po H 255 c: a 'd ''"" ~ CD " ....c+a H ~ c: 0 CD (l ::; (1)

:I AjS ROO 0, 2) ~ () » I--' a Otl output Sensor I. '"cD (11 CD ro ro ....::; VCL --t>- Unity Gain AMP VBL '" 0 OQ VH /- 0 to f- aQ VL Area of digitization by 4-bit AID =8:>- Analog Comparator i>;" -Q-- Analog Switch '= VpEAK AGND--------------------- ----------------------------------------------------------------HD63084 r 1. 2 Relation between Horizontal Resolution Conversion Ratio ({3) and Parameters Table 1-1 Relation between Horizontal Resolution Conversion Ratio ({3) and Parameters (1) k 9- 9- B m 'I' '0 ' HRCM B 'I' '0' HRCM m k .125 7 1 1 0 1 1.1 8 11 3 8 0 .15 6 3 2 1 1 1.12 8 7 1 6 0 .16 6 4 1 3 1 1.15 7 3 2 1 0 .18 5 9 5 4 1 1.1548 7 13 6 7 0 B5+A4, B4+A3 .2 4 1 1 0 1 1.16 7 4 1 3 0 .22 4 11 6 5 1 1.18 6 9 5 4 8 .25 3 1 1 0 1 1.2 5 1 1 0 0 .28 3 7 4 3 1 1. 2264 5 12 5 7 0 A4->-B4 .3 3 3 1 2 1 1.2273 5 5 2 3 0 A4->-B4 .32 3 8 1 7 1 1.24 5 6 1 5 0 .j) L. 7 6 1 1 1.26 4 14 11 3 0 .375 2 3 2 1 1 1.28 4 7 4 3 0 .4 2 2 1 1 1 1.3 4 3 1 2 0 .44 2 11 3 8 1 1.32 4 8 1 7 0 .45 2 9 2 7 1 1. 35 3 7 6 1 0 .5 2 1 0 1 0 1. 375 3 3 2 1 0 .52 2 12 1 11 0 1.4 3 2 1 1 0 .55 2 9 2 7 0 1. 4138 3 12 5 7 0 A4->-A3-> B5->-B4 .56 2 11 3 8 0 1. 4167 3 5 2 3 0 A4+A3, B5+B4 .6 2 2 1 1 0 1.44 3 11 3 8 0 .6129 2 12 7 5 0 A3+B5 1.45 3 9 2 7 0 .625 2 3 2 1 0 1.48 3 12 1 11 0 .65 2 7 6 1 0 1.5 2 1 1 0 0 .68 3 8 1 7 0 1.52 2 13 12 1 0 .7 3 3 1 2 0 1.55 2 11 9 2 0 .7073 3 12 5 7 0 A3+A4, B4+B5 1.56 2 14 11 3 0 .72 3 7 4 3 0 1.6 2 3 2 1 0 .75 3 1 1 0 0 1.6316 2 12 7 5 0 B5->-A3 .76 4 6 1 5 0 1. 6363 2 7 4 3 0 B5+A3 .78 4 11 6 5 0 1. 65 2 13 7 6 0 .8 4 1 1 0 0 1. 6667 2 2 1 1 0 .8163 5 9 4 5 0 B4+A4 1. 6875 2 11 5 6 0 .8167 5 11 5 6 0 B4->-A4 1.7 2 7 3 4 0 .825 5 7 5 2 0 1.7222 2 13 5 8 0 .84 6 4 1 3 0 1. 75 2 3 1 2 0 .86 7 11 2 9 0 1.7692 2 10 3 7 0 .866 7 13 6 7 0 A3->-B4, A4->-B5 1.8 2 4 1 3 0 .8661 7 15 7 8 0 A3->-B4, A4+B5 1.8235 2 14 3 11 0 .875 7 1 1 0 0 1.8421 2 16 3 13 0 .9 8 5 1 4 0 1. 8667 2 13 2 11 0 .925 8 5 2 3 0 1. 8824 2 15 2 13 0 .95 8 5 3 2 0 1.9 2 9 1 8 0 .975 8 5 4 1 0 1. 9231 2 12 1 11 0 1.0 8 1 1 0 0 1. 9412 2 16 1 15 0 1.024 8 16 13 3 0 2.0 2 1 0 1 0 1.03 8 13 9 4 0 2.0625 2 16 1 15 1 1.062 8 15 8 7 0 2.0833 2 12 1 11 1 1.081 8 5 2 3 0 2.1 2 10 1 9 1 @HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 255 HD63084--------------------------------------------------------___________ Table 1-1 Relation between Horizontal Resolution Conversion Ratio un and Parameters (2) 9- 9- S m k HRCM S m k HRCM '1' '0 ' '1' '0' 2.125 2 8 1 7 1 3.3846 3 13 5 8 1 2.1429 2 7 1 6 1 3.4167 3 12 5 7 1 2.1667 2 6 1 5 1 3.4375 3 16 7 9 1 2.1875 2 16 3 13 1 3.4545 3 11 5 6 1 2.2143 2 14 3 11 1 3.5 3 2 1 1 1 2.25 2 4 1 3 1 3.5333 3 15 8 7 1 2.2727 2 11 3 8 1 3.5556 3 9 5 4 1 2.3 2 10 3 7 1 3.5714 3 7 4 3 1 2.3333 2 3 1 2 1 3.6 3 5 3 2 1 2.3637 2 11 4 7 1 3.625 3 8 5 3 1 2.3846 2 13 5 8 1 3.6667 3 3 2 1 1 2.4167 2 12 5 7 1 3.6923 3 13 9 4 1 2.4449 2 9 4 5 1 3.7 3 10 7 3 1 2.4667 2 15 7 8 1 3.7277 3 11 8 3 1 2.5 2 2 1 1 1 3.75 3 4 3 1 1 2.5385 2 13 7 6 1 3.7778 3 9 7 2 1 2.5625 2 16 9 7 1 3.8 3 5 4 1 1 2.6154 2 13 8 5 1 3.8572 3 7 6 1 1 2.6364 2 11 7 4 1 3.8889 3 9 8 1 1 2.6667 2 3 2 1 1 3.9091 3 11 10 1 1 2.6923 2 13 9 4 1 3.9231 3 13 12 1 1 2.7143 2 7 5 2 1 3.9375 3 16 15 1 1 2.7333 2 15 11 4 1 4.0 3 1 1 0 1 2.7692 2 13 10 3 1 4.0625 4 16 1 15 1 2.7857 2 14 11 3 1 4.0833 4 12 1 11 1 2.8125 2 16 13 3 1 4.1 4 10 1 9 1 2.8333 2 6 5 1 1 4.125 4 8 1 7 1 2.8571 2 7 6 1 1 4.1429 4 7 1 6 1 2.875 2 8 7 1 1 4.1667 4 6 1 5 1 2.9 2 10 9 1 1 4.1818 4 11 2 9 1 2.9167 2 12 11 1 1 4.2 4 5 1 4 1 2.9333 2 15 14 1 1 4.2222 4 9 2 7 1 3.0 2 1 1 0 1 4.25 4 4 1 3 1 3.0625 3 16 1 15 1 4.2667 4 15 4 11 1 3.0833 3 12 1 11 1 4.2857 4 7 2 5 1 3.1111 3 9 1 8 1 4.3077 4 13 4 9 1 3.125 3 8 1 7 1 4.3334 4 3 1 2 1 3.1429 3 7 1 6 1 4.3572 4 14 5 9 1 3.1667 3 6 1 5 1 4.3946 4 l3 5 8 1 3.1875 3 16 3 13 1 4.4167 4 12 5 7 1 3.2143 3 14 3 11 1 4.4375 4 16 7 9 1 3.2308 3 l3 3 10 1 4.4545 4 11 5 6 1 3.2667 3 15 4 11 1 4.5 4 2 1 1 1 3.2857 3 7 2 5 1 4.5333 4 15 8 7 1 3.3077 3 13 4 9 1 4.5556 4 9 5 4 1 3.33 3 3 1 2 1 4.5833 4 12 7 5 1 3.3636 3 11 4 7 1 4.625 4 8 5 3 1 ~HITACHI 256 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63084 Table 1-1 Relation between Horizontal Resolution Conversion Ratio ((3) and Parameters (3) 9- 9- S m k 'I' '0 HRCM S m k 'I' '0 ' 1L1\CH 4.6429 4 14 9 5 1 5.867 5 15 13 2 1 4.6666 4 3 2 1 1 5.8889 5 9 8 1 1 4.6875 4 16 11 5 1 5.9091 5 11 10 1 1 4.7143 4 7 5 2 1 5.9231 5 13 12 1 1 4.7333 4 15 11 4 1 5.9375 5 16 15 1 1 4.75 4 4 3 1 1 6.0 5 1 1 0 1 4.7779 4 9 7 2 1 6.0625 6 16 1 15 1 4.8 4 5 4 1 1 6.0667 6 15 1 14 1 4.8333 4 6 5 1 1 6.0833 6 12 1 11 1 4.8572 4 7 6 1 1 6.1 6 10 1 9 1 4.875 4 8 7 1 1 6.125 6 8 1 7 1 4.9 4 10 9 1 1 6.1428 6 7 1 6 1 4.9167 4 12 11 1 1 6.1667 6 6 1 5 1 4.9333 4 15 14 1 1 6.1818 6 11 2 9 1 5.0 4 1 1 0 1 6.2 6 5 1 4 1 5.0625 5 16 1 15 1 6.2222 6 9 2 7 1 5.0833 5 12 1 11 1 6.25 6 4 1 3 1 5.1 5 10 1 9 1 6.2727 6 13 3 10 1 5.125 5 8 1 7 1 6.3 6 10 3 7 1 5.1429 5 7 1 6 1 6.3333 6 3 1 2 1 5.1667 5 6 1 5 1 6.3636 6 11 4 7 1 5.1875 5 16 3 13 1 6.3846 6 13 5 8 1 5.2143 5 14 3 11 1 6.4167 6 12 5 7 1 5.2308 5 13 3 10 1 6.4375 6 16 7 9 1 5.2667 5 15 4 11 1 6.4615 6 13 6 7 1 5.2857 5 7 2 5 1 6.5 6 2 1 1 1 5.3077 5 13 4 9 1 6.5334 6 15 8 7 1 5.333 5 3 1 2 1 6.5556 6 9 5 4 1 5.3636 5 11 4 7 1 6.5833 6 12 7 5 1 5.3846 5 13 5 8 1 6.6154 6 13 8 5 1 5.4167 5 12 5 7 1 6.6364 6 11 7 4 1 5.4375 5 16 7 9 1 6.6667 6 3 2 1 1 5.4546 5 11 5 6 1 6.6923 6 13 9 4 1 5.5 5 2 1 1 1 6.7143 6 7 5 2 1 5.5385 5 13 7 6 1 6.75 6 4 3 1 1 5.5556 5 9 5 4 1 6.7778 6 9 7 2 1 5.5714 5 7 4 3 1 6.8 6 5 4 1 1 5.6 5 5 3 2 1 6.8334 6 6 5 1 1 5.625 5 8 5 3 1 6.8572 6 7 6 1 1 5.6429 5 14 9 5 1 6.8889 6 9 8 1 1 5.6667 5 3 2 1 1 6.909 6 11 10 1 1 5.6923 5 13 9 4 1 6.9286 6 14 13 1 1 5.7143 5 7 5 2 1 6.9375 6 16 15 1 1 5.7333 5 15 11 4 1 7.0 6 1 1 0 1 5.7692 5 13 10 3 1 7.0625 7 16 1 15 1 5.7857 ~ 14 11 3 1 7.0833 7 12 1 11 1 5.8182 5 11 9 2 1 7.1 7 10 1 9 1 5.8461 5 13 11 2 1 7.125 7 8 1 7 1 ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 257 HD63084------------------------------------------------------------------- Table 1-1 Relation between Horizontal Resolution Conversion Ratio ({3) and Parameters (4) Q, Q, S m k HRCM S m k HRCM '1 ' '0' '1 ' '0' 7.1429 7 7 1 6 1 7.1667 7 6 1 5 1 7.1875 7 16 3 13 1 7.2143 7 14 3 11 1 7.25 7 4 1 3 1 7.2727 7 11 3 8 1 7.3 7 10 3 7 1 7.3333 7 3 1 2 1 7.375 7 8 3 5 1 7.4 7 5 2 3 1 7.4286 7 7 3 4 1 7.4445 7 9 4 5 1 7.4615 7 13 6 7 1 7.5 7 2 1 1 1 7.5385 7 13 7 6 1 7.5625 7 16 9 7 1 7.5833 7 12 7 5 1 7.6154 7 13 8 5 1 7.6364 7 11 7 4 1 7.6666 7 3 2 1 1 7.6923 7 13 9 4 1 7.7143 7 7 5 2 1 7.7334 7 15 11 4 1 7.7692 7 13 10 3 1 7.8 7 5 4 1 1 7.8333 7 6 5 1 1 7.8571 7 7 6 1 1 7.875 7 8 7 1 1 7.9 7 10 9 1 1 7.9231 7 13 12 1 1 7.9336 7 15 14 1 1 8.0 7 1 1 0 1 $HITACHI 258 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD63085---------------- DICEP(Document Image Compression and Expansion Processor) - PRELIMINARV- The HD63085 (DICEP) is a LSI that compresses (or encodes) and expands (or decodes) the digital data representing a docu· HD63085Y·B ment image. The DICEP uses Modified Huffman (MH) coding scheme, Modified Relative Element Address Designate (MR) coding scheme and Modified MR (M'R) coding scheme which are compatible with the CCITT (Comite Consultatif Interna· tional Telegraphique et TeJephonique) recommendations for Group 3 and Group 4 facsimile apparatus. As the DICEP stores coding and decoding algorithms in the microprogram ROM as firmare, a single MPU command allows this LSI to encode or decode a scan line of digital data. This LSI is suitable for Group 3 and Group 4 facsimile appa· ratus, file serves, intelligent copies, terminals, word processors, laser beam printers and other office automation systems. (PC·72) • FEATURES • Various coding schemes ..... MH, MR, M'R and Run length cod i ng • PIN ARRANGEMENT • Compatible with the CCITT recommendation for Group 3 and Group 4 facsimile apparatus • Interfaceable with either Motorola type MPU or Intel type ® @) @@ @@ @ @@ MPU • DMA capability through the document image bus @ ®@®@®®@ @@ 4M Byte/sec (at input clock frequency of 32 MHz) @ @ @ @ @@ • A variety of programmable parameters The length of a scan line: 0 - 65535 bits (0 ® @@ The number of RTC or EOl code words: 0 - 65535 @ @ @® Programmable starting address Coding and decoding of a desired part of a document @ @ @@ • Selectable document image bus size @ e® Document image bus : 8 bits or 16 bits ®@ @® System bus : B bits • 64K Bytes of document image memory is available inde· @ @@ e @@ pendently of the MPU @ @@@ @®@®@®@ • 2 !.1m CMOS process technology • Single 5V supply ® ®000000000 MA/MDo MAlMO, "" "'" NO . Pm No 50 Funo::tlOn """ v. ;ow MAfM0 4 RESET MAlMO. " " " v" " DACKO " MAlMO, D. DRaTl MA/MO,o D, NC as MAlMO .. MA/MD'4 " 32 D. D. ORQTO v. 33 V" 57 BROT TESTO " READY MAS 68 " " TOATA " MAlM01 !ROT 13 VOS fiii SET " MAlMD3 MAlMO!) MA/MD7 " " V" D, " 16 v. MAlMD9 D, " iOR " D. " DTC RtW MAlM011 MA/MD13 " D, V" He MAlM015 v. " M.i.EN AG' DS " 45 TEST1 " DACKI iiAcK .. " . IDs MOEN "72 NC ~HITACHI Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 259 HD63085---------------------------------------------------------------- 1.1 Absolute Maximum Rating Nc Item Symbol Value Unit 1 Supply Voltage VDD * -0.3 to +7.0 V 2 Input Voltage Vin * -0.3 to +7.0 V 3 Operating Topr 0 to +70 °C Temperature 4 Storage Tstg -55 to +150 °C Temperature * Voltages referenced to Vss=OV. No Item Symbol min typ max Unit 1 Supply Voltage VDD * 4.75 5 5.25 V 2 ViL * -0.3 - 0.8 V - Input Voltage 3 ViH * 2.2 - VDD V 4 Operating Topr 0 25 70 °C Temperature * Voltages referenced to Vss=OV. @HITACHI 260 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 -------------------------------------------------------------------HD63085 1.2 DC Characteristics VDD=5.0V±5%, Vss=OV, Ta=O to +70°C ) Ne Item Symbol Test Condition min typ max Unit 1 Input High VIH 2.2 - VDD V Voltage 2 Input Low VIL -0.3 - 0.8 V Voltage 3 Input Leakage IIN Vin=O to -10 - 10 pA Voltage 5.25V 4 Three-State Vin=O to -10 - 10 pA (Off State) Itsi 5.25V Leakage Current 5 Output High VOH IOH=-400pA 2.4 - - V Voltage 6 Output Low VOL IOL= 2mA - - 0.4 V Voltage 7 Standby Current IDDS - - 1 rnA 8 Power PD 150 - mW Dissipation ItErl«;..---- DS tAS VIL R/W AO-A2 VIH DO-D7 (SYSTEM BUS -+ DICEP) VIL tDHR DO-D7 (DICBP -+ SYSTEM BUS) _ _ _ _ _ _tIRQ1 IRQT VOL~ Fig. 1-2 System Bus Read/Write Timing (68 Type MPU) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 267 HD63085---------------------------------------------------------------- tAR AO-A2 ~------tRW------~ DS DO-D7 (DICEP -+ SYSTEM BUS) IRQT "~T=:L VOL Fig. 1-3 System Bus Read Timing (80 Type MPU) AO-A2 1o------tWW-------.l R/W tWD tDW DO-D7 VIR (SYSTEM BUS -+ DICEP) ~V~IL=------_!_II Fig. 1-4 System Bus Write Timing (80 Type MPU) • HITACHI 268 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD63085 tCYCE tE:*-- PWEH --~ DS R/W I ~ DO-D7 VIH (SYSTEM BUS~ DICEP) VIL tDHR VOH DO-D7 VOL (DICEP...., SYSTEM BUS) HITACHI Hitachi Amenca Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 287 HD68230---------------------------------------------------------------- • Counter Preload Register H,M,L (CPRH-L) The count registers (CNTRH-L) are a group of three 8-bit addresses at which the counter can be read. The contents of the Counter Preload Register H,M,L (CPRH-L) counter are not latched during a read bus cycle; thus, the data read at these addresses is not guaranteed if the timer is in the 7 6 5 4 3 2 1 0 run state. (Bits 2, 1 , and 0 of the Timer Control Register specify BIt Bit Bit BIt Bit BIt Bit Bit CPRH the state.) Write operations to these addresses result in a normal 23 22 21 20 19 18 17 16 bus cycle but the data is ignored. Bit Bit BIt BIt BIt Bit Bit Bit Each of the registers is indiVidually addressable, or the CPRM group may be accessed with the MOVEP.L or the MOVEP.W 15 14 13 12 11 10 9 8 instructions. The address one less than the address of CNTRH is BIt Bit Bit Bit Bit BIt BIt Bit the null register, and is reserved so that zeros are read in the CPRl 7 6 5 4 3 2 1 0 upper 8 bits of the destination data register when a MOVEP.L is used. Data written to this address is ignored . The Counter Preload Registers (CPRH-L) are a group of three • Timer Status Register (TSR) 8-bit registers used for storing data to be transferred to the counter. Each of the registers is individually addressable, or the Timer Status Register (TSR) group may be accessed with the MOVEP. L or the MOVEP, W instructions. The address one less than the address of CPRH is the null register, and is reserved so that zeros are read in the I I I I I I I Iz:s I 7 6 5 4 3 2 1 upper 8 bits of the destination data register when a MOVEP.L is used. Data written to this address is ignored. The registers are readable and writeable at all times. A read The Timer Status Register (TSR) contains one bit from cycle proceeds independently of any transfer to the counter, which the zero detect status can be determined. The ZDS which may be occuring simultaneously_ status bit (bit 0) is an edge-sensitive flip-flop that is set to 1 To insure proper operation of the PI/T Timer, a value of when the 24-bit counter decrements from $000001 to $000000. $000000 may not be stored in the Counter Preload Registers The ZDS status bit is cleared to 0 following the direct clear for use with the counter. operation (similar to that of the ports), or when the timer is The RESET pin does not affect the contents of these regis- halted. Note also that when the RESET pin is asserted the ters. timer is disabled, and thus enters the halt state. This register is always readable without consequence. A • Count Register H,M,L (CNTRH-L) write access performs a direct clear operation if bit 0 in the written data is 1. Following that, the ZDS bit is O. Count Register H,M,L (CNTRH-L) This register is constructed with a reset dominant S-R flip- flop so that all cleaning conditions prevail over the possible 7 6 5 4 3 2 1 0 zero detect condition. Bit Bit BIt Bit BIt Bit BIt BIt Bits 7-1 are unused and are read as O. CNTRH 23 22 21 20 19 18 17 16 BIt Bit BIt Bit BIt BIt BIt BIt CNTRM 15 14 13 12 11 10 9 8 Bit BIt Bit BIt BIt BIt Bit Bit CNTRl 7 6 5 4 3 2 1 0 ~HITACHI 288 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68230 • PORT CONTROL STRUCTURE tionships. Some modes require additional information from The primary focus of most applications will be on Ports A each port's control register to further define its operation. and B, the handshake pins, the port interrupt pins, and the In each port control register, there is a 2-bit submode field DMA request pin. They are controlled in the following way: that serves this purpose. Each port mode/submode combination the Port General Control Register contains a 2-bit field that specifies a set of programmable characteristics that fully define specifies a set of four operation modes. These govern the the behavior of that port and two of the handshake pins. overall operation of the ports and determine their interrela- This structure is summarized in Table 4 and Figure 8. Mode 0 Submode 00 Mode 0 Submode 01 Mode 0 Submode 1 X A (B) B DoublewBuffered B.tl/O Output HI (H3) 1"""1---- HI (H3) 1"""1--____ H2 (H4) H2 (H4) Mode 1 Port B Submode XO Mode 1 Port B Submode XI I"""I----Hl 1"""1--__0- H2 Aand B A and B (16) (16) Double-Buffered Output I"""1----H3 I"""1--_....-H4 Mode 2 Mode 3 ~AandB WA(S) Y-V (16) Bit I/O W Bidirectional 16 Bit v HI Output B (8) H2 >-- Transfers Bidirectional 8-Bit L----f----i_H4 H3 >-- Input Transfers HI H2 >---- Output Transfers H3 >--Input L--1'-_._H4 Transfers Figure 8 Port Mode Layout ~HITACHI Hitachi Amerrca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 289 HD68230------------------------------------------------------------------- • PORT GENERAL INFORMATION AND CONVENTIONS stantaneous direction is always determined by the external The following paragraphs introduce concepts that are gener- system, a small amount of arbitration logic may be required. ally applicable to the PIfT ports independent of the chosen mode and submode. For this reason, no particular port or • Control of Double-Buffered Data Paths handshake pins are mentioned; the notation HI (H3) indicates Generally speaking, the PIfT is a double-buffered device. that, depending on the chosen mode and sub-mode, the state- In the primary direction, double-buffering allows orderly trans- ment given may be true for either the HI or H3 handshake pin. fers by using the handshake pins in any of several programmable protocols. (When Bit I/O is used, double-buffering is not • Unidirectidnal vs Bidirectional available and the handshake pins are used as outputs or statusf Figure 8 shows the configuration of Ports A and B and each interrupt inputs.) of the handshake pins in each port mode and submode. In Use of double-buffering is most beneficial in situations Modes 0 and 1, a data direction register is associated with each where a peripheral device and the computer system are capable of the ports. These registers contain one bit for each port pin of transferring data at roughly the same speed. Double-buffering to determine whether that pin is an input or an output. Modes allows the fetch operation of the data transmitter to be over- o and 1 are, thus, called unidirectional modes because each pin lapped with the store operation of the data receiver. Thus, assumes a constant direction, changeable only by a reset condi- throughput measured in bytes or words-per-second may be tion or a programming change. These modes allow double- greatly enhanced. If there is a large mismatch in transfer buffered data transfers in one direction. This direction, de- capability between the computer and the peripheral, little or termined by the mode and submode definition, is known as no benefit is obtained. In these cases there is no penalty in the primary direction. Data transfers in the primary direction using double-buffering. are controlled by the handshake pins. Data transfers not in the primary direction are generally unrelated, and single or • Double-Buffered Input Transfers unbuffered data paths exist. In all modes, the PIfT supports double-buffered input In Modes 2 and 3 there is no concept of primary direction transfers. Data that meets the port setup and hold times is as in Modes 0 and 1. Except for Port A in Mode 2 (Bit I/O), latched on the asserted edge of Hl(H3). Hl(H3) is edge-sensi- the data direction registers have no effect. These modes are tive, and may assume any duty-cycle as long as both high and bidirectional, in that the direction of each transfer (always 8 low minimum times are observed. The PIfT contains a Port or 16 bits, double-buffered) is determined dynamically by the Status Register whose HIS(Ir3S) status bit is set anytime any state of the handshake pins. Thus, for example, data may be input data is present in the double-buffered latches that has transferred out of the ports, followed very shortly by a transfer not been read by the bus master. The action of H2(H4) is into the same port pins. Transfers to and from the ports are programmable; it may indicate whether there is room for more independent and may occur in any sequence. Since the in- data in the PIfT latches or it may serve other purposes. The Table 4 Port Mode Control Summary Mode 0 Mode 1 Mode 2 Mode 3 (UmdlrectlOnal 8-Blt model (UmdlrectlonaI16-Blt model (Bidirectional 8·Blt model (Bidirectional 16'81t mode) PortA Port A - Double-Buffered Data (Most Port A - Bit I/O (With no handshaking Port A - Double-Suffered Data (Most 51 mflcant Pins) SI mflcant) Submode 00 Double-Buffered Input H 1 - Latches Input data H2 - Status/mterrupt generating Input, general-purpose output, or operation With Hl In the Interlocked or pulsed mput handshake protocols Submode 01 - Double-Buffered Submode XX (not used) Submode XX (not used) Submode XX (not used) Output Hl - Status/Interrupt generating Hl - Indicates data received by Input peripheral H2 - StatUS/interrupt generating H2 - Status/Interrupt generating Input or general-purpose Input, general-purpose output, output or operation With H 1 In the Interlocked or poised output handshake protocols Submode 1 X - Bit I/O H1 - Status/interrupt generating mput H2 - Status/Interrupt generating Input or general.purpose output Port B Port B - Double-Buffered Data Port B - Bidirectional B-81t Data Port B - Double-Buffered Data (Leastslgmflcant) (Double-Buffered) (Leastslgmflcant) Submode XO - Umdlrectlonal 16· Sit Input H3 and H4 - Identical to Port A, H3 - Latches mput data Submode XX (not used) Submode XX (not used) Hl and H2 H4 - Status/interrupt generatmg Hl - mdlcates output data received Hl - Indicates outpUt data received Input, general-purpose out· by peTipheral by peTipheral put, or operation With H3 H2 - Operation With H1 m the H2 - Operation With Hl m the m the mterlocked or pulsed mterlocked or pulsed output mterlocked or pulsed output Input handshake protocols handshake protocols handshake protocols Submode Xl - Unidirectional 16-81t H3 - latches Input data H3 - latches mput date Outpu1 H4 - Operation With H3 m the H4 - Operation With H3 In the H3 - Indicates data received by Interlocked or pulsed Input Interlocked or pulsed mput peripheral handshake protocols handshake protocols H4 - Status/Interrupt generatHlg Input, general-purpose output. or operation With H3 In the Interlocked or pulsed output handshake protocols ~HITACHI 290 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD68230 following options are available, depending on the mode. tions on Hl(H3) are ignored. The H2S(H4S) status bit is (1) H2(H4) may be an edge-sensitive input that is independent always O. When Hl2 Enable (H34 Enable) is 0, H2(H4) of Hl(H3) and the transfer of port data. On the asserted is held negated. edge of H2(H4), the H2S(H4S) status bit is set. It is (5) H2(H4) may be an output pin in the pulsed input hand- cleared by the direct method (refer to Direct Method of shake proto~ol. It is asserted exactly as in the interlocked Resetting Status), the RESET pin being asserted, or when input protocol, but never remains asserted longer than the Hl2 Enable (H34 Enable) bit of the Port General 4 clock cycles. Typically, a four clock cycle pulse is Control Register is O. generated. But in the case that a subsequent HI(H3) (2) H2(H4) may be a general purpose output pin that is asserted edge occurs before termination of the pulse, always negated. The H2S(H4S) status bit is always O. H2(H4) is negated asynchronously. Thus, anytime after (3) H2(H4) may be a general purpose output pin that is always the leading edge of the H2(H4) pulse, new data may be asserted. The H2S(H4S) status bit is always O. entered in the PI/T double-buffered input latches. The (4) H2(H4) may be an output pin in the interlocked input H2S(H4S) status bit is always O. When Hl2 Enable (H34 handshake protocol. It is asserted when the port input Enable) is 0, H2(H4) is held negated. latches are ready to accept new data. It is negated A sample timing diagram is shown in Figure 9. The H2(H4) asynchronously follOWing the asserted edge of the Hl(H3) interlocked and pulsed input handshake protocols are shown. input. The DMAREQ pin is also shown assuming it is enabled. All As soon as the input latches become ready, H2(H4) is handshake pin sense bits are assumed to be 0 (refer to Port again asserted. When the input double-buffered latches are General Control Register); thus, the pins are in the low state full, H2(H4) remains negated until data is removed. Thus, when asserted. Due to the great similarity between modes, this anytime the H2(H4) output is asserted, new input data timing diagram is applicable to all double-buffered input trans- may be entered by asserting Hl(H3). At other times transi- fers. Read Read Port Data Hl(H3) H2(H4) Interlocked H2(H4) Pulse Figure 9 Double-buffered Input Transfers • Double-Buffered Output Transfers Status), the ltIlSET pin being asserted, or when the Hl2 The PI/T supports double-buffered output transfers in all Enable (H34 Enable) bit of the Port General Control modes. Data, written by the bus master to the PI/T, is stored Register is O. in the port's output latch. The peripheral accepts the data by (2) H2(H4) may be a general-purpose output pin that is always asserting Hl(H3), which causes the next data to be moved to negated. The H2S(H4S) status bit is always O. the port's output latch as soon as it is available. The function (3) H2(H4) may be a general-purpose output pin that is always of H2(H4) is programmable; it may indicate whether new data asserted. The H2S(H4S) status bit is always O. has been moved to the output latch or it may serve other (4) H2(H4) may be an output pin in the interlocked output purposes. The HlS(H3S) status bit may be programmed for handshake protocol. H2(H4) is asserted two clock cycles two interpretations. Normally the status bit is a I when there is after data is transferred to the double-buffered output at least one latch in the double-buffered data path that can latches. The data remains stable and H2(H4) remains assert- accept new data. After writing one byte/word of data to the ed until the next asserted edge of the Hl(H3) input. At that ports, an interrupt service routine could check this bit to time, H2(H4) is asynchronously negated. As soon as the determine if it could store another byte/word; thus, filling next data is available, it is transferred to the output latches. both latches. When the bus master is fmished, it is often useful When H2(H4) is negated, asserted transitions on HI(H3) to be able to check whether all of the data has been transferred have no effect on the data paths. As is explained later, to the peripheral. The HlS(H3S) Status Control bit of the however, in Modes 2 and 3 they do control the three- Port A and B Control Registers provide this flexibility. The state output buffers of the bidirectional port(s). The programmable options of the H2(H4) pin are given below, H2S(H4S) status bit is always O. When Hl2 Enable (H34 depending on the mode. Enable) is 0, H2(H4) is held negated. (1) H2(H4) may be an edge-sensitive input pin independent (5) H2(H4) may be an output pin in the pulsed output hand- of Hl(H3) and the transfer of port data. On the asserted shake protocol. It is asserted exactly as in the interlocked edge of H2(H4), the H2S(H4S) status bit is set. It is reset output protocol above, but never remains asserted longer by the direct method (refer to Direct Method of Resetting than four clock cycles. Typically, a four clock pulse is ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 291 HD68230---------------------------------------------------------------- generated. But in the case that a subsequent HI(H3) A sample timing diagram is shown in Figure 10. The H2(H4) asserted edge occurs before tennination of the pulse, interlocked and pulsed output handshake protocols are shown. H2(H4) is negated asynchronously shortening the pulse. The DMAREQ pin is also shown assuming it is enabled. All The H2S(H4S) status bit is always O. When HI2 Enable handshake pin sense bits are assumed to be 0; thus, the pins (H34 Enable) is 0 H2(H4) is held negated. are in the low state when asserted. Due to the great similarity between modes, this timing diagram is applicable to all double· buffered output transfer. Write Write Port Data ~~~------r----~~-----------~ H2(H41 Interlocked ---j-----" H2(H41 Pulse H1(H31 Figure 10 Double·buffered Output Transfers • Requesting Bus Master Service overrun the DMA controller. The pin is compatible with the The PI/T has several means of indicating a need for service HD68450 Direct Memory Access Controller (DMAC). by a bus master. First, the processor may poll the Port Status Register. It contains a status bit for each handshake pin, • Vectored, Prioritized Port Interrupts plus a level bit that always reflects the instantaneous state of Use of HD68000-compatible vectored interrupts with the that handshake pin. A status bit is I when the PI/T needs PI/T requires the PIRQ and PlACK pins. When PlACK is as- serviCing, i.e., generally when the bus master needs to read serted, the PI/T places an 8-bit vector on the data pins Do -D7 . or write data to the ports, or when a handshake pin used as a Under normal conditions, this vector corresponds to highest simple status input has been asserted. The interpretation of priority, enabled, active port interrupt source with which the these bits is dependent on the chosen mode and submode. f5MAlrnO pin is not curremly associated. The most-significant Second, the PI/T may be placed in the processor's interrupt six bits are provided by the Port Interrupt Vector Register structure. As mentioned previously, the PI/T contains Port A (PNR), with the lower two bits supplied by prioritization and B Control Registers that configure the handshake pins. logic according to conditions present when PlACK is asserted. Other bits in these registers enable an interrupt associated with It is important to note that the only affect on the PI/T caused each handshake pin. This interrupt is made available through by interrupt acknowledge cycles is that the vector is placed the PC5/PIRQ pin, if the PIRQ function is selected. Three on the data bus. Specifically, no registers, data, status, or other additional conditions are required for PIRQ to be asserted: internal states of the PI/T are affected by the cycle. (I) the handshake pin status bit set, (2) the corresponding Several conditions may be present when the PlACK input interrupt (service request) enable bit is set, (3) and DMA re- is asserted to the PI/T. These conditions affect the PI/T's quests are not associated with that data transfer (HI and H3 response and the tennination of the bus cycle. If the PI/T only). The conditions from each of the four handshake pins has no interrupt function selected, or is not asserting 'PIRQ, and corresponding status bits are ORed to detennine PIRQ. the PI/T will make no response to PI'Acr{ (~ will not be The third method of requesting service is via the PC4/ asserted). If the PI/T is asserting PIRQ when'P'iA(;f{ is received, f5MA'IrnO pin. This pin can be associated with double-buffered the PI/T will output the contents of the Port Interrupt Vector transfers in each mode. If it is used as a DMA controller re- Register and the prioritization bits. If the PIVR has not been quest, it can initiate requests to keep the PI/T's input/output initialized, SOF will be read from this register. These conditions double-buffering empty/full as much as possible. It will not are summarized in Table 5. Table 6 Response to Port Interrupt Acknowledge PI RQ negated OR interrupt Conditions request function not selected PI RQ asserted PIVR has not been initialized No response from P liT. PI/T provides $OF, the since RESET No DTACK. Uninitialized Vector.' PIVR has been initialized No response from PI/T. PI/T provides PI V R contents since RESET NoDTACK. with prioritization bits. . . The uninitialized vector is the value returned from an interrupt vector register before it has been initialized. ~HITACHI 292 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD68230 The vector table entries for the PI/T appear as a contiguous (1) Independent of other actions by the bus master or peri· block of four vector numbers whose common upper six bits pheral (via the handshake pins), the PI/T's disabled hand· are programmed in the PIVR. The following table pairs each shake controller is held to the "empty" state, i.e., no data interrupt source with the 2-bit value provided by the prioriza· is present in the double·buffered data path. tion logic, when interrupt acknowledge is asserted. (2) When any handshake pin is used to set a simple status HI source 00 flip·flop, unrelated to double·buffered transfers, these H2 source 01 flip·flops are held reset to O. (See Table 4.) H3 source 10 (3) When H2(H4) is used in an interlocked or pulsed hand· H4 source II shake with Hl(H3), H2(H4) is held negated, regardless of the chosen mode, submode, and primary direction. • Autovectored Port Interrupts Thus, for double·buffered input transfers, the programmer Autovectored interrupts use only the PIRQ pin. The opera· may signal a peripheral when the PI/T is ready to begin tion of the PI/T with vectored and autovectored interrupts is transfers by setting the associated handshake enable bit identical except that no vectors are supplied and the PC6/ to 1. PlACK pin can be used as a Port C pin. • The Port A and B Alternate Registers • Direct Method of Resetting Status In addition to the Port A and B Data Registers, the PI/T In certain modes one or more handshake pins can be used contains Port A and B Alternate Registers. These registers are as edge·sensitive inputs for sole purpose of setting bits in the read·only, and simply proVide the instantaneous level of each Port Status Register. These bits consist of simple flip·flops. port pin. They have no effect on the operation of the hand· They are set (to I) by the occurrence of the asserted edge of shake pins, double·buffered transfers, status bits, or any other the handshake pin input. Resetting a handshake status bit can aspect of the PI/T, and they are mode/submode independent. be done by writing an 8-bit mask to the Port Status Register. This is called the direct method of resetting. To reset a status • PORT MODES bit that is resettable by the direct method, the mask must This section contains information that distinguishes the contain a I in the bit position of the Port Status Register cor· various port modes and submodes. responding to the desired bit. Other positions must contain O's. For status bits that are not resettable by the direct method • Mode 0 - Unidirectional B-Bit Mode in the chosen mode, the data written to the port status register In Mode 0, Ports A and B operate independently. Each has no effect. For status bits that are resettable by the direct may be configured in any of its three possible submodes: method in the chosen mode, a 0 in the mask has no effect. Submode 00 - Double·Buffered Input Submode 01 - Double·Buffered Output • Handshake Pin Sense Control Submode IX - Bit I/O The PIjT contains exclusive·OR gates to control the sense of Handshake pins HI and H2 are associated with Port A and each of the handshake pins, whether used as inputs or outputs. configured by programming the Port A Control Register. Four bits in the Port General Control Register may be program· (The HI2 Enable bit of the Port General Control Register, med to determine whether the pins are asserted in the low or enables Port A transfers.) Handshake pins H3 and H4 are high voltage state. As with other control registers, these bits associated with Port B and configured by programming the are reset to 0 when the RESET pin is asserted, defaulting the Port B Control Register. (The H34 Enable bit of the Port asserted level to be low. General Control Register enables Port B transfers.) The Port A and B Data Direction Registers operate in all three sub· • Enabling Ports A and B modes. Along with the submode, they affect the data read Certain functions involved with double·buffered data trans· and written at the associated data register according to Table fers, the handshake pins, and the status bits, may be disabled by 6. They also enable the output buffer associated with each the external system or by the programmer during initialization. port pin. The DMAREQ pin may be associated with either The Port General Control Register contains two bits, HI2 Ena· (not both) Port A or Port B, but does not function if the Bit ble and H34 Enable, which control these functions. These bits I/O submode is programmed for the chosen port. are cleared to the 0 state when the RESET pin is asserted, and the functions are disabled. The functions are the following. ~HITACHI Hitachi America ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 293 HD68230------------------------------------------------------------ Table 6 Mode 0 Port Data Paths Read Port A/B Write Port A/B Data Register Data Register Mode DDR=O DDR = 1 DDR = X o Submode 00 FIL. D.B. FOL Note 3 FOL. S.B. Note 1 o Submode 01 Pin FOL Note 3 10LlFOL. D.B. Note 2 o Submode IX Pin FOL Note 3 FOL. S.B. Note 1 Abbreviations: 10L - Initial Output Latch S.B. - Single Buffered FOL - Final Output Latch D.B. - Double Buffered FIL - Final Input Latch DDR - Data Direction Register Note 1: Data is latched in the output data registers (final output latch) and will be single buffered at the pin if the DDR is 1. The output buffers will be turned off if the DD R is O. Note 2: Data is latched in the double-buffered output data registers. The data in the final output latch will appear on the port pin if the DDR is a 1. Note 3: The output drivers that connect the final output latch to the pins are turned on. (1) Port A or B Submode 00 (8-Bit Double-Buffered Input) __ AIBI 8 Double-Buffered Output Hl (H3) H2 (H4) Figure 12 Mode 0 Submode 01 Figure 11 Mode 0 Submode 00 tions, previously mentioned in the Port General Information and Conventions section, are available. In Mode 0, double-buffered input transfers of up to 8-bits are For pins used as inputs, data written to the associated data available by programming Submode 00 in the desired port's register is double-buffered and passed to the initial or final control register. The operation of H2 and H4 may be selected output latch, as usual, but the output buffer is disabled. by programming the Port A and Port B Control Registers, Refer to PARALLEL PORTS Double-Buffered Output respectively. All five double-buffered input handshake options, Transfers for a sample timing diagram (Figure 10) previously mentioned in the Port General Information and Conventions section, are available. (3) Port A or B Submode 1 X (Bit I/O) For pins used as outputs, the data path consists of single latch driving the output buffer. Data written to the port's data register does not affect the operation of any handshake pin, status bit, or any other aspect of the PI/T. Output pins ¢)A~B) may be used independently of the input transfer. However, read bus cycles to the data register do remove data from the Bit I/O port. Therefore, care should be taken to avoid processor in- structions that perform unwanted read cycles. t - - - Hl (H3) Refer to PARALLEL PORTS Double-Buffered Input H2 (H4) Transfers for a sample timing diagram. (Figure 9) (2) Port A or B Submode 01 (8·Bit Double-Buffered Output) Figure 13 Mode 0 Submode 1 X In Mode 0, double-buffered output transfers of up to 8 bits are available by programming submode 01 in the desired port's In Mode 0, simple Bit I/O is available by programming Sub- control register. The operation of H2 and H4 may be selected mode IX in the desired port's control register. This submode by programming the Port A and Port B Control Registers, is intended for applications in which several independent respectively. All five double-buffered output handshake op- devices must be controlled or monitored. Data written to the @HITACHI 294 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD68230 associated data register is single-buffered. If the data direc- Handshake pins H3 and H4, configured by programming the tion register bit for that pin is a I (output), the output buffer Port B Control Register, are associated with the 16-bit double- is enabled. If It is 0 (input), data written is still latched, but is buffered transfer. These 16-bit transfers, are enabled by the not available at the pin. Data read from the data register is H34 Enable bit of the Port General Control Register. Hand- the instantaneous value of the pin or what was written to the shake pins HI and H2 may be used as simple status inputs data register, depending on the contents of the data direc- not related to the 16-bit data transfer or H2 may be an output. tion register. HI(H3) is an edge-sensitive status input pin Enabling of the H I and H2 handshake pins is done by the H12 only and it controls no data-related function. The HIS(H3S) Enable bit of the Port General Control Register. The Port A status bit is set following the asserted edge of the input wave- and B Data Direction Registers operate in each sub-mode. form. It is reset by the direct method, the RESET pin being Along with the submode, they affect the data read and written asserted, or when the HI2 Enable (H34 Enable) bit is O. at the data register according to Table 7. They also enable the H2(H4) can be programmed as a simple status input (iden- output buffer associated with each port pin. The DMAREQ tical to HI(H3)), or as an asserted or negated output. The pin may be associated only with H3. interlocked or pulsed handshake configurations are not availa- Mode I can provide convenient, high-speed 16-bit transfers. ble. The Port A and B data registers are addressed for compatibility with the HD68000 Move Peripheral (MOVEP) instruction and • Mode 1 - Unidirectional 16-Bit Mode with the HD68450 DMAC. To take advantage of this, Port A In Mode I, Ports A and B are concatenated to form a single should contain the most-significant byte of data and always be 16-bit port. The Port B Submode field controls the configura- read or written by the bus master first. The interlocked and tion of both ports. The possible submodes are: pulsed handshake protocols are keyed to accesses to the Port B Port B Submode XO - Double-Buffered Input Data Register in Mode I. If it is accessed last, the 16-bit double- buffered transfers proceed smoothly. Port B Submode XI - Double-Buffered Output Table 7 Mode 1 Port Data Paths Read Port AlB Write Port AlB Mode Register Register DDR = 0 DDR = 1 DDR =0 i;>DR = 1 1, Port B FIL. D.B. FOL FOL, S.B. FOL, S.B. Submode XO Note 3 Note 2 Note 2 1, Port B Pin FOL IOLlFOL. IOLlFOL. Submode Xl Note 3 D.B., D.B., Note 1 Note 1 Note 1: Data written to Port A goes to a temporary latch. When the Port B data register is later written, Port A data is transferred to IOLlFOL. Note 2: Data is latched in the output data registers (final output latch) and will be single buffered at the pin if the DDR is 1. The output buffers will be turned off if the DDR is O. Note 3: The output drivers that connect the final output latch to the pins are turned on. Abbreviations: IOL - I nitial Output Latch S.B. - Single Buffered FOL - Final Output Latch D.B. - Double Buffered FIL - Final Input Latch DDR - Data Direction Register (1) Port B Sub mode XO (16-Bit Double-Buffered Input) data register. (The HD68450 DMAC can be programmed to In Mode I Port B Submode XO, double-buffered input transfers perform the exact transfers needed for compatibility with the of up to 16 bits may be obtained. The level of all 16 pins is PI/T.) H4 may be programmed for all five of the handshake asynchronously latched with the asserted edge of H3. The options mentioned in the Port General Information and Con- processor may check H3S status bit to determine if new data ventions section. is present. The DMAREQ pin may be used to signal a DMA For pins used as outputs, the data path consists of a single controller to empty the input buffers. Regardless of the bus latch driving the output buffer. Data written to the port's master, Port A data should be read first. (Actually, Port A data register does not affect the operation of any handshake data need not be read at all.) Port B data should be read last. pin, status bit, or any other aspect of the PI/T. Thus, output The operation of the internal handshake controller, the H3S pins may be used independently of the input transfer. bit, and DMAREQ are keyed to the reading of the Port B However, read bus cycles to the Port B Data Register do remove ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 295 HD68230----------------------------------------------------------------- data, so care should be taken to avoid unwanted read cycles. For pins used as inputs, data written to either data register is double-buffered and passed to the initial or fmal output latch, as usual, but the output buffer is disabled. Refer to PARALLEL PORTS Double-Buffered Input/Out- put Transfer for a sample timing diagram (Figure 10). • Mode 2 - Bidirectional 8-Bit Mode WA(S) Bit 1/0 Figure 14 Mode 1 Port B Submode XO WB(8) (2) Port B Submode Xl (16·Bit Double-Buffered Output) Bi-directional 8 Bit i----Hl H1 Output ....~-tI~ H2 H2 >-- Transfers H3>-- Input ___ AandB L-...r-......-H4 Transfers (16) Double-Buffered Output Figure 16 Mode 2 ....~--H3 In Mode 2, Port A is used for simple bit I/O with no associat- ....f---tl~ H4 ed handshake pins. Port B is used for bidirectional 8-bit double- buffered transfers. HI and H2, enabled by the HI2 Enable bit in the Port General Control Register, control output transfers, Figure 15 Mode 1 Port B Submode Xl while H3 and H4, enabled by the Port General Control Register bit H34 Enable, control input transfers. The instantaneous Refer to PARALLEL PORTS Double-Buffered Input Trans- direction of the data is determined by the HI handshake pin. fers for a sample timing diagram (Figure 9). The Port B Data Direction Register is not used. The Port A In Mode I Port B Submode XI, double-buffered output trans- and Port B submode fields do not affect PI/T operation in fers of up to 16 bits may be obtained. Data is written by Mode 2. the bus master (processor or DMA controller) in two bytes. (1) Double-Buffered 110 (Port B) The first byte (most-significant) is written to the Port A Data The only aspect of bidirectional double-buffered transfers Register. It is stored in a temporary latch until the next byte that differs from the uni-directional modes lies in controlling is written to the Port B Data Register. Then all 16 bits are the Port B output buffers. They are controlled by the level of transferred to the fmal output latches of Ports A and B. Both HI. When HI is negated, the Port B output buffers (all 8) are options for interpretation of the H3S status bit, mentioned in enabled and the pins drive the bidirectional bus. Generally, HI Port General Information and Comments section, are available is negated in response to an asserted H2, which indicates that and apply to the 16-bit port as a whole. The DMAREQ pin may new output data is present in the double-buffered latches. be used to signal a DMA controller to transfer another word to Following acceptance of the data, the peripheral asserts HI, the port output latches. (The HD68450 DMAC can be program- disabling the Port B output buffers. Other than controlling the med to perform the exact transfers needed for compatibility output buffer, HI is edge-sensitive as in other modes. Input with the PI/T.) H4 may be programmed for all five of the transfers proceed identically to the double-buffered input handshake options mentioned in Port General Information and protocol described in the Port General Information and Con- Comments section. ventions Section. In Mode 2, only the interlocked and pulsed Table 8 Mode 2 Port B Data Paths Read Port B Write Port B Mode Data Register Data Register 2 FIL,D.B. 10LlFOL, D.B. Abbreviations: IOL - Initial Output Latch D.B. - Double Buffered FOL - Final Output Latch FIL - Final Input Latch ~HITACHI 296 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD68230 handshake pin options are available on H2 and H4. The monitored. Data written to the Port A data register is single- DMAREQ pin may be associated with either input transfers buffered. If the Port A Data Direction Register bit for that (H3) or output transfers (HI), but not both. Refer to Table 8 pin is I (output), the output buffer is enabled. If it is 0, data for a summary of the Port B Data Register responses in Mode 2. written is still latched but not available at the pin. Data read (2) Bit I/O (Port A) from the data register is either the instantaneous value of the Mode 2, Port A performs simple bit I/O with no associated pin or what was written to the data register, depending on the handshake pins. This configuration is intended for applications contents of the Port A Data Direction Register. This is sum- in which several independent devices must be controlled or marized in Table 9. Table 9 Mode 2 Port A Data Paths Read Port A Write Port A Mode Data Register Data Register DDR=O DDR = 1 DDR =0 DDR = 1 2 Pin FOL FOL FOL, S.B. Abbreviations: S.B. - Single Buffered DDR - Data Direction Register FOL - Final Output Latch • Mode 3 - Bidirectional 16- Bit Double that new output data is present in the double-buffered latches. Buffered I/O Following acceptance of the data, the peripheral asserts HI, disabling the output buffers. Other than controlling the output buffers, HI is edge-sensitive as in other modes. Input transfers ~AandB proceed identically to the double·buffered input protocol '\r-V (16) described in the Port General Information and Conventions section. Port A and B data is latched with the asserted edge of Bi·directional 16·Bit H3. In Mode 3, only the interlocked and pulsed handshake pin options are available to H2 and H4. The DMAREQ pin Hl Output may be associated with either input transfers (H3) or output H2 >--- Transfers transfers (HI), but not both. H2 indicates when new data is H3>--- Input available in the Port B (and impliCitly Port A) output latches, L--J--_... H4 Transfers but unless the buffer is enabled by HI, the data is not driving the pins. Mode 3 can provide convenient high-speed 16-bit transfers. Figure 17 Mode 3 The Port A and B Data Registers are addressed for compati- bility with the HD68000's Move Peripheral (MOYEP) instruc- In Mode 3, Ports A and B are used for bidirectional 16-bit tion and with the HD68450 DMAC. To take advantage of this, double-buffered .transfers. HI and H2 control output trans- Port A should contain the most-significant data and always be fers, while H3 and H4 control input transfers. (HI and H2 are read or written by the bus master first. The interlocked and enabled by the HI2 Enable bit while H3 and H4 are enabled by pulsed handshake protocols are keyed to accesses to the Port B the H34 Enable bit of the Port General Control Register.) The Data Register in Mode 3. If it is accessed last, the 16-bit double- instantaneous direction of the data is determined by the HI buffered transfer proceed smoothly. Refer to Table 10 for a handshake pin, and thus, the data direction registers are not summary of the Port A and B data paths in Mode 3. used. The Port A and Port B submode fields do not affect PIIT operation in Mode 3. • DMA REQUEST OPERATION The only aspect of bidirectional double-buffered transfers The Direct Memory Access Request (DMAREQ) pulse can that differs from the unidirectional modes lies in controlling be associated with output or input transfers to keep the initial the Port A and B output buffers. They are controlled by the and final output latches full or initial and final input latches level of HI. When HI is negated, the output buffers (all 16) empty respectively. Figure 18 and 19 show all the possible are enabled and the pins drive the bidirectional bus. General- paths in generating DMA requests. ly, HI is negated in r~sponse to an asserted H2, which indicates ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 297 HD68230-------------------------------------------------------------- Table 10 Mode 3 Port A and B Data Paths Read Port A and B Write Port A and B Mode Data Register Data Register 3 FIL,D.B. IOLlFOL. D.B., Note 1 Note 1: Data written to Port A 90es to a temporary latch. When the Port B data register is later written. Port A data is transferred to IOLlFOL. Abbreviations: IOL - Initial Output Latch S.B. - Single Buffered FOL - Final Output Latch D.B. - Double Buffered FIL - Final Input Latch Data in Output Latches Data in Input Latches ~~~ ~~ ... Bus Write No DMA Request Peripheral Provides Data No DMA Request ~ ~ ~ OMA~ om OMA>GV../ Figure 18 DMAREQ Associated with Output Transfers Figure 19 DMAREQ Associated with Input Transfers • TIMER operation of three timer pins, The HD68230 timer can provide several facilities needed (2) whether the counter is loaded from the Counter Preload by HD68000 operating systems. It can generate periodic in- Register or rolls over when zero detect is reach, terrupts, a square wave, or a single interrupt after a programmed (3) the clock input, time period. Also, it can be used for elapsed time measurement (4) whether the prescaler is used, and or as a device watchdog. This section describes the program- (5) whether the timer is enabled. mable options available, capabilities, and restrictions that apply to the timer. • RUN/HALT Definition I The PI/T timer contains a 24-bit synchronous down counter The overall operation of the timer is described in terms of that is loaded from three 8·bit Counter Preload Registers. the run or halt states. The control of the current state is de- The 24·bit counter may be clocked by the output of a 5-bit termined by programming the Timer Control Register. When (divide-by-32) prescaler or by an external timer input TIN. If in the halt state, all of the following occur. the prescaler is used, it may be clocked by the system clock (1) The prior contents of the counter is not altered and is (CLK pin) or by the TIN external input. The counter signals reliably readable via the Count Registers. the occurrence of an event primarily through zero detection. (2) The prescaler is forced to $1 F whether or not it is used. (A zero is when the counter of the 24-bit timer is equal to (3) The ZOS status bit is forced to 0, regardless of the possible zero.) This sets the zero defect status (ZOS) bit in the Timer zero contents of the 24-bit counter. Status Register. It may be checked by the processor or may be The run state is characterized by: used to generate a timer interrupt. The ZOS bit is reset by (1) The counter is clocked by the source programmed in writing a 1 to the Timer Status Register in that bit position. the Timer Control Register. The general operation of the timer is flexible and easily (2) The counter is not reliably readable. programmable. The timer is fully confIgured and controlled (3) The prescaler is allowed to decrement if programmed for by programming the 8·bit Timer Control Register. It controls: use. (1) the choice between the Port C operation and the timer (4) The ZOS status bit is set when the 24-bit counter transi- tions from $000001 to $000000. ~HITACHI 298 Hitachi America ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD68230 • Timer Rules • TIMER APPLICATIONS SUMMARY This section provides a set of rules that allow easy applica- This section outlines programming of the Timer Control tion of the timer. Register for several typical examples. (1) When the RESET pin is asserted, all bits of the Timer (1) Periodic Interrupt Generator Control Register go to 0, configuring the dual function pins as Port C inputs. 7 I 6 I 5 4 3 2 I 1 a (2) The contents of the Counter Preload Registers and counter are not affected by the RESET pin. (3) The Count Registers provide a direct read data path from TOUT/TIACK Control z.o. Ct,l. . Clock Control TImer Enable each portion of the 24-bit counter, but data written to their addresses is ignored. (This results in a normal bus x a a 000,1X changed cycle.) These registers are readable at any time, but their contents are never latched. Unreliable data may be read In this configuration the timer generates a periodic inter- when the timer is in the run state. rupt. The TOUT pin is connected to the system's interrupt (4) The Counter Preload Registers are readable and writable request circuitry and the TIACK pin may be used as an inter- at any time and this occurs independently of any timer rupt acknowledge input to the timer. The TIN pin may be operation. No protection mechanisms are provided against used as a clock input. iII-timed writes. The processor loads the Counter Preload Registers and (5) The input frequency to the 24-bit counter from the TIN Timer Control Register, and then enables the timer. When pin or prescaler output, must be between 0 and the in- the 24-bit counter passes from $000001 to $000000 the ZDS put frequency at CLK pin divided by 32 regardless of the status bit is set and the TOUT (interrupt request) pin is asserted. configuration chosen. At the next clock to the 24-bit counter it is again loaded with (6) For configurations in which the prescaler is used (with the the contents of the CPR's, and thereafter decrements. In CLK pin or TIN pin as an input), the contents of the normal operation, the processor must direct clear the status Counter Preload Register (CPR) is transferted to the bit to negate the interrupt request. (Figure 20) counter the first time that the prescaler passes from $00 to $1 F (rolls over) after entering the run state. Thereafter, Run------- the counter decrements or is loaded from the Counter Preload Register when the prescaler rolls over. Timer Enable J (7) For configurations in which the prescaler is not used, the contents of the Counter Preload Registers are trans- $FFFFFF ferred to the counter on the first asserted edge of the TIN input after entering the run state. On subsequent asserted 24-bit edges the counter decrements or is loaded from the Counter counter Preload Registers. $000000 (8) The lowest value allowed in the Counter Preload Register for use with the counter is $000001. • Timer Interrupt Acknowledge Cycles Several conditions may be present when the timer interrupt acknowledge pin (TIACK) is asserted. These conditions affect TIACK the PI/T's response and the termination of the bus cycle. (see Table 11) Figure 20 Periodic Interrupt Generator Table 11 Response to Timer Interrupt Acknowledge (2) Square Wave Generator PC3/TOUT Function Response to Asserted TIACK Square Wave Generator PC3 - Port C Pin No response. 7 J 6 I5 4 3 2 I 1 a No DTACK. TOUT/TIACK Control z.o. Ct,l. . Clock Control Timer Enable TOUT - Square Wave No response. No DTACK. a x a a 00 0' IX changed TOUT - Negated Timer No response. Interrupt Request NoDTACK. In this configuration the timer produces a square wave at the TOUT pin. The TOUT pin is connected to the user's cir- TOUT - Asserted Timer Interrupt Vector Contents. cuitry and the TIACK pin is not used. The TIN pin may be Timer Interrupt DTACK Asserted. used as a clock input. Request The processor loads the Counter Preload Registers and Timer Control Register, and then enables the timer. When the 24-bit counter passes from $000001 to $000000 the ZDS ~HITACHI Hitachi America Ltd • 22tO O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 299 HD68230-------------------------------------------------------------- status bit is set and the TOUT (square wave output) pin is This configuration is similar to the periodic interrupt gener- toggled. At the next clock to the 24·bit counter it is again ator except that the Zero Detect Control bit is set. This forces loaded with the contents of the CPRs, and thereafter decre· the counter roll over after Zero Detect is reached, rather than ments. In this application there is no need for the processor reloading from the CPRs. When the processor takes the inter- to direct clear the ZDS status bit; however, it is possible for rupt it can halt the timer and read the counter. This allows the the processor to sync itself with the square wave by clearing processor to measure the delay time from Zero Detect (inter- the ZDS status bit, then polling it. The processor may also rupt request) to entering the service routine. Accurate knowl- read the TOUT level at the Port C address. edge of the interrupt latency may be useful in some applica- Note that the Pe 3 /TOUT pin functions as PC3 following tions. (Figure 22) the negation of RESET. If used in the square wave configu- ration a pullup resistor may be required to keep a known • Elapsed Time Measurement level prior to programming. Prior to enabling the timer, TOUT Elapsed time measurement takes several forms; two are is high. (Figure 21) described below. (1) System Clock Run Timer Enable J f ..l . . . . . .- - - - - - System Clock $FFFFFF 7 I 6 I 5 4 3 2 T 1 0 24-Si' Counter TOUTITIACK Control Z.O. Ctrl. . Clock Contrel Timer Enable $000000 o o X o o o changed TOUT \'--_--'f ,- Square Wave---- L This configuration allows time interval measurement by software. No timer pins are used. The processor loads the Counter Preload Registers (general- Figure 21 Square Wave Generator ly with all Is) and Timer Control Register, and then enables the timer. The counter decrements until the ending event (3) Interrupt After Timeout takes place. When it is desired to read the time interval, the processor must halt the timer, then read the counter. Interrupt After Timeout For applications in which the interval could have exceeded that programmable in this timer, interrupts can be counted 7 I 6 I5 4 3 2 I 1 0 to provide the equivalent of additional timer bits. At the end, TOUT/i'iACK Control Z.O. Ctrl. . Clock Control Timer Enable the timer can be halted and read. (2) External Clock x o 00 or 1 X changed External Clock In this configuration the timer generates an interrupt after 7 I 6 I5 4 3 2 I 1 0 a programmed time period has expired. The TOUT pin is connected to the system's interrupt request circuitry and the TIACK pin may be an interrupt acknowledge input to the TOUT/TIACK Control Z.O. Ctrl. . Clock Control Timer Enable timer. The TIN pin may be used as a clock input. Run .., o o X o X changed Timer Control J This configuration allows measurement (counting) of the number of input pulses occurring in an interval in which the $FFFFFF counter is enabled. The TIN input pin provides the input pUlses. 24·Bit Generally the TOUT and TIACK pins are not used. Counter This configuration is identical to the Elapsed Time Measure- ment/System Clock configuration except that the TIN pin is $000000 used to provide the input frequency. It can be connected to a simple oscillator, and the same methods could be used. Alter- ZDS r---l nately, it could be gated off and on externally and the number ===========~I L- of cycles occurring while in the run state can be counted. TOUT ~ However, minimum pulse width high and low specifications must be met. (Figure 23) TIACK U Figure 22 Interrupt After Timeout ~HITACHI 300 Hitachi Amenca Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68230 Run • BUS INTERFACE CONNECTION Timer Enable J The PI/T has an asynchronous bus interface, primarily designed for use with the HD68000 microprocessor. With care, however, it can be connected to synchronous micro- $FFFFFF processor buses. This section completely describes the PI/T's Elapsed 24-bl. Time bus interface, and is intended for the asynchronous bus designer counter unless otherwise mentioned_ In an asynchronous system the PI/T CLK may operate at a $000000 significantly different frequency, either higher or lower, than the bus master and other system components, as long as all Figure 23 Elapsed Time Measurement bus specifications are met. The HD68230 CLK pin has the same specifications as the HD68000 CLK, and must not be • Device Watchdog gated off at any time. The follow!.!!g signals generate n~al read and write cycles Device Watching to the PI/T: CS (Chip Select), R/W (Read/Write)_ RSI-RS5 (five Register Select bits), 0 0 -0, (the 8-bit bidirectional data 7 I I 6 5 4 3 2 I 1 0 bus), and DTACK (Data Transfer Acknowledge). To generate TOUT/TIACK Control Z.O. Ctrl. . Clock Control Timer Enable interrupt acknowledge cycles PC s /PIACK or PC, /TIACK is used instead of CS, and the Register Select pins are ignored_ No combination of the folloWing pins may be asserted simul- x o o changed taneously: CS, PlACK, or TIACK. • Read Cycles Via Chip Select This configuration provides the watchdog function needed This category includes all register reads, ~ept port or in many systems_ The TIN pin is the timer input whose period timer interrupt acknowledge cycles. When CS is asserted, at the high (1) level is to be checked. Once allowed by the the Register Select and R/W inputs are latched internally. processor, the TIN input pin controls the run/halt mode. The They must meet small setup and hold time requirements with TOUT pin is connected to external circuitry requiring notifi- respect to the asserted edge of CS. (See the AC ELECTRICAL cation when the TIN pin has been asserted longer than the CBARACTERISTICS table_) The PI/T is not protected against programmed time. The TIACK pin (interrupt acknowledge) aborted (shortened) bus cycles generated by an Address Error is only needed if the TOUT pin is connected to interrupt or Bus Error exception in which it is addressed. circuitry. Certain operations triggered by normal read (or write) bus The processor loads the Counter Preload Register and Timer cycles are not complete within the time allotted to the bus Control Register, and then enables the timer. When the TIN cycle. On example is transfers to/from the double-buffered input is asserted (1, high) the timer transfers the contents of latches that occur as a result of the bus cycle. If the bus the Counter Preload Register to the counter and begins count- master's CLK is significantly faster than the PI/T's the possi- ing. If the TIN input is negated before Zero Detect is reached, bility exists that, following the bus cycle, CS can be negated the TOUT output and the ZDS status bit remain negated. If then re-asserted before completion of these internal operations. Zero Detect is reached while the TIN input is still asserted the In this situation the PI/T does not recognize the re-assertion of ZDS status bit is set and the TOUT output is asserted. (The CS until these operations are complete_ Only at that time counter rolls over and keeps on counting.) does it b~in the internal sequencing necessary to react to the In either case, when the TIN input is negated the ZDS asserted CS. Since CS also controls the DTArK response, this status bit is 0, the TOUT output is negated, the counting "bus cycle recovery time" can be related to the CLK edge on stops, and the prescaler is forced to all Is. (Figure 24) which IITACK is asserted for that cycle. The PI/T will recog- nize the subsequent assertion of CS three (3) CLK periods after Timer Enable J the CLK edge on which DTACK was previously asserted. The Register Select and R/W inputs pass through an internal latch that is transparent when the PI/T can recognize a new CS pulse (see above paragraph). Since the internal data bus of the TIN PI/T is continuously enabled for read transfers, the read access time (to the data bus buffers) begins when the Register Selects $FFFFFF are stabilized internally. Also, when the PI/T is ready to begh, a new bus cycle, the assertion of CS enables the data bus buffers 24-81. within a short propagation delay_This does not contribute to Counter the overall read access time unless CS is asserted Significantly after the Register Select and R/W inputs are stabilized (as may $000000 zos IL. occur with synchronous bus microprocessors). . In addition to Chip Select's previously mentioned duties, it TOUT =============:\L.J,--- controls the assertion of DTACK and latching of read data at the data bus interface. Except for controlling input latches and enabl~ the data bus buffers, all of these functions occur Figure 24 Device Watchdog only after CS has been recognized internally and synchronized with the internal clock. Chip Select is recognized on the falling edge of the CLK if the setup time is met, DTACK is asserted ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 301 HD68230-------------------------------------------------------------- (low) on the next falling edge of the CLK. Read data is latched The system designer must take care that DTACK is negated at the PIIT's data bus interface at the same time DTACK is and three-stated quickly enough after each bus cycle to avoid asserted. It is stable as long as Chip Select remains asserted interference with the next one. With the HD68000 this neces- independent of other external conditions. sitates a relatively fast external path from the data strobe to From the above discussion it is clear that if the CS setup CS going negated. time prior to the falling edge of the CLK is met, the PllT can consistently respond to a new read or write bus cycle every • Write Cycles four (4) CLK cycles. This fact is especially useful in deSigting . In many ways write cycles are similar to normal read cycles the PI/T's clock in synchronous bus systems not using DTA K. (see above). On write cycles, data at the Do -D, pins must (An extra CLK period is required in interrupt acknowledge me~ the same setup specifications as the Register Select and cycles, see Read Cycles via Interrupt Acknowledge.) RIW lines. Like these signals, write data is latched on the In asynchronous bus systems in which the PI/T's CLK asserted edge of CS, and must meet small setup and hold time differs from that of the bus master, generally there is no way to requirements with respect to that edge. The same bus cycle guarantee that the CS setup time with respect to the PIIT recovery conditions exist as for normal read cycles. No other CLK is met. Thus, the only way to determine that the PIIT differences exist. recognized the assertion of CS is to wait for the assertion of DTACK. In this situation, all latched bus inputs to the PIIT • Read Cycles Via Interrupt Acknowledge must be held stable until DTACK is asserted. These include Special internal operations take place on PIIT interrupt Register Select, R/W, and write data inputs (see below). acknowledge cycles. The Port Interrupt Vector Register or System specifications impose a maximum delay from the the Timer Interrupt Vector Register aririmP1Citly addressed tr¥ling (negated) edge of Chip Select to the negated edge of by the assertion of PC 6 /PIArK or PC, lAC . respectively. D ACK. As system speeds increase this becomes more dif· The signals are first synchronized with the falling edge of the ficult to meet with a simple pullup resistor tied to the DTACK CLK. One clock period after they are recognized the data bus line. Therefore, the PI/T provides an internal active pullup buffers are enabled and the vector is driven onto the bus. device to reduce the rise time, and a level-sensitive circuit DT ACK is asserted after another clock period to allow the that later turns this device off. DTACK is negated asynchro- vector some setup time prior to DTACK.DTACK is negated, nously as fast as possible following the rising edge of Chip then three-stated as with normal read or write cycle, when Select, then three-stated to avoid interference with the next PlACK or TIACK is negated. bus cycle. ~HITACHI 302 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 _______________________________________________________________ HD68230 Do 015 DATA & ADDRESS -.- --v BUS INTERFACE Aa-A23 p Q I~ I~ ~ 1~18 «/< 00-0, ~ 0" OM 'a, AT-A. '" 00-0, RS1-RS5 - PA•. , -~ ..!.J. A.-A23 - AT-A, v ~ PB •• , CS ' -- I- - ADDRESS AS I-- ~ DECODER r--- CS H068230 ID" I- PI/T UDS I-- ~ I--- Hl HD68450 R;W I-- R/W I--- H2 DMAC DTACK I- FCo-FC, 3 I-- 1---1H3 REDo-REO, F=3 DMAREQ (PC.) 1---,H4 ,-'"'" ~'"'" IRO ::J lACK ::0: ~0 ::J a: +5V PlACK (PC.) PC2 I--- (TIN) $I BECo-BEC, 0 fiACK (PC,) I--- PC, f-~ f ~AT-A, 11l DTC i---- PC. DONE - i5'TACK PiliO TOUT I--HITACHI 308 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 • PIN ARRANGEMENT eHD63450, HD63450P, HD63450PS eHD63450Y 'Fi'ETIJll DDIR R'EO'2: 2 0 DBEN ROQ, 3 HIBYTE REQo 4 1 UAS I'CG 5 OWN PITi 6 jffi pel, 7 BG PClo 8 BGACK 9 DTe t DTACK 11 A, A, 9 Vss As /00 7 A9 /Dl (Bottom View) AlO/Dz Pm No Function Pm No Function Pm No Function Pin No Function 4 All/OJ A12/D4 A13/D5 NIC A13/05 r-;,-- r- 18 Pelt" DiACK - 35 36 A19/01l All/D9 ± 52 53 == iJD< r·_~LD7 ~~- AlI/03 20 54 V" 2 A14/Ds 4 AIO/D2 21 AS AJ2/D4 55 V" 41 AIS/D7 AlB/OS 3 A17/Ds ----.- 5 ., As/Do 22 23 RIW NIC ~- r - - - - " A9/DJ V" 56 57 DONE IR() b==~ A, 41 V" 58 ACK2 = 38 AlB/OlD A, 25 - eLK 42 A, 59 BEC2 37 AI9/D" ~~ I A, 43 A, 60 BECo A2o/D12 10 35 A2l/013 NIC " SG 61 FCo 3 AZ2/D14 11 12 '"' lJAS 28 29 ACKo BECi" 45 46 OWN HIBYTE 62 63 A2dOn AlB/OW -._ _ _ _ _ _....r- 3 A23/D1s 13 I5mf 30 FC, " = 64 "-~~ (Top View) ~ 16 14 17 REQi = REQO "PeG ~CI 32 33 34 A2l/Dls An/D14 A20/0l2 48 49 50 51 rPcGREQl fiNO NIC 65 66 67 68 A14/D6 A, "'" AO \ .-- LOS \:lJ ~ " t= ® DOIA ,.-- r'" H ~l- ~ DBEN II ~ 3 1< ..r---' i!j; r- CV - ... ®- --: J!] Data In ~ ~ ~ DTACK I " " f lID- 4-J * Data are latched at the end of clock 25 Figure 3 AC Electrical Waveforms-MPU Read/Write CLK REQ ~l~ (Failing ~e:;..:;:p"::.:k~-"~PI-fo==....=+1:_----. . .,---..,,,.-------f_:_~I----+---- l! BGACK3~~~~~ BUS Cycle MPU Cycle ® DMA Cycle MPU Cycle CLK *REQ" IS picked up at the rlsmg edge of elK In cycle steal and burst modes. Figure 4 AC Electrical Waveforms-Bus Arbitration @HITACHI 314 Hitachi Amenca Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD63450 34 78 45 910 CLKF\J'~~~~rur\ r ' \-j.~~~rLf\- BGACK FCo-FC Read Cycle }. Write Cycle ,)I f----,rnt ;r~1t---- '----+---j-Jlr---n !¢ 1LErrr----- DTC ACKo ACK *DTACK IS picked up at the rlsmg edge of eLK This IS different from HD68000 * *This timing IS not related to DMA Read/Write (Single Cycle) sequence Figure 5 AC Electrical Waveforms-DMA Read/Write (Single Cycle) ~HITACHI HitachI America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 315 HD63450-------------------------------------------------------------- 4 7' 8 9 10 ClK FV\...r\.Jrvv-'~r-v-'~~'r-I'J\. h Read Cycle X WrIte Cycle IX ..!!. X Data In -111------ )----- \-! - -@ ~ ~ r-- K t"\ ~ ® I-- ~ I-- h r-- 1\ t- h R/W [h OWN ,- !t @r- ~ ""' @ -@ \ @-l~ f.--!...-l I I \ I DTC L-.J LJ' AC K \ - @f- ~ I ~ .t-! @ " " J • Data are latched at the end of clock 7 ThiS timing IS the same as HD68000 • ",ThiS tlmlOg IS not related to DMA Read/Wnte (Dual Cycle) sequence ThiS timing IS only applicable when 1/8 clock pulse mode IS selected * '" '" ThiS tlmmg IS applicable when a bus exception occurs Figure 6 AC Electncal Waveforms-DMA Read/Wnte (Dual Cycle) $ HITACHI 316 Hitachi America Ltd . • '2210 O'Toole Avenue· San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD63450 a 9 10 1 4 5 6 8 9 10 11 12 13 14 eLK A1-A7 XDo-XD15 >------- ACK " JJ." q-n_ \\ ,,-- DTC u.j-u U ~ ClK.flIln ruuuuuuu- MPU cycle-+-Idle--+--DMA cycle---01-- MPU cycle-+-DMA cycle-- or Idle . Figure 17 Cycle Steal Mode Request Timing ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 329 HD63450---------------------------------------------------------------- CLKIllL REO'LJ" BR--, BG----~"'\~------J BGACK BUS --~ ) CyC~~~------J ~--J{~"~=;rjr_+---~==llJT--------~~~~~ DTC--- _________ QU U- DONE _______~~~~~~::~~~~~~~::::~~~~~ CLKI1Jl MPU cycle --i--Idle --+0--------- Figure 18 Cycle Steal Bus Hold Mode Request Timing in the previous paragraphs. In the cycle steal request mode, when a data register within the device must he addressed. Because the there are two or more transfers between the DMAC and the address bus is used to address the peripheral, the data cannot be peripheral device during one operand transfer, the request is not directly transferred to/from the memory because the memory recognized until the last transfer between the DMAC and the 1/ also requires addressing. Instead, the data is transferred from the o device starts. source to the DMAC and held in an internal DMAC holding register. A second bus transfer between the DMAC and the • Mixed Request Generation destination is then required to complete the operation. Because A single channel can mix two request generation methods. By both the source and destination of the transfer are explicitey programming the REQG bits of the OCR to "11", when the addressed, this protocol is called dual addressing. channel is started, the DMAC auto·requests the first transfer. Subsequent requests are then generated externally by the device. (1) HD68000 Compatible Device Transfers The ACK and PCL lines perform their normal functions in this In this operation, when a request is received, the bus is obtained operation. and the transfer is completed using the protocol as shown in Figures 19 and 20. Figures 21 through 24 show the transfer .DATA TRANSFERS timings. Figures 21 and 24 show the operation when the memory All DMAC data transfers are assumed to be between memory and is the source and the peripheral device is the destination. Figures the peripheral device. The word "memory" means a 16-bit 22 and 23 show the transfer in the opposite direction. The HD68000 bus compatible device. By programming the DCR, the peripheral device is a 16·bit device in Figures 21 and 22, and a 8· characteristics of the peripheral device may be assigned. Each bit device in Figures 23 and 24. channel can communicate using any of the following protocols. (2) HD6800 Compatible DeVice Transfers When a channel is programmed to perform HD6800 compatible DTYP Device Type transfers, the PCL line for that channel is defined as an Enable 00 HD68000 compatible device } D I Add . clock input. The DMAC performs data transfers between itself 01 HD6800 compatible device ua ressmg and the peripheral device using the HD6800 bus protocol, with the 10 Device with ACK } . . ACK output providing the VMA (valid memory address) signal. 11 Device with ACK and READY Smgle Addressmg Figure 25 illustrates this protocol. Refer to Figure 26 for the read cycle timing and Figure 27 for the write cycle timing. In Figure • Dual Addressing 26, the DMAC latches the data at the falling edge of clock 19, so a HD68000 and HD6800 compatible devices may be expliclty ad- latch to hold the data is necessary as shown in the figure. dressed. This means that before the peripheral transfers data, @>HITACHI 330 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 DMAC HD68000 Device Address Device 1) Set R/W to Read 2) Place Address on AI ~A23 3) Place Function Codes on FCo~FC2 4) Assert Address Strobe (AS) 5) Assert Upper Data Strobe (UDS) and Lower Data Strobe (LDS) 6) Assert Acknowledge (AQ<) ~I--------------------------------------------------------------~ prese~t Data 1) Decode address 2) Place Data on Do~D15 3) Assert Data Transfer r Acknowledg (DTACK) t AcqUire Data 1) Load Data Into Holding Reg- Ister 2) Assert Device Transfer Com- plete (DTC) 3) Negate UDS and LDS 4) Negate AS, ~LC_K_a_n_d_D_T_C____________________________________________________, + Cycle Terminate , 1) Remove Data from Do~D15 2) Negate DT ACK I Start Next Cycle Figure 19 Word Read Cycle Flowchart HD68000 Type DeVice DMAC HD68000 Device Address DeVice 1) Place Address on Al ~A23 2) Place Function Codes on FCo~FC2 3) Assert Address Strobe (AS) 4) Set R/W to write 5) Place Data on Do~D15 6) Assert Acknowledge (ACK) 7) Assert Upper Data Strobe (UDS) and Lower Data Strobe (LDS) I + Accept Data 1) Decode Address 2) Store Data on Do~D15 3) Assert Data Transfer Acknowledge (DTACK) I Terminate Output Transfer 1) Assert Device Transfer Com- plete (D'f'C) 2) Negate UDS and LDS 3) Negate AS, ACK and DTC 4) Remove Data from Do~D15 5) Set R/W to Read ~I--------------------------------------------------------------~+ ~rmlnate Cylce 1) Negate D'I'I)CK f Start Next Cycle Figure 20 Word Write Cycle Flowchart HD68000 Type DeVice ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 331 HD63450---------------------------------------------------------------- ClK Data Out As/Do -A23/D15 X!?O-X015 (External System Data Bus) UAS AS UDS lDS ~ __~%_------~m~---~ m__l1I\ll .... R/W \~"~ __________war___ OWN DDIR \\\ OJ DBEN \\\ m \\\ HIBYTE DTACK ~ DTC ACK DONE ClK Write One Word To DeVice The Last Transfer Figure 21 Dual Addressmg Mode, Read/Write Cycle, Destmatlon= 16-blt DeVice, Word Operand ClK 1 2 3 4 -:::::::::JJ.~/~I;;;;;;;;;;;;;;;;;;~;;;;;;;;;;;;~JJWIl~~~~~~~~ FCo--FC, A, -A, ::=xlUnL..l_____-lJJIU./L. I_______..JU~ Address Out Data In Address Out rrr_....;D;.;;a",ta;..o;;;u;;.;t_...., ~~~V~~m~~~~U========~~ As/Do-A23/D15 XDo-XD15 (External System Data Bus) ~ lIIull UAS ~ ULJJJ AS UDS ~ Q1 \ll lDS ~ £0 \ll R/W \U OWN DDIR ~ 117 DBEN HIBYTE \S\ ill m ur DTACK ~ llJ \i\ ur ~ DTC 'UL.JJJ ACK DONE ClK 1 2 3 4 5 6 7 8 9 10 11 121314151617181920 2122 Read One Word _.---1--- From DeVice - - t - - - Write One Word To Memory The Last Transfer Figure 22 Dual AddreSSing Mode, Read/Write Cycle, Source= 16·blt Device, Word Operand ~HITACHI 332 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 Address Out Data In Address Out Data In Address Out Data Out ~ 'fJ1l Mll 'I/lLJ/// WI (External System Data Bus) =:J1l>---QlIll l1lr--'JJ.lll UAS ID-lIJ L1I1 AS UDS lTl lDS m m m m ",-- R/W ~\ IIT"'& fJJ OWN 1iDTR -, lTl DBEN HI8YTE \\\ 1lI m IIT"'& or DTACK .m U\ ITJ \\\ \\\ DTC ACK 'ULJJJ ClK 12345678910111213141516171819202122232425262728293031 --+--Read One Word Wrrte One Byte I Write One Byte I From Memory To DeVice To DeVice Figure 24 Dual Addressing Mode, Read/Write Cycle, Destlnatlon=8-bIt Device, Word Operand ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 333 HD63450 DMAC (MASTER) HD6800 Device Initiate Cycle 1) Start a normal Read or Wnte Cycle 2) Momtor Enable until It IS low 3) Assert Acknowledge (ACK) ~I----------------------------------------------~t Transfer Data 1) Walt until Enable IS active 2) Transfer the Data I TermmJte Cycle 1) The master walts until Enable goes low. (On a Read cycle the data IS latched as clock goes low when 0'I'l:: is asserted.) 2) Assert Device Transfer Com· plete (0'I'l::) 3) Negate AS, DDS, LOS, ACK and DTC l Start Next Cycle Figure 25 HD6S00 Cycle Flowchart ClK Address Out XDo-XD15 (External System Data Bus) UAS AS uos lOS R/N OWN OOIR ---n\L:\"____________#rr-!!..... __ OBEN ....nr-lI 1/ HIBYTE --~==============================~------- OTACK ~m-------------------------- ACK OTC Q. rr- U-- PCllE Clockl --.J I I I r ClK nJ1IUUUUUl.IUU1u1J JL.fUUUUL 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ---t- Sync on E Clock -t- Read One Byte From 6800 DeVIce -1-1- - - - Figure 26 Dual Addressing Mode, HD6S00 Compatible Device, Read Cycle ~HITACHI 334 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 I I, I" ClK As/Do -Az3/Dt5 XDo-XD16 (External System Data Bus) Data Out i I! UAS AS iJi55 lOS u---n~ ______________________ ~,__ R/W OWN " U-- " OOIR OBEN HIBYTE OTACK ACK OTC \=======;r~"~:::::::::::::::::]"b:=================;~u--­ : \lD u...u-- PClIE Clock) ---~_L"~"..""..".......lr-----1_====.;----:'_L""..",,..,,=_=,.. ClK ------+--8 Sync 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 on E Clock --;--Wnte One Byte To 6800 Device - ; - - - Figure 27 Dual Addressing Mode, HD6S00 Compatible Device, Write Cycle (3) An Example of a Dual Address Transfer (device) is done according to the 3rd row of Table 2. Table 3 This seetion contains an example of a dual address transfer using shows the data transfer sequence. Table 2 of Dual-Address Sequencing. The transfer mode of this example is the following. The port size in Table 2 is not related to the DPS bit of the DCR. 1. Device Port size=8 bits The DPS defines the port size of the device only. The DPS is set 2. Operand size=Long Word (32 bits) to "0" in this example as the device port size is 8 bits. 3. Memory to Device Transfer 4. Source (Memory) Counts up, Destination (Device) Counts The memory map of this example is shown in Table 4. The Down operand consists of BYTE A through BYTE D in memory of Table 4. Prior to the transfer, MAR and DAR are set to 00000012 In this mode, a data transfer from the source (memory) is done and 00000108 respectively. The operand is transferred to the 8-bit according to the 6th row of Table 2, since the port size of the port device according to the order of transfer numher in Table 3. memory is always 16 bits. A data transfer to the destination Table 2 Dual-Address Sequencing Operand Address Increment Row No. Port Size Operand Size Operand Part Addresses Part Size + = - 1 S BYTE BYTE A +2 0 -2 2 S WORD BYTE A, A+2 +4 0 -4 @ BYTE A, A+2, A+4, A+6 -S S LONG +S 0 '4 '3 '5 '7 ·S "10 4 PACK (BYTE -P 16 BYTE A +P 0 or WORD)" 5 16 WORD WORD A +2 0 -2 @ WORD A, A+2 +4 -4 16 LONG 0 '2 '1 '6 '9 *Numbers In Table 2 correspond to ones 10 Tables 3 and 4 • oRefer to Address Sequencing on Operand Part Size and PACK ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (40S) 435-S300 335 HD63450-------------------------------------------------------------- Table 3 An Example of a Data Transfer for One Operand SRC: Source (Memory), DST Destination (DeVice), HR: Holding Register (DMAC Internal Reg.) Transfer Address Data Size DMAC Registers after Transfer Data Transfer Comment No. Output on Bus MAR DAR 00000012 00000108 0 - - - Initial Register Setting 00000012 WORD 00000014 00000108 Higher order 16 bits of opera nd IS 1 SRC--HR '1 '2 fetched. 00000108 BYTE 00000014 0000010A 2 HR --DST '3 '4 Higher order 16 bits of operand IS 0000010A BYTE 00000014 0000010C transferred. 3 HR --DST '5 '4 '10 00000014 WORD 00000016 0000010C 4 SRC--HR Lower order 16 bits of operand IS fetched. '6 '2 '9 0000010C BYTE 00000016 0000010E 5 HR --DST '7 '4 Lower order 16 bits of opera nd IS 0000010E BYTE 00000016 00000110 tra nsferred. 6 HR --DST '8 '4 '10 MAR, DAR are pOinting the next operand 6' - - - 00000016 00000110 addresses when the transfer is complete. Mode Port 5Ize=8, operand slze=Long Word, Memory to DevIce. Source (Memory) Counts Up. Destination (DeVice) Counts Down Table 4 Memory Map for the Example of the Data Transfer ADDRESS ADDRESS ADDRESS 00000010 00000011 00000106 00000107 00000012 BYTE A BYTE B 00000013 00000108 BYTE A 00000109 '1 '1 '3 00000014 BYTE C BYTE 0 00000015 0000010A BYTE B 0000010B '6 '6 '5 00000016 00000017 0000010C BYTE C 00000100 '7 0000010E BYTE 0 0000010F Source (Memory) '8 00000110 00000111 Destination (DeVice) • Single Addressing Mode ACT{ to inform the I/O device that the transfer request has been Implicitly addressed devices are peripheral devices selected not acknowledged. When the DMAC accepts D'l'A:CK from memory, by address but by ACK They do not require addressing of data it asserts J:>'IT: and informs the peripheral device of the transfer register during data transfer. Transfers between memory and termination. . these devices are controlled by the request/acknowledge pro- tocol. Such peripherals require only one bus cycle to transfer Figures 30 and 31 show the transfer timings of the device with data, and the DMAC internal holding register is not used. ACT{: the port size for the former figure is 8-bit and the latter is Because only the memory is addre..sed during a data transfer and 16-bit respectiveiy. a transfer is done in only one bus cycle, this protocol is called single-addressing. When the transfer is from memory to a device, data is valid when DTACK is asserted and remains valid until the data strobes are (1) DeVice With ACl( Transfers negated. The assertion of Il'l'C from the DMAC may be used to Under this protocol, the communication between peripheral latch the data as data strobes are not negated half clock period device and the DMAC is performed with a two signal REQ'/ACK after the assertion of DTC: handshake. When a request is generated using the request method programmed in the DMAC's internal control registers, When the transfer is from device to memory, data must be valid on the DMAC obtains the bus and responds with ACK. The DMAC the HD68000 bus before the DMAC asserts the data asserts all the bus control signals required for the memory strobes. The data strobes are asserted 'One clock period after access_ Refer to Figure 28 for the flowchart of the data transfer ACK is asserted. When the DMAC obtains the bus and starts a from memory to the device with ACK. Figure 29 shows the DMA cycle, the three-state of the OWN line is cancelled a half flowchart of the data transfer from the device with ACK' to clock earlier than other control lines. If the DMA Cycle ter- memory. Receiving the transfer request, the DMAC obtains the minates and the DMAC relinquishes the bus, all the control bus. Then the DMAC outputs the memory address and asserts signals get three-stated a half clock before OWN. The m:mr and .HITACHI 336 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 DBEN lines are not asserted in the single addressing mode. Four- mode, As/Do-A"/D,, are outputted for only one and a half clock clock cycle is the smallest bus cycle for the transfer from from the beginning of the DMA bus cycle. Therefore, As/Do memory to device. Five-clock cycle is the smallest bus cycle for through A"/D,, need to be latched externally just like in the dual the transfer from device to memory. If the device port size is addressing mode. 8bits, either LDS or UDS is asserted. In the single addressing DMAC Memory ACK Device Address Memory 1) Set R/W to Read 2) Place Address on AI-A23 3) Place Function Codes on FCo-FC2 4) Assert Address Strobe (AS) 5) Assert Upper Data Strobe (UDS) and Lower Data Strobe (LDS) 6) Assert Acknowle,...d_g_e_(_A_C_K_)_ _ _ _ _ _ _ _ _ _---, prese~t Data 1) Decode Address 2) Place Data on Do-DI5 3) Assert Data Transfer Acknowledge (DTACK) ACgUlrt Data 1) Load Data I f Terminate Transfer 1) Assert DeVice Transfer Complete (DTC) 2) Negate UDS and LDS 3) Negate AS, ACK and DTC ~I----------------------~ Termlnlte Cycle 1) Negate DT ACK I I Start Next Cycle Figure 28 Word from Memory to DeVice With ACK DMAC Memory ACK Device Address Memory 1) Place Address on AI-A23 2) Place Function Codes on FCo-FC2 3) Assert Address Strobe (AS) 4) Set R/W to Write 5) Assert Acknowledge (ACK) ...,----------------------------------------------------------~----. Pres est ~ata , Enable Data 1) Place Data ,on Do-DI5 1) Assert Upper Data Strobe (UDS) and Lower Data Strobe (LDS) IL-________________________--, AcceJt Data 1) Decode address 2) Load Data 3) Assert Data Transfer Acknowledge (DTACK) I t Terminate Transfer 1) Assert DeVice Transfer Complete (om 2) Negate U DS and LDS 3) Negate AS, ACf.. K_a_n_d_D_T_C___________• t Terminate Cycle 1) Negate DTACK I Start ~ext Cycl~ Figure 29 Word from DeVice With ACK to Memory ~HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 337 HD63450---------------------------------------------------------------- ClK 10 11 12 13 BGACK , r'--- FCc-Fez QJ/ JIll Al-A7 QJ/ JIll As/Do-A23/D1s ---fJJI::::::::) ~I XDo-XD,s um ImllQWHm UAS ----~ ~ AS UOS -=::=:rr-m~~====m---m~~~~L:==~m-'~-- \\\ ",.--.----- lDS R/W -----""\\\ ====:J--~====~--~\~" OJ _________war~--- OWN OOIR - . ar--- OBEN HIBYTE \\\ ar--- DTACK \\\ Dmmm m "mmoo DTC \1L.IJJ UL..../JT' ACKo ACK, __________~u=\========,~moc::::-------===~------- ClK 1 2 3 4 5 6 7 8 9 10111213141516171819202122 23 2425 -Idle --t-- Memory to DeVice-+- DeVice to Memory I Idle-- Channel 0 Channell Figure 30 Single Addressing Mode with 8·Bit DeVices as Source and Destination (Read,Wrlte Cycles) ClK 1234 10111213 FCo-FC, ::JIll JIll A,-A, ::=un vII Aa/Do-A23/D15 -=-YlICJ cm:::::::::Jl~;:I~Ii=====::;;-':' XDo-XD" ::::::::JJJl}-- UAS ~ \lLJU ~ AS ~ ~ or- UDS JJ U~ or- lDS ~ 0.1 R/W ~ ill (]J OWN low DDIR High DBEN High HIBYTE High m ro- DTACK --..lIf-m OJ \I\ ro- PCl (READY) m lTl m ur DTC \lLJU ~ ACKo \i~ lTl ACK, \\\ or ClK Figure 36 Single Addressing Mode With 8·blt DeVice as Source and Destination With PCl Used as a READY Input (Read·Wrote Cycles) ~HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 341 HD63450---------------------------------------------------------------- Table 5 Operation Combinations Operand Addressing Device Type Port REQG bits of OCR Byte Word Long Word Dual 68000, 6800 8 0 0 0 00, 01, 10, 11 Dual 68000, 6800 16 0 0 0 00,01 Dual 68000, 6800 16 x 0 0 10,11 Single with ACK or 8 0 x X 00, 01, 10, 11 ACK & Jm\1)'( 16 X 0 X 00, 01, 10, 11 a : supported X : not supported REQG I 00: 01: 10: 11: Auto request at a limited rate Auto request at a maximum rate "'RECJ line requests the operand transfer First operand is auto requested, and subsequent operands are externally requested. • Address Sequencing part is the minimum of the port size and the operand size . The sequence of addresses generated depends upon the port size, The number of the operand part is the operand size divided whether the addresses are to count up, down or not change and by the port size. whether the transfer is executed in the single addressing mode or the dual addressing mode. The memory address count method In the dual addressing mode, memory is regarded as a and the peripheral device address count method is programmed device whose port size is 16 bits and the operand size is a using the Memory address count (MAC) bit and the Device byte or a word. When the operand is transferred to the address count (DAC) bit in the Sequence Control Register (SCR). memory from the I/O device whose port size is 8 bits and the operand size is byte, the DMAC reads 2-byte operand (i) Single addressing mode one byte at a time from the I/O device and writes 2 bytes In the single addressing mode, memory address sequencing at the same time to the memory, or reads one byte from is shown in Table 6. If the operand size is byte, the memory the I/O device and writes one byte to the memory. Thus, address increment is one (1). If the operand size is word, when the port size is 8 bits and the operand size is byte, the memory address increment is two (2). If the memory two-operand transfer which is performed at the same time address register does not count, the memory address is is called PACK. Utilizing the PACK, the DMAC may unchanged after the transfer. improve the DMA bus efficiency. However, packing is not performed if the address does not count. When the port (ii) Dual addressing mode size is 8 bits and the operand size is byte (port size: 8 bits, In the dual addressing mode, the operand size need not without PACK) with the DMAC in the dual addressing match the port size. Thus the transfer of an operand may mode, the DMAC repeats the following cycles: require several DMA bus cycles. Each DMA bus cycle, CD READ BYTE (reads data from the I/O device or the between memory and DMAC and between DMAC and the memory) device, is called the operand part and transfers a portion CZI WRITE BYTE (writes data to the I/O device or the or all of the operand. The addresses of the operand parts memory) are in a linear increasing sequence. The step between the Table 7 shows the dual addressing sequencing addresses of the operand is two. The size of the operand Table 6 Single Address Sequencing Memory Address Increment Port Size Operand Size + (increment) =(unchanged) -(decrement) 8 Byte +1 0 -1 16 Word -2 +2 ° Table 7 Dual Address Sequencing Operand Part Address Increment Port Size Operand Size Part Size Address + = - 8 Byte Byte A -2 8 8 Word Long Byte Byte A, A+2 A, A+2, A+4, A+6 +2 +4 °° -4 -8 16 16 Byte Word Pack Word A A +8 +P +2 0 °° -P -2 16 Long Word A, A+2 -4 P -1 If packing IS not done =2 If packing is done Pack;;;; byte If packing IS not done =word If packing IS done +4 ° ~HITACHI 342 Hitachi America ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 .INITIATION AND CONTROL OF CHANNEL OPERATION e Channel Status Register (CSR) The channel status register contains the status of the channel at e Operation Initiation the channel operation termination. The register is cleared by To initiate the operation of a channel, the STR bit of the CCR is writing a one (1) into each bit of the register to be cleared. set to start the operation. Setting the STR bit causes the immediate activation of the channel, the channel will be ready to COC accept requests immediately. The channel initiates the operation The channel operation complete (COC) bit is set if the channel by resetting the STR bit and setting the channel active bit in the operation has completed. The COC bit must be cleared in order CSR. Any pending requests are cleared, and the channel is then to start another channel operation. The COC bit is cleared only ready to receive requests for the new operation. If the channel is by writing a one to this bit or resetting the DMAC. configured for an illegal operation, the configuration error is signaled, and no channel operation is run. The illegal operations PCS include the selection of any of the options marked "(undefined, The peripheral status (PCS) bit reflects the level of the PCL line reserved)". If the MTC is set to zero in any mode other than the regardless of its programmed function. If PCL is at "High" level, chaining mode, or BTC is set to zero in the array chaining mode, the PCS bit reads as one. If J5L1.:' is at "Low" level, the PCS bit then the count error is signaled and the channel is not activated. reads as zero. The PCS bit is unaffected by writing to the CSR. The channel cannot be started if any of the ACT, COC, BTC, NDT or ERR bit is set in the CSR. In this case, the channel PCT signals the operation timing error. The peripheral control transition (PCT) bit is set, if a falling edge transition has occurred on the PCL line. (The PCL line must eOperation Continuation (Continue Mode) remain at "low" level for at least two clock cycles.) The PCT bit When the STR bit or the ACT bit in the CSR is set, setting the is cleared by writing a one to this bit or resetting the DMAC. CNT (Continue) bit in the CCR allows multiple blocks to be transferred as in the chaining modes. The CNT bit is set in order BTC to continue the current channel operation. To set the CNT bit, Block transfer complete (BTC) bit is set when the continue the initial address of the next block to be transferred, the (CNT) bit of CCR is set and the memory transfer counter (MTC) corresponding function code, and the number of words to be is exhausted. The BTC bit must be cleared before the another transferred must be previously set to the BAR, BFC and BTC. If continuation is attempted (namely, setting the CNT bit again), the CNT bit is set when either the STR or the ACT bit is not set, otherwise an operation timing error occurs. The BTC bit is the operation timing error is signaled. The configuration error is cleared by writing a one to this bit or resetting the DMAC. signaled when the CNT bit is set in the chaining modes. NOT eOperation Halting (Halt) Normal device termination (NDT) bit is set when the peripheral The CCR has a halt bit which allows suspension of the operation device terminates the channel operation by asserting the DONE of the channel. If this bit is set, a request may still be generated line while the peripheral device was being acknowledged. The and recognized, but the DMAC does not attempt to acquire the NDT bit is cleared by writing a one to this bit or resetting the bus or to make transfers for the halted channel. When this bit is DMAC. reset, the channel resumes operation and services any request that may have been received while the channel was halted. ERR However, in the burst request mode, the transfer request should Error (ERR) bit is set if any errors have been signaled, When the be kept asserted until the initiation of the first transfer after ERR bit is set, the code corresponding to the kind of the error clearing the halt bit. that occured is set in the CER. The ERR bit is clered by writing a one to this bit or resetting the DMAC. e Operation Abort by Software (Software Abort) Setting the software abort bit (SAB) in the CCR allows the ACT current operation of the channel to be aborted. In this case, the The active (ACT) bit is asserted after the STR bit has been set ERR bit and the COC bit in the CSR are set and the ACT bit is and the channel operation has started. This bit remains set until reset. The error code for the software abort is set in the CER. the channel operation is terminated. The ACT bit is unaffected The SAB bit i's designed to be reset if the ERR bit is reset. When by write operations. This bit is cleared by the termination of the the CCR is read, the SAB always reads as zero(O). channel or resetting the DMAC. .CHANNEL OPERATION TERMINATION DIT As part of the transfer of an operand, the DMAC decrements the Done input transition (DIT) bit is set if the DONE input is memory transfer counter(MTC). If the chaining mode is not used generated while the multiple block transfer mode with DONE is and the CNT bit is not set or the last block is transferred in the being set. The DIT bit is cleared by writing a one to this bit or chaining mode, the operation of the channel is complete when the resetting the DMAC. last operand transfer is completed and the MTC is zero. The DMAC notifies the peripheral device of the channel completion via the DONE output. However, in the continue mode, DONE is outputted at the termination of every data block transfer. When the channel operation has been completed, the ACT bit of the CSR is cleared, and the COC bit of the CSR is set. The occurrence of errors, such as the bus error, during the DMA bus cycle also terminates the channel operation. In this case, the ACT bit in the CSR is cleared, the ERR and the COC bits are set, and at the same time the code corresponding to the error that occurred is set in the CER. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 343 HD63450------------------------------------------------------------------- • Interrupts have interrupt requests, the determination of which channel The DMAC can signal the termination of the channel operation presents its interrupt vector is made using the same priority by generating an interrupt request. The interrupt request is scheme defined for the channel operations. generated by the following condition. (!) INT=1 The bus cycle in which the DMAC provides the interrupt vector and when receiving an lACK from the MPU is called the interrupt ~ COC=1 or BTC=1 or ERR=1 or NDT=1 or PCT=1 acknowledge cycle. The interrupt vector returned to the MPU (the PCL line is an interrupt input) comes from either the nomal or the error interrupt vector This may be represented as register. The norroal interrupt register is used unless the ERR bit IRQ-INT· (CDC + BTC+ERR+ NDT+PCT*) of CSR is set, in which case the error interrupt vector register is ('PCL line is programmed as an interrupt input.) used. The content of the interrupt vector register is placed on As/ Do-A"/D,, and DTACK is asserted to indicate that the vector is When the IRQ line is asserted, changing the INT bit from one to on the data bus. If a reset occurs, all interrupt vector registers are zero to one will cause the IRlJ output to change from "low" to set to (00001111)2, the value of the uninitialized interrupt vector "high" to "low" again. The IRlJ should be negated by clearing the of the HD68000 MPU. The timing of the interrupt acknowledge CDC, the BTC, the ERR, the NDT and the PCT bits. cycle is shown in Figure 36. The HD68000 MPU outputs the interrupt level into AI-A, and "1" into A,· A, during the interrupt If the DMAC receives lACK from the MPU during asserting the acknowledge cycle, but the HD63450 DMAC ignores these IRlJ, the DMAC provides an interrupt vector. If multiple channels signals. ClK 30 31 32 33 34 35 36 37 38 - ......Ull >-- \\\ 01 \\\ OOl II \\: 1/ \\\ 10 ----~~-=~~~========~\~--- ------~r~lli________~/~-- A ,6/D8 - A23/D,5 A8/Do--A,5/D7 --------~f~~ll~n;;::::::~):--- XDo-XD,5 (External System Data Bus) ------J1H.fmll II>-- - D~CK ------------~:-----~--------Dnr'---- ClK LSl...JlJ1 1 2 3 4 5 30 31 32 33 34 35 36 37 38 Figure 37 MPU lACK Cycle to DMAC • Multiple Data Block Transfer Operation Array Chaining When the memory transfer counter (MTC) is exhausted, the This type of chaining uses an array in memory consisting of channel operation still continues if the channel is set to the array memory addresses and transfer counts. Each entry in the array is chaining mode or the linked array chaining mode, and the chain six bytes long and, consists of four bytes of address followed by is not exhausted. The channel operation also continues if the two bytes of transfer count. The beginning address of this array continue bit (CNT) of the CCR is set. The DMAC provides the is in the base address register, and the number of entries in the initialization of the memory address register and the memory array is in the base transfer counter. Before starting any block transfer counter in these cases so that the DMAC can transfer the transfers, the DMAC fetches the entry currently pointed to by the multiple blocks. base address register. The address information is placed in the memory address register, and the count information is placed in Continued Operation the memory transfer counter. As each chaining entry is fetched, The continued operation is described in the Initiation and the the base transfer counter is decremented by one. After the Control of the Channel Operation section. chaining entry is fetched, the base address register is incremented ~HITACHI 344 Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD63450 memory Bit 15 -- Bit 0 top address of the table memory address A(H) memory address A(l) transfer count A memory address B(H) Array table - memory address B(l) transfer count B memory address C(H) memory address C(l) transfer count C memory address C .... "" -- block C transfer ) count C H063450 OMAC H068000 memory MPU MAR * address A .... transfer DAR peripheral device address block A } { count A ~ BAR top address of the table MTC~-nn~um~~er~*~o~~o~c~s~-i I BTCL-~b~el~n~t~ra~n~s~fe~re~d~__J memory address B 'to be loaded from the array table transfer block B count B ..... Note The number of data blocks bemg transferred m this example IS 3 peripheral device ...- -~-- ... address peripheral device or memory Figure 38 Transfer Example of the Array Chainmg Mode to point the next entry. When the base transfer counter reaches Linked Array Chaining a terminal count of zero, the chain is exhausted, and the entry This type of chaining uses a list in memory consisting of memory just fetched determines the last block of the channel operation. address, transfer counts, and link addresses. Each entry in the chain list is ten bytes long, and consists of four bytes of memory An example of the array chaining mode operation and the address, two bytes of transfer count and four bytes of link memory format for supporting for array chaining is shown in address. The address of the first entry in the list is in the base Figure 38. The array must start at an even address, or the entry address register, and the base transfer counter is unused. Before fetch results in an address error. If a terminal count is loaded into starting any block transfers, the DMAC fetches the entry the memory transfer counter or the base transfer counter, the currently pointed to by the base address register. The address count error is signaled. information is placed in the memory address register, the count information is placed in the memory transfer counter, and the link address replaces the current contents of the base address ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 345 HD63450---------------------------------------------------------------- register. The channel then begins a new block transfer. As eacb DMAC. chaining entry is fetched, the update base address register is examined for the terminal link which has all 32 bits equal to zero. The linked array table must start at an even address in the linked When the new base address is the terminal address, the chain is array chaining mode. Starting the table at an odd address results exhausted, and the entry just fetched determines the last block of in an address error. If "0" is initially loaded to the MTC, the the channel operation. count error is signaled. Because the MPU can read all of the DMAC registers, all necessary error recovery information is An example of the linked array chaining mode operation and the available to the operating system. memory format for supporting it is shown is Figure 39. The comparison of both chaining modes is shown in Table 8. In Figure 39, the DMAC transfers data blocks in the order of Table 8 Chammg Mode Address/Count Information Block A, Block B, and Block C. In the linked array chaining mode, the BTC is not used. When the DMAC refers to the linked Chaining Mode Base Address Base Transfer Completed array table, the value of the BFC is outputted as the function Register Counter When code. The values of the function code registers are unchanged by number of data the linked array chaining operation. address of the Base Transfer Array Chalnmg blocks bemg array table Count=O transferred This type of chaining allows entries to be easily removed or address of the inserted without having to reorganize data within the chain. Linked Array Linked hnked array (not used) Since the end of the chain is indicated by a terminal link, the Chalnmg Address::;::Q table number of entries in the array need not be specified to the memory Btt 15 hnk address X - memory address B(H) memory address B(l) transfer count B link address Y(H) hnk address Y(l) link hnked array table ...... address Y memory address C(H) memory address C(l) transfer count C "All 0" terminator "All 0" terminator top address of the table memory address A(H) memory address A(L) transfer count A - link address X(H) link address X(L) H06BOOO MPU HOBB450 OMAC ~::~P~.'-'P~h,-,,~I~d'-V,-'.-'~d~d,-,,~, memory addressC- -- block C } transfer count C ~ BAR top address of the table ~;~r---I-no-t~:-se-d-I--~ memory address A -- transfer block A count A ·to be loaded from the hnked array table J memory address B -- block B } transfer count B penpheral - deVIce address peripheral deVice or memory Figure 39 Transfer Example of the Lmked Array Chaining Mode ~HITACHI 346 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 Multi·Block Transfer with DONE Mode Halt The multi· block transfer with DONE mode is set by setting BTD . The timing diagram of halt is shown in Figure 40. This diagram bit of the OCR. In this mode, data block transfer continues even shows halt being generated during a read cycle from the 68000 if the '!:XJNE signal is inputted during the DMA bus cycle. If compatible device in the dual addressing mode. If the halt DONE is inputted during the DMA bus cycle when the multi· exception is asserted during a DMA bus cycle, the DMAC does block transfer is not performed, the DMAC resets ACT bit of the not terminate the bus cycle immediately The DMAC waits for CSR, sets NDT and COC bits, and terminates the DMA the assertion of lJ"fACK before terminating the bus cycle so that operation. the bus cycle is completed normally. In the halted state, the DMAC puts all the control signals to high impedance and When DONE is inputted from the I/O device during the DMA bus relinquishes the bus to the MPU. The DMAC does not output the cycle in which ACK is outputted, the DMAC terminates the BR until halt exception is negated. When halt exception is operand transfer and then the current block transfer. Then, negated, the DMAC acquires the bus again and proceeds the maintaining the bus, the DMAC sets DIT bit of the CSR and DMA operation. In order to insure a halt exception operation, the reads the data block transfer information from the memory. BEe-lines must be set to halt at least until the assertion of DTC. After that, the DMAC transfers the next block as required. If the halt is asserted when the DMAC has the bus but is not In the continue mode, if DONE is inputted from the I/O device executing any bus cycle, the DMAC relinquishes the bus as soon during the DMA bus cycle in which ACK is outputted, the DMAC as halt exception is·asserted. terminates the operand transfer and terminates the current block transfer. Then the DMAC shifts the data in BAR, BFC and BTC to MAR, MFC and MTC, waits for the transfer request, and transfers the next block. If the value of BAR, BFC and BTC is the same as that of MAR, MFC and MTC, the DMAC repeats AID BUS transferring the same block. UAS AS As stated above, the multi· block transfer with DONE mode UDS realizes termination (stops the current block transfer) and restart (starts transferring the next block) of the multi·block transfer in the high·speed data transfer system without MPU interposition. R/W \.....0....-1"\ OWN 11'<----. • Bus Exception Conditions DDIR IIfI-...--J The DMAC has three lines for inputting bus exception conditions DBEN called BEC" BEC" and BEC,. The priority encoder can be used to generate these signals externally. These lines are encoded as HIBYTE '--<----' DTACK shown in Table 9. Table 9 BEC Bus Exception Condition DTe AeK --,'6 /I . , BEC2 BEC, BECD Exception Condition HALT (BECo-BEC2)' --m un 1 1 1 No exception condition BGACK Iff'--+----.. BR '---.1/ 1 1 0 Halt BG 1 0 1 Bus error eLK 1 0 0 Retry 0 1 1 RelinqUish bus and retry --+- Read Other Pus Master Write 0 1 0 (undellOed, reserved) from DeVice ~r~~t~a=- to Memory --+--- 0 0 1 (undellOed, reserved) __ - - H a l t Asserted - + - ~::d --t---- DMA cycle 0 0 0 Reset 'sECo-l3EC2"'(011 ) Figure 40 Halt Operation In order to guarantee reliable decoding, the DMAC verifies that the incoming code has been stable for two DMAC clock cycles before acting on it. The DMAC picks up BECo·BEC, at the rising edge of the clock. If BECo' BEC, is asserted to the undefined code, the operation of the DMAC does not proceed. For example, when the DMAC is waiting for DTACK, inputting DT ACK does not result in the termination of the cycle if BECo' BEC, is asserted to the undefined code. In addition, when the transfer request is received, BR is not output if the BEC,· BEC, is not set to code (lll). If exception condition, except for HALT, is inputted during the DMA bus cycle prior to, or in coincidence with DTACK, the DMAC terminates the current channel operation immediately. Here coincident means meeting the same set up requirements for the same sampling edge of the clock. BECo- BEC, is ignored in the current DMA bus cycle if it is input after DTACK If a bus exception condition exists, the DMAC does not generate any bus cycles until it is removed. However, the DMAC still recognizes requests. ~HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 347 HD63450---------------------------------------------------------------- Bus Error thus wi11 not honor any requests until it is removed. However, the The bus error exception is generated by external circuitry to DMAC sti11 recognizes requests. The retry timing is shown in indicate the current transfer cannot be successfully completed Figure 42. and is to be aborted. As soon as the DMAC recognizes the bus error exception, the DMAC immediately terminates the bus cycle Relinquish and Retry (R & R) and proceeds to the error recovery cycle. In this cycle, the DMAC The relinquish and retry exception causes the DMAC to adjusts the values of the MAR, the DAR, the MTC and the BTC relinquish the bus and three-state all bus master controls and to the values when the bus error exception occurred. 24 clocks when the exception is removed, rearbitrate for the bus to retry are required for the error recovery cycle in the single addressing the previous operation. mode and in the read cycle of the dual addressing mode. 28 clocks are required in the write cycle of the dual addressing mode. If the The diagram of the relinquish and retry timing is shown in DMAC does not have any transfer request in the other channels Figure 43. after the error recovery cycle, the DMAC relinquishes the bus. The diagram of the bus error timing is shown in Figure 41. AID BUS eLK AID BUS = AS R/W '-II--------' DOS OWN --------------~~~~---------­ ill ~~ R/W OWN ---. I ~~ '--II--------' DOl A---4 DlACK -11/ \\\\\\\\\\\\\\\\\\\\\\\\\\W4 u-----~~ """" -----.. DTe '-I~ HIBYTE ~;~~~ mumiumm,. ISECo-BtC2)' ~ U/////UIJ/U/ U = -' DTACK BGACKI===============~~~~~ BR 1'1 ~UI---- AeK 8/ ~ --------------~I~ Bus Error (~~~I' elK eLK 123' 5" 189'0"'2'3'4'5'61".'9 3'"2~J'~3.J7 -+-SERR on Write to Devlce---4-- Error --+----Other Channels·" Read Other Master Recovery Cycle·· ~ RelinqUish and -+- and --+--Read Retry -+- Retry Asserted Rearbltratlon *an:o-~"'(lOl) • *jn the s,ngle addreSSIng mode aoo In the ,,,,,d cycle of the dual addreSSing mode 24 clods In the w"tecycle of the dual addressmg mode 28clocks ••• The DMAC keeps the bus tJeca~se the other CMn~s have requests pending It other channels do not have r ~> ~ ~ 74LS04 ........ 1 OWN UAS r G G OE 16 16 16 AB/Do-A23/D'5 D 00 r+- AB-A23 (Address Bus) 74LS373 X2 HD63450 I- +5V ~ DMAC ~ ~ ~A DBEN G 74LS245 B~ Do-D7 DDIR DIR (Data Bus) .!.A - G DIR 74LS245 B~ DB-D'5 FIgure 46 An Example of the Demultoplexed Address Data Bus .HITACHI HItachI America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 351 HD63450---------------------------------------------------------------- • APPLICATIONS directional buffer 74LS245. These signals are three-stated at Examples of how to interface HD63450 to an HD68000 based active low, which requires pull-up resistors. system are shown in Figures 46 and 47. Figure 47 shows an ex~ of inter-device connection in the Figure 46 shows an example of how to demultiplex the address/ HD68000 system. REQ, ACK, 'PC[, DTC, and DONE are used to data bus. OWN and UAS are used to control 74LS373 for latching control I/O devices. the address. DBEN and DDIR are used to control the bi- ". Do 015 Do 015 r- ,....-- Data & Address As-A23 -- Bus Interface ::> ~ FOC, etc I~ll~I"'" Ii I§ c --- 6 '--- I~ 8~ ~'" - r- CS i- RS r--- "0(1) '" AS ~ ':J" 00 :J 00 '"'"~ ~ f+5V AS Cl "0 0 "0 0 « 0 0 0 00 co ~ J5CG 0 00 co Cl Cl I +5V 1 l ~ -AClG PeG ACK2 I Q t R/W OE 1D G 10~ _§ HD63450 DMAC Do-D7 I I ~ ~ Do-D7 8D 80 0 Select 74L5373 ~~+5V ~ Ao/Do -A23/D,5 Do-D,5 0 c;;: r- dl D81;N --- As-A23 DDIR '....-' ~ i.- Figure 48 An Example of Connection with HD6800 type Peripheral Devices (channel 2 and 3 are used) $HITACHI Hitachi Amenca Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 353 HD63450---------------------------------------------------------------- • PACKGE DIMENSIONS (Unit: mm (inch» scale: 1/1 eDC·64 8128 (3200) 64 33 :!l ~ @> ff==" 32 H 025!J.!!!- (OOIO:!:88S1) scale: 1/1 ePGA·68 22 86±O 45 (0900±OOI81) 5 OSrnax 2 S4mm (0 200m3x) (0 I DOmin ) 2642 {I 040) ~ ~ I) D <; +1 lii e scale: 1/1 eDP·64 8204 (3 230) 83 22max (3 276maJl) 64 3J 2286 (0 gOO) I II H~!I_~ ~!1l _ 254±025 048±0I (OIOO±OOIO) (OOIHOOD4) O'~IS' ~'/.f:I:'\\\ \O"\"'~~~ @HITACHI 354 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63450 scale· 1/1 eDP-64S 576(2268) 64 58 6max (2 307mall) 33 o 32 J..l!Too39) scale: 3/2 2S I5±O 12 {D 990±D DOS) *Inch value mdlcated for your reference ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 355 HD68450 Direct Memory Access Controller (NMOS) Microprocessor implemented systems are becoming increas- ingly complex, particularly with the advent of high-performance l6-bit MPU devices with large memory addressing capability. In order to maintain high throughput, large blocks of data must be moved within these systems in a quick, efficient manner with minimum intervention by the MPU itself. The HD68450 Direct Memory Access Controller (OMAC) is designed specifically to complement the performance and architectural capabilities of the H068000 MPU by providing the following features: HD68000 8us Compatible 4 independent DMA Channels Memory·to-Memory, Memory-to-Device, Device-to-Memory Transfers MMU Compatible Array-Chained and Linked-Array-Chained Operations On-Chip Registers that allow Complete Software Control by the System MPU Interface Lines for Requesting, Acknowledging, and Incidental Control of the Peripheral Devices uy" stands for Pin Grid Variable System Bus Bandwidth Utilization Array Package. Programmable Channel Prioritization 2 Vectored interrupts for each Channel Auto-Request and External-Request Transfer Modes +5 Volt Operation The DMAC functions by transfering a series of operands (data) co,..... StaM AlgI.Ie' between memory and peripheral device; operand sizes can CO."'.. be byte, word, or long word. A block is a sequence of opera- Error .... ,1IeI' tions; the number of operands in a block is determined by a transfer count. A single-channel operation may involve the e...... _ transfer of several blocks of data between memory and device. -~ Channal Canlt'OlAeg ..ltlr eM"......w 'I} On. P.r DMAC • Narmal IntarruptVector E,_ Type No. Bus Timing Packaging t-..;;ln;;:"7.~~=Pt='::.=":::to:...'--H (6:~t Per HD68450-8 DC-64 PriorIty Rlliliter Channel) 8MHz M.mo.y Function Codft HD68450-10 10MHz DC-64 HD68450Y-8 8MHz PGA-68 15 FunctIcInCodn HD68450Y-10 10MHz PGA-68 L MemcHVl'nnIhI·C-,-. 1- ... ,.,........ CDllIIh. I Memory AddrnI ""'*"', I I • HITACHI 356 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ________________________________________________________________ HD68450 • PIN ARRANGEMENT • HD68450 • HD68450Y OOIR @~rQ\~@~t0~~~?m1 6BB< ,t:::', ~O\2lIOi@5@@5@@i01~ OBEN ~B9 60 61 HIBYTE 'UAS o 6~S~' 0 \0 d§ && 0 J OWN a" a' BR ~@s ~~S ~}£i6 1m @5'I" 00 53 @rQ\ i S~67 A, d'~~. A, "P7 A, A. 0 0°~ &-rQ'\& A. ~~50 '~~);:;{~§},:;,9 A, rD1~&.7OJ&&.0.&.&&. 1 Vee @(2)'@@6@S@'@'@'@~C A, Vss A./D o (Bottom View) A,/D. AIO/Dl AII/Ds A12/D4 AulDs AulD, , AulD, A.,/D, An/D, 3 AIIIDID 7 AI9/DII A20/01l An/Oil AulD •• ......_ _ _ _ _ _,....Au /0 15 HIBYTE ~~~~~(~ DD1R 64 A'6/Ds (Top View) REa. 6' A,./Ds -~ 66 A, P L. 67 DTC N/C 6. ACK, ~HITACHI Hitachi America Ltd. • 22tO O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 357 HD68450---------------------------------------------------------------- • ABSOLUTE MAXIMUM RATINGS .. Item Symbol Value Unit Supply Voltage Vee -0.3 - +7.0 V Input Voltage V,n -0.3 - +7.0 V Operating Temperature Range Topr 0-+70 °c Storage Temperature T"", -55-+150 °c • With respect to Vss (SYSTEM GND) INOTE) Permanent LSI damage may occur If maximum ratings are exceeded Normal operation should be under recommended operating conditions If these conditions are exceeded, It could affect reliability of lSI. • RECOMMENDED OPERATING CONDITIONS Item Symbol min typ max Unit Supply Voltage Vee ·· 4.75 2.0 5.0 - 5.25 Vee V V · Input Voltage V'H V'L -0.3 - O.S V Operating Temperature Topr 0 25 70 °c • W'th respect to VSS (SYSTEM GNDI • ELECTRICAL CHARACTERISTICS • DC CHARACTERISTICS (Vee = 5V ±5% Vss = OV Ta = 0-+70°C, unless otherwise noted.) Item Symbol Test Condition min typ max Unit Input "High" Voltage V'H 2.0 - Vee V Input "Low" Voltage V'L Vss-0.3 - O.S V ~ lACK, BG", ClK, Input leakage Current SEC. - BEC, REO.-RE0 3 I,n - - 10 p.A & ~'ibSDlsLA. -A'3, AS, UD ,lD ,R/W, OAS, Three-5tate (Off State) I nput Current DTACK, SGACK, OWN, DTC, ITS' - - 10 p.A HIBYTE, DDIR, DBEN, FC. -FC, Open Drain (Off State) I nput Current IRO, DONE 100 , - - 20 p.A A, - A" D. - DIS/A. - A'3, AS", ODS, LOS, R/W. OAS, DTACK, BGACK, BR, OWN, Output "High" Voltage DTC, HIBYTE, DDIR, DBEN, V OH IOH = -400p.A 2.4 - - V ACK. - ACK3, PCl. - PCl3, FC. - FC, A, - A" FC. - FC, VOL IOL - 3.2mA - - 0.5 D. -DIS/A. -A'3, AS, UDS, lOS, RIW, DTACK. B~ Output "low" Voltage OWN, DTC. HIBYTE, DDIR, VOL IOL =5.3mA - - 0.5 V DBEN, ACK. - ACi<;, OAS, PCl. -PCl3, BGACK IRO, DONE VOL 10L =S.9mA - - 0.5 Power Dissipation Po f = 8 MHz,Vee =5.0 V - 1.4 W Ta = 25°C 2.0 V,n=OV, Capacitance C,n Ta = 25°C, f= 1 MHz - - 15 pF ~HITACHI 358 H,taehi America ltd. • 2210 OToole Avenue • San Jose, CA 95131 • (40B) 435-8300 ----------------------------------------------------------------HD68450 LOAD A LOAD B LOAO C +5V +5V +5V Test 5000 1 11kO 7100 Test r POint POint 130pF 6 Ok\? , 52074 H " EquIValent IRQ DONE A, - A" FC o - FC, Figure 1 Test Loads • AC ELECTRICAL SPECIFICATIONS (Vee = 5V ±5%, VSS = OV, Ta = 0-+70°C) No Item Symbol Test H;6~~~0.8 Hci~~4~O 10 1' Co n d II Ion I--=H",0"'''1''4",50"-Y:"'-+--:"HO""",84 5,,,OY=-"',,,0-l Frequency 01 Operation 10 Clock Period 126 500 100 500 Clock Width low 'CL 65 250 45 250 65 250 45 250 Clock Fall Time 'Cl 10 10 5 Clock Rise Time 10 10 Asynchronous Input Setup Time 20 15 Data In to OBEN low tOIOBL OTACK low to Oata Invalid tOTLOI Addreu on to AS on low 10 AS. "D'S on High 10 Address on Invalid tSIHAIV lOA DS In High to CS High tDSHCSH 10 10 elk per 11 Clock High to DOIR low ICHORl 70 60 12 Clock High to OOIR High tCHORH 70 60 13 OS In High to DOIR High Impedance tOSHORZ 120 110 14 Clock low to OBrn low tCLDSL 70 60 15 Clock low to DBEN High tCLOSH 70 '0 16 I5s on High to DBEN High Impedance tOSH08Z 120 110 17 Clock High to Data Out Valid IMPU readl tCHOVM 180 160 1S DS on High to Data Qut Invalid IOSHOZn 19 OS on High to Data High Impedance tOSHOZ 120 110 20 Clock low to DTACK low tCLDTL 70 60 21 DS on High to DTACK High tOSHOTH 110 110 22 DTACK Width High 10TH 10 10 23 OS on High to DTACK High Impedance tOSHOTZ 180 160 24 OTACK low to OS',n High tOTLDSH 25 REO Width low tREal 20 20 clk per 26 RECI low to SR low tAElBAL 250 200 27 Clock High to SR low tCHBAL 70 '0 28 Clock High to SA High tCHBAH 70 60 29 BG low to aGACK Low tBGLBL 45 45 elk per 30 SR Low 10 MPU Cycle End (AS on Hlghl IBAlASH 31 MPU Cycle End lAS on Hlghl to BGACKI_ow IASHBL 45 55 45 55 elk per 32 REG low to SGACK Low 120 120 clk per 33 Clock High 10 SGACK High tCHBL 70 60 34 Clock High to BGACR High tCHBH 70 60 35 36 Clock low to 8GACK High Impedance Clock High to FC Valid tCLBZ '0 100 70 90 tCHFCV 37' Clock High to Address Valid ICHAV 120 110 38 Clock High to Address/FC/Data High Impedance 'CHAZx 100 100 39 Clock High to Address/FC/Data Invalid tCHAZn 40 Clock low to Address High Impedance tCLAZ 100 - 90 41 Clock High to UAS Low tCHUL 70 60 42 Clock High to UAS High tCHUH 70 60 43 Clock Low to UAS High Impedance tCLUZ 80 70 44 OAS: High to Address Invalid tUHAI 30 20 45 Clock High to AS, US low tCHSL 60 65 46 Clock low to OS Low (wrlTel tCLOSl 60 65 47 Clock Low to AS, OS High tCLSH 70 60 48 Clock low to As., OS High Impedance tCLSZ '0 70 49 AS Width low 255 195 50 l5S Width low 190 145 51 AS, OS Width HIQh 'SH 150 105 52 Address/FC Valid to AS, 05 Low 30 20 53 AS, OS High to Address/FCIData Invalid tSHAZ 30 20 54 Clock High to R/W low tCHRL 70 60 55 Clock High to R/W High 70 60 (to be contlOuedl ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 359 HD68450 Test H~68~~O-8 H~:'~~~ 10 No Item Svmbol H068450Y 8 HD68450Y 10 Unit Condition 56 Clock Low to R/W HIgh Impedance tCLAZ 80 70 57 Address/Fe Valid to AfW Low lAVAL 20 10 58 RM Low to DS Low (wflte) tRLSL 120 90 59 US High to R/1111 High tSHRH 40 20 60 Clock Low to OWN Low ICLOL 70 60 61 Clock low to OWN High felOH 70 60 62 Clock High to OWN High Impedance tCHOZ 80 70 63 OWN Low to BGACK low IOLBL 30 20 64 BGACK High to OWN High tBHOH 30 20 65 OWN Low to UAS Low IOLUL 30 20 66 Clock High to ACK Low tCHACL 70 60 67 Clock Low to ACK low tCLACL 70 60 68 Clock HIgh to ACK HIgh tCHACH 70 60 69 ACK low to OS Low tACLDSL 100 80 70 OS High to ACK High tOSHACH 30 20 71 Clock High to HIBYTE Low tCHHIL 70 60 72 Clock Low to HIBYTE Low tCLHIL 70 60 73 Clock High to HIBYTE High tCHHIH 70 60 74 Clock low to HIBYTE High Impedance ICLHIZ 80 70 75 Clock High to oTe Low tCHDTL 70 60 76 Clock High to i5ie" High tCH01H Fig 1 - 70 60 Fig 8 77 Clock Low to DTC Hlqh Impedance tCLOTZ 80 70 78 DTC Width Low tOTCL. 105 80 79 0 Low to OS High tOTLOH 30 20 80 Clock High to DONE Low tCHDOL. 70 60 81 Clock Low to iJ'O'fii"E Low tCL.oOL. 70 60 82 Clock High to UUNI: High tCHOOH 130 120 83 Clock Low to i5l5iR High Impedance tCL.ORZ 80 70 84 Clock Low to DBEN High Impedance tCL.OBZ 80 70 85 UDII" LOIN 10 OBtN Low tOAL.oBL. 30 20 86 OBEN High to 'OIR High tOBHOAH 30 20 87 OBEN Low 10 Address/Data High Impedance tOBLAZ 17 17 88 Clock Low to PCL Low (1/8 clock I tCLPL 70 60 89 Clock Low to Pcr:" High (1/8 clock} tCL.PH 70 60 90 peL Width Low (1/a clock I tpeL.L. 40 40 elk per 91 OTACK Low 10 Data In (setup tlmel toALol 150 115 92 OS High to Data Invalid (hold tlmel tSHol 93 OS High to OTACK High tSHOAH 120 90 94 Data Out Valid 10 OS Low tOOSL 95 Data In to Clock Low (setup time) tOICL 15 15 96 BEC Low 10 DTACK Low tBECoAL. 50 50 97 B'EC"Wldth Low tBECL 20 20 clk per 98 Clock High to i'R'IT Low tCHIAL 70 60 99 Clock High to IRQ High tCHIRH 130 120 100 HI:AUl In to i5TC" Low (Read) tRAL.oTL 145 120 101 REAm In to i5SLow (Wrltel tRALOSL 205 170 102 OS High 10 REA'[5"9"Hlgh tOSHAAH 120 0 90 103 UUNI: In L.ow to UI AL:K L.ow toOLOAL 50 50 104 OS High to DONE In High tOSHOOH 0 120 0 90 105 Asynchronous Input Hold Time tASIH 15 15 (I' Figure 2 Input Clock Waveform • HITACHI 360 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------HD68450 28 29 30 31 32 33 34 35 36 1 4 5 23 24 . 25 26 27 28 29 30 ~~~~~r_nf1__JL_f'f-" r--u-L ClK AS ----< ,. I MPU READ CYCLE 10j \ MPU WRITE CYCLE CS \. 11 • r- \ R/Itv UDS lOS \ t· . - r--I 1OA \ \ F-- r- ~ ~ ~ 1. ~ r .. H 1. DOIA DBEN ,---; ::, 1. h \ . 17 1. 1. A./Do- An/D, 7 -po. • Data In 20 24 21 1. r i--T--- f lE}- ~ Data are latched at the end of clock 25 2. Figure 3 AC Electrical Waveforms - MPU ReadlWrite ClK REO III- (Falltng ::gl!e.!:p:!:"!.k~"P:!.I_I===~="=Ril_-------4>----=--------_+"""'_+_'Ir--;r---r----- 2. .. ~~~~~~3~O~~~~~~~~~ ~-= ill ~ ~- .2 DTC _ _ _ ~ _ _ _ _ _ _ _ _ _ _ _ _I f _ _ - - - - - - - - - - - - - ' r ClK * REO IS pIcked up at the rISing edge of eLK In cycle steal and Burst modes '8'R Isn't asserted while some BEC exception condition eXists or OMAC IS accessed by MPU. Figure 4 AC Electncal Waveforms - Bus Arbitration ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 361 HD68450-------------------------------------------------------------- 9 10 CLKF\.FI'-J ; : ~C-Jrur;"-,~ r;~_.r\.Fv\~~rLf\- BGACK 64 38 38 FCo-FCz 37 Re d Cycle [} Write Cycle I) AI/Do- An/O'5 41 42 x 43 UAS AS L44 4. 47 .. -f t~ SO 1 ~~ Pi 58 ~ DOIR .M_r OREN "'-' r-:;;5 J ACKo L .J8 ~- ..~~__~-\\~----------_tJr_-------­ 1 ACK, 70 - ~.r DONE fIIQ- ~----------~~======F~l-+~ ~ .. ","- "I .. DTACK IS picked up at the rising edge of eLK. This IS different from H068000. This timing IS not related to DMA Read/Write (Smgle Cycle) sequence Figure 5 AC Electrical Waveforms - DMA Read/Wrlte (Single Cycle) • HITACHI 362 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68450 7· • 8 9 10 ClK F\..f\J\j~ '-J~~~~JL h FCo- FC~ Read Cycle X Write Cycle lX A.;Oo- ~ A2J/DI$ .......... 9. Data In -" -----~ ---- ~ t- -53 ~ UDS ~ ~ K 1\ 91 r---- 51 I-- n I-- h i -n lOS ~ 1\ R/W In ~ 11 OWN r 12f--- ~ 1"' _ 14 ,. DBEN HIBYTE " J .. 1$ ~ DTACK t \ J oTC 'L-J ~ ACK \ - "l- I PCl .. ,~ .... 90 ~ BEC ... I 97 I Data are latched at the end of clock 7 ThiS timing IS the same as H06aOOD ThiS timing IS not related to DMA Read/Write (Dual Cycle) sequence ThiS timing IS only applicable when 1/8 clock pulse mode IS selected ThiS timing IS applicable when a bus exceptIOn occures If #6 IS satisfied for both DTACK and BEC, #96 may be Ons If the propagation delay of the external bidirectional buffer LS245 IS less than 17nsec, the conflict may occur between the address output of the DMAC and the system data blls In thiS case, the output of DBEN must be delayed externally Figure 6 AC Electrical Waveforms - DMA Read/Wnte IDual Cycle) @HITACHI Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 363 HD68450---------------------------------------------------------------- 2 3 4 5 6 8 9 10 1 2 3 4 5 6 8 9 10 11 12 13 14 ClK XD, - XD" >---<:::========}----~(===========:J>- UAS "---J '---I '- M ---I \~__________~I \~__________________~;---- RtW OWN Low 100 101 ClK 1 2 4 6 8 9 10 1 4 5 6 7 8 9 10 11 12 13 14 Figure 7 AC Electrical Waveforms - DMA Read/Wnte (Single Cycle with PCl) ~HITACHI 364 Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD68450 ClK AI -A, XDo ...... X0 15 UAS AS UDS lOS RfW OWN low HI BYTE High DTACK DONE IN 104 ,.4 ACK o ACK, DTC ClK If #615 satisfied for both DTACK and DONE, #103 may be Ons Fi,9ure 8 AC Electrical Waveforms - DONE Input (NOTES for Figure 3 through 81 1) Setup time for the asynchronous Inputs eG. BGACK, CS, lACK, AS, UOS, LOS, and RM guarantees their recognition at the next failing edge of the clock Setup time for BECo .... BEC 1 • REOo ..... FfEQ3, PCLo ..... Pel 3 , DTAC K, and i5"O'N'E guarantees their recognition at the next rising edge of the clock 2) Timing measurements are referenced to and from a low voltage of 0 8 volts and a high voltage of 2 a volts 3) These waveforms should only be referenced In regard to the edge-to-edge measurement of the timing specificatIOns. They are not Intended as a functional description of the Input and output Signals Refer to other functional descriptIOns and their related diagrams for device operation ~HITACHI Hitachi America Ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 365 HD68450-------------------------------------------------------------- • SIGNAL DESCRIPTION • Address Bus (A, through A,) The following section identifies the signals used in the Input/Output Three-statable DMAC In the definitions, "MPU mode" refers to the state Active-high when the DMAC is chip selected by MPU. The term "DMA mode" refers to the state when the DMAC assumes ownership of In the MPU mode, the DMAC mternal registers are accessed the bus. The DMAC IS in the "IDLE mode" at all other times. with these lines and LDS, UDS. The address map for these Moreover, the DMA bus cycle refers to the bus cycle that IS registers IS shown in Table I. Dunng a DMA bus cycle, A I -A, executed by the DMAC In the "DMA mode". are outputs containing the low order address bits of the location NOTE) In this data sheet, the state of the SignalS IS being accessed. descnbed with these words: active or assert, Inactive or negate. • Function Code (FC. through FC,) ThiS is done to avoid confUSIOn when dealing with a mixture of "active-low" and "active-high" Signals. The term assert or Output Three-statable assertIOn IS used to indicate that a Signal is actIVe or true inde- Active-high pendent of whether that voltage IS low or high The term negate These output signals provide the functIOn codes during or negatIOn is used to md,cate that a signal is inactive or false. DMA bus cycles They are three-stated except in the DMA bus cycles. They are used to control the HD68000 memones.ISee Atten- tion on Usage, Note (6) / • Clock (ClK) Ae-A23 DO-DIS Input --REOo A, -A1 -ACKo PClo This IS the mput clock to the HD68450, and should never be CS terminated at any time. ThiS clock can be different from the AS MPU clock since HD68450 operates completely asynchronously lDS REO, UDS ACK, RW peL, • Chip Select ((;8) DTACK Input SA REO, Active low i!G HD6S450 ACK, BGACK i'CG This input Signal is used to chip select the DMAC in "MPU" DMAC iRQ REO, mode. If the CS Input IS asserted dunng a bus cycle which IS lACK ~ generated by the DMAC, the DMAC internally termmates the PCl, bus cycle and Signals an address error ThIS function protects OWN the DMAC from accessmg its own reglster.ISee AttentIOn on Usage, 1J"AS RmY'fE Note (5)./ i5!Ei'.f • Address Strobe (AS) DDIR DONE Input/Output Three-statable SECo m; Active low BEC, DTC FCo In the "MPU mode", thIS line IS an input indicating valid FC, address input, and during the DMA bus cycle It IS an output FC, indicating valid the address output from the DMAC on the address bus. The DMAC mom tors these mput lines dunng bus arbitratIOn Vss12) to determme the completIOn of the bus cycle by the MPU or other bus masters. Figure 9 Input and Output Signals • Upper Address Strobe (UAS) • Address/Data Bus (As/D. through A'3/D,,) Output Three-statable ActIVe low Input/Output Three-statable Active-high This line is an output to latch the upper address lines on the multiplexed data/address lines It is three-stated except m the These lines arc time multiplexed for address and data bus "DMAmode". The lines DDlR, DBEN, UAS and OWN are used to control the demultlplexmg of the data and address lines externally. De- • Own (OWN) multlplexmg IS explained in the later section The bi-directlOnal data bus IS used to transfer data between DMAC, MPU, memory Output Three-statable and I/O deVices Active low Address lines are outputs to address memory and I/O devices. ~HITACHI 366 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68450 ThIS line IS asserted by the DMAC durmg DMA mode, and IS In the "MPU mode", thIS line IS an output mdlcatmg the used to control the output of the address hne latch ThIS hne completion of Read/Wnte bus cycle by the MPU may also be used to control the dlCectlOn of bl-d,rectlOnal In the "DMA mode", the DMAC mOOitors this hne to deter- buffers when loads on AS, LDS, UDS, R/W and other Signals mme when a data transfer has completed. In the event that a exceed the drive capability It IS three-stated m the "MPU bus exceptIOn IS requested, except for HALT, pnor to or con- mode" and the "IDLE mode" current with DTACK, the DTACK response IS Ignored and the bus exceptIOn IS honored In the "IDLE mode", thIS signal IS • Data Direction fooiR) three-stated Outputs Thlee-statable • Bus Exception Controls (BEe;; through BEc,) Active low (when data dlCecllon IS mput to the DMAC) Input Active lugh (when the data duectlOn IS output Active low from the DMAC) These Imes proVide an encoded signal mput md,catmg an This hne controls the dlfectlon of data through the bidirectional exceptIOnal conditIOn 10 the DMA bus cycle. Sec bus exceptIOn buffer which lS used to demultiplex the datal address hnes It IS three- sectIOn for detads stated durmg the "IDLE mode" • Bus Request (SR) • Data Bus Enable (DBEN) Output Output Three-statable Active low Active low ThlS output hne lS used to request ownership of the bus by the ThlS hne controls the output enable hne of bldlCectlOnal DMAC.[See AttentIOn on Usage, Notes (8), (9) J buffers on the multiplexed data/address hnes It IS a three-stated during the "IDLE mode" • Bus Grant (eG) Input • High Byte (ffiBYfE) Achve low Output Three-statable Active low ThIS hne IS used to indicate to the DMAC that It IS to be the next bus master The DMAC cannot assume bus owne,sh,p untd ThIS hne lS used when the operand Size IS byte 10 the smgle both AS and BGACK becomes mactive Once the DMAC ac- addressmg mode It IS asselted when data IS present on the quires the bus, It does not contmue to monitor the BG mput upper eight bits of the data bus It IS used to control the output of b,dlCectlOnal buffers which connects the upper eight bits of • Bus Grant Acknowledge (BGACK) the data bus with the lower eight bits It IS three-stated dunng the "MPU mode" and the "IDLE mode" Input/Output Three-statable ActIVe low • Read/Wrlte (R!W) Bus Grant Acknowledge (BGACK) IS a bidHectional control Input/Output Three-statable hne. As an output, It is generated by the DMAC to md,cate that ActIVe low (wntc) It IS the bus master ActIVe high (read) As an mput, BGACK IS momtored by the DMAC, m hmlted rate auto-request mode, to determme whether or not the ThIS Ime is an mput m the "MPU mode" and an output current bus master IS a DMA device or not. BGACK IS also dunng the "DMA mode". It IS three-stated dunng the "IDLE mOOitored durmg bus arbitratIOn 10 order to assume bus ownership mode". It IS used to control the direction of data flow [See AttentIOn on Usage, Notes (8), (9) J • Upper Data Strobe (ODS). Lower Data Strobe (iJ5S) • Interrupt Request (IRO) Input/Output Three-statable Output Open drain Active low Active low These lines are extensions of the address Imes indicating This line IS used to request an interrupt to the MPU. which byte or bytes of data of the addressed word are being addressed These hnes combmed corresponds to address line • Interrupt Acknowledge (lACK) Ao in table I. Input Active low • Data Transfer Acknowledge (i5'fACK) In pu t/ Ou tput Three-statable This line is an input to the DMAC indicating that the current Active low bus cycle is an interrupt acknowledge cycle by the MPU The eHITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 367 HD68450---------------------------------------------------------------- DMAC responds the interrupt vector of the channel with the (CSR) highest priority requesting an interrupt. There are two kinds of the interrupt vectors for each channel: normal (NIV) or error "-~~~:g~~) (EIV). lACK is not serviced if the DMAC has not generated (OCR) IRQ. (SCR) (CCR) (NIV) • Channel Request (REO;; through REa,) (EIV) One.1 per Input ~~~~(CPR) channel Active low or fallIng edge f..t!"~~Li(MFC) f-.!'~_£2!!!!.-I(DFC) These lmes are the DMA transfer request mputs from the peripheral devices =. i'----..L..!''''~"''''~~'-!!!!.._I (8FC) f--"':-=':!.'':::.... .:::'_~~~__I{MTCI =''''~=.·_ __«BTCI r _____.".--,.,,--,J....,-_.c-=''''...... These lines are falling edge sensitive inputs when the request "-_ _ _ _ _-~~"~~~~~~~'~--------~(MAR) "-_____ ...... _,..,--,-_-=._._______-i(DAR) mode is cycle steal They are low-level sensitive when the request mode is burst. L._ _ _ _ _ "'-=....::..:.:-:..-=________...J(BAR) • Channel Acknowledge (ACK. through ACK,) Clln1?':'7:.@,.t« I(GCR) - ~~e:cr Figure 10 Internal Registers Output Active low • Register Organization The internal reglster addresses arc represented in Table I. These lmes mdlcate to the I/O deVIce reque&ting a transfer Address space not used wlthm the address map IS reserved for that the request is acknowledged and the transfer is to be per- future expansIOn. A read from an unused location m the map formed. These lines may be used as a part of the enable CirCUIt results in a normal bus cycle WIth all ones for data A wnte for bus mterface to the penpheral. to one of these locatIOns results m a normal bus cycle but no write occurs. • Peripheral Control Line (PCLo through PeL, ) Unused bIts of the defined regIsters in Table I read as zeros Input/Output Three-statable Table 1 Internal Register AddreSSing ASSignments ActIve low Address Bits Register 7 6 5 4 3 2 1 a Mode Channel Status Register c c 0 0 0 0 a 0 R W· The four lines (PCL. - PeL,) are mUlti-purpose lines which Channel Error Register c c 0 0 0 0 0 1 R DeVice Control Register c c 0 0 0 1 0 0 R W may be individually programmed to be a START output, an Operation Control Register c c 0 0 0 1 0 1 R W Enable Clock input, a READY input, an ABORT input, a Sequence Control Register c c 0 0 0 1 1 0 R W Channel Control Register c 0 c 0 0 1 1 1 R W STATUS input, or an INTERRUPT input. [See Attention on Usage, Memory Transfer Counter c c 0 0 1 0 1 b R W Note (2).J Memory Address Register 0 0 1 1 R W DeVice Address Register 0 1 0 1 s R W Base Transfer Counter c c 0 1 1 0 b R W Base Address Register c c 0 1 1 1 s R W • Done (DONE) Normal Interrupt Vector 1 0 0 1 0 R W Error Interrupt Vector 1 0 0 1 1 R W Input/Output Open Dram Channel Priority Register 1 0 1 1 0 R W Active low Memory Function Codes 1 0 1 0 0 R W DeVice Function Codes 1 1 0 0 0 R W Base Function Codes 1 1 1 0 0 R W General Control Register 1 1 1 1 1 R W As an output, thIS line is asserted concurrently with the ACKx timing to indicate the last data transfer to the peripheral cc OO-Channel :;; 0,0 1-Channel :# 1 , device As an input, it allows the peripheral device to request a 10-Channel :I; 2,11-Channel :#: 3, ss OO-hlgh-order, 01-upper middle, normal terminatIOn of the DMA transfer. [See Attention on Usage, 10-lower mlddle,11-low-order b O-hlgh-order, 1-low-order Note (2).J * see Channel Status Register Section • Device Transfer Complete (DTC), • Device Control Register (OCR) Output Three-statable The OCR is a device oriented control register. The XRM bits Active low specifies whether the channel is in burst or cycle steal request mode. The DTYP bits define what type of device is on the This line IS asserted when the DMA bus cycle has terminated channel. If the DTYP bits are programmed to be a HD6800 device, normally with no exceptions. It may be used to supply the data the PCL definition is ignored and the PCL line is an Enable clock latch hmmg to the peripheral device. In this case, data is valid at mput If the DTYP bits are programmed to be a deVIce with READY, the fallIng edge of DTC. the PCL definition is ignored and the PCL line is a READY input. The DPS bit defmes the port size (eight or sIxteen bits) of peripheral • INTERNAL ORGANIZATION device. (A port size IS the largest data which the peripheral devieecan The DMAC has four independent DMA channels. Each chan- transfer during a DMA bus cycle.) the PCL bits define the function of nel has its own set of channel registers. These registers define the PCL lme. If the DTYP bits are programmed to be HD6800 and control the activity of the DMAC in processing a channel device, or DeVIce with ACK and READY, these definitions are ig- operation. nored. The XRM bits are ignored if an auto-request mode (REQG = • HITACHI 368 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD68450 00 or 01 10 Operatum Control Register) IS selected 10 REQ Ime requests an operand transfer II Auto-request the fllSt operand, external request fOI 6 o subsequent operands Brt 6 Not Used XRM DTYP DPS PCl • Sequence Control Register (SCR) XRM (EXTERNAL REQUEST MODE) The SCR IS used to define the sequencrng of memory and 00 BUist Transfci Mode deVIce addresses 01 (undefmed, leselved) 10 Cycle Steal Mode wnhout Hold 6 4 II Cycle Steal Mode wilh Hold DTYP (DEVICE TYPE) o MAC DAC 00 HD6HOOO compatrble devlCe, CxpllCilly addressed (dual addlessmg mode) 01 HD6ROO compatible device, expliCitly addressed MAC (MEMORY ADDRESS COUNT) (dual addrcsslllg mode) 00 Memory address regIster does not count 10 Device With ACK, Impircltly addressed oI Memory address register counts up (smgle addresslllg mode) 10 Memory addre" regrster counts down II (undefined, reserved) II Device With ACK and READY, Impircilly addressed DAC (DEVICE ADDRESS COUNT) (srngle addresslllg mode) 00 DeVIce address regIster does not count DPS (DEVICE PORT SIZE) () R bn pOlt 01 DeVIce address register counts up 10 Devrce address regrster counts down I 16 hil port II (undefined, reserved) PCl (PERIPHERAL CONTROL LINE) BIts 7,6,5,4 Not Used 00 Status Input 01 Status Input With Interrupt • Channel Control Register (CCR) 10 Start Pulse The eCR IS used to start or termmate the operation of a II Abol t Input channel ThiS register also determrnes rf an rnterrupt request IS Bit 2 Not Used to be generated Settrng the STR brt causes rmmediate actlva- • Operation Control Register (OCR) tron of the channel, the channel wrll be ready to accept request The OCR IS an operatIOn control register. The DIR bit Immediately The STR and CNT brts of the regrster cannot defmes the dnectlon of the transfer The SIZE bils define the be reset by a wnte to the regrster The SAB bit rs used to size of the operand The CHAIN bils define the type of the termrnate the operatron forcedly Settrng the SAB bit wrll reset CHAIN mode 111e REQG bits denne how requests for transfcrs STR and CNT Settrng the Hl T brt wrll hal t the channel opera- arc generated tron, and clearing the HlT brt wrll resume the operatron. Setting 4 start bIt must be done by byte access OtherWise, trmrng error occurs. SIZE CHAIN REQG 6 4 o DIR (DIRECTION) STR CNT HlT SAB INT o o Transfer from memory to device (transfer from MAR address to DAR address) Transfer from device to memory STR (START OPERATION) (transfer from DAR address to MAR address) o No operatron rs pending SIZE (OPERAND SIZE) I Start operatron 00 Byte (8 bilS) CNT (CONTINUE OPERATION) 01 Word (16 bits) o No contrnuatron rs pendrng 10 Long Word (32 bits) I Continue operatron II See Note Below HLT (HALT OPERATION) CHAIN (CHAINING OPERATION) o Operatron not hal ted 00 Cham operatlOn is disabled I Operation halted 01 (undefined, reserved) SAB (SOFTWARE ABORT) 10 Array Chaining o Channel operation not aborted II Linked Array Chaining I Abort channel operation REQG (DMA REQUEST GENERATION METHOD) INT (INTERRUPT ENABLE) 00 Auto-request at transfer rate hmIled by General Control o No interrupts enabled Register (Lrmrted Rate Auto-Request) I Interrupts enabled 01 Auto-request at maximum rate BItS 2, 1,0 Not Used NOTE If the DMAC I ....et to dual addre..,~mg mode. port ~lze 8 bit'>, external rcque"t mode, and the data tran.,fcr l~ from penpheral devIce to memory, ..,et SIZE = II • Channel Status Register (CSR) In the OperatIOn Control Register (OCR) The CSR is a register containrng the status of the channel. ~HITACHI Hitachi Amenca Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 369 HD68450---------------------------------------------------------------- 6 4 o CP (CHANNEL PRIORITY) 00 Priority level 0 COC BTC NDT ERR ACT o PCT PCS 01 Pnority level 1 10 Priority level 2 11 Pnority level 3 COC (CHANNEL OPERATION COMPLETE) Bit 7 through 2 Not Used o Channel operallon mcomplete I Channel operatIOn complete • General Control Register (GCR) BTC (BLOCK TRANSFER COMPLETE) The GCR IS used to define what portIOn of the bus cycles IS o Block transfer incomplete available to the DMAC for hrnlted rate auto-Iequest generatIOn. I Block transfer complete GCR IS also used to specify the hold time for cycle steal mode NDT (NORMAL DEVICE TERMINATION) WIth hold. o No normal devICe terminatIOn by DONE mput 1 Device terminated operation normally by DONE Illput 6 4 o ERR (ERROR BIT) o No errors o o BT BR I Error as coded III CER ACT (CHANNEL ACTIVE) BT (BURST TIME) o Channel not active The number of DMA clock cycles pel bUlst that the DMAC I Channel actIve allows m the auto-request at a lImIted rate of transfer IS con- PCT (pCL TRANSITION) trolled by these two bIts. The number is 2(BT+4) (two to the BT+4 o No PCL transitIOn occurred power) I PCL trans ItlOn occurred BR (BANDWIDTH RATIO) PCS (THE STATE OF THE PCL INPUT LINE) The amount of the bandWIdth utllrzed by the auto-request at o PCL "Low" a lrmlted rate transfer IS controlled by these two bits. The ratIo IS I PCL "High" 2(BR+ I) (two to the BR + 1 power). BIt 2 Not Used The hold tIme for cycle steal mode WIth hold IS defined to be minrmum of 1 sample mterval and maxImum of 2 sample • Channel Error Register (CER) mtervals. A sample mtervalls defmed to be 2(BT+BR+5) (two to the The CER IS an error condItIOn status regIster. The ERR bIt of CSR BT + BR + 5 power) clock cycles. indicate:;, If there IS an error or not Bits 0-4 mdicate what type of error occurred. [See AttentIOn on Usage, Note (3).[ BIts 7 through 4 Not Used 6 4 • Address Registers (MAR, DAR, BAR) Three 32-bit registers are utlhzed to implement the Memory o o o ERROR CODE Address RegIster, DevIce Address RegIster, and the Base Address Regrstcr. Only the least significant twenty-four bIts are con- nected to the address output pms. The content of the MAR IS Errol Code outputted when the memory IS accessed m slOgle or dual adress- 00000 No error ing mode. The content of the DAR IS outputted when the 00001 ConfiguratIOn error penpheral device is accessed. The contents of the BAR IS out- 00010 Operation tlmmg error putted when readmg chain mformation from memory m the 0010 I Address error in MAR Array Chaming Mode or the Lmked Array Chammg Mode. It IS 00110 Address error m DAR also used to set the top address of the next block transfer in 00111 Address error in BAR Continue mode. 01001 Bus error in MAR 01010 Bus error m DAR • Function Code Registers (MFC, DFC, BFC) 01011 Bus error in BAR The DMAC has three function code regIsters per channel 01101 Count error in MTC the Memory FunctIOn Code Register (MFC), Device Function 01111 Count error in BTC Code Register (DFC), and the Base Function Code Register 10000 External abort (BFC). The contents of these registers are outputted from FC o 1000 I Software abort through FC, Imes when an address is outputted from MAR, BIIs 7,6, 5 Not Used DAR, or BAR, respectively The BFC is also used to set the MFC for the transfer of the next data block in the Continue mode. • Channel Priority Register (CPR) 1 6 4 o The CPR IS used to define the pnonty level of the channel. Pnority level 0 is the highest and priority level 3 is the lowest o o o o FC2 FC1 FCO priority. Bits 3 through 7 Not Used o • Transfer Count Registers (MTC, BTC) o o o o o o CP Each channel has two 16-bit counters' the Memory Transfer Counter (MTC) and the Base Transfer Counter (BTC). The MTC ~HITACHI 370 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68450 counts the number of transfer words m one block, and IS de- • ReadIWrite of the DMAC Registers by MPU creased by one for every operand transfer The MPU reads and wntes the DMAC internal regIsters and The BTC IS used to count the number of data blocks 10 the controls the DMA transfer FIgure II mdlcates the IImmg dia- Array Chammg Mode. BTC IS also used to set the number of gram when the MPU reads the contents of the DMAC register operands to transfer for the next data block in the Continue The MPU outputs AI-A", FCo-FC" AS, RjW, UDS, and LDS, Mode. and accesses the DMAC mternal register The specific mternal regIster IS selected by AI·A7, LDS and UDS The CS and lACK • Interrupt Vector Registers (NIV, EIV) Imes are generated by the external cIrcuIt WIth As-A" and Each channel has a Normal Interrupt Vector regIster and an FCo-FC, The DMAC outputs data on the data bus, togethel Error Interrupt Vector regIster. WIth DDlR, DB EN and DTACK The DDlR and DBEN contlol When an mterrupt acknowledge cycle occurs, an rnterrupt the bIdirectIOnal buffer on the bus and the DT ACK mdlcates vector is outputted from one of those registers If the error bit that the data has been sent or receIved by the DMAC Read (CSR) IS set for the channel wIth rnterrupt pendmg, then con- Cycle is eIghteen CLKs FIgure 12 shows the MPU wnte cycle tent of EIV IS outputted, otherwise content of NIV IS out- Write cycle IS fifteen CLKs. putted Note the following points. (I) The clock reference shown 10 thIS figure is the DMAC mput • OPERATION DESCRIPTION clock. A DMAC channel operatIon proceeds in three prinCIpal (2) The DDlR and the DBEN are three-stated at the begmnmg phases. Dunng the inrtlahzatlon phase, the MPU sets the channel whIch detects CS and the endmg of the cycle control regIsters, supply the initial address and the number of (3) Dunng the MPU lead cycle, the DTACK IS asserted after transfer WOlds, and stal ts the channel Dunng the transfel the data IS valid on the system bus phase, the DMAC accepts requests for data operand transfers, (4) Dunng the MPU wnte cycle, fhe DDlR Ime WIll be dnven and prOVIdes addressmg and bus contlols for the transfers The low to duect the data buffers toward to DMAC before the termmatlon phase occurs after the operatIOn IS completed. buffers are enabled ThIS sectIOn descnbes DMAC operatIons A descnptlOn of (5) Dunng the MPU wnte cycle, the DMAC wIll latch the data the MPUjDMAC communrcatlon IS gIVen first Next, the transfer before assertmg DTACK. Then It WIll negate DBEN- and phase IS covered, mcludmg how the DMAC recognIzes requests DDlR 10 the proper order and how the DMAC arranges for data transfer Followrng this, (6) After the MPU cycle and the LDS and the UDS arc negated the mltlahzatron phase is described The termmatlon phase IS by the MPU, the DMAC will put DBEN, olYfR and the covered, introducrng chainrng, error slgnalrng, and bus excep- address data lInes to a hIgh Impedance state. trons A descnptron of the channel prioJlty scheme rounds out (7) DT ACK will once go "Hlgh" and then to a hIgh Impedance the section state after negating LDS and UDS. AS ~ __ • _ _ _ _ _ _--MJ~w._ _ CS ~. ________--MJ~w......_ _ RW UDS ~ __________ .IIIor-w..w.__ LDS ~____ ~w._ _ DDIR ~.--.--------'_ _ __ ' , _ DBEN - --.J,- .. ---"m\~'\\\ U1 _ _ __flJ--~,- III AB/Do-A23/D'5 ------- --))>----- XDo-XD,5 (External system data busl --------~[r<==:=J}}>_) --- DTACK - - , i l L '_...llJUT''------ Figure 11 MPU Read from DMAC - Word ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 371 HD68450---------------------------------------------------------------- A,-A'3 FCo-FC, AS ---w.W~ ___ ~ _ _ _ _ _ _ _ _...... HI 'I~ CS R/W ---w.W____ ~ UDS tw~ __ [0 ill LOS tUl~__ 10 m DDIR ,----- , " ' ' - -_ _ _1J,l ,-- DBEN ,----- A./Do-A,,/D,s ------ -----------««<<<==:J»~~ XDo-XD'5 (External System Data Bus) ---C---=====:Jl»>>---({c ----~"\L__ _1DT'~--------- Figure 12 MPU Wllte to DMAC - Word • Bus Arbitration ownership 10 the next bus cycle, After the end of the cunent The following is the description of the bus arbitration, The DMAC cycle (AS IS negated), the MPU relinquIShes the bus to the must obtain the ownership of the bus in order to transfer. DMAC, The DMAC asserts the bus grant acknowledge (BGACK) data, Figure 13 1Od,cates the DMAC bus arbitratIOn tlm1Og, It IS to 10dicate that It has the bus ownership, A half clock before completely compatible with that of HD68000 MPU, The DMAC BGACK IS asserted, the DMAC asserts owN. OWN IS kept asserts the Bus Grant (BG) to request the bus mastership, The asserted for a half clock after BGACK is negated at the end of MPU recognizes the request and asserts BG, then it grants the the DMA cycle. BR IS negated one clock after BGACK IS asserted. elK r-----; - -f 1.5 - ':'5 clocks I II 2 ...... 3.5 clocks* -J BG ~ (" 168000 output) I OWN , \ II r- l!llACK o clock"'" 1MPU Cvcle ~.-----f'-- BUS Cycle MPU Cycle 4.5""" 5 5 clocks ~:=>---@ DMA Cycle Cy ,,. AeK max 125 clocks + lMPU Cycle elK * ThiS case assumes that no exception condition eXists and DMAC Isn't accessed by MPU Figure 13 DMAC Bus Arbitration Timing ~HITACHI 372 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (40B) 435-8300 ----------------------------------------------------------------HD68450 • Device/DMAC Communication DONE IS asserted only at the last transfer to the peripheral CommuflicatlOn between peripheral devIces and the DMAC IS deVice of the last data block. In the contmue mode, DONE IS accomodated by five signal hnes Each channel has REQ, ACK asserted for each data block. It IS asserted and negated 10 com- and PCl, and the last two lines the DONE and DTC hne., are cldent with the ACK hne for the last data transfer to the shared among the four channels penpheral device It is also outputted 10 comcident WIth the (1) Request (R EQ) ACK hne of the last bus cycle, in which the address IS outputted The penpheral devIces assert REQ to request data transfers from the DAR, in the memory-to-memory transfer (dual Sec the "Requests" sectIOn for detaIls addressmg mode) that uses the ACK line (2) Acknowledge (ACK) The DMAC also mOflltors the state of the DONE Ime dunng TIllS hne IS used to Imphcltly address the devIce whIch IS the DMA bus cycle If the deVIce asserts DoNE dunng ACK transfernng the data (11llS devIce IS not selected by address active, the DMAC WIll terminate the operatIOn after the transfer hnes) It IS also asserted when the content of DAR IS out- of the current operand If DONE is asserted on the first byte of putted dunng memory-ta-memory l1ansfcr except for the auto- 2 byte operation or the first word of long word operatIOn, the request mode at a limIted Fate or at the maximum rate DMAC does not termmate the opera !Jon before the whole ope- (3) Perrpheral Control Line (PCl) rand transfer is completed. If DONE IS asserted, then the DMAC The functIOn of thIS line is qUlte flexIble and IS determmed terminates the operation by cleanng the ACT bIt of the CSR, by the OCR (DeVIce Control RegIster). and settmg the COC and NDT bIts of the CSR If both the The DTYP bIts of the OCR define what type of devIce DMAC and the deVIce assert DONE, the deVIce termmatlOn is IS on the channel If the DTYP blls are programmed to be a not recognIZed, but the channel operatIOn does termmate. HMCS6800 devIce, the PCl defmitlOn IS Ignored and the PCl DONE IS outputted again for the retry exceptIOns bus cycles hne IS an Enable clock (E clock) mpu!. If the DTYP bIts arc pro- (5) Data Transfer Complete (DTC) grammed to be a device wllh READY, the PCl definrtlOn as DTC is an active low SIgnal which IS asserted when the actual Ignored and the PCl line IS a ready mput. data transfer IS accomphshed It is also asserted in the bus cycle PCl As a Status Input whIch read a cham mformation from memory m the Chammg The PCl Ime may be proglammed as a status input The mode However, If exceptIOns are generated and the DMA bus status level of tillS hne can be determmed by the PCS bit 10 the cycle teemmates, DTC IS not asserted DTC IS asserted one half CSR. regardless of the PCl functIOn determlOed by the OCR clock before lDS and UDS are negated, and negated one half If a negatIve transItIon occurs and remams stable for a minI· clock after lDS and UDS are negated. mum of two clocks, the PCT bll of the CSR IS set. ThIS PCT bIt IS cleared by resettmg the DMAC or the wntlOg "I" to the • Requests PCTblt Requests may be externally generated by clfcurtry m the PCl As an Interrupt penpheral deVice, or mternally generated by the auto-request The PCl line may be programmed to generate an interrupt mechanism. The REQG bas of the OCR determme these modes on a negatIve tranSItIOn This enables an interrupt which IS re- The DMAC also supports an operatIOn m whIch the DMAC quested If the PCT bIt of the CSR IS set When usmg thIS func- auto-requests the first transfer and then wait for the peripheral tIOn, It IS necessary to reset the PCT bll 10 the CSR before the deVIce to request the following transfers. PCl bJt 10 the DCR IS set to mterrupt, 10 order to avoId (1) Auto-request Transfers assertion of IRQ Ime at thIS hme. The auto-request mechanism provides generatIOn of requests PCl As a Starting Pulse WIthin the DMAC. These requests can be generated at ellher of The PCl hne may be programmed to output a starting pulse two rates maximum-rate and lImIted-rate. In the former case. ThIS actIve low starting pulse is outputted when a channel IS the channel always has a request pendmg. actIvated. and is "low" for a penod of four clock cycles. The Iimlled rate auto-request functIOns by momtonng the PCl As an Abort Input bus II tIhzatlOn The PCl Ime may be programmed to be a negative tranSitIOn limited-rate Auto-request above lOput whIch termmates an operatIon by settmg the ex- TIME -7 ternal abort error 10 CER. It IS necessary to reset the PCT bIt 10 Previous Next the CSR before activating the channel (Setting the ACT bit of Sample Interval Sample Interval CCR) so that the channel operahon IS not immediately aborted {See AttentIOn on Usage, Note (2) J PCl As an Enable Clock IE Clockllnput Figure 14 DMAC Sample Intervals If the DTYP bIts are programmed to be a HD6800 deVIce, the PCl deflOltIon IS Ignored and the PCL line IS an Enable In the hmlted-rate auto-request the DMAC devldes !Jme mto Clock input The Enable clock downtime must be as long as five equal length sample intervals by counting clock cycles The end clock cycles, and must be high for a minimum of three DMAC of one sample interval makes the beginmng of the next. Dunng clock cycles, but need not be synchronous with the DMAC's a sample mterval, the DMAC monitors by means of BGACK pin clock the system bus activity of the DMAC and other bus master PCl As a READY Input devices. At the end of the sample interval, decision is made If the DTYP bits are programmed to be a device with whether or not to perform the channel's data transfer during READY, the PCL definition is ignored and the PeL line is a the next sample mterval. Namely, based on the activIty of READY mput. The READY is an active low input. the DMAC or other bus master deVIces dunng the current (4) DONE (DONE) sample mterval, the DMAC allows limIted-rate auto-requests for This hne is an active low Input/Output signal with an open some initial portion of the next sample interval. drain. It is asserted when the memory transfer count is ex- The length of the sample mterval, and the portion of the hausted in a single block transfer. In the chaining operation, sample interval during which limIted-rate auto-requests can be ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 373 HD68450---------------------------------------------------------------- made (the limIted-rate auto-request interval) are controlled by cycles. the BT and BR bits in the GCR. The length in clock cycles of The DMAC uses the BGACK to differentiate between the the hmited-rate auto-request interval is 2(BT+4) (2 raISed to the BT +4 MPU bus cycle and DMAC or other bus master devices. If power). For example, if BT equals 2 and the DMA uohza- BGACK is active, then the DMAC assumes that the bus is used tion of the bus was low dunng the previous sample interval, by a DMAC or other bus master devices. If It is macllve, then then the DMAC generates the auto-request transfers dunng the the DMAC assumes that It IS used by the MPU. first 64 clock cycles. Maximum~rate Auto-request The ratIO of the length of the sample interval to the length If the REQG bits in the OCR indIcate auto-request at the of the hmited-rate auto-request interval is controlled by the BR maximum rate, the DMAC acquires the bus after the start bit is bIts. The ratIO of the system bus utilizatIOn of the MPU to set and keeps It until the data transfer is completed. other bus master devices includmg the DMAC IS 2(BR+ I) (2 raised to If a request is made by another channel of hIgher priority, the BR + 1 power). If the fraction of DMA clock cycles during the the DMAC services that channel and then resumes the auto- sample interval exceeds the programmed utIlizatIOn level, the DMAC request sequence. If two or more channels are set to equal will not allow limited-rate auto-requests during the next sample priority level and maximum rate auto-request, then the channels Interval. WIll rotate in a "round robbin" fashion. For example, If BR equals 3, then at most one out of 16 If the HD68000 compaoble device IS connected to a channel, the clock cycles dunng a sample mterval can be used by the DMAC ACK Ime IS held mactlve during an auto-request operation. Conse- and other bus master devices, and stIll the DMAC would allow quently, any channel may be used for the memory-to-memory trans- limIted rate auto-request dunng the next sample mterval. fer WIth the auto-request function m addition to the operation of data Therefore, from the viewpoint of long period, the ratIo of the transfer between memory and peripheral device WIth usmg the REQ system bus utilization of the MPU to I/O devices mcluding the pm. Refer to FIgure 15 for the oming of the memory-to-memory DMAC IS about 16.1. The sample interval length is not a direct transfer. In this mode, the ACK, HIBYTE and DONE outputs are parameter, but it IS equal to 2(BT+BR+5) clock cycles. Thus, the always mactive. sample mterval can be programmed between 32 and 2048 clock ClK 1 2 3 FCo-FC2::JD/ XIII ~ A,-A, -:::JJ!:;,,======~Xl~n=======:=;X1-;:,/~7=======~ A /0 Address Out Data In Address Out Data Out Address Out Data In A;3/;~~,#1=7====;r:.,~~~/~lr=====~'IIlI::::JI.~II ~ XDo- XD'5llIllI1)--{/// nnm---- IExternal System Data ~~~ ~ ~ L.JJJ L- AS \\\ U/ \\\ U/ \\\ m UDS \\\ m \\\ 11/ \\\ ill lDS \\\ III \\\ 10 \\\ 11/ R/W \\\ III OWN====;~--------mr=========~--------_,n=== DDIR \\\ 10 \\\ or- DBEN \\\ ill \\\ rrr-m 10 HIBYTE------.:~====~~--~=============-!:!!--~====~~-- DTACK \\\ III \\\ /0 \\\ \1LJD \1LJD ClK Read One Word Write One Word Read One Word From Memory to Memory From Memory Figure 15 Memory-to·Memory Transfer Read-Write·Read Cycles ~HITACHI 374 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68450 (2) External Requests followmgs are the descnptron of the burst and the cycle steal If the REQG bIlS of the OCR mdicate that the REQ Ime modes generates requests, the transfer requests are generated exter- Burst Request Recognition nally. The request Ime assocIated wIth each channel allows the In the burst request mode, the REQ Ime IS an actIve low devIce to externally generate requests for DMA transfers When mput. The level sampled at the nsmg edge of the clock. Once the devIce wants an operand transferred, it makes a request by the burst request IS asserted, It needs to be held low untIl the assertIng the request lIne The external request mode IS deter- first DMA bus cycle starts 10 order to msure at least one data mmed by the XRM bIts of the OCR, whIch allows both burst transfel operation In order to stop the bUlst mode transfer and cycle steal request modes. The burst request mode allows a after the current bus cycle, the REQ Ime has to be negated channel to request the transfer of multIple operands usmg one clock before the DTC output clock of tills cycle Refer to consecutIve bus cycles The cycle steal request mode allows FIgure 16 or the burst mode tmllng. a channel to request the transfer of a smgle opeland. The ClK Jl.JlJlJUlJl..f'l..fUUUUU1JUU1 REQ~~~~~-- ,~--_r~====~~~~~ __ BG BR __~~~~----~--~ BGACK:::::::;:~~~~~~~::::~~::::~ BUS CYCLES ACK DTC---_-----< CLK MPU cycle -+- Idle --t---- DMA cycfe -+ MPU cycle or Idle --r-- DMA cycle --r- Idle Figure 16 Burst Mode Request Timing (Only one channel is active) Cycle Steal Request Recognition tiOn termmates or untIl the deVice pauses. The deVIce IS deter- In the cycle steal request mode, the penpheral deVIce re- mmed to have paused If It does not make any requests dunng quests the DMA transfer by generatmg an falling edge at the the next full sample mterval The sample mterval counter IS free REQ Ime TI10 REQ Ime needs to be held "low" for at least 2 running and IS not leset or modified by thIs mode of operatIOn clock cycles In the cycle steal mode, if the REQ lIne changes The sample mterval counter IS the same counter that is used for from "HIgh" to "Low" between ACK output and one clock be- LImited Rate Auto Request and is programmed via the GCR. fore the clock that outputs DTC, then the next DMA transfer FIgure 18 shows the request tIm 109 in the cycle steal bus IS performed WIthout relInqUlshmg the bus If the bus IS not hold If the REQ IS mputted during the hold time, the ACK relInquIshed, then maXUTIum of 5 Idle clocks IS 111serted between IS au tpu tted after a maximum of 7.5 clock cycles from the bus cycles. Refer to FIgure 17 for the request tl111111g of the pIcked-up clock. On the cycle steal with hold mode, the DMAC cycle steal mode. If the XRM bIts speCIfy cycle steal with- will hold the bus even when the transfer count is exhausted and out hold, the DMAC WIll relInquIsh the bus. If the XRM bIts the last data has been transferred If DMA transfer is requested specify cycle steal WIth hold, the DMAC will retain ownershIp. from other channels dunng this penod, they are executed The bus is not given up for arbitratIon until the channel opera- normally. micro cleanup MPU cycle --+ Idle +--- DMA cycle Figure 17 Cycle Steal Mode Request Timing ~HITACHI Hitachi Amenca Ltd .• 2210 O'Toole Avenue. San Jose, CA 95131 • (408) 435-8300 375 HD68450--~------------------------------------------------------------ LJ1Jl1'LnJlJlIlrulJ1..n.nn..ruln.JIUlflJ111JlJl. CLKJlJl R~~ '~: ~ '-k.-.J: \. ,.=----_f~ B"G----, r--"'~--"""":''';'':''~\-=----IIo'- - - - - - Hold the bus ~' BGACK BUS - - _______ . :.-. '7 :H max 5clocks I max 75,ciOCkS.: CYC.!-~~---~~4~ DTC--- ,~" U' Figure 18 Cycle Steal 8us Hold Mode Request Timing Request Recognition in Dual·address Transfers (1) Dual Addressing In a following section dual-address transfers are defined. Dual HD68000 and HD6800 compatIble devices may be explICItly ad- address transfer IS an exception to the request recogmtion rules dressed. This means that before the penpheral transfers data, a data m the previous paragraphs. In the cycle steal request mode, register withIn the devIce must be addressed. Because the address bus when there are two or more than transfers between the DMAC is used to address the penpheral, the data cannot be dIrectly transfer- and the penpheral device dunng one operand transfer, the re- red to/from the memory because the memory also requires address- quest is not recognized until the last transfer between the Ing. Instead, the data is transferred from the SOUlce to the DMAC and DMAC and the I/O device starts. held In an internal DMAC holdIng regIster. A second bus transfer (3) Mixed Request Generation between the DMAC and the destmatIOn IS then reqUIred to complete A single channel can mIx the two request generatIOn the operation Because both the source and destinatIOn of the transfer methods. By programming the REQG bIlS of the OC R to "I I", are expliCItly addressed, thIS protocol IS called dual-addressed. when the channel is started, the DMAC auto-requests the first transfer. Subsequent requests are then generated externally by the device. The ACK and PCL lines perform their normal func- HD68000 Compatible Device Transfers tions in this operation. In this operatIOn, when a request is received, the bus IS obtamed and the transfer IS completed using the protocol as • Data Transfers shown in FIgures 19 and 20 F,gures 21 through 24 show the All DMAC data transfers are assumed to be between memory transfer tImmgs. FIgure 21 and 24 show the operatIOn when and the peripheral device. The word "memory" means a 16-blt the memory IS the source and the peripheral deVICe is the desti- HD68000 bus compatIble devIce. By programmIng the DCR, the nation. FIgures 22 and 23 show the transfer In the opposIte characteristIcs of the penpheral devIce may be assigned. Each chan- directIOn The penpheral deVIce IS a 16-bn deVIce m F,gures 21 nel can commUnicate usmg any of the followmg protocols and 22, and a 8-bn deVIce In FIgures 23 and 24. DTYP Device Type ~ HD68000 compatIble devIce } Dual Addressing 01 HD6800 compatIble devIce 10 DevIce WIth ACK } Single Addressmg II Device WIth ACK and READY ~HITACHI 376 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD68450 DMAC HD68000 Device Address Device 11 Set R/W to Read 2) Place Address on AI ..... An 3) Place Function Codes on FC o "'" FC 2 4) Assert Address Strobe (AS) 5) Assert Upper Data Strobe IL1i5S1 and Lower Data Strobe (LDSI 6) Assert Acknowledge lACK) I PreseJt Data 11 Decode Address 2) Place Data on 00 ..... Ou 3) Assert Data Transfer Acknowledge (DTACKI I AcqUire Data 1) Load Data IOto Holdmg Register 2) Assert DeVice Transfer Complete (DTCI 31 Negate TIi5S and LDS 41 Negate AS, ACK and DTC Terminate Cycle 11 Remove Data from Do"'" 015 21 Negate 1J'f'ACK I f Start Next Cycle Figure 19 Word Read Cycle Flowchart HD68000 Type DeVice DMAC HD68000 Device Address Device 1) Place Address on AI - A33 21 Place Function Codes on FC o "" Fe, 3) Assert Address Strobe (AS) 41 Set Am to Wrtte 5) Place Data on Do ..... DIS 61 Assert Acknowledge (ACKI 7) Assert Upper Data Strobe (UDS) and Lower Data Strobe (LDSI ~I------------------------------------~, Accept Data 1 J Decode Address 21 Store Data on Do -. DIS 31 Assert Data Transfer Acknowledge (DTACKI I f Terminate Output Transfer 11 Assert DeVice Transfer Complete (DTCI 21 Negate U5S and LDS 31 Negat. AS, ACK and DTC 41 Remove Data from Do ...... DIS 51 Set RM to Read I Terminate Cycle t , Start Next Cycle 11 Negate DTACK I Figure 20 Word Write Cycle Flowchart HD68000 Type DeVice ~HITACHI Hitachi America Ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 377 HD68450----------------------________________________________________ ClK As/Do -A23/D15 XDo-XD15 (External System Data Bus) UAS AS UDS lOS RW OWN iiDiR \\\ III DBEN HIBYTE \\\ /0 \\\ ur DTACK ~ /0 \\\ llTC 'ULJl1 ACK DONE ClK 1234567891011121314151617181920212223 --r----- Read One Word ------t----- Wnte One Word --r- From Memory To DeVice The Last Transfer Figure 21 Dual AddresSing Mode, ReadIWnte Cycle, Destination = 16·bit Device, Word Operand elK ~~o--------~vmo'-----------~~ -:=J,IO WI ~ As/Do Address Out Data In Address Out..,....__=-Oa::.:,;:.a.::.O",u',--_ -=:mr::::::Jlrr:.~U~~~'fJJf:=:iJ.~~O~==~'flIC.~ -A23/ D15 XDo-XD1!> (External System Data Bus) =::JIJ:r-41J., 11111/) UAS ~ 'ULJl1 AS UDS L -____ ~/~iI__------~\\~\----~or--- lOS /0\\\ RW IlL-_--.-Jor---W \W"~__________ urw OWN DDIR \\\ 0/ DBEN HiBYi'E \\\ m \\\ ur ACK DONE ClK ------+--- Read One Word - - t - - Wnte One Word From DeVice To Memory The Last Transfer Figure 22 Dual Addressing Mode, ReadIWrite Cycle, Source = 16·bit Device, Word Operand ~HITACHI 378 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD68450 CLK As/Do ~A23/D15 XDo-XD15 (External System Data Bus) UAS AS UOS LOS III RW III OWN DDrn \~'I~-----n~nr-ln~~~~----~a~r--_,n DilEN ---1JT\\\ III \\I III \\I ffiliVIT liTACK OTC ACK CLK -----t--- Read One Byte -----+---- Read One Byte -------+------- Write One Word From DeVice From DeVice To Memory Figure 23 Dual AddreSSing Mode, Read/Wnte Cycle Source = 8-blt DeVice, Word Operand CLK Aa/Do -An/DIs XDo-XD15 (External System Data Bus) UAS AS Dos [OS III 0/ [[JW. ~X~ rrr- [JJ RW \!.\ OWN OOIR - , 0/ 5llEN \\I III m [[JW. ffT OTACK JD III OJ \\\ \\\ OTC '&.....-JJJ ACK CLK -+- Read One Word --t--- Write One Byte Write One Byte From Memory To DeVice To DeVice Figure 24 Dual AddreSSing Mode, Read/Wnte Cycle, Destination = 8-blt DeVice, Word Operand ~HITACHI Hitachi America Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 379 HD68450------------------------------------------------------------------- HD6800 Compatible Device Transfers When a channel IS programmed to perform HD6800 compatible Illustrates thIS protocol Refer to FIgure 26 for the read cycle timmg transfers, the PCL hne for that channel is defmed as an Enable clock and FIgure 27 for the wnte cycle tlmmg. In FIgure 26, the DMAC mput. The DMAC performs data transfers between Itself and the latches the data at the falhng edge of clock 19, so a latch to hold the penpheral devIce usmg the HD6800 bus protocol, wIth the ACK data IS necessary as shown In Figure 47. output providmg the VMA (valtd memory address) sIgnal FIgure 25 OMAC (MASTER) H 06800 Device Initiate Cycle 1) Start a normal Read or Wnte Cycle 2) Monitor Enable until It IS low 3) Assert Acknowledge (ACK) I Transfer Aata 1) Walt until Enable IS active 2) Transfer the Data goes low • Terminate Cycle 1) The master walts until Enable 2) Assert DeVice Transfer Complete (oTC) (On a Read cycle the data IS latched as clock goes low when i5TE 15 asserted.) 3) Negate AS, UOS, LOS, ACK and DTC ~ Start Next Cycle Figure 25 HD6800 Cycle Flowchart ClK As/Do Address Out Data In ~A23/D15 =::JC)Jmmoommmmnmmnllllll XDo-XD15 (JOWIIII (External System Data Bus) UAS AS UDS lDS 0-- RW OWN DDIR DBEN HIBYTE DTACK ACK DTC ___________\~\============~u---- u--- PCllE Clock) _,--=-=----,r ClK Figure 26 Dual Addressing Mode, HD6800 Compatible DeVice, Read Cycle ~HITACHI 380 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68450 ClK ------~-------------------------~ ~8~~~D" ------~--------------------------~ mmmm Anotrt=-______. . : :D"'at"'a.: o'-'u: .t_________c.. IExtsmal Systs,:~~~ax~~:) 41~~II~I~t7===I!!'r--- BAR MTC top address of the table BTC (not used) <===:> memor'L..I--------~1 address A transfer count A '-------------' block A * to be loaded from the Imked array table memor'!:..~ address B block B } transfer count B peripheral device address -+ peripheral device or memory Figure 38 Transfer Example of the Linked Array Chaining Mode • HITACHI 392 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68450 mode, the BTC IS not used. When the DMAC refers to the linked In order to guarantee, rehable decoding, the DMAC verifies that array table, the value of the BFC IS outputted as the function the incoming code has been statable for two DMAC clock cycles code. The values of the function code regIsters are unchanged before acting on it. The DMAC pIcks up BECo-BEC, at the by the hnked array chainmg operation. rising edge of the clock If BECo-BEC, is asserted to the un- ThIS type of chaining allows entnes to be easily removed or defined code, the operation of the DMAC does not proceed. Inserted without havmg to reorganize data wIthin the cham. For example, when the DMAC IS waiting for DTACK, inputtmg Since the end of the chain IS mdlcated by a termmal hnk, the DTACK does not result in the termination of the cycle if BEC o- number of entnes m the array need not be specIfied to the BEC, is asserted to the undefined code. In addItIOn, when the DMAC. transfer request is receIved, BR is not asserted if the BEC o- The hnked array table must start at an even address in the BEC, is not set to no exception condition hnked array chainmg mode. Startmg the table at an odd address If exceptIOn conditIOn, except for HALT, is inputted during results m an address error. If "0" IS inItIally loaded to the the DMA bus cycle prior to, or in coincidence with DTACK, MTC, the count error IS sIgnaled. Because the MPU can read the DMAC terminates the current channel operation immediate- all of the DMAC registers, all necessary error recovery mforma- ly. Here coincident means meeting the same set up reqUIre- tlon IS avaIlable to the operatmg system. ments for the same samplmg edge of the clock. If a bus excep- The companslOn of both chammg modes IS shown In Table 8. tion condition exists, the DMAC does not generate any bus cycles until it is removed. However, the DMAC still recogmzes Table B Chaining Mode Address/Count Information requests. Base Address Base Transfer Completed Chaining Mode Register Counter When Halt The timmg dIagram of halt is shown in FIgure 39. This number of data address of the Base Transfer dIagram shows halt being generated during a read cycle from the Array Chaining blocks being array table Count"" 0 transferred 68000 compatIble devIce In the dual addressmg mode. If the Linked Array address of the Lmked halt exceptIOn IS asserted dunng a DMA bus cycle, the DMAC linked array (unused) does not terminate the bus cycle ImmedIately. The DMAC Chaining Address =' 0 table walts for the assertion of DTACK before terminating the bus cycle so that the bus cycle IS completed normally. In (4) Bus Exception Conditions the halted state, the DMAC puts all the control SIgnals to hIgh The DMAC has three hnes for inputtmg bus exception condi- Impedance and relinqUIshes the bus to the MPU. The DMAC tIOns called BEC o , BEC I , and BEC,. The priority encoder can does not output the BR until halt exception is negated. When be used to generate these SIgnals externally. These hnes arc halt exception IS negated, the DMAC acquires the bus again and encoded as shown m Table 9. proceeds the DMA operation. In order to insure a halt excep- tion operation, the BEC lines must be set to halt at least until Table 9 the assertion of DTC. BEC, BEC I BEC~ Exception Condition If the DMAC has the bus, but IS not executmg any bus cycle, the DMAC relInquIShes the bus as soon as halt exception 1 1 1 No exception condition IS asserted. 1 1 0 Halt 1 0 1 Bus error 1 0 0 Retry 0 1 1 Relinquish bus and retry 0 1 0 (undefined, reserved) 0 0 1 lundefined, reserved) 0 0 0 Reset ~HITACHI Hitachi America Ltd. • 22tO O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 393 HD68450-------------------------------------------------------------- CLK n..rt.I1.J1J1..i..I1..Il..rU1. 123 4 5 8 1 8 9101112131415161718192021222324252627282930313233 AID BUS :=JUII }--4~ 'I/IC::.. UAS~~ AS UDS~~ [J)5~~ R!W ........, ~ III'l. --------------~~~========== OWN rmiR ~~~_ _ _ _ _ _ _ _ _ __w~ DB£N - - -.... \\\ 1If\.-.4~ HIBYTE -----------,~~r--------- l>TACK ~_ _ _ _ _ nr-U \\\ ur- --------~~----r------~ \wU~ _ _ _ _ _mm ~ ur- HALT (BECo- BEC2). -----tmu ~.~'-------------------- BGACK --------------~~-.~--~------------ 1m -------------------~'\~_-wm BG --------------------~"~~----~ CLK 6 7 8 910111213141516171 19 21222324252627282930313233 Read Other Bus Master Wnte from Device I Rear~~t~a~ to Memory Halt Asserted ---+1 DMA Halted -r----- DMA cycle • BEc" - BEC. = (011) Figure 39 Halt OperatIon Bus Error values of the MAR, the DAR, the MTC and the 8TC to the The bus error exception is generated by external circuitry values when the bus error exception occurred. 25 clocks are to Indicate the current transfer cannot be successfully com- reqUired for the error recovery cycle In the sIngle addreSSIng pleted and is to be aborted. The recognition of this exception mode and In the read cycle of the dual addreSSIng mode. 29 during a DMAC bus cycle signals the internal bus error con- clocks are reqUired in the write cycle of the dual addreSSIng dIllon for the channel for whIch the current bus cycle is being mode. If the DMAC does not have any transfer request In the run. As soon as the DMAC recognizes the bus error exception, other channels after the error recovery cycle, the DMAC rehn- the DMAC immediately terminates the bus cycle and proceeds qUishes the bus. to the error recovery cycle. In this cycle, the DMAC adjusts the The dIagram of the bus error lImIng IS shown In FIgure 40. • HITACHI 394 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD68450 CLK AID BUS UAS AS UOS ~\U~_ _ _ _.J/J~~ LOS J----\\\ ~~ R/W \\\ gr-n OVVN II OOIR ~m----------------------~II-----,~ OBEN ~mA _____________m~1 '--- HIBYTE DTACK --' "m"m \m \\\\\YfH OTC ACK Bus Error (lIECo-liECz) • CLK --+- Berr on Write to Dava I• Error Recovery Cycle" I Oth.r Chann.I ... • • BEC,-BEC, • (1011 •• In the lingle addressing mode and In the read cycle of the dual addressing mode. 25 clocks In the wnte cycle of the dual addreSSing mode' 29 clocks ... The DMAC keeps the bus because the other channels have requests pending. If other channels do not have requests, the OMAC relinquishes the bus after the error recovery cycle. FIgure 40 Bus Error OperatIon Retry moved, and thus wIll not honor any requests until it IS removed_ The retry exception causes the DMAC to terminate the However, the DMAC still recognizes requests_ The retry timmg present operation and retry that operation when retry is re- IS shown in Figure 4 L $ HITACHI Hitachi Amenca Ltd_ • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 395 HD68450---------------------------------------------------------------- m.....JIJ 'ULJIl m \\\ ~ ",-- A/W \\\ \\\ III /0 i'D III \\\ '\1\" ",-- m- DDIA ==LO:W======================================================== rnNN High liB"EN ....:..:;~--.... \\\ elml---"""""\\\ m- HIBYTE ~H~19~h------~==================~--------~============~--- D~CK =---1U===~___~\I~\\\~\\~\\~\\\~I\~m~"~\\~\\~\\~\\~\\~\\~\\~\~\\~W~/_____\~\\~==nI~or--- DTC ~ ACK /0 \\\ (~!~.-----m ~----~~~~====~~------~==========~~--- or--- CLK --1---- Wnte to DeVice Retry Asserted - - - - - - \ - - - Wnte Cycle Retry - - f - - - - . BECo·BEC, = 10011 Figure 41 Retry Operation Relinquish and Retry (R&RI the prevIous operation. The relinquish and retry exception causes the DMAC to The diagram of the relinquish and retry timing IS shown In relinqUish the bus and three·state all bus master controls and Figure 42. when the exception is removed, rearbltrate for the bus to retry • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 396 -------------------------------------------------------------------HD68450 ClK nnnnnnnnr~ ., 'y' 3'" 5 "r' 7'" 9 'io'"I;r'13'1t,S'rit17 18 192021 22 23 24 25 26 27 28 29 30 31 AID BUS ::::»II ~!--4l1-== UAS~~ AS~~ UDS~~ lDS~~ R/IN \""';-r----' OWN ~~~_______________ DDIR \\1iL_ _ _ _---MJIIf\..-1~ DBEN ---\\\ ,--.....,.~ HIBYTE --------------------~~~r--------------- DTACK --.J/I """,,"',,"\\\\. \\\ or- DTC '-<'~ ACK R&R - -...." r- >- 74LS04 ... OWN UAS .... G • 1 OE G OE 16 16 16 As/Do - A23/D 15 D Q Q~ As - A23 (Addre.. Bus) 74LS373 X2 HD68450 +5V,? DMAC ~ -!.A DBEN 74LS245 G B J - . Do-D, DDIR DIR (Data Bus) ~A L..-...... G 74LS245 B~ DIR Figure 45 An Example of the Demultlplexed Address Data Bus .HITACHf Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 399 HD68450--------------------------------------------------------------- ~1~:::::::D~O::D:,,::::::~---~::~====:_------lk~D:O~D:,,~ ~ Data & Address -y Aa-A23 Bus Interface F DC I-------- etc' i---- k: 1= I ) 00-015 ~ I ) A,-An ~ ~ - MEM &MMU ~ t= I--- f----------- AS l - f.--. f--------. lOS l- f-. I-------< ODs l- f-. I-------< A/iN l- f-. I--- DTACK FCo-FC2 -J- 00-0,5 C ~ HD68000 MPU A,-An AS C \--- - ::: lOS I- 1-0 UDS l- I-- A/iN I- 1-0 DTACK l- I- VPA l- I- VMA l- I- l- I- -r;r E T 3 l- I- Ene l- I- L- The address bus and the system control bus In each device are omitted In thIS Figure. Figure 46 An Example of Inter-device Connection In the HD68000 System $ HITACHI 400 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD68450 • ATTENTION ON USAGE DMAC latches the data when DTC IS asserted and not at the falhng edge of E clock The 74LS373 need to be proVIded ex- (11 How to interface various 6800 type peripheral devices to ternally as shown In FIgure 47 so that the data from the 6800 the DMAC based system. devlee can be held on the bus for a large penod of tIme untIl When the DMAC IS readIng data from the 6800 devlee, the the DMAC can latch the correct data. -r r-- E 00-07 00-07 6800 Type Device '-- ~ AS W~~ ES t--- AS E 00-07 00-07 6800 Type Device ~ '-- ~-g r ' ES ~ "u ". t-- AS LCT/DIR WRITE CURRENT I---- w '- C) DIRECTION·IN w a; -:;:~ !:: :::I ~ I-lLI w ...J x f.- oC) MFM RWDATA u.!!: ::: ¥ >C) a; READ DATA ...... - a '--- PRE.COMPEN} SATION - MFM WRITE DATA r-- SEEK COMPLETE SCP MULTI· I NDEX IDX/TRKO a; PLEXER TRACKOOO READY w u. u. rm. READY WFLT :::I WRITE FAULT III USELD DRIVE SELECTED VFO·CLOCK RCLK WCLK -~ IOSCILLATOR - Figure 3 ST506 Interface Circuit ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 411 HD63463---------------------------------------------------------------- HD63463 DRIVE BUSR/Wr----I r--- r-- r-- ~ UNIT SELECT TAG BUSLIFf UTAG a: r-- t:: r-- w ~ 01- a:- I-::J TAG 5 TAG 4 TAG 3 TAG5 TAG3 TAG2 ~ r--~ ZU or:!: UU TAG 2 TAG 1 TAG1 ~r--L--rTl-C~=============:J UNIT SELECT 20 -2 2 - a: BUSo!BUSs I !¢:==:::;;:==!>I. u..::J w u.. I BITO-4 til BUS.!BUS 9 - a: w > ~ BIT 5 - 9 w a: - Ii w a: > -== t:: w ::J til c. -.. ~t------I :s STATUSO-5 READ DATA - « 0 .......- - - - - - 1 READ CLOCK !;:::J ~ r= .......- - - - - - I SERVO CLOCK RWDATA .....-----------I"'~ ~ ~ ~I-------t WRITE DATA a: a: I- U 1 - - - - - - - - - 1 WRITE CLOCK r- RCLK .......- - - I WCLK .....- - - I a: 1 4 - - - -.......' w I USELD .......- - - I u.. UNIT SELECTED u.. SEC .......- - - I ::J SECTOR til INDEX ......- - - i INDEX +5V--'II\_-t OPEN CABLE _ DETECT Figure 4 SMD Interface Circuit ~HITACHI 412 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD63463 SOFTWARE INTERFACE Read 10 - Reads ID areas from specified number of sectors. The HOC is furnished with 22 commands, which are classified into 6 categories; specification, head positioning, disk access, Read 10 Skew - Reads ID area of a sector formatted by Write data transfer, drive check, and others. Format Skew command. Find 10 - Reads ID areas and stores the data in data buffers. Table 2 List of Commands ID area containing a CRC error is skipped reading, and the Category Command Mnemonic subsequent ID area without any CRC error is searched for. Specifications Specify SPC Check Data - Checks if there is any ECC or CRC error in Head Positiong Recalibrate RClB DATA area of specified sectors. No data is transferred to data Seek SEK buffers or to the main memory while checking. Disk Access Read Data RD Compare Data - Compares the data in data buffers and the data Read Erroneous Data RED read from specified sectors. Read ID RID Write Data - Writes the data stored in data buffers into DATA Read 10 Skew RIS area of specified sectors. (Note 1) Write Format - For the hard sector, formats a specified number Find 10 FID of sectors starting with a specified physical sector address. For Check Data CKD the soft sector, formats a track. Compare Data CMPD Write Format Skew - Formats a sector specified by a physical Write Data WD sector address by skewing ID area by 64 bytes. Write Format WFM Memory to Buffer - Transfers data from the main memory to Write Format Skew WFS the data buffer by DMA transfer. (Note 1) Data Transfer MTB Buffer to Memory - Transfers data stored in the data buffer Memory to Buffer to the main memory by DMA transfer. Buffer to Memory BTM Open Buffer Write OPBW Open Buffer Write - Provides initialization of pointer to write data into the data buffer starting from an address specified by Open Buffer Read OPBR Pointer Offset. The data buffer is written in the PIO mode after Drive Check Polling POL the command execution ends. Check Drive CKV Open Buffer Read - Provides initialization to read the data Others Abort ABT stored in the data buffer from an address specified by Pointer Offset. The data buffer is read in the PIO mode after the com- Check ECC CKE mand execution ends. Polling Disable POD Recall RCAl Polling - Monitors drive status including seek end. Test TST Check Drive - Sets result parameters indicating status of a (Note 1) Valid only for the hard sector. Disabled for the soft sector. specified drive to Parameter Block. Abort - Stops all operations being executed by the HOC. Specify - Specifies the HDC's operation mode, data transfer Check ECC - For ECC errors occurred during RD and RED mode, etc. command execution, reports result parameters indicating ad- dresses and patterns of erroneous data. Recalibrate - Moves the drive head to the outermost track (track 0). Polling Disable - Stops Polling command execution. Seek - Moves the drive head onto a track specified by the Next Recall - Clears all bits of the status register and sets a buffer Cylinder Address. pointer to the start address of parameter block so that com- mand parameters can be accepted. Read Data - Reads the data of specified sectors and stores it in the data buffer. Test - Makes the output pins of the HOC's drive interface three-stated. Read Erroneous Data - Reads disk data and stores it in the data buffer no matter a CRC error occurs or not in ID area. @HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 413 HD63463------------ Table 3 Command Code, Interrupt Request, and DMA Data Transfer Command Code Interrupt Factor Bits DMA Transfer Command Name Binary HEX CED SED DER DTM = 0 DTM = 1 Specify 1110 1000 E8 Recalibrate 1100 1000 C8 0 0 0 Seek 1100 0000 CO 0 0 0 Read Data 0100 0000 40 0 0 0 0 Read Erroneous Data 0111 0000 70 0 0 0 0 Read ID 0110 0000 60 0 0 0 0 Read ID Skew 0110 1000 68 Find ID 01100001 61 0 0 0 0 Check Data 0100 1000 48 0 0 0 Compare Data 1000 1000 88 0 0 0 0 Write Data 10000111 87 0 0 0 0 Write Format 10100011 A3 Write Format Skew 1010 1011 AB 10 0 0 0 Memory to Buffer 1001 0000 90 0 0 0 Buffer to Memory 0101 0000 50 0 0 0 Open Buffer Read 0011 0000 30 Open Buffer Write 0011 1000 38 Polling 0001 0000 10 0 0 Check Drive 0010 1000 28 0 Abort 1111 **** FO-FF 0 Check ECC 0010 0000 20 Test 11100000 EO Polling Disable 0001 1000 18 0 0 Recall Inhibited 0000 1000 1101 **** 08 DO-OF \ Y 0: Set at the end of command " . I 0: DMA transfer is performe d. DMA: DIrect Memory Access execution. DTM: Data Transfer Mode *; don't care PROGRAMMING MODEL At the beginning of the command execution, internal proces- Figure 5 shows the internal configuration of the HOC and a sors read command parameters in PB written by the MPU and programming model. The HOC internally provides an 8-bit STR determine the command operation mode. At the end of the. (Status register), an 8-bit CMR (Command register), a l6-byte command execution, the MPU reads result parameters in PB PB (parameter Block) and two 256-byte data buffers (DBUFO written by internal processors. and DBUFl). The data can be written to/read from PB, DBUFO When the HDC writes data to a disk, the host system sends disk and DBUFI by externally accessing DTR (Data Transfer write data to DBUF, then internal processors write the contents register). Their address are specified by a pointer, and is incre- of DBUF into the disk. When the HDC reads data from a disk, mented for each access. Internal processors set pointer value, internal processors read the contents of the disk and stores them or select one of PB, DBUFO and DBUFI to be connected to into DBUF, then the host system reads data from DBUF. The DTR. These internal processors are initialized by writing a com- MPU can access STR, CMR, and DTR while the DMAC can mand from the MPU to CMR. The result of command execution access only DTR in the single addressing mode. is reflected in the STR. ~HITACHI 414 Hitachi Amerrca Ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 When used in 8-bit mode, the HOC requires 2-byte address When used in a 16-bit mode, the HOC requires 2-word address space. One byte (RS (Resister Select signal) = 0) is an 8-bit read space. One word (RS =0) consists of an 8-bit CMR and an 8-bit only STR or an 8-bit write only CMR. Another byte (RS = I) read only STR. Another word (RS = I) serves as a 16-bit DTR. is an 8-bit DTR. 8·bit mode 16-bit mode Pins Pins RS R/W 7 0 RS R/W 15 87 0 0 1 --- STR 0 I/O STR I CMR 0 0 --- CMR 1 I/O -::1 OTR 1 1 110 --- OTR STR: Status register (read only) CMR: Command register (write only for a-bit mode) DTR. Data Transfer register I Programming Model Internal ($0000 - $OOFF) processor H POinter '-------' Address 0000'"1/' - . .J-.. OBUFO (256 bytes) PB (16 bytes) \ Host bus I ($8000 - $80FF) Pack/Unpack i 11 I Pointer IAddress t:J CJ [J "?- '--------I OBUF 1 1- (256 bytes) ... . l::::::::::::::::::::::::::::1 : Externally accessible register I PB: Parameter block Internal Configuration OBUF: Oata buffer Figure 5 Internal Configuration and Programming Model ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 415 HD63463------------------------------------------------------------------- When the HOC is either in idle state or command execution end STATUS REGISTER state, the MPU can access PB by accessing OTR. While the HOC The bit configuration of the Status register is shown in the is executing a command (during data transfer), DBUFO or figure below, and each bit is described in Table 4. DBUFI can be accessed by accessing DTR. Before accessing DBUFO or OBUFI, the MPU must issue a command to open 7 6 5 4 3 2 1 0 the buffer. I BSY I CPR I CEO I SED I OER I ABN 1 POL 1" 0 "J l l Polling blank bit Abnormal End Drive Error Seek End Command End Command Parameter Rejection Busy Table 4 Status Register Bit Description Set "1" Reset "0" Interrupt Bit Abbr. Bit Name DeSCription Condition Condition Source Bit 7 BSY Busy Command Command execu- While HOC is executing a command, BSY bit is acknowledged tlon end (except set to "1". for POL command) 6 CPR Command Command RCAL With this bit reset to "0". command parameters Parameter execution command can be written. Rejection received 5 CEO Command Command RCAL Set to "1" when command shown in table 3 End execution end command 0 ends. When this bIt IS set, H DC asserts I RQ signal. received 4 SED Seek End Drive seek end RCAL If detecting dnve seek end during execution of detected command 0 command shown in table 3, HOC sets "1" in this received bit at the end of command execution. 3 OER Drive Error Drive error RCAL If detecting drive error during execution of com- detected command 0 mand shown in table 3, HOC sets "1" in this bit received at the end of command execution. 2 ABN Abnormal End Error detected RCAL If acknowledging errors such as Illegal command, command drive faults, data over/under run, the HOC sets "1" received to ABN at the end of command execution. The SSB contains the error code. I POL Polling POL command POD command Set to "1" during execution of POL command. received received, seek operation end detected, drive error detected 0 Blank bit, always set to "0". 0: An interrupt is generated when this bit is set. ~HITACHI 416 Hitachi America LId. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 HOC CONTROL PROCEDURE Some commands do not require either or both of the command The MPU's procedure to control the HDC is shown in figure 6. parameter and result parameter. For some commands, the CED To control the HDC, the MPU must read STR of the HDC. The bit, SED bit, or DER bit is set to "I", which enables the HDC MPU may issue command parameters to PB in the HDC only to generate an interrupt request to the MPU. when both BSY and CPR bits are cleared. In the DMA (direct memory access) mode, data transfer takes This enables the HDC to change its status from idle state to place between the main memory and the HOC when a disk command wait state. Although a data buffer pointer does not access command is received. For this reason, the MPU must indicate the start address ofPB under command wait state, STR initialize the DMAC before issuing a disk access command to has the same contents as in the idle state. It is impossible to the HDC. Data such as system memory address and number of distinguish these two internal HDC states externally. transfer words are written into the DMAC register. After this, the MPU issues a command. The HDC executes a When the MPU writes data into internal control register in the command after setting BSY bit to "I". At the end of command DMAC, the DMAC state changes from the idle state to transfer execution, result parameters are stored in PB, the CPR bit is set (tquest wait state. Upon reception of a transfer request signal to "1", and BSY bit is cleared. Under this condition, the MPU REQ) from the HDC, the DMAC transfers data to/from the reads result parameters from PB. Issuing Recall command after HDC and system memory until specified number of words are this enables the HOC state to change from command execution transferred. The DMAC may genemte an interrupt request to end state to idle state. the MPU when the transfer is completed. OMAC n MPU I] HOC I] BSY-O CPR=O ~ Idle Issue ( Idle .;v-- command parameters ~ Transfer Command request wait walt Issue command BSY = 1 • ;. ...J..~ ... ,. Data transfer Transfer data (PIO) - Command execution (Data transfer) (OMA) InterrUP\ BSY=O 1 Fetch result parameters H CPR = 1 End of command axecution ..!J. Issue Recall command Figure 6 HOC Control Procedure • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 417 HD63463--------------------------------------------------------------__ COMMAND PARAMETERS are listed in the upper row of each command, and those for the Command parameters are listed in Table 5. Command param- SMD type in the lower row. eters used by the HOC to control ST506 type hard disk drive Table 5 Command Parameter (byte organization) ( Upper row: ST506) Commands Parameters lower row: SMD OMO OM1 OM2 CUl TO/NCH NCl NH NS SHIRL GPll GPl2 GPl3 lCCH lCCl Specify PCCH PCCl OMO OM1 OM2 CUl TO/NCH NCl NH NS SHIRL GPll GPl2 RGTlT Reca librate US $00 US $00 Seek US $00 NCAH NCAl US $00 NCAH NCAl Read Data US PHA lCAH lCAl lHA lSA SCNTH SCNTl US PHA $00 FLAG lCAH leAL lHA lSA SCNTH SCNTl Read Erroneous Data US PHA SCNTH SCNTl US PHA $00 PSA SCNTH SCNTl Read ID US PHA $00 OFFSET $00 SCNTl Read ID Skew (Note 1) US PHA $00 PSA $00 SCNTl Find ID US PHA $00 OFFSET $00 SCNTl US PHA $00 PSA $00 SCNTl Check Data US PHA lCAH lCAl lHA lSA SCNTH SCNTl US PHA $00 FLAG lCAH lCAl lHA lSA SCNTH SCNTl Compare Data US PHA lCAH lCAl lHA lSA SCNTH SCNTl US PHA $00 FLAG lCAH lCAl lHA lSA SCNTH SCNTl Write Data US PHA lCAH lCAl lHA lSA SCNTH SCNTl US PHA $00 FLAG lCAH lCAl lHA lSA SCNTH SCNTl Write Format US PHA SCNTH SCNTl Write Format Skew (Note 1) US PHA $00 PSA SCNTH SCNTl Memory to Buffer POFFH POFFl POFFH POFFl Buffer to Memory POFFH POFFl POFFH POFFl Open Buffer Read POFFH POFFl POFFH POFFl Open Buffer Write POFFH POFFl POFFH POFFl Polling None Check Drive US $00 US $00 Abort None Check ECC None Test None Polling Disable, None Recall None --. (Note 1) Read 10 Skew and Write Format Skew are valid only for SMD Interface.' ~HITACHI 418 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63463 SPECIFY COMMAND PARAMETERS are specified by a bit, and Table 8 lists parameters which are Parameters of SPC command may be used to specify the HOC specified by 3-16 bits. operation mode and the disk format. Parameters are listed in Table 6. Contents of these parameters are different according to The HOC supports soft sector format (in ST506 interface) and which type of drive is used: either ST506 or SMD. Each param- hard sector format (in SMO interface) which are shown in eter is described in Tables 7 and 8. Table 7 lists parameters which Figure 7. Table 6 Specify Command Parameter Organization Bit 7 6 5 4 3 2 o oMO SECT I MOD I I OIF PAOP I ECO I CRCP I 1 CRCI ACOR oMl OTM I BRST I CEOM I SEOM I OERM I 0 I AMEX I PSK oM2 SL (ST506) " CUL TO 1 NCH NCL NH NS SH I RL GPLl GPL2 GPL3 LCC High (LCCH) LCC Low (LCCL) PCC High (PCCH) PCC Low (PCCL) (SMD) OM2 o o o o SOFM SOFP STBL STBE ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 419 HD63463------------------------------------------------------------------- Table 7 Specify Command Parameters (a) Abbreviation Name ST506 SMD 0 1 SECT Sector Organization Soft Sector Hard Sector 0 1 MOD Data Modulation MFM NRZ 0 1 DIF Drive Interface ST506 SMD 0 1 PADP PAD Pattern $00 $4E * 0 ECD Error Check Code CRC ECC * * CRCP CRC Polynomial X l6 + 1 X l6 + Xl> + X S + 1 * * CRCI CRC Initial Value $0000 $FFFF * * ACOR Automatic Correction Disabled Enabled * * DTM Data Transfer Mode PIO DMA * * BRST DMA Burst Mode Cycle Steal Burst * * CEDM Command End Mask Unmasked Masked * * SEDM Seek End Mask Unmasked Masked * * DERM Drive Error Mask Unmasked Masked * * AMEX Address Mark Exclude Included Not Included * * PSK Parallel Seek Normal Parallel * 1 SOFM Servo Offset Minus Normal Minus None * SOFP Servo Offset Plus Normal Plus None * STBL Strobe Late Normal Late None * STBE Strobe Early Normal Early None * * EIther 0 or 1 Table 8 Specify Command Parameters (b) Abbreviation Name ST506 SMD SL Step Pu Ise Low 8 bits None CUL Connecting Unit List 4 bits 8 bits TO Read/Write Time-over 6 bits 6 bits NC Number of Cylinders 10 bits 10 bits NH Number of Heads 3 bits 5 bits NS Number of Sectors 8 bits 8 bits SH Step Pulse High 5 bits None RL Record Length 3 bits 3 bits GPL1 Gap Length 1 (8 bits) GAP1 HEAD SCAT GPL2 Gap Length 2 (8 bits) PLO SYNC PLO SYNC RGATE GPL3 Gap Length 3 (8 bits) GAP3 Latency LCC Low Current Cylinder 16 bits None PCC Precompensation Cylinder 16 bits None ~HITACHI 420 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 Soft Sector Format Supported by H DC ::c .J""""'L lOX ill L (from 2nd sector to N-1th sector) .' ~ Topsecto " GAP1 PLOSYNC AM LCA LHA S CRC 10 PAD PLOSYNC AM OM DATA ECC DATA PAD GAP3 Next Sector :!" A orCRC » , , , , , , 3 I I I I I I I I I CD g GPL1 GPL2 ~ $4E $00 N ~ ct. o q o CD ~l: CD • _ Nth (final) sector ----- PLO SYNC AM LCA - L H A ____ L ___ L S A CRC IDPAD PLOSYNC AM OM DATA ECCor CRC DATA PAD GAP4 I ~ ~ 00(') ~ l: <- ~ () Hard Sector Format Supported by HDC » ~ !!1 lOX/SEC lOX/SEC S""L .J""""L S S 1 Y N C F L L N C Y i HEAD SCAT PLOSYNC L LCA CRC PLOSYNC DATA ECCor DATA Next P A H S 10 PAD P PAD END REC A A CRC sector A G A T T RL ~ :J: ~ C a> w Figure 7 Disk Format ~ a> w HD63463---------------------------------------------------------------- OMO (Operation Mode 0) G(x) = (x21 + I)(x ll + x 2 + I) (1) SECT (Sector Format) bit = X 32 + X23 + X21 + XII + x 2 + 1 This bit specifies the format of the drive to be connected to CRC enables error detection, but not error correction. A the HDC. There are two drive formats available: hard sector 2-byte CRC code is added to the end of DATA area. A and soft sector. generation polynominal G(x) of CRC is specified by the CRCP bit. SECT = 1: Hard Sector Format (6) CRCP (CRC Polynominal) bit SECT = 0: Soft Sector Format This bit determines the polynominal G(x) that generates eRC of ID and DATA areas when ECD = O. (2) MOD (Modulation) bit This bit specifies modulation mode for data written to/read CRCP = 1: G(x) = x l6 + Xl2 + X S + 1 from the drive. CRCP = 0: G(x) = X l6 + 1 MOD = 1: NRZ (Non Return to Zero) (7) CRCI (CRC Initial) bit MOD = 0: MEM (Modified FM) This bit sets the initial value of CRC. (3) DIF (Drive Interface) bit CRCI = 1: Initial value = $FFFF This bit specifies the type of drive interface: either ST506 or SMD. The pin function of the HDC changes according CRCI = 0: Initial value = $0000 to the interface type. (8) ACOR (Automatic Correction) bit OIF = 1: SMO Interface This bit selects whether or not the HDC will automatically correct an error detected in DATA area during RD com- OIF = 0: ST506 Interface mand execution. In SMD interface, the HDC performs seek instruction, head ACOR = 1: Automatic correction is performed. specification, drive status check, etc to the drive through 5-bit bi-directional buffer BUSo/BUS s -BUS 4 /BUS 9 • ACO R = 0: Automatic correction is not performed. In ST506 interface, the HDC makes the drive perform seek Automatic correction mode is valid when ECC is specified operation by issuing step pulses. as the error check code of DATA area and the sector length is 256 bytes (RL = $01, ECD = I). For any other cases specify "0" to the ACOR bit. (4) PADP (PAD Pattern) bit This bit specifies the data pattern of PAD area that follows OM1 (Operation Mode 1) ID and DATA areas. The value of the PADP bit gives the (I) DTM (Data Transfer Mode) bit data pattern of PAD area that is written into the drive by This bit is used to specify data transfer operation between WFM or WD command execution. the HDC and the main memory during the execution of the follOWing commands: RD RED RID RIS FID WD Hard Sector Soft Sector CMPD WFM WFS PAOP = 1 Prohibited $4E These commands normally perform transfer between drive and memory via HDC data buffers. However, it is possible PAOP=O $00 $00 to cease transfer between the HDC and memory during these command execution by utilizing DTM bit. (5) ECD (Error Check Code) bit This bit specifies the error check code which is added to the end of the DATA area. CRC code is always specified for the OTM = 1: OMA mode ID area regardless of ECD bit. OTM = 0: PIO mode ECO = 1: ECC (Error Correction Code) In DMA mode, the HDC performs transfer between drive ECO = 0: CRC (Cyclic Redundancy Check Code) and memory via HDC data buffer. In this case, DMA transfer is performed between the HDC and memory, and ECC enables error detection and correction. A 4-byte ECC transfer mode is specified by BRST bit. code is added '0 the end of DATA area. A generation polynominal G(x) of ECC is as follows (the initial value is In PIO mode, the HDC performs transfer between drive and fixed to "00"). the HDC. In this case, transfer between the HDC and main ~HITACHI 422 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63463 memory must be supported by the host system using one (5) PSK (parallel Seek) bit of four buffer access commands of the HDC: MTB, BTM, This bit specifies seek operation mode, and is valid only OPBR, and OPBW. in ST506 interface (in SMD interface, PSK must be fixed to "I"). The HDC specifies step pulse issue timing by (2) BRST (DMA Burst) bit utilizing the value of OM2, SH, and PSK bits. This bit specifies DMA transfer mode of buffer access commands and drive access commands which perform PSK = 0: Normal Seek mode transfer between the HDC and the main memory. PSK = 1: Parallel Seek mode BRST = 1: Burst mode In Normal Seek mode, the HDC issues step pulses in long BRST = 0: Cycle Steal mode cycle (0.1-32 ms). SEK and RCLB command execution ends when the HDC issues step pulses and then detects seek end. (3) CEDM, SEDM, DERM bits CEDM (Command End Mask), SEDM (Seek End Mask), In Parallel Seek mode, the HDC issues step pulses in short and DERM (Drive Error Mask) bits specify whether the cycle (0.5-115 jIS). SEK and RCLB command execution IRQ signal is to be asserted or not. CEDM, SEDM, and ends when the HDC issues step pulses. Since the HDC does DERM correspond to CED (Command End), SED (Seek not check the seek end, parallel seek operation in multiple End), and DER (Drive Error) bits in STR (Status register). drives is realized by issuing SEK or RCLB command to these drives. Seek end is to be checked by using POL 1: IRQ is masked (not asserted). command. 0: I RQ is not masked (asserted). OM2 (Operation Mode 2) This 8-bit register specifies step pulse low width in STS06 inter- Mask bit Corresponding bits in STR face, and specifies drive control output signal during disk read command execution in SMD interface. CEDM CEO bit 5 In STS06 interface, OM2 indicates SL which specifies step pulse SEDM SED bit 4 low width (STPL: Step Pulse Low). Low-speed seek mode DERM DER bit 3 (Normal Seek mode) is selected when PSK = 0, and high-speed seek mode (parallel Seek mode) is selected when PSK = 1. Highest seek speed is realized when PSK = I and SL = $FF. The (4) AMEX (Address Mark Excluded) bit . relation between step pulse low width and SL is shown in the This bit specifies whether or not the byte-synchronization following Table (see Step Pulse High/Record Length regiSter to pattern marking the beginning of ID area or DATA area specify step pulse high width). (AM in soft sector, SYNCPAT in hard sector) is to be included in the CRC or ECC error detection span. The AMEX bit affects the byte length of ID PAD area and DATA PAD area. AM or SYNCPAT PAD length Step Pulse Low (SL) AMEX = 1 Excluded 2 bytes AMEX=O Included 3 bytes Seek Mode Sl STPl (step pulse low) Normal seek (PSK = 0) Sl = $00 STPl = 9B8 ClK $01 ~Sl~$FE STPl = (Sl - 1) x 1280 + 2364 ClK (1) (254) (2364 ClK ~ STPl ~ 326204 ClK) Sl = $FF Disabled Parallel seek (PSK = 1) Sl = $00 STPl= 27ClK $01 ~Sl~$FE STPl = Sl x 6 + 28 ClK (1 ) (254) (34ClK ~ STPl ~ 1152 ClK) Sl = $FF STPl= 5ClK • HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 423 HD63463----------------------------------------------------------------- - - 7 6 5 4 3 2 1 0 J J ..!. Drileu Drive Unit Drive Unit 2 1 mtO STPL Drive Unit 3 Drive Unit 4 Drive Unit 5 Drive Unit 6 Drive Unit 7 In SMD interface, OM2 specifies drive control output signal TO/NCH, NCL (Read/Write Time Over, Number of Cylinders from the HDC during data read command execution. In data High/Low) write command (alI the commands that assert WGATE signal) NCH and NCL registers specify the number of cylinders in disk and SEK, RCLB command execution, outputs of drive control drive, and time-over during disk access command execution. signals are low regardless of the contents of OM2. Bits 4-7 in OM2 are to be set to "0". (1) TO (Read/Write Time Over) The high-order 6 bits in TO/NCH are used to assign the ID SOFM bit: With SOFM = I, the drive head is offset from search time: time-over (tover). According to the value of the normal position away from the spindle. TO, the HDC sets time-over period as follows. SOFP bit: With SOFP = I, the drive head is offset from $01 ~ TO ~ $3F (TO = $00 is prohibited.) the normal pOsition towards the spindle. TO x 8 X 10' CLK~tover~(TO+ 1) x 8 X 10' CLK STBL bit: With STBL = 1, the data from the drive PLO data separator is strobed later than usual. (2) NC (Number of Cylinders) STBE bit: With STBE = 1, the data from the drive PLO The low-order 2 bits of TO/NCH and 8 bits of NCL specify data separator is strobed earlier than usual. the number of cylinders (NC). NC is 1023 at a maximum. Its value is number of cylinders minus 1. 7 6 5 4 3 2 1 0 The HDC uses NC to issue NC + 10 step pulses during RCLB command execution (ST506 interface), or to check whether or not the command parameter NCA (Next 0 0 0 0 SOFM SOFP STBL STBE Cylinder Address) exceeds NC during SEK command execution. I J. J Str~be Strobe Late Early 15 1 141 13 1 12 ) 11 ) 10 Servo Offset Plus 9 ) 8 Servo Offset Minus ReadIWrite Time Over NCH CUL (Connecting Unit List) . Number of Cylinders High This register stores bit-map information indicating which drive is connected to the HDC. 71615141312J1)0 Number of Cylinders Low In STS06 interface, bits 0-3 correspond to drives 0-3 respec- tively. To connect a drive, write "1" into the corresponding bit (up to 4 drives can be connected). NH (Number of Heads) 7 6 5 4 3 2 1 0 This register indicates the number of heads. Its value is to be number of drive heads minus 1. 0 0 0 0 In disk access command execution, the HOC checks whether or I I J Drile1 Unit 0 Drive Unit Drive Unit 2 not PHA (Physical Head Address) specified by command param- eters exceeds NH. When PHA exceeds NH, the HOC sets IPH (Invalid Physical Head Address) to result parameter SSB (Sense Drive Unit 3 Status Byte) and abnormally terminates the execution. In SMD interface, bits 0-7 correspond to drives 0-7 respective- To select a head during multiple track operation in disk access ly. To connect a drive, write "1" into the corresponding bit (up command execution, the HOC checks whether PHA exceeds NH to 8 drives can be connected). or not. When PHA exceeds NH, the HOC sets IPH to SSB and abnormally terminates the execution . • HITACHI 424 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 In SMD interface, the high-order 5 bits are to be fIXed to "0", Number of Heads - In ST506 interface, up to 8 heads can be selected ($00 ~ NH ~ $07). Bits 3-7 must be fIXed to "0". - - .~ STPL SH STPH (step pulse high) In 5MB interface, up to 32 heads can be selected ($00 ~ NH ~ $lF). Bits 5-7 must be fIXed to "0". SH =' * : don't care STPH = 2 elK (Note 1) SH = $00 STPH = 3 elK 7 6 5 4 3 2 1 0 $01 ~SH~$lF STPH = SH x 3 + 1 ClK 0 0 0 2' 2' 2' 2' 2' (1) (31) (4 ClK ~ STPH ~ 94 elK) (Note 1) Highest-speed seek mode (PSK = 1, SL - $FF) NS (Number of Sectors) (2) RL (Record Length) This register indicates the number of sectors. Its value is number The low-order 3-bit SHIRL indicates record length per of sectors/track minus 1 ($00 ~ NS ~ $FE). sector. In data read/write command execution, the HDC checks whether LSA (Logical Sector Address) exceeds NS or not. RL Record Length Bit 2 Bit 1 Bit 0 In multiple sector operation in data read/write command execution, the HDC checks whether LSA exceeds NS or not 0 0 0 Inhibited each time LSA is incremented after one sector operation. If 256 bytes 0 0 1 LSA exceeds NS, the HDC sets "0" to LSA, increments LHA and PHA, and compares NH and PHA. If NH exceeds PHA, the 0 1 0 512 bytes HDC executes multiple track operation. IfPHA exceeds NH, thll HDC sets !PH (Invalid Physical Head Address) to result param- 0 1 1 1024 bytes eter SSB and abnormally terminates the execution. 1 0 0 2048 bytes 1 0 1 4096 bytes 1 1 0 Inhibited Number of Sectors 1 1 1 Inhibited GPl1,2 (Gap Length 1,2) SHIRL (Step Pulse High/Record length) These registers specify the length of gap and SYNC area in the sector during WD and WPM command execution. 7 I6 I5 I4 I3 2 I1 I0 Record length GPLl specifies the length of gap areas (GAPl in soft sector, Step Pulse High (SH) (Rl) HEAD SCAT in hard sector) that follow an index or a sector pulse by byte. It is used for WPM command execution. These areas are formatted 6 bytes longer than the value set to GPLl (1) SH (Step Pulse High) during the command execution. [$00 ~ GPLl ~ $FF] The high-order 5-bit SHIRL indicates step pulse high width (STPH: Step Pulse High) in ST506 interface. 7 6 o STPH is fIXed to 2CLK in highest speed seek mode (pSK = 1 and SL =$FF). Otherwise, SH sets STPH regardless of Gap length 1 the PSK bit. The relation between STPH and SH is shown in the following table. SH is ignored when maximum speed seek mode is selected in ST506 interface. ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 425 HD63463---------------------------------------------------------------- GPL2 specifies the length of SYNC area located at the begin- PCC (Precompensation Cylinder) ning of ID and DATA areas by byte. It is used for WD and This register specifies the address of the outermost cylinder WFM commands. This area is formatted 3 bytes longer than the from where compensation of the bit data timing is required. value set to GPL2 during the command execution. [$08 ~ This is valid only in ST506 interface. When a disk write com- GPL2~$FF) mand is executed to any cylinder whose address is equal to or greater than PCC, either EARLY or LATE signal is generated in accordance with the bit data timing. [$0000 ~ PCC ~ NCj 7 6 5 4 3 2 Gap Length 2 15 114 I 13 112 111 I 10 I 9 I 8 Pre-compensation Cylinder High GPL3/RGTLT (Gap L~ngth 3, Read Gate Latency) GPL3/RGTLT specifies the length of GAP3 for the soft sector and read gate latency delay for the hard sector by byte. Pre-compensation Cylinder Low GPL3 specifies the length of GAP3 located at the end of a sector in soft sector format by byte. It is used for WFM com- mand. This area is formatted 3 bytes longer than the value set OTHER COMMAND PARAMETERS to GPL3. [$09 ~ GPL3 ~ $FF) The following describes command parameters other than SPC command parameters in alphabetical order. 2 (I) FLAG This parameter is used to specify the FLAG byte of ID area of a hard sector that the HOC will access. If the FLAG given by the command parameter does not match the FLAG read from ID area of the disk, the HDC will not RGTLT specifies the time period between the detection of an access the sector. index or a sector pulse and the assertion of RGATE in unit of byte. It is used for disk read commands. RGATE is asserted 5 (2) LCA (Logical Cylinder Address) bytes later than the value set to RGTLT. RGTLT must be set This parameter is used to specify the logical cylinder ad- to assert RGATE at the beginning of or before PLO SYNC area dress of ID area (16 bits: the high-order 8 bits for LCAH in the ID field. During RlS command execution, 64 bytes are and the low-order 8 bits for LCAL) of a sector that the added to the amount of latency automatically. [$00 ~ RGTLT HDC will access. If LCA given by the command parameter ~$FF) does not match LCA read from ID area, the HOC will not access the sector. In soft sector format, it is prohibited to specify $F8 to the high-order 8 bits (LCAH). 1 6 J 5 I 4 1 3 1 2 J 11 0 (3) LHA (Logical Head Address) RGATE Latency LHA is used to specify the logical head address of ID area of a sector that the HOC will access. If LHA given by the command parameter does not match the LHA read from ID area, the HDC will not access that sector. In multiple track LCCH, LCCL (Low Current Cylinder High/Low) operation, LHA is automatically incremented by one. Since For the inner cylinders of the drive, it is necessary to reduce LHA is logical, it may exceed the number specified by the write current during WFM and WD command execution. These parameter NH (number of heads). registers specify address of the outermost cylinder from where write current is reduced. This is valid only in ST506 interface. (4) LSA (Logical Sector Address) When a disk write command is executed to any cylinder whose LSA is used to specify the logical sector address of ID area address is equal to or greater than LCC, the HDC asserts the that the HDC will access. If LSA given by the command LCT pin to high. [$0000 ~ LCC ~ NC (Number of Cylinders)) parameter does not match LSA read from ID area, the HOC will not access the sector. In multiple sector operation, LSA is automatically incremented by one. Since LSA is 15 I 14 I 13 I 12 I 11 I 10 I 9 I 8 compared with the control register NS (number of sectors) for switching of heads, the LSA must not exceed the NS. Low Current Cylinder High (5) NCA (Next Cylinder Address) This parameter is used to specify the physical address (10 bits) of a cylinder to which the head will move when a SEK command is issued. The outermost cylinder address is Low Current Cylinder Low $0000. The high-order 8 bits of NCA are used for NCAH and the low-order 8 bits for NCAL. The high-order 6 bits of NCAH must be fixed to "0". If NCA exceeds NC, com- ~HITACHI 426 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD63463 mand execution abnormally terminates. (10) SCNT (Sector Count) This parameter is used to specify the number of sectors (6) OFFSET (16 bits) that the HOC will continuously access in a disk OFFSET specifies how many sectors to be skipped reading access command execution. Upper 8 bits are SCNTH, and after an index pulse. Then the HOC reads ID fields, and lower 8 bits are SCNTL. Up to 1024 sectors are specified stores them into the data buffer. in ST506 interface (128 sectors x 8 heads), and up to 8160 sectors are specifiable in SMD interface (255 sectors x 32 (7) PHA (Physical Head Address) heads). For commands relating to the ID (RID and WFM), The MPU specifies PHA when issuing a disk access com- they perform no multiple track operation. In addition, mand. Unlike LHA, PHA is physical, and the bit status of maximum number of sectors that can be formatted at a PHA is directly output as HSEL signals. The high-order 5 time by WFM command is 128 for soft sector, and 102 for bits of PHA must be fixed to "0" for ST506 interface, and hard sector. the high-order 3 bits for SMD interface. In multiple track operation, PHA is automatically incremented by one with- (11) US (Unit Select) in the HOC if another head switching is required. If PHA The MPU specifies the address (8 bits) of a target drive exceeds the value given by NH, the command execution when issuing a head positioning, disk access or drive check will abnormally terminate. command. The contents of US are directly output from USEL signals. The high-order 6 bits of US must be fixed to (8) POFF (pointer Offset) "0" for ST506 interface, and the high-order 5 bits for SMD The MPU specifies a transfer start address (16 bits) when interface. US is the high-order 8 bits of a 16-bit word, and issuing a command for accessing the data buffer. The MSB the low-order 8 bits of the word are PHA or $00. It is not of the high-order 8 bits (POFFH) selects one of two data necessary to issue $00 to the low-order 8 bits when CKV or buffers, and the remaining 7 bits must be fixed to "0". RCLB command is issued. The low-order 8 bits (POFFL) specifies a transfer start address of the selected data buffer (256 bytes). For the RESULT PARAMETERS 16-bit data bus, POFF is limited to an even address only. Result parameters are listed in Table 9. In this table, result parameters used by the HOC to control STS06 type hard disk (9) PSA (Physical Sector Address) drive are found in the upper row of each command, and those This parameter is used to specify a physical address of a for SMD type in the lower row. hard sector at which the execution of RID, RIS, FID, WFM, or WFS starts. If PSA is $00, the sector following an index pulse is specified. ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 427 HD63463---------------------------------------------------------------- Table 9 Result Parameters (Byte-organized) (Upper row: ST506) Command Parameter lower row: SMD Recalibrate $00 SSB US VUl $00 SSB US VUl Specify ($00 SSB) ($00 SSB) Seek $00 SSB US VUl $00 SSB US VUl Read Data $00 SSB US PHA lCAH lCAl lHA lSA SCNTH SCNTl $00 SSB US PHA $00 FLAG lCAH lCAl lHA lSA SCNTH SCNTl Read Erroneous Data $00 SSB US PHA SCNTH SCNTl $00 SSB US PHA $00 PSA SCNTH SCNTl Read ID $00 SSB US PHA $00 SCNTl Read ID Skew (Note 1) $00 SSB US PHA $00 PSA $00 SCNTl Find ID $00 SSB US PHA $00 SCNTl $00 SSB US PHA $00 PSA $00 SCNTl Check Data $00 SSB US PHA lCAH lCAl lHA lSA SCNTH SCNTl $00 SSB US PHA $00 FLAG lCAH lCAl lHA lSA SCNTH SCNTl Compare Data $00 SSB US PHA lCAH lCAl lHA lSA SCNTH SCNTl $00 SSB US PHA $00 FLAG lCAH lCAl lHA lSA SCNTH SCNTl Write Data $00 SSB US PHA lCAH lCAl lHA lSA SCNTH SCNTl $00 SSB US PHA $00 FLAG lCAH lCAl lHA lSA SCNTH SCNTl Write Format $00 SSB US PHA SCNTH SCNTl Write Format Skew (Note 1) $00 SSB US PHA $00 PSA SCNTH SCNTl Memory to Buffer ($00 SSB) ($00 SSB) Buffer to Memory ($00 SSBI ($00 SSB) Open Buffer Read ($00 SSB) ($00 SSB) Open Buffer Write ($00 SSB) ($00 SSB) Polling $00 SSB US VUl $00 SSB US VUl Check Drive $00 SSB US $00 DSTO $00 $00 SSB US $00 DSTO DSTl DST2 DST3 Abort $00 SSB $00 SSB Check ECC $00 SSB EAO EA 1 EPO EPl EP2 $00 $00 SSB EAO EAl EPO EPI EP2 $00 Test ($00 SSB) ($00 SSB) Polling Disable ($00 SSB US VUl) ($00 SSB US VUl) Recall ($00 SSB US VUl) ($00 SSB US VUl) (Note 1) Read ID Skew and Wnte Format Skew are valid only for SMO. (Note 2) ParenthesIzed parameters are reported when a command IS ISsIJed--I-mder the Illegal condition. @HITACHI 428 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 DST (Drive Status) Table 10 Drive List (DST) Bit 7 6 5 4 3 2 1 0 ST506 DSTO DSTO READY · SCP · TRKO . 0 WPRT WFlT FlT 0 SKERR 0 OCYl URDY 0 DSTl · · SElER WERR3 WERR2 WERRl SERR2 SERRl SMD DST2 · · SAD32 SAD16 SAD8 SAD4 SAD 2 SAD 1 DST3 · • Depends on the stete of BUS,/BUS, - BUS,/BUS•. · DTP32 DTP16 DTP8 DTP4 DTP2 DTPl Each bit of DST indicates drive interface input signal level. (11) for DST bits indicating error status. DSTO (I byte) is reported in STS06 interface, and DSTO-3 (4 bytes) are reported in SMD interface. (S) WPRT (Write Protected) This bit indicates that a selected drive is write protected. In STS06 interface, the WFLT bit in DSTO indicates the signal level of WFLT pin. Even if WFLT signal is momentarily (6) SERRI (Status Error I) asserted, the internal latch memorizes this and reflects its state on WFLT bit. When WFLT signal is negated, the latch read (7) SERR2 (Status Error 2) operation by the HOC clears this latch. (8) WERRI (Write Error I) In SMD interface, the HOC reads 8 bits by 4 words of the drive status signal which is selected by signals TAG2 and TAGS. r (9) WERR2 (Write Error 2) TAG5 Status (10) WERR3 (Write Error 3) TAG2 o o DSTO (11) SELER (Select Error) o DSTl (12) SADI-32 (Sector Address) o DST2 (13) DTPI-32 (Drive Type) DST3 EA (Error Address) Reports the start address (16 bits) of a byte from where the Following (I) through (S) are read during CKV command burst error that is detected during CKE command execution execution and checked during disk access command execution. exists. The high-order 8 bits are EAO, and the low-order 8 bits DSTl through DST3 are referred to during CKV command are EAI. As the HOC corrects up to II bits of burst error, the execution. MPU corrects contiguous 3 bytes starting from a byte specified by EA. EA = $0000 indicates a start address of sector data. Status that each bit in DSTl-3 indicates may vary according to the drive connected to the HOC. Following descriptions indicate EP (Error Pattern) DST bit function when the HOC is connected to a Hitachi 8" Reports EPO, EPI, and EP2 as the pattern required for error disk drive, DK-812S. correction as a result of CKE command execution. The MPU exc1usive-OR 3-byte data containing errors with EPO, BPI, and (1) URDY (Unit Ready) EP2. This bit indicates that a selected drive is in ready state. FLAG (Flag) (2) OCYL (On Cylinder) Reports the same value as FLAG specified by command This bit indicates that a head is positioned correctly on a parameters. track. leA (logical Cylinder Address) (3) SKERR (Seek Error) Reports the same value as LCA specified b}' command This bit indicates that errors have been detected in a drive parameters. during seek operation. lHA (logical Head Address) (4) FLT (Fault) Bit organization of LHA is the same as that of the command This bit indicates that errors relevant to disk access have parameter LHA. In multiple track operation, LHA is in- been detected in the drive. Result parameter DSTl cremented by one each time access to one track ends. indicates what type of error has occurred. See (6) through ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 429 HD63463---------------------------------------------------------------- LSA (Logical Sector Addresst SCNT reaches "0" , command execution normally terminates. Bit organization of LSA is the same as that of the command parameter LSA. In multiple sector operation, LSA is in- SSB (Sense Status Bytet cremented by one each time access to one sector ends. This is the area where 8-bit error code is set ($00 is set for normal termination). There are 25 error codes which notify PHA (Physical Head Addresst what kind of error has occurred during the command execution Bit organization of PHA is the same as that of the command (See Tables 11-14). parameter PHA. In multiple track operation, PHA is in- cremented by one each time access to one track ends. US (Unit Selectt Reports the same value as US specified by command parameters. PSA (Physical Sector Addresst Bit organization of PSA is the same as that of the command VUL (Valid Unit Lisd parameter PSA. In multiple sector operation, PSA is in- VUL is a bit-mapped list which gives the address of a drive that cremented by one each time access to one sector ends. is ready to accept a head positioning or a disk access command. Its bit organization is the same as that of CUL. This bit is set SCNT (Sector Cound when seek operation in the drive is terminated, or when SPC Bit organization of SCNT is the same as that of the command command is executed. This bit is reset when seek operation parameter SCNT. In multiple sector operation, SCNT is de- starts, when drive error occurs, or when the bit in CUL cor- cremented by one each time access to one sector ends. When responding to the drive is not set to "I" . Table 11 Error Codes Relevant to Host Interface Mnemonic Name Error Code Contents ABT Command Aborted 04 ABT command has been accepted. IVC Invalid Command 08 An invalid command has been accepted. PER Parameter Error DC The command parameter has not been stored in an appro- priate area in PB. NIN Not Initialized 10 Head positioning, disk access, and drive check commands have been accepted, before SPC command is executed. RTS Rejected Test 14 The TST command is received after SPC command has been received. Table 12 Error Codes Relevant to Drives Mnemonic Name Error Code Contents NUS No USELD 18 USELD signal for a selected drive has not been returned. WFL Write Fault 1C WFL Tsignal (ST506 interface) or FL Tsignal (SMD interfacet has been detected. NRY Not Ready 20 READY signal has been negated. Table 13 Error Codes Relevant to Head Positioning Commands Mnemonic Name Error Code Contents NSC NoSCP 24 SCP signal (ST506 interfacet or the SKEND signal (SMD interfacet has not been returned in a certain period. ISE In Seek 28 SE K, or a disk access command has been issued for a drive in seek operation. INC Invalid NCA 2C NCA (Next Cylinder Address) greater than NC (number of cylinders) has been specified. ISR Invalid Step Rate 30 The highest-speed seek has been specified in the normal seek mode. SKE Seek Error 34 SEK or a disk access command has been issued to a drive which is in seek error state (SMD only). ~HITACHI 430 Hitachi Amenca Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD63463 Table 14 Error Codes Relevant to Disk Read/Write Commands Mnemonic Name Error Code Contents OVR Over Run 38 A transfer between the main memory and data buffers has not caught up with a transfer between a drive and data buffers. IPH Invalid PHA 3C PHA (Physical Head Address) greater than NH (Number of Heads) has been specified. DEE DATA Field ECC Error 40 A data error has been detected by ECC (Error Correction Code). DCE DATA Field CRC Error 44 A CRC (Cyclic Redundancy Check Code) error has occurred in DATA area. ECR Error Corrected 48 An ECC error detected in DATA area has been automatically corrected. DFE DATA Field Fatal Error 4C A fatal ECC error has occurred in DATA area. NDA No DATA AM 60 The address mark in DATA area has not been detected. NHT Not Hit 50 In CMPD command execution, data from the host and disk data have not coincided with each other. ICE ID Field CRC Error 54 A CRC error in ID area has been detected in RID command execution in SMD interface. TOV Time Over 58 ID has not been found in the period specified by TO (Time Over). NIA No ID AM 5C The ID area that begins with improper address mark has been detected. NWR Not Writable 64 WD command has been issued to a drive where the write protect signal is asserted (SMD interface) CONTROL SEQUENCE FOR ST506 TYPE DRIVE Therefore, "4-bit period" or "I-byte period" description is formally expressed as "8 WCLK cycles" or "16 WCLK cycles" DISK READ respectively. The ID search timing for RD or WD command execution is shown in Figure 27. (a) is the timing where AM is found. SYNC After reading DATA area and ECC or CRC area by RD com- signal is negated 4-bit period (on the basis of disk data) after mand execution, RGATE and SYNC signals are negated in the CRC pattern of ID area is completed. After reading CRC, the same timing as they are negated after reading ID CRC area (see HDC switches the clock in the satellite processor from RCLK to Figure 27 (a)). WCLK and then negates SYNC signal. DISK WRITE RCLK and WCLK clock signals are independent each other. To The timing of WeATE signal for WD command execution is remove the hazard during switching, the switching signal and the shown in Figure 28. The HDC negates ReATE signal after clock signal must be synchronized. Therefore, SYNC is normally reading ID area. Then WeATE signal is asserted 1 or 2-byte negated 4-bit period after reading CRC to switch the clock in period after ReATE is negated (2-byte when AMEX specified by the satellite processor from RCLK to WCLK. SPC command is at "0", I-byte when AMEX is at "1"). WeATE signal is negated immediately after PAD of DATA field ends. RGATE signal is usually negated 4-bit period after SYNC signal is negated, and then asserted again one to two-byte period later The relation between IDX signal and weATE signal during to read SYNC area preceding DATA area. RGATE is asserted WFM command execution is shown in Figure 29. weATE for l-byte period when the AMEX bit is set to "I" during SPC signal rises almost simultaneously with IDX signal (refer to elec- command execution, and for 2-byte period when set to "0". trical characteristics), and falls 3-byte or 4-byte period after IDX signal rises. The condition of EARLY and LATE signal genera- When AM is not found as shown in (b), the HOC searches for tion is shown in Figure 8. AM again by negating both SYNC and RGATE signals. RGATE signal is usually negated 4-bit period after SYNC signal is HEAD POSITIONING negated, and is negated for 2-byte period. The relation between DIR, STEP, and SEEK signals is shown in Figure 30. The unit is the number of CLK cycles (tcyc). As the MFM is specified during SPC command execution, the When 8 MHz clock signal is supplied to CLK, STEP Signal is frequency of clock signals synchronizing with disk data (such as output at least 33.8 J.l.S after DIR signal becomes valid. RCLK, WCLK) is doubled compared to the data transfer rate. ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 431 HD63463-------------------------------------------------------------- , , Data I I 0 : * ,,, ,,, : RWDATA I, n v=F\ I, ,,, I ,, , ,, EARLY I J ,, I \ , I Data bit I I ,I ,: Data I 0 I , I I , I : * RWDATA r¥>:,, IlJ- , ,, I LATE I J \ I , , I , I I I I , I I I Data 0 I 0 I 0 , I , , , I ,, RWDATA I ,, 1#\ ,, ,, JL EARLY I :[ ,, I \ , I I , I 1 Clock bit I I 1 , I Data I 1 0 , 0 , 0 1 I 1 , , I , I ,I RWRLY I ,, 0¥> 1 1""'L- I LATE I '[ I \ , , ,, I ,, , I , Figure 8 Write Precompensation CONTROL SEQUENCE FOR SMD TYPE DRIVE TAG3 signal. The external circuits provide the drive with above mentioned 5-bit latch outputs, the low-order 5-bit outputs on DRIVE SELECTION, STATUS CHECK, FAULT CLEAR BUSo/BUSs -BUS 4 /BUS., and TAG3. In Fault Clear, BUSL/R The HOC performs drive selection, status check, and Fault signal is in high, and only BUS 4 /BUS. is in high. Clear, for all disk control command execution. Figure 35 shows the drive selection timing. The drive receives BUS o/BUS s Head selection is performed by disk access commands. Figure -BUS 4 /BUS. from the HOC and latches them using UTAG 40 shows the head selection timing. Upper 5 bits are in low, signal. If the drive judges that its own drive number is specified, and the head address is supplied from the low-order 5 bits of it returns USELD signal within 9 CLK after the detection of BUS. At this time, TAG2 signal is used as a strobe signal. UTAG signal. Figure 36 shows the drive status check sequence. The HOC changes the direction of BUS o /BUS s -BUS 4 /BUS. Further, in the execution of disk access command group, the before reading the status. Then the HOC sets BUSL!H signal to HDC asserts TAG3 and generates RGATE or WGATE signal: high, therefore, the external circuit of the HDC can supply drive Figures 41, 42 and 43 show the total sequence. When TAG3 is status signal to the HOC during this period. At this time, asserted, the high-order 5 bits of BUS output Strobe Early/ BUSL!H is in high, and lower 5 bits are input to the HOC. Late and RTZ (it is not used for disk access). Then, the HOC outputs the low-order 5 bits. Servo offset is specified in figure The HDC resets FLT after reading the drive status which 42. When TAG3 is asserted along with BUS2 /BUS 7 or BUS,/ includes Fault, and the timing is shown in Figure 37. To set the BUSs, servo offset is performed in the drive. Therefore, the high -order 5 bits of BUS outputs to low, the HOC sets BUSo/ head is moved and the HOC waits until SKEND signal is re- BUS s -BUS 4 /BUS 9 to low, and asserts TAG3 signal with turned from the drive. Then, the HOC asserts BUS! /BUS 6 and maintaining BUSL!H in low. In external circuits of the HDC, supplies RGATE signal to the drive to perform the read BUSo/BUS s -BUS 4 /BUS. is latched by using TAG3 signal as a operation. strobe signal. If BUSL!H is in low, external circuits must be used not to supply TAG3 signal of the HDC to the drive. Then, Figure 43 shows assert/negate timing of RGATE and WGATE the HDC outputs the low·order 5-bit information to BUS o/ signals which correspond to the disk format. During disk access BUSs - BUS 4 /BUS., sets BUSL!R signal to high, and asserts command or ID read command execution, RGATE signal is ~HITACHI 432 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63463 asserted after a time period corresponding to byte count of disk execution abnormally terminates when erroneous data is data has elapsed since IDX or SEC signal is detected. After read- detected during any command execution. Then $40 is set to ing CRC, the HOC itself switches the clock to WCLK signal, SSB when an error is correctable, $4C when not correctable. then negates RGATE signal with a typical delay time equivalent to 8 bits of disk data. When DTM = I, the HOC sends I·sector data including an error during RD or RED command execution and then abnormally To read the data field, the HOC asserts RGATE again with a terminates the command execution. After confirming that $40 dwell time of 1-2 bytes period. RGATE is negated for I-byte is set to SSB, the host issues CKE command to the HOC. period when AMEX bit is set to "I" during SPC command ex- ecution, and 2-byte period when AMEX bit is set to "0". The When DTM = 0, the HOC abnormally terminates the command HOC negates RGATE signal 8-bit period after reading CRC or execution after I·sector data including an error is stored in the ECC in data field. data buffer during RD or RED command execution. After con- firming that $40 is set to SSB, the host issues BTM command to To write the DATA field, the HDC reads ID area and asserts the HDC after DMAC's initialization, or, issues OPBR command WGATE signal 1-2 bytes period after RGATE signal is negated. and reads data buffers using move and load instructions and WGATE signal is to be negated when DATA PAD ends. During then stores buffer data to the main memory. Then, the host WFM command execution, WGATE signal rises in the same issues CKE command to the HDC. timing as IDX signal, and is negated 3-4 bytes period after IDX or SEC signal is detected. Receiving CKE command, the HDC calculates an error address (EA) and an error pattern (EP), and then sends result param- Figure 38 shows the execution timing of RCLB command. RTZ eters to the host. The erroneous data exists in three contiguous instruction is supplied to the drive through BUS, /BUS 6 and bytes of the corresponding sector in main memory. EA indicates TAG3. Figure 39 shows the execution timing of SEK command. start address of this 3-byte area ($0000 indicates a start address 10-bit cylinder address is output through BUSo/BUSs -BUS 4 / of sector data). The host exclusive-OR the 3-byte area and EP BUS.,S bits at a time. Strobe signal is TAGI at this time. to correct erroneous data. Figures 44,45,46 and 47 shows the execution timing of CKV The host judges CKE command execution end from status command. The HDC reads 8-bit drive status through BUSo/ change of BSY bit from "I" to "0". When SSB is $4C, CKE BUS s -BUS 4 /BUS.,3 bits first and then 5 bits. Then the HOC command issue is prohibited as it causes the erroneous reads status four times by switching TAG2 and TAGS signals. operation of the HOC. Even if errors are reported to be cor- Switching order is: [TAG2 = 0, TAGS = 1], [TAG2 =0, TAGS rectable (SSB = $40) during RD or RED command execution = I], [TAG2 = 1, TAGS =0], [TAG2 = I, TAGS = I]. and the host issues CKE command, these errors may turn out to be not correctable after CKE command execution. COMMON CONTROL DMA DATA TRANSFER The control which is common to both ST506 and SMD inter- In DMA data transfer, the HOC selects one of two modes: faces is described in this section. Burst mode and Cycle Steal mode. DMA transfer mode is specified by BRST (burst) bit which is a command parameter AUTOMATIC CORRECTION of SPC command. In SPC command execution, the HOC operates in automatic correction mode if the host sets both ECD and ACOR bits in In Burst mode (BRST = 1), the HOC maintains DREQ signal at OMO to "1". If a sector with correctable errors is detected, the low level until data transfer is terminated. DREQ signal is erroneous data is corrected in data buffers. Automatic correc- negated when DONE signal is input synchronously with DACK tion is normally performed only when the sector length is signal, or when DMA transfer of data in 256-byte internal data 256 bytes. Specification of the automatic correction mode is buffer is finished. prohibited when the sector length is longer than 512 bytes because it causes the erroneous operation of the HOC. In Cycle Steal mode (BRST = 0), the HOC asserts DREQ signal until DACK signal is asserted. The HOC negates DREQ signal If DTM (Data Transfer Mode) bit in OMO is set to "I" as well when DACK ~assertion is detected. DREQ signal will be as ECD and ACOR bits during SPC command execution, the reasserted if DACK is negated and the HOC has the transfer HOC transfers the corrected data to the main memory in DMA request. The DMA transfer conditions of Cycle Steal mode are mode after the automatic correction. Then, the command the same as those of Burst mode. execution abnormally terminates. When DTM = 0, the command execution abnormally terminates after the automatic correction DATA TRANSFER IN HOST INTERFACE and data transfer is not performed. If the HOC finds the data DMA Data Transfer in Disk Access uncorrectable, the command execution abnormally terminates DMA data transfer mode, either Burst mode or Cycle Steal without data transfer regardless of the state of DTM bit. mode, is selected by BRST bit specified by SPC command. Figure 9 shows DMA data transfer sequence during RD and CORRECTION BY HOST RED command execution. For 2S6-byte sector, (a) shows the The host corrects erroneous data detected during RD command case that the host computer reads the disk data from data execution when it sets ECD and ACOR bits in OMO to "I" and buffers (DBUFO and DBUFI) by DMA at a high speed. The "0" respectively. When ECD bit is set to "I", the host corrects capacity of two data buffers is 256 bytes for each. erroneous data detected during RED command execution if necessary, regardless of the status of ACOR bit. The command ~HITACHI Hitachi Amenca Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 433 HD63463-------------------------------------------------------------- If data buffers are not provided, most of high-speed host bus is manner, no data overrun occurs even if operation speed of the occupied by transferring drive data during low-speed reading of host is slow. Therefore, an interleave format is not required. drive data. Figure 9 (c) indicates the sequence in 512-byte sector organi- Internal data buffers can separate high-speed host bus timing zation. Capacity of buffers is 256 bytes tor each, and each and low-speed drive data timing, which effectively shorten drive buffer stores disk data and transfers the data to the main data transfer time in host bus. Therefore, host system through- memory alternately. Therefore, buffers effectively operates in put is notably improved. The data transfer from data buffers to toggle fashion even if sector length exceeds 256 bytes, and host the main memory is performed only when the HOC is reading system throughput is improved. If operation speed of the host is ID area or DATA area of the disk, but is exceptional when data too slow, data overrun may occur because data buffer cannot be in the last sector is transferred to the main memory during the emptied to receive disk data. The data transfer from data buffer multiple sector operation. to main memory must be terminated while the HOC is accessing disk data in ID or DATA area.' Figure 9 (b) shows the low-speed DMA transfer of the host in 256-byte sector organization. According to the figure, DBUFO If the HOC receives DONE signal from the DMAC during RD receives data of the sector l, and DBUFl receives that of the or RED command execution, the HOC immediately terminates sector i+ 1. While DBUFl is receiving the data of sector i+ l, the DMA data transfer. Disk reading operation continues until the data transfer from DBUFO to the main memory cannot be HOC finishes reading the sector which has been read when finished because the host cannot operate promptly. Therefore, DONE signal is applied. being unable to receive the data of i+2, DBUFO waits until the disk makes one rotation (all data of DBUFO is sent to the main OlSk Format OBUFO OBUFI Host Bus (a) Sector Length = 256 bytes (Fast Host Bus) - O-sector interleave - Disk Format OBUFO OBUFI Host Bus (b) Sector Length = 256 bytes (Slow Host Bus) - Free from Data Overrun - Disk Format OBUFO OBUFI Host Bus (c) Sector Length = 512 bytes ~. Disk ___ Data Buffer ~ : Data Buffer ----.MalO Memory Figure 9 DMA Data Transfer in Read Data and Read Erroneous Data Command Execution ~HITACHI 434 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 DMA data transfer during WD and CMPD command execution DMA data transfer during RID or FID command execution is is shown in Figure 10. This figure differs from Figure 9 (a) in performed as follows (see Figure 11). When DBUFO is fUied with data transfer direction, DMA transfer order, and access method ID information, DBUFI receives the succeeding ID informa- of first and last sectors. In Figure 10, the host is fast and sector tion. DMA data transfer is not performed unless all the ID infor- length is 256 bytes. When the host is slow and sector length is 256 mation is stored in data buffer. After DBUFO with/without bytes, or when sector length is 512 bytes or more, data transfer DBUFI finishes accepting ID information from specified sequence is the same as Figure 9. number of sectors, data are sent to the main memory by DMA. DMA data transfer continues until 512-byte transfer is finished. When the HDC receives DONE signal from the DMAC during WD command execution, the HOC immediately terminates DMA data transfer can be stopped when the DMAC sends DMA data transfer. Then all data stored in DBUFO and DBUFI DONE to the HOC. Therefore, the host can store only the are written to DATA area of the sector. If there is any room in necessary ID information to the main memory by setting the DATA area after writing buffer data, the old data in buffers is number of ID areas to be read, to the DMAC. written to DATA area. After DATA area is ftIled with buffer data, command execution terminates. DMA data transfer during WFM command execution is shown in Figure 12. The HDC starts formatting operation when both When the HOC receives DONE signal from the DMAC during DBUFI and DBUFI are fUied with ID information from the CMPD command execution, the HDC immediately terminates host. The HOC writes data buffer data to the ID area of a DMA data transfer. However, the data of the sector which has specified sector, and writes fixed pattern to other area such as been accessed when DONE is received, ~used for comparison DATA area. When DBUPO becomes empty during formatting with disk data, further, the reading operation continues until operation, DBUPI becomes the source in tum. When the DMAC reading of the sector is fmished. Therefore, $50 (Not Hit) is issues DONE signal to the HDC, the HOC stops data transfer to set to SSB in most cases when reading of the sector is finished, data buffers and starts formatting. Therefore, the host can write and then the command execution abnormally terminates. only the necessary ID information to data buffer by setting data of how many ID areas to be transferred, to the DMAC. Disk Format OBUFO OBUFI Host Bus mm Data Buffer -+ Disk ~ Main Memory -+ Data Buffer Figure 10 DMA Data Transfer in Write Data, Compare Data Command Execution (Sector Length = 256 bytes) Disk· Format OBUFO gctor i i i ~ctor i+11 ~5 ctor j I I ctor j+1 I OBUFI Host Bus ~ : Disk -+ Data Buffer ~ : Data Buffer -+ Main Memory Figure 11 DMA Transfer in Read 10, Find 10 Command Execution ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 435 HD63463-------------------------------------------------------------- Disk r-___-...,~ctor i ~ctor i+11 hl--------I Format OBUFO OBUFI Host Bus IllIIIIIIIl Data Buffer -+ Disk ~ Main Memory -> Oa.ta Buffer Figure 12 DMA Data Transfer in Write Format Command Execution DMA Data Transfer by Data Transfer Commands Notes on Data Buffer Accepting data transfer commands, the HDC can perform DMA ~ data transfer between the main memory and data buffers with- out disk access. Either Burst mode or Cycle Steal mode is (Byte) 256 512 1024 2048 4096 selected by the BRST bit of SPC command parameter. There Item are two commands available, BTM and MTB. High Speed DMA (O-sector inter- a a a a a Selection of either DBUFO or DBUF I, and access start address leave) of each buffer (address 0 to 250 are specifiable), are specified PIO a a by POFF (pointer Offset). POFF is set to the data buffer pointer by command execution. Low Speed DMA (free from over· a run) Data buffer pointer is incremented each time the DMAC accesses data butter t +2 for 16-bit bus mode, + 1 for 8-bit bus Automatic Correction a mode). Data buffer data is not guaranteed if data buffer pointer exceeds address 255. Receiving DONE signal from the DMAC, a Provided the command execution immediately terminates normally, and the CED bit in STR is set to "1". Receiving above data transfer Others commands, the HDC requests transfer by issuing DREQ signal Recell command - After the host issues RCAL command, the to the DMAC within 150 CLK cycles. HDC finishes the operation within up to 40 CLK cycles and clears all bits in STR. Data Buffer Access by PIO The host MPU can access data buffers by move or load/store Test command - After the host issues TST command, the HDC instruction (programmed I/O). In this case, the host issues makes drive ou~ pins floated within 60 CLK cycles. To OPBR or OPBW command prior to PIO access. Receiving these cancel this state, RES signal is to be externally supplied. commands, the HDC sets BSY bit in STR to "1". Then the HDC sets data buffer pointer, sets BSY bit to "0", and terminates Specify command - After the host issues SPC command, the the command execution. It takes up to 100 CLK cycles from HDC makes the drive interface pins fitted for either ST506 or the command reception to BSY bit clear. Before issuing above SMD, and clears BSY bit within 250 cycles. commands, POFF must be specified by command parameters. POFF specifies either DBUFO or DBUFI to be accessed, and Abort command - After the host issues ABT command, the access start address (specifiable range is address 0 to 255). HDC negates all tlrive output pins within up to 180 CLK cycles, terminates all operation within 300 CLK cycles, and clears BSY The host issues move instruction to the HDC after confirming bit. Receiving this command, the HDC clears all internal flip- that BSY = O. Data buffer pointer is incremented each time the flops, but the value of the control register which has been set HDC receives move instruction (+2 for 16-bit bus mode, +1 for by SPC command still remains. 8-bit bus mode). If the pointer exceeds address 255 during data transfer in PIO mode, the buffer data is not guaranteed. The Reset - Reset is not a command, but after receiving RES signal, host must issue RCAL command to close the buffer. the HDC terminates initialization within up to 150 CLK cycles and clears BSY bit. ~HITACHI 436 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 ABSOLUTE MAXIMUM RATINGS Item Symbol Value Unot Supply Voltage Vee *1 -0.3 - +7.0 V Input Voltage Vin *1 -0.3 - VCC + 0.3 V Output Current per Pin 110 I *2 5 mA Total Output Current I ~Io I *3 80 mA Operating Temperature Top, 0-+70 °c Storage Temperature Tstg -55 - +150 °c *1 This value IS In reference to Vss = OV. *2 The allowable output current is the maximum current that may be drawn from, or flow out to, one output terminal or one Input/output common terminal. *3 The total allowable output current IS the total sum of currents that may be drawn from, or flow out to, output terminals or Input/output common term IOsls. (Note) USing an LSI beyond its maximum ratings may result In Its permanent destruction. LSI's should usually be used under recommended operating conditions. Exceeding any of these conditions may adversely affect Its reliability. RECOMMENDED OPERATING CONDITIONS Item Symbol Min Typ Max Unit Supply Voltage Vee * 4.75 5.0 5.25 V Input Low Level Voltage VIL * 0 - 0.8 V Input High Level Voltage VIH* 2.2 - Vee V Operating Temperature Topr 0 25 70 °c * This value is in reference to Vss = av. .HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 437 HD63463---------------------------------------------------------------- ELECTRICAL CHARACTERISTICS DC CHARACTERISTICS (VCC = 5.0V ± 5%, VSS = OV, Ta = 0 - 70°C, unless otherwise noted) 6MHz S MHz Version Version Unit Test Item Symbol HD63463-6 HD63463-S Condition min max min max Input High Level All Inputs VIH 2.2 Vee 2.2 Vee V Voltage Input Low Level All Inputs VIL -0.3 O.S -0.3 O.S V Voltage Input Leak Current R/W, CS, liN -2.S 2.S -2.S 2.S p.A V," = O-Vee RS, RES DACK, CLK DONE STS06 SMD IDX/ IDX TRKO SCP SEC USELD USELD WCLK WCLK RCLK RCLK Three State RWDATA RWDATA ITSI -10 10 -10 10 p.A Vin = O.4-Vee (Off State) Input SYNC"' SKEND Current WGATE"2 BUSo/BUS s EARLY/ BUS I /BUS6 RGATE"' LATE/ BUS 2 /BUS 7 STEP"' WFLT BUS 3 /BUS. LCT/DIR" BUS./BUS 9 READY BUSLlH*' Do - DIs Output High Level VOH vee-,·a - Vee-1.C - v IOH = -400 p.A Voltage All Outputs Output Low Level VOL - O.S - 0.5 V IOL = 2.2 rnA Voltage Output Leak Cu. ent IRQ ILOH - 10 - 10 p.A VOH = Vee (Off State) (to be continued) *1 These signals are defined when HOC is in Test mode or when drive mterface is not specified. Otherwise, these signals are not defined since these are switched to output signals. *2 This signal is defined when HOC is In test mode, otherwise this signal is not defined. ~HITACHI 438 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 6MHz 8MHz Version Version Unit Test Item Symbol HD63463-6 HD63463-8 Condition min max min max RES Vin =OV DONE Cpon RS - 17 - 17 pF Ta = 25°C R/W f = 1.0 MHz CS DACK Do - DIs Signal Capacity CLK IRQ ST506 SMD RWDATA RWDATA WCLK WCLK RCLK RCLK - SKEND - BUSo/BUSs - BUSdBUS6 - BUS2 /BUS. WFLT BUS 3 /BUS. - BUS4 /BUS. IDX/ lOX TRKO SCP SEC USELD USELD READY - • Data bus in read/ Current Consumption ICC mA write operation - 65 - 80 • Commar,.l execu- tion in progress ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 439 HD63463------------------------------------------------______________ AC CHARACTERISTICS (VCC =5V ± 5%, VSS =OV, Ta =0 - 70°C, unless otherwise noted.) Clock Timing 6MHz Version 8MHz Version Test No. Item Symbol HD63463-6 HD63463-8 Unit Condition : min max min max 1 ! Clock Cycle time tCYC 167 500 125 500 ns 2 Clock Low Level tPWCL 75 250 55 250 ns Pulse Width 3 Clock High Level tPWCH 75 250 55 250 ns Pulse Width 4 Clock Rise Time tCR - 10 - 10 ns 5 i Clock Fall Time tCF - 10 - 10 ns 6 i Write Clock tWCYC 62.5 250 50 250 ns : Cycle time 7 i Write Clock Low tPWCL 25 115 20 115 ns : Level Pulse Width See Figure 15 8 ! Write Clock High tWCH 25 115 20 115 ns Level Pulse Width 9 i Write Clock tWCR - 10 - 10 ns ! Rise Time 10 : Write Clock tWCF - 10 - 10 ns : : Fall Time 11 : Read Clock tRCYC 62.5 250 50 250 ns i Cycle Time 12 i Read Clock Low tRCL 25 115 20 115 ns i Level Pulse Width 13 ! Read Clock High tRCH 25 115 20 115 ns : Level Pulse Width 14 i Read Clock tRCR - 10 - 10 ns : Rise Time 15 : Read Clock tRCF - 10 - 10 ns ! Fall Time @HITACHI 440 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ------------------------------------------------------------HD63463 Data Bus Configuration and IRQ 6MHz Version 8MHz Version No. Item Symbol Test HD63463·6 HD63463-8 Unit Condition ! min max min max 21 RES Input tRES 10 - 10 - tcyc Pulse Width 22 DACK Setup Time tDACKSR 100 - 100 - ns See Figure 16 -- for RES 23 DACK Hold Time tDACKHR 0 80 0 50 ns -- For RES 24 IRQ Delay Time I tiRO I - 200 - 150 ns See Figure 17 26 RES Rise Time tRESR - 10 - 10 jlS See Figure 16 ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 441 HD63463-----------------------------------------------------+---------- MPU Interface 6MHz Version 8MHz Version Test No. Item Symbol HD63463-6 HD63463-S Unit Condition min max min max 31 i R/W Setup Time tRWS 60 50 ns i for CS Assert 32 i R/W Hold Time tRWH ns 33 : RS Setup Time tRSS 60 50 ns i for CS Assert 34 : RS Hold Time tRSH ns 35 i CS Setup Time tCSS 40 40 ns 36 i CS Negate Hold Time tCSNH 40 40 ns 37 : cs Negate Width tCSNW 80 80 ns 38 : Write Data tWDS 60 40 ns i Setup Time See Figures 39 i Write Data tWDH 10 10 ns 18 and 19 : Hold Time 40 i DTACK Delay Time tDTKZL 85 80 ns 41 : DTACK Hold Time tDTKLH 60 60 ns 43 ' Data Sus 3 State tDSR ns : Recovery Time 44 ~ Read Data tRDAC 80 70 ns : Access Time 45 : Read Data tRDH 10 10 ns : Hold Time 46 : cs Fall Time tCSF tcyc 47 : cs Rise Time tCSR tcyc ~HIT~CHI 442 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 DMA Interface : 6MHz Version 8MHz Version Item Svmbol HD63463-6 HD63463-8 Test No. Unit Condition : min max min max 50 i DREQ Assert tDRAOI - 80 - 80 ns i Delay Time I 51 DREQ Negate tORNOI - 80 - 80 ns Delay Time 1 ! (Cycle Steal Mode) 52 i DREQ Assert tDRA02 - 80 - 80 ns Delay Time 2 (Cycle Steal Mode) 53 i DREQ Negate tORN02 - 80 - 80 ns i Delay Time 2 54 DREQ Negate tORN03 - 80 - 80 ns Delay Time 3 i (DONE Assert) See Figures 55 DMA R/W Setup tDRWS 60 - 50 - ns 20 and 21 Time 56 DMA R/W tDRWH 0 - 0 - ns Hold Time 57 DACK Setup Time tOACKS 40 - 40 - ns 58 DACK Negate Hold tOACKHN 40 - 40 - ns Time 59 DACK Negate Width tDAKNW 80 - 80 - ns 60 DMA Write Data tDWDS 60 - 40 - ns Setup Time 61 DMA Write Data tDWDH 10 - 10 - ns Hold Time 62 DMA DTACK Delay tODTZL - 85 - 80 ns Time 63 DMA DTACK Hold tDDTLH - 60 - 60 ns Time (to be continued) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 443 HD63463---------------------------------------------------------------- 6MHz Version 8MHz Version Test No. Item Symbol HD63463·6 HD63463-8 Unit Condition : min max min max 65 ! DONE Input tPWDN 1.5 - 1.5 teye : Pulse Width 66 DMA Data Bus tDDBR 0 - 0 - ns 3 State : Recovery Time See Figures - 20 and 21 67 ! DMA Read Data tDRDAC 80 - 70 ns i Access Time 68 ! DMA Read Data tDRDH 10 - 10 - ns : Hold Time 69 DACK Fall Time tDACKF - 1 - 1 tcyc 70 : DACK Rise Time tDACKR - 1 - 1 tcyc ~HITACHI 444 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 STS06lntarfaceC8 : 6MHz Version 8MHz Version Svmbol HD63463-6 HD63463-B Test No. Item Unit Condition min max min max liD! USELD Setup tUSLDS - 5 - 5 tcyc i Time (for USEL) See Figure 22 I 111 l WGATE Delay Time tWGTIOX - 150 - 100 ns i for Index See Figure 23 112 i WFLT Pulse Width tWFLT 2 - 2 - tcyc 113ll ndex Pulse Width tlDXW Itcyc - Itcyc - - (Note 1) See Figure 23 24twcyc - 24twcyc - i 114 WGATE Delay Time tWGTD - 130 - 125 ns 111 l Write Data tWDD - 130 - 125 ns i Delay Time See Figure 24 l1Bl LATE/EARLY tELD - 130 - 125 ns i Delay TIme 120: LATE/EARLY tWOS 0 - 0 - ns Setup Time (for Write Data) i 121 RGATE Delay Time tRGTD - 130 - 125 ns i 123 SYNC Delay Time tSYND - 130 - 125 ns i 125 Read Data tRDS 20 - 15 - ns See Figure 25 i Setup Time 12& l Read Data tRDH 20 - 15 - ns i Hold Time i 127 USELD-DIR Time WS-DIR 70 - 70 - tcyc i 121 STEP-USEL Time tSTPUS BO - 80 - tcyc i 129 DIR-STEP Time tDiRSTP 270 - 270 - tcyc i 130 STP-DIR TIme tSTPDlR Bo - BO - tcyc See Figure 26 i 131 SEEK-USEL Time tSEKUS 1 - 1 - tcyc 132 i SCP Wait Time tSCP - 1.0Xl0' - 1.oXlo' tcyc (Note 1) The index pulse width must setisfy min 8 teye and min 24 !Weye. • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 445 HD63463-------------------------------------------------------------- SMD Interface ; 6MHz Version 8MHz Version Item Symbol Test No. Ho63463-6 Ho63463-8 Unit Condition ! min max min max I 150 Index Pulse Width tlDXW Itcyc 51tcyc Itcyc 50tcyc - (Note 2) 12twcyc 12twcyc See Figure 32 151 : USEL.D Setup tUSLDS - 7 - 7 tcyc See Figure 31 i Time i 152 Sector Pulse Width tPWSET Btcyc 50tcyc 8tcyc 50tcyc - (Note 2) 12twcyc 12twcyc See Figure 32 153: WGATE Delay Time tWGTSEC - 150 - 125 ns See Figure 32 : for SEC/lOX 156: REGATE Delay Time tRGTo - 130 - 125 ns 158: Read Data tRDS 20 - 15 - ns : Setup Time See Figure 33 159: Read Data tRDH 20 - 15 - ns : Hold Time 165: WGATE Delay Time tWGTO - 130 - 125 ns 169: Write Data tWOO - 130 - 125 ns See Figure 34 : Delay Time (Note 2) The index sector pulse width must satisfy mm 8 tcyc and min 12 twcyc . • HITACHI 446 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD63463 Signal Load Condition Do - DIs DTACK DREO 5.0V RWDATA RL = 1.8 kn Q ? ~ RL ~----------~----------~ C=40pF ST506 SMD SYNC WGATE BUSo/BUSs R=10kn Test Point EARLY/ I~ RGATE BUS I /BUS 6 " LATE/ BUS 2 /BUS 7 All diodes are ~, STEP BUS 3 /BUS. lS2074 @'s or ~, -' LCT/DIR BUS./BUS. the equivalent. USELO TAGl 7.7- USELl TAG2 HSELO TAG3 HSEL1 UTAG HSEL2 TAG5 SEEK BUSR/W BUSL/H Figure 13 Test Load Circuit A 2.2 V 0.8 V CLK (in) @ RL=l.S kn { C=40 pF 2.2V 0.8 V Figure 14 Test Load Circuit B @J Figure 15 CLOCK ~HITACHI Hitachi Amenca Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 447 HD63463-------------------------------------------------------------- @ RES (in) ~ 0.8 V --- 0.8 V I--@ 2.2 V @-- ~ 0.8 V' 1/ 0.8V DACK (in) Figure 16 RES - DACK Input Timing (Data Bus Width Selection) ClK (in) TIm (out) Figure 17 I RQ Output Timing o 2 CLK (in) R/W (in) RS (in) CS (in) Vcc-2.0V Do - 015 (out) -----------------1IlI --,u-~=-,--~__::_+--__::::_; 0.8 V DTACK (out) ___________________ ~8_-b_it _______ @,~~~-:~~~V J=4~~~CC~-~2~.0_V~ ________ 10.8 V (Note I) When using IS-bot date bus, DTACK is asserted from stete 4, shown by a dotted line. (Note 2) When n .. 5 in a-bit date bus or n .. 7 in IS-bit date bus, it is not necessary to satisfy @ and @ Figure 18 MPU Read Cycle HDC ..... MPU ~HITACHI 448 Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63463 n = min 5 o 2 3 ................. n -1 n o ClK (in) Rm (in) 0.8 V 2.2 V RS (in) 0.8 V CS(in) 2.2 V 0.8 V 1..-_ _ _ _-+_____=....:..,-,1 @'It-- 0 0 -0" (in) 0.8 V "f----+i"" OTACK (out) --------------------------------i~0~.8~V~______~ (Note 1) When n ~ 5, It is not necessary to satisfy @ and @ Figure 19 MPU Write Cycle MPU-+ HOC (8 or 16·bit data bus) ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 449 :::J: .j:>. U1 C o Q) o 2 n -1 n o 2··· ..... n = min 7 (16-bit data bus) n = min 5 ( 8-bit data bus) * CAl ::I: ClK (in) ~ =- ~ OREQ (out) <1l 0.8 V ~. ~ R/W(in) ~ o OACK (in) o c}~ !2. • <1l ~:I :::> - Do - 0" (out) l6 ~ m(") .. - _...,.. , ----------1 ~ c.... :I OTACK (out) ®l'~-----J~----J -~ (') DONE (in) > ~ ~ (Note 1) Th,s is the timing to negetel5REQ signal when the 256th byte data is transferred to the HDC data buffer. (Note 2) DONE must be asserted to low while DTACK remains 1... low. (Note 3) As shown by dotted lines. DACK is output synchronously with the falling edge of state 4 clock. i (Note 4) When n" 5 in 8-bit data bus or n .. 7 in 16-bit data bus. it is not necessary to satisfy ~ and ~ . Figure 20 OMA Read Cycle HOC ..... Memory n = min 5 :c 5r ":r. » I ClK (in) 3 CD 15 "' r p: DREQ (out) '"0'" R/W 0 (in) a1~ Q. CD • DACK ~:I ::l (in) ~ c: CD wO I Do - 0 15 "' :I ::l '- (in) 0 '" 51' 0 DTACK » CD (out) ~ ~ DONE (in) -:;;: 0 oS l> W (Note 1) When n ~ 5, it is not necessary to satisfy ® and ~ ~ W 0 0 Figure 21 DMA Write Cycle Memory -+ HOC :x: .j>. o U1 Ol CtJ .j>. Ol CtJ HD63463-------------------------------------------------------------- USELl (out) USELO (out) USELO (in) Figure 22 USEL, USELO Timing (ST506) WFLT (in) _ ____2_._2 V J . A @ (Note 1) \-2_.2_V_ _ _ _ _ _ _ __ _ lOX (in) 2.2V 1\2.2 V / ~ (Note 2) WGATE (out) / Vcc-2.0 V ----.........I (Note 1) @ is minimum pulse width which HOC can recognize. (Note 2) @ is WGATE assert timing for lOX during Write Format command execution. Figure 23 WFLT, lOX, WGATE Timing (ST506) ~HITACHI 452 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 WGATE (out) , J: ~2: §" CD is III ~ LATE/EARLY (out) ~ o Q Figure 24 Write Operation (ST506) i~ ~:I CD _ ~ ~ WCLK (in) 0(') ~:I <- RCLK (in) ~ ~ ~ ~ 'GATE '00" 1'"F-,·o ~~ '--' ~ SYNC ''"'" ~1ivv-----it-----___.....{\:--=1 i RWDATA (in) 2.2V 0.8 V Figure 25 Read Operation (ST506) :::r c 0) "'W" U1 ~ 0) w HD63463-------------------------------------------------------------- > co ......-~-.-> c::i ~~r;~---r-t-~~~--------~~ I ~ > ...... :l :l ... ... :l .,. :l .£.£ :l .£ .£ 0_ ..J..J .£ "- ~ £ ww a: w w "- enen C ..... w u :::>:::> en en en @HITACHI 454 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 -----------------------------------------------------------------HD63463 (a) AM is detected. Sector formst ) PLO SYNC L A C M A H L C A L L H A L S A C A C 1 PAD 10r2 (NOTE) PLO SYNC \ , 1 B ~mandissue : ~:i".,.....;.y-te-s...~: typ 8 bits ........ AGATE Iir---------------------------------------------------~:-,( '~---(-A-EA--O-)~ :L-..J, SYNC --II / i~ 1 1 I typ 4bits~ I "~ WGATE ----1 ,VYM' I ' " (NOTE) 1 byte when AM is not included in error detection span, 2 bytes when AM is included. (b) AM is not detected. Sector format '00' pattern '00' pattern typ I ...,, 1 Comma nd issue 4bit~! 2 bytes :- AGATE f \ 1 1 1 , 1 , /. Aetry SYNC Y "-.\ Figure 27 10 Search Timing Chart (ST506) Sector format 1 10 C R I I , I C 10 PAD PLO SYNC I ,;" ECC or CRC DATA PAD :---typ 8 bits AGATE ----------~'--------------------Ir__---------------~r__----- I 1 , L II , 1 , ~ t 4 j - typ 4 bits _ _ _ _ _. . , ' I SYNC 't: I I U I 1 or 2 bytes ~ 14--0 bit ---+: , ,..------------------llt------------------------~1 WGATE -----------~., 1 L-- , Figure 28 Write Data Timing (ST506) ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 455 HD63463-------------------------------------------------------------- f\ I IDx---'ln \~_____________________________________________________________J. I ~------- : I : I I - 3to4 f4- ---..: """-Electrical characteristic @ I bytes I I I I WGATE~~--------------------------------------------------~~ Figure 29 Write Format Timing (ST506) I I I I ---: '+-- I X'-------------i:t_-- USELO USELI 1 I I min I ;70 --: LCT/DIR ! x,------{:~t-- _ r _ n , I I I I : . . - - min ------! J+-- min -----, ~ I 270 LATE/STEP SEEK ~ I I Command execution finished (Unit: CLK cycle) Figure 30 Seek, Recalibrate Command Execution Timing (ST506) ~HITACHI 456 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63463 USELO (in) VCC-2.0VC UTAG (out) ___________..... .. W~2.2V Figure 31 UTAG, USELO Timing (SMO) ~ J 2.2V , 0.8 V lOX (in) "- il@ 2.2 V SEC (in) J 10.8 V ~ (Note 1) Vcc-2.0 V WGATE BUSo/BUSs J (out) (Note 1) @ i. WGATE assert timing for IDX/SEC during Write Format command execution. Figure 32 lOX/SEC, WGATE Timing (SMO) • HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 457 :I: o "'co" (11 CJ) w "'w" CJ) WCLK (in) I RCLK (in) ~ :!" » 3 '5'" RGATE I» BUS./BUS 6 (out) ~ RWDATA (in) Rl <5 o oi~ Q.• '" ~:I '"- ~ ~ Figure 33 Read Operation (SMD) ",C') ~ "- :I g !D §; WCLK (in) CD ~ ~ WGATE BUSo/BUS s (out)-.-J ~ $ ~ 'I' RWDATA (out) < C~l' u.u y I\ .:u~.o: . . :.v_ __ ~ o Figure 34 Write Operation (SMD) ::I: ~ UTAG (out) > '- 3 '" ~. III BUS L/H (out) ~ 13 tcyc 20 tcyc BUS RiW (out) ~ o 6 tcyc 32 tcyc o - I ~ BUSo/BUS s - c)~ Vcc-2.0 V Drive Select Vcc-2.0V !2.• BUS./BUS 9 (out) 0.8 V 0.8 V '~J: " ~ 16 -~ @ (1)0 USELD (in) ~~V2.2V ~ J: c.... ; Pm Output Signal Name Abbreviation ~ BUS./BUS9 - - ~ BUS3 /BUS. - - BUS,/BUS, Unit Select 2 USLL2 ~ BUS.tBUS6 Unit Select 1 USEL1 BUSo/BUSs Unit Select 0 USELO 1 i Figure 35 Drive Select Operation (SMD) :::t o 0) "" 01 co ~ 0) W :J: C Ol "" Ol o ~ Ol Ct.) :t: ~ :r. ~ \ TAG 1,2,3,5 I..-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _--J / 2 (outl ~ BUS R/W (outl 20 tcyc ~ oi. o o Q. CD ~:I • BUS L/H (outl max 7 tcyc min 5 tcyc :~~:::~~:~nl ---X(««<<««(I:~:~ ~ ~.8 v"'f»»»)»»»))»»))»>>)>>>>X~_ _ _ __ CD_ ~ ~ 00(') ~ <- :I Pin Input Signal Name Abbreviation BUS4 /BUS 9 Write Protect WPRT ~ BUS 3 /BUS. Fault FLT BUS2 /BUS, Seek Error ~ BUS,/BUS6 On Cylinder SKERR OCYL co I ~ BUSo/BUS. Unit Ready URDY ~ j Figure 36 Drive Check Operation (SMDI j :t: TAG 3 (out} , ~ 19 tcyc 20 tcyc I 8 tcyc 19 tcyc 6 tcyc '»" 3 ~ 15 III BUS L/H loud f ~ ~ BUS R/W (out} Rl ct. 6 tcyc typ 20 tcyc typ 6 tcyc min 6 tcyc c5 q !2. CD • BUSo/BUS.- BUS4 /BUS 9 (out} -.J ( ~J: CD _ ~ ~ BUSLiH= low BUSL/H = high We) p," Output Sianal Name Abbreviation Level Pin Output Signal Name Abbreviation Level ~ J: BUS4/BU~ (Reserve} 0 low <.. BUS4 /BUS9 Fault Clear FCLR high ~ BUS 3 /BUS. BU5,/BUS7 Strobe Late Strobe Early STBL low low BUS 3 /BUS8 Servo Offset Minus SOFM low STBE ~ BU5,/BUS 7 Servo Offset Plus SOFP low BUSt/BUS. Return to Zero RTZ low ~ BUSo/BUS. Reserve 0 low BUSt/BUS. Read Gate RGATE low !:1 BUSo/BUS. Write Gate WGATE low j i Figure 37 Fault Clear Operation (SMD} J: C 0) ....""' ,0) Co) .j:>. 0) Co) :I: .j:> o Cl Cl I'.) w .j:> Cl W TAG 3 (out) 19 tcyc 20 tcyc 8 tcyc 19 tcyc 6 tcyc BUSL!H (out) } i. min 20 tcyc I ~ BUSR/VV(out .\ 'i! » 6 tcyc Wp 20tcyc typ 6 tcyc min 6 tcyc 3 ~ .,o· BUSo/BUS s - BUS./BUS. (out ,=1 X J( ~ max 1.0 x 10· tcyc J ON CYLINDE R (in) ~~~ a'"'" maxl.aX10· tcyc I o ol~ Q.• SEEK ERRO R (in) ~~ CD ~:I ~ ~ BUSLIH = low PO" Output Signal Name Abbreviation Level BUSL!H = high Pin Output Signal Name Abbreviation Level (fl(') Reserve 0 low ~ c... :I BUS./BUS'I BUS./BUS. Fault Clear FCLR low BUS 3 /BUS. Strobe Late STBL low g BUS 3 /BUS. Servo Offset Minus SOFM low !" BUS,/BUS 7 Strobe Early STBE low () BUS,/BUS 7 Servo Offset Plus SOFP low » BUSdBUS. Return to Zero RTZ high BUS\/BUS. Read Gate RGATE low <0 U1 BUSo/BUSs Reserve 0 low BUSo/BUSs Write Gate WGATE low ~ ~ o ~ ... (Note) On Cylinder and Seek Error afe checked by POlling command . ~ 00 8 Figure 38 Recalibrate Command Execution Timing (SMD) ;!= ~ "- :.> TAG 1 (out) -' 3 <1> 19 tcyc 20 tcyc I a tcyc 19 tcyc 6 tcyc J ~. Il> Ii BUS UH" (out) -l 1 ~ <5 BUS R!W (out Q 6 tcyc typ 20 tcyc typ 6 tcyc min 6 tcyc J ot~ Q.• <1> ~J: <1> _ BUSoBUS,- BUS.BUS. (out) X Cylinder Address High X Cylinder Address Low L ~ ~ BUSL/H = low BUSL/H = high 00(") P'n Output SIgnal Name AbbrevIatIon Pm Output SIgnal Name AbbreviatIon ~ '- J: BUS./BUS. Cylinder Address 9 CAD 9 BUS./BUS. T Cylinder Address 4 CAD 4 1i<1>l BUS 3 /BUSs Cylinder Address a CAD a BUS 3 /BUS s Cylinder Address 3 CAD 3 o :.> BUS2 /BUS 7 Cylinder Address 7 CAD 7 BUS2 /BUS 7 Cylinder Address 2 CAD 2 (l) 01 BUS./BUS6 Cyl inder Address 6 CAD 6 BUS./BUS 6 Cylinder Address 1 CAD 1 § BUSo/BUS, Cylinder Address 5 CAD5 BUSo/BUS, j Cylinder Address 0 CAD 0 -:;;: (Note) After outputting the cylinder address, the minimum wait time until ~ On Cylinder and Seek Error are returned from the drive is .... equivalent to that of Recalibrate operation . ~ eX> ~ o Figure 39 Seek Command Execution Timing (SMD) :I: .j:> o 0) 0) W w .j:> 0) W ::J: o m ~ m ~ m ~ w I TAG 2 (out) ~;;r. 19 tcyc 19 tcyc 20 tcyc I 8 tcyc 6 tcyc J > 3 CD £' BUS L!H (out) -J t ~ BUS R!W (out) , 8 tcyc I\) 6 tcyc typ 20 tcyc typ 6 tcyc min 6 tcyc ~ o q oI~ o CD • BUSo!BUSs- BUS4 !BUS. (out) X -=- Head Address High (all 0) r Head Address Low r- ~:t CD_ ~ ~ BUSL!H =low PO" Output Signal Name Abbreviation BUSL!H = high PO" Output Signal Name Abbreviation I 000 BUS4 !BUS. ~ c.. :t BUS4 !BUS. He&d Address 9 HAD9 Head Address 4 HAD41 BUS 3 !BUS. Head Address 8 HAD8 BUS 3 !BUS. Head Address 3 HAD 3 J BUS2 !BUS 7 Head Address 7 HAD 7 BUS2 !BUS 7 Head Address 2 HAD 2 I ~ BUSdBUS6 Head Address 6 HAD6 BUSdBUS 6 Head Address 1 HAD 1 ~ BUSo!BUSs Head Address 5 HAD5 BUSo!BUS s Head Address 0 HAD 0 ~ (Note) Head Address 5 - 9 are fixed at low level. ~ ~ Co g Figure 40 Head Selection Operation (SMD) ,------------------------------, ! Read/Write Operation (2) (See Figure 42) i - I I -' i TAG 3 (out) i 19 tcyc 9 tcyc ' 10 tcyc ! I ~;r. 8US L/H (out) iJ 11 typ 8 tcyc I I » i I 3 ~ i i BUS RtW (out) ~r I 6 tcyc typ 8 tcyc I min 8 tcyc i ~ BUSo/BUSs- )( BUS./BUSg (out) IX i '"'" <5 ! . 0) asserted to high. o 0) en w .j>. 0) Figure 42 ReadIWrite Operation (,2) (SMD) w J: o ~ 0) 0) w r 0) ~ ~F 0) lOX/SEC (in) W I ,_ rl~.-rI-_TI~.rl--~--~------,1 RWDATA ::I: Next Sector ~ (in/out) 2: ( i) READ DATA > ~ RGATE g. (BUStlBUS 6 ) (out) 'I 1 or 2 bytes (Note 2) ~ (ii) WRITE DATA ri. ~ o o 2. CD ~J: _ :::J • / RGATE (BUStlBUS6 ) (out) WGATE 'I (BUSo/BUS~s)~(~ou~t~)__~__________________________- - J 1 or 2 bytes (Note 2) ~ ~ (iii) WRITE FORMAT cnO ~ '- ~ J: WGATE (BUSo/BUSs) (out) I~ ;B V ~~_ Vcc-2 0 V . ~ !!i~ (Note 11 RGATE must be asserted at the beginning of PLO SYNC area or earlier. (Note 21 2 bytes when SYNC PAT is included in error detection span (AM EX = 01.1 byte when it is not included (AMEXc 11. However, RGATE and WGATE rise at the beginning of PLO SYNC area. j ~ 8 Figure 43 ReadlWrite Operation (3) (SMD) TAG2, TAG5 (out) I ~ :r. > BUS l/R' (out) 3 ~ 20 tcyc 0' Ol C BUS RiW (out) Cl. '"'"o BUSo/BUS s- o BUS./BUS9 (in) 01~ o • '~:I " (I) _ BUSl/R' = low BUSL/H = high ~ ~ Pin I nput Signal Name - Abbreviation Pin Input Signal Name Abbreviation BUS./BUS 9 - BUS./BUS 9 Write Protected WPRT 000 BUS 3 /BUS. - - BUS3 /BUS. Fault FlT ~ :I <- BUS 2 /BUS 7 * * BUS 2 /BUS 7 Seek Error SKERR ~ BUSdBUS. * * * * BUS,/BUS. On Cylinder Unit Ready OCYl URDY BUSo/BUSs BUSo/BUSs ~ ----- - ~ (Note 1) Names of signals which are read from a drive when the HOC IS connected to the DK8125 (Hitachi). ~ (Note 2) User Area ~ $ ~ ~ Figure 44 Sense Drive Operation (1) (SMD) g :I: +> Ol o Ol ...... W +> Ol W :J: o 0) "'co" 0) CAl "'CAl" 0) TAG2 (out) TAG5 (out) I 8 tcyc 26 tcyc 8 tcyc 6 tcyc ~ :! BUS L/Ff (out) l> 3 6 tcyc 16 tcyc, 20 tcyc I 6 tcyc !!l 0' III BUS R/W (out) J:' 3 tcyc 4 tcyc P. 3 tcyc 4 tcyc BUSo/BUSs- ~ o BUS./BUS. (in) o ol~ o CD • ~J: '" ~ ~ - BUSLIH = low' BUSLIH = high Pm Input Signal Nam,e (Note 1) Abbreviation p,n Input Signal Name (Note 1) (1)(') Abbreviation ~ '- J: BUS./BUS. BUS./BUS. Write Error 3 WERR3 o(Jl BUS 3 /BUS. BUS 3 /BUS. Write Error 2 WERR2 5" BUS2 /BUS7 BUS2 /BUS 7 Write Error 1 WERR1 () }(Note 2) l> BUS,/BUS6 BUS,/BUS6 Status Error 2 SERR2 eo ~ BUSo/BUSs SELECT ERROR SELER BUSo/BUSs Status Error 1 SERR1 ~ - (Note 1) Names of signals which are read from a drive when the HOC is connected ~ to the DK812S (Hitachil, ~ (Note 2) User Area ~ ~ g Figure 45 Check Drive Status (2) (SMD) TAG2 (out) '1 8 tcyc 8 tcyc, :r: ~ ::: » TAG5 (out) ,.. 33 tcyc .. 1 I... 26 tcyc _I'" I .. 6 tcyc 1 .. 1 Stcyc-j 3 . o (J) (J) (0 w .j>. (J) W :I: C .j>. en -..J w .j>. o en w :I: TAG2, TAG5 (out) '1 ~ O.BV B tcyc =- > 3 min 33tcyc B tcyc 1 26 tcyc 16 tcyc 6 tcyc CD g" ----=-- '~" BUS L1H (out) ~ I " __ 00_ . 1:-lD-j '-1 'I 6 tcyc 6 tcyc _ ~ o BUS R!W (out) 3 tcyc 3 4tcyc 4tcyc o ciA ~'EV BUSo/BUS s - ~J: BUS4 /BUSg (in) ~ ~ BUSL/il = low BusLIil = high 000 P,n Input S'gnal Name (Note 1) Abbreviation P,n Input Signal Name (Note 11 Abbreviation ~ t... J: BUS4 /BUSg BUS4 /BUS g Device Type 16 DTP16 ~~ BUS3/BUS. BUS3/BUS. Device Type B DTPB ~ BUS2 /BUS 7 }(NO~21 BUS 2 /BUS 7 Device Type 4 DTP4 ~ BUSt/BUS. BUSt/BUS. Device Type 2 DTP2 ~ BUSo/BUS. Device Type 32 DTP32 I BUSo /i3 USs Device Type 1 DTP1 1 (Note 1) Names of Signals which are read from a drive when the HOC is connected to the DK812S (Hitachil. i (Note 21 User Area Figure 47 Check Drive Status (4) (SMD) --------------------------------------------------------------HD63463 4.5 V / t2CH < 100 ms 0.8 V ~ Vcc (in) /2.2V elK (in) tRESR ;;;: 10 !-IS I----- REH>l00 ms k'v 2.2 V :7 Figure 48 Timing Requirement during Power·On. ~HITACHI Hitachi America ltd .• 2210 O'Toole Avenue. San Jose, CA 95131 • (408) 435-8300 471 HD63484--------------- ACRTC (Advanced CRT Controller) The Advanced CRT Controller (ACRTC) is a CMOS VLSI microcomputer peripheral device capable of controlling raster- HD63484-8, scan CRTs to display both graphics and characters. The ACRTC HD63484-98 is a new generation CRT controller that is based on a bit-mapped technology. It executes high-level drawing commands, like Line, Ellipse, Paint, Pattern, and Copy, issued by the MPU in X-Y coordinates, and performs address translation to draw into frame memory. It can draw in up to 64K colors, on 3 split screens and an independent window, and perform area clipping and hitting. It has more display control functions than an HD6845S (CRTC). The ACR TC controls a CR TC in one of three modes; charac- ter only, graphic only and multiplexed character/graphic modes. Therefore, the ACRTC has many applications, from character only display devices to large full-graphic systems. The ACRTC can reduce CPU software overhead and enhance system throughput. (DC-64) • FEATURES HD63484P-8, • High-speed graphics HD63484P-98 • Drawing rate: Maximum 500 ns/pixel (Color draWing) • Commands. Dot. Line, Rectangle, Poly-line, Polygon, Cir- cle, Ellipse, Paint. Copy, etc. · Colors: 16 bits/word 1, 2, 4, 8, 16 bits/pixel (5 types) mono- chrome to max. 64k colors. • Pattern RAM (32 bytes) • Conversion of logical X-V coordinates Into phYSical address. · Color operation and conditional drawing • Drawing area control for hardware cliPPing and hitting • Large frame-memory space • Maximum 2M bytes graphic memory and 128k bytes char- acter memory separated from the MPU memory (DP-64) • Maximum, resolution 4096 x 4096 (1 bit/pixel mode) • CRT display controls HD63484CP-8, • Split screens (3 displays and 1 window) HD63484CP-98 · Zooming up (1 to 16 times) • Scroll (Vertical and hOrizontal) • Interleaved Access mode for flash less display and superim- position • External synchronization between ACRTC. or between the ACRTC and external deVice (ex. TV system or other con- troller) • DMA interface • Two programmable cursors • Three scan modes • Non-interlaced • Interlace sync. • Interlace sync. and video • 256 characters/line, 32 rasters/line, 4096 rasters/screen (CP-68) HD63484Y-8, • TYPE OF PRODUCTS HD63484Y-98 Clock Product type Package Frequency (2CLK) HD63484-8 8MHz DC-64 HD63484-98 9.8 MHz 64 Pin Ceramic DIP HD63484P-8 8MHz DP-64 HD63484P-98 9.8 MHz 64 Pin Ceramic DIP HD63484CP-8 8MHz CP-68 HD63484CP-98 9.8 MHz 64 Pin Ceramic PLCC HD63484Y-8 8MHz PGA-68 HD63484Y-98 9.8 MHz 64 Pin Ceramic PGA (PGA-68) ~HITACHI 472 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63484 • PIN ARRANGEMENT (Top View) • HD63484CP • HD63484, HD63484P ~1 CHR LPSTB MRD i5iSPi ilIlll 1iRAW R/iN :) DiS'Pf H'Sv"N'C AS I MAD. VSYNC MCYC MAD, Vee Vss RES s t/lAO, CoNE 1 MAO, EXSYNC 1 v" V" 2ClK (Top View) "5ii'ffi MAO, DACK [9 V" vee Do MADs OTACK ~ MADs iiffi " HSv"Nc , MAD7 VSvNC 1 MADe ~~,yc i Vee I MAO g EXSYNC , 2CLK 0, MAD,o Vss ' v" D. MAD,! 0, , MAD. 0, MAD'2 MAD. ~nTnorrrTnTn~~nrnorrr~~ ~: ~ MAD, 0, !l! MAO; MAD. 0, 21 0, MAD,. 0, 2 MAD" 0, 1 MAD" D. MAO,. 0, MALo,. 0,. 1 MAO,. 0" 7 MA,elRA. 0" MA,/RA, • HD63484Y-8 0" MA,JRA. • HD63484Y-98 0" 31 MA,,.IRA, 0" _ _ _ _ _ _ _1'"' ft•• lstPm r fnde)( (Top View) • ABSOLUTE MAXIMUM RATINGS Supply Voltage Input Voltage Item Symbol Vee V,n* Ratmg -0.3 to + 7.0 -0.3 to Vee +0.3 Unit V V D Allowable Output Current 1101" 5 mA (TOp Vtew) (Bottom View) Total Allowable Output Current IElol'" 120 mA Pin Signal Pin Signal Pin Signal Pin Signal No Oescnptlon No Descnptlon No DescriptIon No Description Operating Temperature To, Oto +70 ·C 1 MAD14 18 RS 35 MA1SIRA2 52 OREa Storage Temperature T"g -55 to + 150 ·C 2 MAD11 19. DTAl:R 36 MA,e/RAe 53 HSYNC *: i~: :If~~~~no~~:~~~~~r!~t~~'h; ~~xlmum current that may be drawn from, or flow out to, one output termmal or one inpuUoutput common 3 4 MADg MADe 20 21 iiiil VSYNC 37 38 MAD 13 MA0 10 54 55 EXSYNC DO termmal. 5 MA06 22 Vee 39 MA07 56 04 * * * The total allowable output current IS the total sum of currents that may be drawn from, or flow out to, output terminals or inpuUoutput common 6 Vee 23 Vss 40 MADs 57 Os terminals. 7 24 41 2CLK 56 Vss Vss O. (Note) Using an LSI beyond its maximum ratings may result in Its permanent destruction. LSI's should usually be used under recommended operatmg 8 VSS 25 01 42 MCYC 59 09 conditions. Exceeding any of these conditions may adversely affect Its 9 AS 26 O2 43 DRAW 60 011 reliability. 10 MRO 27 05 44 MA04 61 01• 11 MADs 28 08 45 MA02 e2 RA. • RECOMMENDED OPERATING CONDITIONS 12 MA0 1 29 010 .6 MAOo 63 MA17/RA1 Item Symbol Min Typ Max Unit 13 iiiSP2 30 012 47 iifIDl1" 64 MA0 1S Supply Voltage Vee 4.75 5.0 5.25 V 14 LPSTB 31 013 48 CU01 e5 MA0 12 - cs Input "Low" Level Voltage Input "High" Level Voltage V 1L .. V IH .. 0 2.2 - 0.7 Vee V V 15 16 17 Vee CUD2 RIW 32 33 34 0 15 VSS 49 50 51 RES iiliNE 66 87 68 CHR IiAllK 07 Operating l1>mperature 0 70 ·C MA1g1RA3 Toor 25 'This value Is In reference to Vss - OV • TIMING MEASUREMENT The output "low" level at stable condition (DC charac- The timing measurement point for the output "low" level is teristics) is defined at O,5V. defined at 0, BV throughout this specification. The output "high" level is defined at VCC-2,OV. .HITACHI Hitachi America Lid. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 473 HD63484---------------------------------------------------------------- -- --------=~~~~ __L_-_ Vo L at the timing measurement (0 BV) -_-_-~rVOL at the DC level (O.5V) o measuring pOint t VOL Reference at Timing Measurement • Electrical Characteristics • DC Characteristics (Vcc = S.OV ± 5%, Vss = OV, T. = 0 to 70°C unless otherwise noted) 8 MHz 9.8 MHz Measuring Item Symbol Version Version Unit Condition Min Max Min Max Input "high" level voltage All Inputs V IH 2.2 Vcc 2.4 Vcc V Input "low" level voltage All Inputs V IL -0.3 0.7 -0.3 0.7 V Input leak current R!W,CS, RS, Ion V ,n : Oto Vcc RES, DACK, -2.5 2.5 -2.5 2.5 I"A 2CLK,LPSTB Three state (off state) Do-D 15 , ITSI V,n + 0.4 to Vcc -10 10 -10 10 I"A Input current EXSYNC, MAD o-MAD 15 Output "high" level Do-D 1S ' VOH IOH + - 4OO I'A Vce - Vee - V voltage MAD o-MAD 1s , -1.0 -1.0 CUD1, CUD2, DREQ, DTACK, HSYNC, VSYNC, EXSYNC, Output "low" level DISP1, DISP2, VOL IOL : 2.2 mA - 0.5 - 0.5 V voltage CHR, MRD, DRAW, AS, MCYC, MA 16!RAo- MA 19!RA3 , RA 4 , IRQ, DONE VOL IOL : 2.5 mA - 0.5 - 0.5 V Output leak current IRQ, DONE ILOO VOH : Vce - 10 - 10 I"A (off state) Input capacity Do-D 15 , C,n Von: OV - 17 - 17 pF EXSYNC, T A :25°C MAD o-MAD 15 f : 1.0 mHz RIW, CS Von: OV - 17 - 17 pF RS, RES, T A :25°C DACK,2CLK, f : 1.0 mHz LPSTB Output capacity IRQ, DONE Cout V In : OV - 15 - 15 pF T A :25°C f : 1.0 mHz Current consumption Ice -Chip not selected - 100 - 120 mA -Display in progress -Data bus in read! - 100 - 120 mA write operation -Display in progress -Command execu- tion in progress ~HITACHI 474 Hitachi America Ltd. - 2210 O'Toole Avenue • San Jose, CA 95131 - (408) 435-8300 --------------------------------------------------------------HD63484 • AC Characteristics (Vee = 5.0 ± 5%, Vss = OV, T. = 0 to 70·C unless otherwise noted) Clock Timing Reference SMHz 9.S MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max Operation Frequency of 2 ClK f 1 S 1 9.S MHz 1 Clock Cycle Time !evc 125 1000 102 1000 ns 2 Clock "High" level Pulse Width tpWCH 55 500 46 500 ns 1 3 Clock "Low" level Pulse Width t pwCL 55 500 46 500 ns 4 Clock Rise Time Ie, - 10 - 5 ns 5 Clock Fall Time tCI - 10 - 5 ns MPU ReadlWrite Cycle Timing Reference SMHz 9.S MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 6 RIW Setup Time tAWS 50 - 50 - ns 7 RIW Hold Time t AWH 0 - 0 - ns S RS Setup Time tASS 2-4 50 - 50 - ns 9 RS Hold Time tASH 0 - 0 - ns 10 CS Setup Time tcss 40 - 40 - ns 11 CS "High" level Width tWCSH 2,3 60 - 60 - ns 12 13 Read Wait Time t AWAI 0 - 0 - ns 14 Read Data Access Time t AOAC 2,4 - SO - SO ns 15 Read Data Hold Time t AOH 10 - 10 - ns 16 Read Data Turn Off Time t Aoz - 60 - 60 ns 17 DTACK Delay Time (Z to l) tOTKZL 2-4 - 70 - 70 ns 1S DTACK Delay Time (0 to l) tOTKOL 2,4 0 - 0 - ns 19 DTACK Release Time (l to H) tOTKLH 2-4 - SO - SO ns 20 DTACK Turn Off Time (H to Z) tOTKZ - 100 - 100 ns 21 Data Bus 3 State Recovery tOBATl 2,4 0 - 0 - ns Time 1 22 Write Wait Time tWWAI 0 - 0 - ns 23 Write Data Setup Time twos 3,4 40 - 40 - ns 24 Write Data Hold Time t WOH 10 - 10 - ns • HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 475 HD63484----------------------------------------------------------- DMA R••dlWrlt. Cycle Timing Reference 8MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 25 DREQ Delay Time 1 tOROO1 - 110 - 110 ns 26 DREQ Delay Time 2 tOROO2 - 70 - 70 ns 27 DMA RIW Setup Time tOMRWS 5-8 50 - 50 - ns 28 DMA RIW Hold Time tOMRWH 0 - 0 - ns 29 DACK Setup Time t OAKS 40 - 40 - ns 30 DACK "High" Level Width tWOAKH 60 - 60 - ns 31 32 DMA Read Wait Time tORW 0 - 0 - ns 33 DMA Read Data Access Time tOROAC - 80 - 80 ns 5,6 34 DMA Read Data Hold Time tOROH 10 - 10 - ns 35 DMA Read Data Turn Off Time tOROZ - 60 - 60 ns 36 DMA DTACK Delay Time (Z to L) tOOTZL 5-8 - 70 - 70 ns 37 DMA DTACK Delay Time (D to L) tOOTOL 5,6 0 - 0 - ns 38 DMA DTACK Release Time (L to H) tOOTLH - 80 - 80 ns 39 DMA DTACK Turn Off Time (H to Z) tOOTHZ 5-8 - 100 - 100 ns 40 DONE Output Delay Time t ONO - 70 - 70 ns 41 DONE Output Turn Off Time (L to Z) tONLZ - 80 - 80 ns 42 Data Bus 3 State Recovery Time 2 tOBRT2 5,6 0 - 0 - ns 43 DONE Input Pulse Width tONPW 5,8 2 - 2 - Clk. 44 DMA Write Wait Time toww 0 - 0 - ns 45 DMA Write Data Setup Time towos 7-8 40 - 40 - ns 46 DMA Write Data Hold Time tOWOH 10 - 10 - ns 47 $ HITACHI 476 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63484 Frame Memory Read/Write Cycle Timing Reference 8 MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 48 AS "Low" Level Pulse Width t pwASL 25 - 20 - ns 49 Memory Address Hold Time 2 tMAH2 10 - 5 - ns 50 AS Delay Time 1 tASDl 9-12 - 60 - 50 ns 51 AS Delay Time 2 tASD2 5 65 5 40 ns 52 Memory Address Delay Time tMAD 15 70 10 50 ns 53 Memory Address Hold Time 1 tMAHl 25 - 15 - ns 54 Memory Address Turn Off tMAAZ 9, 10, 12 - 50 - 35 ns Time (A tol) 55 Memory Read Data Setup Time t MRDS 10 35 - 30 - ns 56 Memory Read Data Hold Time tMRDH 10 - 0 - ns 57 MAIRA Delay Time tMARAD 9-12 - 80 - 60 ns 58 MAIRA Hold Time tMARAH 9-11 10 - 5 - ns 59 MCYC Delay Time t MCYCD 9-13 5 60 5 40 ns 60 MRD Delay Time tMRDD - 70 - 50 ns 61 MRD Hold Time tMRH 9-12 10 - 5 - ns 62 DRAW Delay Time t DRWD - 70 - 50 ns 63 DRAW Hold Time t DRWH 10 - 5 - ns 64 Memory Write Data Delay Time t MWDD 11 - 70 - 50 ns 65 Memory Write Data Hold Time t MWDH 10 - 5 - ns 110 Memory Address Setup Time 1 t MASl 9-12 10 - 10 - ns 112 Memory Address Setup Time 2 t MAS2 9-12 10 - 10 - ns NOTE 1) Characteristic of No. 52 is defined independently of 2CLK operation frequency (f) and timing of No. 51 and No. 110. .HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 477 HD63484-------------------------------------------------------------- Display Control Signal Output Timing Reference 8MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 67 HSYNC Delay Time tHSD 12-14 - 70 - 50 ns 68 VSYNC Delay Time tVSD - 70 - 50 ns 69 DISP1, DISP2 Delay Time tDSPD - 70 - 50 ns 70 CUD1, CUD2 Delay time !cUDD 13 - 70 - 50 ns 71 EXSYNC Output Delay Time I EXD 20 70 15 50 ns 72 CHR Delay Time tCHD - 70 - 50 ns 73 74 EXSYNC Input timing Reference 8MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 75 EXSYNC Input Pulse Width t EXSW 3 - 3 - t eve 76 EXSYNC Input Setup Time I EXS 14 50 - 30 - ns 77 EXSYNC Input Hold Time I EXH 15 - 10 - ns LPSTB Input Timing Reference 8 MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 78 LPSTB Uncertain Time 1 I LPD1 70 - 45 - ns 79 LPSTB Uncertain Time 2 t LPD2 10 - 10 - ns 80 LPSTB Input Hold Time I LPH 15, 16 10 - 10 - ns 81 LPSTB Input Inhibit Time t LPI 4 - 4 - t eve RES Input and DACK Input Timing Reference 8MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 82 DACK Setup Time for RES tDAKSR 100 - 100 - ns 83 DACK Hold Time for RES tDAKHR 17 0 - 0 - ns 84 RES Inpulse Pulse Width tRES 10 - 10 - t eve • HITACHI 478 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 --------------------------------------------------------------HD63484 IRQ Output, Video Attributes Output Cycle Timing Reference 8MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 85 IRQ Delay Time 1 tlR01 18, 19 - 150 - 150 ns 86 IRQ Delay Time 2 tlR02 - 500 - 500 ns 87 ATR Delay Time 1 tATR01 12 - 80 - 60 ns 88 ATR Hold Time 1 tATRH1 10 - 5 - ns 89 90 ATR Delay Time 2 tATR02 12 - 80 - 60 ns 91 ATR Hold Time 2 tATRH2 10 - 5 - ns MPU Read/Write Cycle Timing (synchronous bus), DMA Read/Write Cycle Timing (synchronous bus) Reference 8MHz 9.8 MHz No. Item Symbol Figure Version Version Unit Number Min Max Min Max 100 CS Cycle Time tcsc 4 - 4 - tCYC 101 CS "Low" Level Width tWCSL 2,3 2 - 2 - tCYC 102 CS "High" Level Width tWCSH 2 - 2 - tCYC 103 104 DACK Cycle Time tDACKC 4 - 4 - tcvc 105 DACK "Low" Level Width tWDACKL 6,8 2 - 2 - tc c 106 DACK "High" Level Width tWDACKH 2 - 2 - t cvc Jc----:L 2 .2V O.7V Figure 1 2CLK Waveform ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 479 :r @ o .j>. en co w o @)1@5 .j>. co .j>. 2CLK I R/W -----' ~ :!. » 3 ~ o· RS v''"+r:1 7.% I IIII I~!=ttY.i14ri. I vI " I, I~rt'Y IV *t~.IV ~I hlfT • v IV -tt VI~I . IV III ~ cs Rl o o I--~-I~-I «< Vcc I~~~I " VcC2b'IT I~ ~MI I n oi~ ~{{Vcc 2~·-- !I D0 - D15 20V if no\} 2.0V if VcC2.V :arVcc -.-. o(j) • 1"10\1 II AO\} II1"10\/ 1'\0\1 II ........... ?tI: CD _ ~ ~ DTACK tv.v. I~ 000 gJ I: ,. .(. .(_ .1 '- o Asynchronous bus timing (1) Asynchronous bus timing (2) Synchronous bus timing ~ (The MPU read cycle timing IS fixed.) () » (Note 1) CS "hIgh" level width must satIsfy specIfication QJ) "'CDr->" W "'" CD T, T3 To T7 To T, T2 T3 T. Ts To T7 T. T9 TID Tll T12 T'3 To T3 T. _Ts To T2 T3 T. Ts "'" 2CLK I ~ RIW- ~ » 3 ':o-" n III RS ~ ~ CS o 01. o o ro • Do-DIS ~:I :;) c: '" ):Ii - ~ DTACK rnO ~ :I '- @ (Note) When the MPU read cycle Immediately follows the MPU writ~e execution, DTACK and ~ () the read data responses delay (by 3 tcyc) even though spec Q£3) IS satlsfled_ » ~ ~ ~ -!!! '" ~ 00 g Figure 4 MPU ReadlWrite Cycle Timing (MPU - ACRTC) Figure 5 DMA Read Cycle Timing (System Memory +- ACRTC) J: .... o Ol (Xl CAl CAl .... (Xl .... :I: o C» w """ ~ it """ 2CLK :I: ii 0 DREO :!: l> 3 CD 5" D> RIW !: ?- I\) I\) DACK 0 0 ~. 00-0,. ~% ~ :::J c: CD DTACK (READY! 000 ~ % <- 0 DONE (Output! ~ (') l> co ~ ~ ~ .!!! (Note) DACK "high" level width must satIsfy spec@. @ , Unless satisfying spec • DONE needs to be asserted "Low" while .... DTACK and the read data delay to the succeeding cycle DACK remaIns "Low". DONE "Low" width ~ co When the ACRTC is used with the synchronous bus tlmmg, specificatIOns @ ,@ @. must satisfy spec. ~ and @must be satisfied 0 Figure 6 DMA Read Cycle Timing (System Memory - ACRTC): Burst Mode To T, T2 T3 T. I Tn-2 Tn-1 Tn ,rlh \ \ , ,,r-f!-\ \ 2CLK v.,y~ \....1 ~ ...J \ ~ :I: ----, I-- S 0 DREO 08V =. > 3 CD B III RIW !::: P- I\> ~ /I 2.2V tl .+22V ~22V 01. 0 0 DACK O.7V Q. • CD ~J: ::l _ ~2.2V Do-D,. IIH ~ ~ O.7V 000 I@I @ ~ c- J: o DTACK r.: (READY) .l.O.8V (') > co ~ , ; ~ 00iiiE (Ouputj i"0.8V ~ 0 @. !!! ~O.7V (I ~ II 8'" DONE Onput) I~ } *'i5Q"NE needs to be asserted "Low" while i5AcK remains "LOw"~ONE "low" WIdth must satlsfv the spec Figure 7 DMA Write Cycle Timing (System Memory - ACRTC) :I: 0 C» "" 00 C1I W "" 00 "" J: C ~ co Co) co co i r' 2CU< -.I " " ~_ :I: ~ DREQ I I' :r. II ~ CD 5' 0> RiW ~ DACK 2,2V ~ o O, 7V t '1;!.!:t1 o ~.' 2. CD ~:t CD • _ Do-D15 @ .1 ,. (i4)---+I ~ ~ DTACK (READY) (J)() ~ t... :t ; DONE (Output) ~ !!i~ DONE (Input) II " II ~ @d 0l'IL J7V ,...------- ~ ® i (Note) DACK "hlQh" level width must satISfy spec DTACK response delays to the succeedIng cycle, Unless satisfying spec@. When the ACRTC IS used with the synchronous bus timing. specifIcatIons and @must be satisfied. @ .@ whJ!!!.. • DONE needs to be asserted "Low" DONE "low" width must satisfy spec ~ DACK remaIns "low". Figure 8 DMA Write Cycle Timing (System Memory --+ ACRTC): Burst Mode --------------------------------------------------------------HD63484 2CLK MADo-MAOI~ MAD 1f;/RAo- MA .91RA3 RA. MCYC MRD DRAW -----+-' Figure 9 Display Cycle Timing 2CLK MAD.-MAD" MADla/RAo -MAIg/RA3, RA. MCYC MRD Figure 10 Frame Memory Read Cycle Timing (ACRTC - Frame Memory) • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 487 HD63484----------------------------------------------------------------- 2CLK MAD, - MAD" _ _ _ _ _ + __...(1 MAD 16/RAo-MA 19/RA3 , -----+--.. 1=......,=~--+--------".-i:;-;;,d. RA. MCYC MAD Figure 11 Frame Memory Write Cycle Timing (ACRTC -+ Frame Memory) Refresh Cycle Attribute Control Information Output Cycle 2CLK MAD, -MAD,; ----+-{I~=-....ilJ~~1 MADlfl/RAo-MAI9/RA3, RA. MCYC - - - - + . MAD ------+e, DAAW - - - - + - e , HSYNC *When AS IS "H Igh" Figure 12 Frame Memory RefreshNideo Attribute Output Cycle Timing ~HITACHI 488 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 --------------------------------------------------------------HD63484 2CLK 07V MCYC Vcc- 20V VCC~ 20V Vee-20V EXSYNC Vcc- 20V (Output) oav Vcc- 20V CHR oav Figure 13 Display Control Signal Output Timing 22V 2CLK HSYNC (SLAVE) (Sync Cycle) Tl T2 T3 T4 T5 T6 2CLK EXSYNC -G: MCYC MCYC -'-., (Phase Not Shiftecl (When the leading edge of EXSYNC enters this penod, ACRTC shifts the internal phase according to the above sequence.) Figure 14 EXSYNC Input Timing ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 489 HD63484---------------------------------------------------------------- Smgle Access Mode Display Cycle (LPSTB RISe Cycle) 2CLK MCYC MAD, -MAD,s LPSTB (hen LPSTB rISes In thIS period, memory address "M + 2" IS set In the Light Pen Address register Note 1 Memory addresses "M", "M+ 1", "M+ 2", and "M+ 3" denote the display addresses Note 2 Memory address set In the Light Pen Address register dUring H~sync cycle may not be proper Figure 15 lPSTB Input Timing (Single Access Model Interleave Mode/Supenmpose Mode (Dual Access Mode all) 1 - - - - - - - Display Cycle - - - 2CLK MCYC LPSTB LPSTB Note 2 Note 1 Memory Addresses "M", "M+ 1", and "M+ 2" denote the display addresses In 'the Interleave Mode, and those of the background screen In the Superimpose Mode Note 2 When LPSTB nses In the penod (1), memory address "M+ 1" IS set In the Light Pen Address register Note 3 When lPSTB rises In the penod lZI, memory address "M+ 2" IS set In the lIght Pen Address regIster Note 4 Memory address set In the LIght Pen Address regIster dunng H-sync cycle may not be proper Figure 16 lPSTB Input Timing (Dual Access Model ~HITACHI 490 Hitachi America Ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63484 ° 1---+1-"1 ° 7V 7V 22V 1-_ _ _ _-\07V Figure 17 RES Input and DACK Input Timing (System Reset and 16-bit/8-bit Selection) 2CLK Figure 18 IRQ Output Timing 2CLK 00-015 ---~_1~Hl:~~~]-----II--t:;:_-------_1_:;:_--- @ TRQ ----------------1J~--_'I Vee - 20 This is an IRQ output timing example. In this case, IRQ is generated by status flag RFF (Read FIFO FuJI). When issuing read commands (RD) which transfer data exceeding Read FIFO space (8 words), the FIFO becomes full, and the command execution pauses (RFF: set, IRQ: generated). By reading out I-word data, spare occurs in the FIFO, and the ACRTC resets RFF flag and then negates IRQ, while on the other hand the ACRTC resumes the internal operation (command execution) to fill the FIFO, and sets RFF flag and then asserts IRQ again. In this case, the timing from IRQ negate to assert is 3 cycles (tcyc). Figure 19 IRQ Ou~put Timing (Example: Read FIFO Full interrupt Enable) ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 491 HD63484-------------------------------------------------------------- Stgnal load conditton s.ov Do - 0,. DTACK DREO Rl= 1.SKO RL MADo - MAD,. C=40pF MA'6/RAo - MA,oIRA3 R = 10 KO RA, VSYNC.~ EXSYNC AU diodes are MCYC. AS'. MRD 1S2074H's or DRAW. CHR the equivalent DISP1.~ CUD1, 'CUI5! Figure 20 Test Load Circuit A s.ov Figure 21 Test Load Circuit B Power on Sequence (Note) When tumlng power on. 2ClK and RES tImIngs must be Vee as shown in ftgure E22 The delav ttme from Vee risIng to 2ClK nsmg (t:2CH) must be under 100 ms. and that from 2.2V Vee nsmg to RES risIng (IREH) must be above 100 ms 2ClK -----t-.-.............L K . - - IREH> 100 ms 07V RES . Figure 22 Power On Sequence .HITACHI 492 HItachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (40S) 435-8300 Ringing Noise and Damping Resistor If excessive ringing noise occurs on CRT data bus (figure E23), damping resis- tors may be required for the data bus as shown in figure E24. Vout MADoL-~\1\1\ ACRTC t Damping Resistors Note The nngmg level depends on the load capacity. and It can be VOL + 0 1V (50-100n) Figure 23 Ringing Noise Figure 24 Damping Resistor Note for Designing Power Supply Circuit r - - -L-........--I.....L.~_ - - , I I I I I Vcc Vss (55) 1-....--4-vss (14) Vcc Vss (51) (16) Vss Vcc (49) Vss 1-""--4-Vcc + 1/ MA,.,IRA.- MA,,.tRA. - r-- RA. 20 F= ~f=: F= F= ~ Raster ~ DIsplay Address CRT Processor 5 Interface ~ -f- CHR - CHR RS -- MPU Inter- , CCUD RtW -- face II - LPSTB ~ CDi5'i. CUD2 -- 2 GCUD HSYNC - VSYNC - VSYNC - F ' EXSYNC 1-- EXSYNC Timing ~ Processor 2 DISP 1- DISP 1. DISP2 MCLK f - MCYC AS f- 2CLK 1-'-- 2CLK f2 t2 Vcc Vss Figure 27 Block Diagram • HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (40B) 435-8300 495 HD63484------------------------------------------------------------ Video Attribute. coded start dot address which is used to control the external The ACRTC outputs 20 bits of video attributes (Figure 28) on shift register load timing and data. HSD usually corresponds MADo-MAD I5 and MAI6/RAo-MA19/RA3' These attributes are to the start dot address of the background screens. However, output at the last cycle prior to the rising edge of HSYNC and if the window smooth scroll (WSS) bit of OMR (Operation should be latched externally. Thus, video attributes can be set on Mode Register) is set to 1, HSD outputs the start dot address a raster by raster basis. of the window screen segment. Note) HSD outputs the valid value only within the specified raster area. Changing the register contents during the l MA,. BLlNK2 Blink scanning does not cause any external etTects, because MA,. BLINK1 the value loaded at the beginning of the area is re- MA17 SPL2 served. Split Screen Number MA,. SPL1 HZ3 Horizontal Zoom Factor (HZO-HZ3: MAD I2 -MAD 16) I MAD,. These lines output the encoded (1-16) horizontal zoom factor Horizontal Zoom as stored in the Zoom Factor Register (ZFR). Horizontal MAD,. HZO zoom is accomplished by the ACRTC repeating a single dis- MAD" HSD3 play address and using the HZ outputs to control the external HSDO ATC7 I Honzontal Scroll Dot shift register clock. Horizontal zoom can only be applied to the Base screen. Split Screen Code (SPL1-SPL2: MA .. -MA 17) These lines present the encoded information showing the split screen currently being displayed by the ACRTC. Attribute Code SPL2 SPLl o 0 Out of background screen o 1 Base Screen 1 0 Upper Screen ATCO 1 1 Lower Screen Even if the split screen display is prohibited, SPL is output if the area is specified. Figure 28 Video Attributes Blink (BLlNKI-BLINK2: MAlO-MAID) The lines alternate from high to low periodically as defined in Attribute Code (ATCO-ATC7: MADo-MAD,) the Blink Control Register (BCR). the blink frequency is spec- These are user-defined attributes. The programmed contents ified in units of 4 field times. A field is defined as the period of the Attribute Control bits (ATR) of the Display Control between successive VSYNC pulses. These lines are used to Register (OCR) are output on these lines. implemen t character and screen blinking. Note) The data written into ATR can be externally used after the completion of current raster scanning. • ADDRESS SPACE The ACRTC allows the host to issue commands using logical Attribute Code (ATCO-ATC7) Application X-Y coordinate addressing. The ACRTC converts these to physi- The following shows some application examples. cal linear word addresses with bit field otTsets in the frame butTer. (I) Amount of horizontal dot shift for window smooth scroll. Figure 26 shows the relationship between a logical X-Y screen (2) Horizontal width of crosshair cursor and the amount of address and the frame butTer memory, organized as sequential 16 horizontal dot shift (including Block cursor). bit words. The host may specify that a logical pixel consists of 1, (3) Frame butTer specification in blocks (used for the base 2, 4, 8 or 16 physical bits in the frame butTer. In the example, 4 register). bits per logical pixel is used allowing 16 colors or tones to be (4) Back ground screen color or character color code. selected. (5) Display screen selection during screen blink (used with Up to four logical screens (Upper, Base, Lower, and Window) SPL). are mapped into the ACRTC physical address space. The host (6) Interrupt vector address storage. specifies a logical screen physical start address, logical screen (7) Polarity selection of horizontal/vertical synchronization physical memory width (number of memory words per raster), signal. logical pixel physical memory width (number of bits per pixel) (8) Blinking signal for indicator lights. and the logical origin physical address. Then, logical pixel X-Y (9) Code storage (max. 8 bit), selection signal, etc. addresses issued by the host or by the ACRTC Drawing pro- cessor are converted to physical frame butTer addresses. The Horizontal Scroll Dot (HSDO-HSD3: MAD,-MAD ll ) ACRTC also performs bit extraction and masking to map logical These are used in conjunction with external circuitry to imple- pixel operations un the example, 4 bits) to 16-bit word frame ment smooth horizontal scroll. These lines contain the en- butTer accesses. • HITACHI 496 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63484 PhYllcol Add.... lng Loglca' Actd ....8lng Display Screen IF..me Buffo.1 bit bit SAD o 16 y Y-~~V ! Ongl" X ----- .--- ---.--- ----- Figure 29 Logical/Physical Addressing ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 497 HD63484---------------------------------------------------------------- 7 0 15 o I Address R~ister I} Hardware ,,/ Aeces;!:",,'" I Status Register I -~~~~~~~""'-----------------~ //// 15 0 __ ___ L~~ -_-~ -}JfQJ~!ri~=====$ \ ,-, Write FIFO I Command Control Register I \ I 0eeration Mode R~ister I \ ,, ........ , - I Display Control Register ~ ,, Timing ~ontrol RAF1I Raster Counter \ ,, Horizontal sync. ,, Read FIFO Horizontal Display Vertical Sync. , \ Vertical Display Spilt Screen Width ~t Command ~ster Blink Control Horizontal Window Isp ay Vertical Window Display Direct Control fo.ccess Register Graphic Cursor Display Control RAM Pattern 16 X 16 RAM Split Screen o· Control (Upper Screen) Split Screen 1 Control (Base Screen) FIFO Access Split Screen 2 Color 0 Control (Lower Screen) Color 1 Color Comparison Edge 0 or Split Screen 3 Mask Control (Window Screen) Pattern RAM Control DraWing Block Cursor Parameter Register Area Definition Cursor Oe inltlon Zoom Facter ReadIWrite Pointer Light Pen Address Drawing Pointer Current Pointer Figure 30 Programming Model ~HITACHI 498 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 ----------------------------------------------------------------HD63484 Table 1 Programming Model (Hardware Access, Direct Access Registers) DATA (H) DATA (L) CS RS :w ~~g Register Name Abbre 15 14 13 12 11 10 4 3 I ...... -_. __ .... -.--- 0 0 0 AR Address Register AR .- ....... _------ Address 0 0 I SR Status Register SR CER ARO CEO LPO RFF RFR WFR WFE '/0 rOO FIFO Entry FE FE Vi r02 Command Control CCR ABT PSE DDM COM DRC GBM CRE ARE CEE LPE RFE RRE WRE WEE Va r04 Operation Mode OMR MIS STR ACP WSS CSK DSK RAM GAl ACM RSM '/0 r06 Display Control DCR DSP SEI SE~ SE2 SE3 AT R rOB r1E (undefmed) ----_ ... _---------_ ... 1 rBO Raster Count RCR RC 1/0 r8Z HOrIZontal Sync HSR HC HSW r84 HOrizontal 01 splay HDR H0 S HDW 1/0 r86 Vertical Sync VSR VC I/o r88 Vertical Display VOR V DS V S W Vo rSA S P I Vo~ Spilt Screen Width SSW S PO V6 raE S P2 I/o r90 Bhnk Control BCR BONI BOFFI BON2 BOFF2 1/0 r92 HOrIZontal Window Display HWR H WS HWW :~~ Vertical Window Display V WS VWR VWW 1/0 r98 C X E C X S l/o~ Graphic Cursor GCR CYS 1/0 r9C C Y E - r9E - ~ (undefined) _._._ .. _.... _--- raE I/o rCO Raster Addr 0 RARO LRAO F RA0 l/o~ Upper ~M'iCe=m:::orc'Yc;:W"'ld;.thc--nO+.i:.;;;<;.+=,,----'-----,-'~~------l--~=-L---'--"-'-'-"-----1 MWRO CHR MWD ~~ Screen Start Addr.O SARO SDAO SAOH/SRAO SAOL 1/0 rCS Raster Addr 1 RARI L RA I F RA I 4~Ba~ r.M'iCe=m=or~yc;:W~,d~th~IiT.~~~~-----'----,~~~----~----ov""~----~~~------1 MWRI CHR MWI ~~ Screen Start Addr SARI S D A I SA1H/SRAI SA I L ~~ ~R'iCa~~e~r~Ac;:d~d~r2~+T.:.;;;<;.+~,,_-----'---_.-'~~~-----l----~~~----~~~----__1 RAR2 L RA 2 F R A 2 l/og Lower Memory Width 2 MWR2 CHR M W2 :~~ Screen Start Addr 2 SAR2 SDA2 SA2H/SRA2 SA 2 L I/o rDS Raster Addr 3 RAR3 L RA 3 F R A 3 l/o~ Wmdow r.M'iCe=m=orc'yc;:W~,d'"'thc--n3+.i:.;;;<;.+=,,----'-----,-'~-"-'---~---..-,""~---'--"-'"'-"-----1 MWR3 CHR MW3 ~~ Screen Start Addr 3 SAR3 SDA3 SA3 H/SRA3 SA 3 L :~~ Block Cursor 1 BCURI B C WI B C SRI B CA I BC E R I ~~ Block Cursor 2 BCUR2 B C W2 BCSR2 BCA2 B C E,R 2 1/0 rES Cursor Definition CDR CM CONI COFFI CON2 COFF2 1/0 rEA Zoom Factor ZFR HZ F VZ F l~, CHR L~A~ 1 I rEE ILight Pen Address LPAR LPAL rFO rfE (undefined) ---_ .. --------- ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 499 HD63484------------------------------------------------------------ ABT : Abort SPO. SP1, SP2 : Split Screen 0 Width, Spht Screen 1 Width, ACM : Access Mode Split Screen 2 Width ACP : Access PriOrity BOllI I. BON2 : Blink 0lIl I. Blink 0lIl 2 Address . Control register number BOFF I. BOFF2 : Blink OFF I. Blink OFF 2 ARD : Area Detect HWS : HOrizontal Window Start ARE : Area Detect Interrupt Enable HWW : HOrizontal Window Width ATR : Attribute Control WlS : Verneal WindOW Start COM : Coomoan .j:> co DA 1 (SUPERIMPOSED ACCESS MODE) .j:> Display Cycle 2CLK . ~ !': !'; ~'; ~ AS ~:~ I ~. ;! » 3 ~ 1';- 'HIGH' '" liRAW ~ BACK GROUND WINDOW DISPLAY CYCLE I\) Display Cycle (x2 Zoomed) I\) o AS o oI@ Q.• MAD MA/RA/CH A A A A A A A A ~ CD ~:I MCYC ~ ::J ~ ; - MAD ORA~HIG~H~--------------------------------------------------------------------------------------------4--- UlC') I- ZOOMING CYCLE .1 ?lc- :I Drawing Cycle oU> on As f----J ~ ~ () A A A A MAO 0 0 » ~ MA/AA/c';HR A A A A § MCVC ~ MRO r- ~ DRAW .$ ... READ WRITE '"00 U1 '":5 Figure 41 Superimposed Access Mode Timing Note) Figure 42 shows the tlmmg when C!:::J. Split Screen ~ Window CD Drawing-Possible c::::E> In this cycle, Display Cycle Display Cycle Cycle the output IS display has PriOrity, and no drawing Refresh Address (when no drawing fixed at "0" IS done Broken hnes mdlcate CD Output Cycle CI:) . Attribute Out- IS executed, the (Attribute cycle) that when drawing IS performed !In DRAM mode) put cycle output IS fixed at "0") I 2CLK f-rv vv- vv- vv- ~ ~ J\J\.J\F I-r\rVVVL ~ MCYC V W- w- V ~ ~ L.J\.....J ~ '»3" HSYNC I----' ~ DISPI o· III DISP2 IWSS=O ) ~ [SA] AS I-' J \.J V- ~ ~ ~ ',..1 \J \.l '"'"o MAD ~'A ~ ~ ~ :::E ~ ~ T T ...L ~ ~ ~ Q}---{D-- ffi--{]}-{])- o MA/RA o· 0 0 S 5 S S S w J. w w w s J.. s 0 0 0 c}~ o co • MRD .... ___ -1 '----"'" _ _ _ _ oJ '- ___ J \ _____ i\.. ___ DRAW "---_ .... .... _---------- ~J: ~ ~ ~ - DISP2 IWSS=·'" ') [DAO] I I I I mO AS f-I ~" I J r'-J I-' '-J .- f-I '-J ,. J LJ J 'J '-J ~ J: MAD T 'A"-1r ~ --:-- :E i.e' ~ :L :E :L ~ :L :E :L ~ :L ~ 0 0 c- o(J) i MAiRA O· (Al. 0 s 0 s o I s 0 w 0 w 0 s 0 0 o J.. 0 I !D I\.. ___ J .... ___ J MRD ' - _ __ J o 1'-- - - I \"---1 '-----' .... - __ .1 ___ , \- _ _ _ .1 .... - _ - » I I 3\ DRAW ,'- ___ J ,'- _ _ _ J 1,. _ _ _ ' ' - _ _ _ oJ '- ___ .1 \.._--, '---- ------------ ~ DISP2 IWSS="1 " I I I I I I [DA1] I I -:;;; ~ AS ~ I\..~ U I\.J f-I \.) LJ ~ f..I \oJ LJ ' 'LJ LJ , -I> '" ()1 MAD ~ o· ~ A 0 S 0 S 0 S 0 S W S W ~~ S 0 0 0 0 Co MA/RA g MRD I 1'- - - - ' I ,'- _ __ J '-- --' \..._---1 ~ 1-- _ __ I "- _ _ .1.1.. _ _ _ 1\.. _ _ DRAW 1'----1 1'----' \... _ _ J ' - _ _ _ oJ '----- ------------ DISP2IWSS="1 ') , I , J: Figure 42 Horizontal Scan Sequence C (11 Ol CAl (11 .j>. CO .j>. HD63484----------------------------------------------------------------- (2) Graphic Address Increment Mode (GAl) Table 6 shows the summary relationship between 2CLK, Dis- During display operation, the ACRTC can be programmed to play Access Mode, Graphic Address Increment, number of bits/ control the graphic display address in seven ways including incre- logical pixel, memory access time and video data rate. The frame ment by 1, 2, 4, 8 and 16* words, 1 word every two display cy- buffer cycle frequency (Fc) is shown by the following equation cles and no increment. where: Setting GAl to increment by 2, 4, 8 or 16 words per display Fv Dot Clock cycle achieves linear increases in the video data rate i.e. for a N Number of bits/logical pixel given configuration setting GAl to 2, 4, 8 or 16 words will D Display Access Mode achieve 2, 4, 8 or 16 times the video data rate corresponding to 1 for Single Access Mode GAl = 1. This allows increasing the number of bits/logical pixel 2 for Interleaved and Superimposed Access Modes and logical pixel resolution while meeting the 2CLK maximum A Graphic Address Increment (1/2, 1, 2, 4, 8, 16) frequency constraint. Fc (Fv X N X D)/(A X 16) Table 6 Graphic Address Increment Modes -......... Dot Rate 16 MHz 32 MHz 64 MHz 12S MHz Number of Sits/Pixel ~ -Memoryeyc 250 ns SA DA +112 SA +1/2 DA +1 SA +1 DA +2 SA +2 DA +4 1 500 ns +1/2 +1 +1 +2 +2 +4 +4 +8 250 ns +1/2 +1 +1 +2 +2 +4 +4 +S 2 500 ns +1 +2 +2 +4 +4 +8 +S +16' 250 ns +1 +2 +2 +4 +4 +S +S +16' 4 500 ns +2 +4 +4 +S +8 +16' +16' 8 250 ns +2 +4 +4 +8 +8 +16' +16' - 500 ns +4 +8 +S +18' +16' - - - 16 250 ns +4 +S +8 +16' +16' - - - 500 ns +S +16' +16' - - - - - Dynamic RAM Refresh have 128 refresh cycles of 2 ms, HSW must be greater than or When dynamic RAMs (DRAMs) are used for the frame equal to 5. buffer memory, the ACRTC can automatically provide DRAM HSW ~ 128/ (2 X 15.75) = 4.06 refresh addressing. The ACRTC maintains an 8 bit DRAM refresh counter which Table 7 GAl and DRAM Refresh Addressing is decremented on each frame buffer access. During ~ low, the ACRTC will output the sequential refresh addresses on Graphic Address Refresh Address Output MAD. The refresh address assignment depends on Graphic Ad- Increment Mode Terminal dress Increment (GAl) mode as shown in Table 7. The ACRTC provides "0" output on the remaining address +0 (GAI=101) MADo-MAD7 line of MAD and MA/RA. + 1 (GAI=OOO) MADo-MAD7 DRAM r~Sy~crcle timing must be factored into the deter- +2 (GAI=001) mination of low pulse width (HSW - specified in units MAD,-MAD. of frame buffer memory cycles). +4 (GAI=010) MAD 2 -MAD. If the horizontal scan rate is Fh (kHz), number of DRAM re- +S (GAI=011) MAD.-MAD," fresh cycles is N and the DRAM refresh cycle time is Tr (msec) then horizontal sync width (HSW) is specified by the following +16 (GAI=100)' MAD 4 -MAD" equation: , HSW ~ N / (Tr X Fh) + 1/2 (GAI= 111) MADo-MAD7 110 For example, if the scan rate is 15.75 kHz and the DRAMS • HITACHI 516 Hitachi America Ltd .• :!210 O'Toole Avenue • San Jose, CA 95131 • (40S) 435-S300 --------------------------------------------------------------HD63484 2CLK DiSP tiSYNc AS MAD MA/RA A RA' eHR DRAW "High" MRD "High" Figure 43 DRAM Refresh Timing External Synchronization e MPU INTERFACE The ACRTC EXSYNC pin allows synchronization of multiple MPU Bus Cycle ACRTCs or other video signal generators. The ACRTC may be The ACRTC interfaces to the MPU as an 8 or 16 bit periph- programmed as a single Master device, or as one of a number of eral as configured during RES. Slave devices. An MPU bus cycle is initiated when CS is asserted (following ~chronize multiple ACRTCs, simply connect all the the assertion of RS and R/W). The ACRTC responds to CS low EXSYNC pins together. by asserting DTACK low to complete the data transfer. DTACK For synchronizing to other video signals, the connection will be returned to the MPU in between 1 and 1.5 2CLK cycles. scheme depends on the raster ~de. In Non-Interlace MPU WAIT states will be added in the following two cases. mode, EXSYNC corresponds to VSYNC. In Interlace modes, (a) If the ACRTC 2CLK input is much slower than the MPU EXSYNC corresponds to VSYNC of the odd field. clock, continuous ACRTC accesses may be delayed due to Note 1) The ACRTC performs the synchronization every time it internal processing of the previous bus cycle. accepts the pulse input from EXSYNC in the slave Note) <::S "High" width must not be less than two 2CLK mode. cycles. It is recommended that the synchronous pulse should (b) If a read cycle immediately follows a write cycle, a WAIT be input from EXSYNC only when the synchronization state may occur due to ACRTC preparation for bus 'turn- gap between the synchronous signal of the master de- around'. However, MPUs (for example 68000) normally vice and that of ACRTC in the slave mode (liSYNC have no instruction which lets a read cycle follow a write cy- and VSYNC are output also in the slave mode.). cle immediately. Note 2) The ACRTC needs to be controlled not to draw during For connection to synchronous bus interface MPUs, DTACK EXSYNC input. can simply be left open assuming the system design guarantees that WAIT states cannot occur as described above. If WAIT Clock states may occur, DTACK can be used with external logic to Signal synthesize a READY signal. DMA Transfer ~ 2CLK The ACRTC can interface with an external DMA controller using three handshake signals, DMA Request (DREQ), DMA ACRTC Acknowledge (DACK) and DMA Done (DONE). (slave) The ACRTC uses the external DMAC for two types of trans- L. 2CLK fers, Command/Parameter DMA and Data DMA. For both EXSYNC types, DMA transfers use the ACRTC read and write FIFOs. ACRTC (Master) (1) Command/Parameter DMA The MPU initiates this mode by setting bit 12 (CDM) in the EXSYNC ACRTC Command Control Register to 1. Then, the ACRTC will Leo 2CLK sociated parametersr automatically request DMA transfer for commands and their as- long the write FIFO has space. Only cycle steal request mode DREQ pulses low for each data transfer) can be used. Command/Parameter DMA is terminated when the ACRTC MPU resets bit 12 in CCR to 0 or the external DONE input is (slave) asserted. EXSYNC (2) Data DMA Data DMA is used to move data between the MPU system Figure 44 External Synchronization • HITACHI Hitachi America ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 517 HD63484-------------------------------------------------------------- memory and the ACRTC frame buffer. programmable. A typical application might use the Base screen The MPU sets-up the transfer by specifying the frame buffer for the bulk of user interaction, using the Lower screen for a transfer address (and other parameters of the transfer, such as 'status line(s)' and the Upper screen for 'pull-down menu(s)'. 'on-the fly' logical operations) to the ACRTC. Next, when the The Window screen is unique, sinoe the ACRTC usually gives MPU issues a Data Transfer Command to the ACRTC, the the Window screen higher priority than Background screens. ACRTC will request DMA transfer to and from system memory. Thus, when the Window, whose size and position is fully pro- The ACRTC will request DMA, automatically monitoring FIFO grammable, overlaps a Background screen, the Window screen is status, until the DMA Transfer Command is completed. displayed. The exoeption is the ACRTC Superimposed Access Data DMA request mode can be cycle steal (as in Command/ Mode, in which the Window has the same display priority as Parameter DMA) or burst mode in which DREQ is a low level Background screens. In this case, the Window and Background control output to the DMAC which allows multiple data transfers screen are 'superimposed' on the display. during each acquisition of the MPU bus. Upper Interrupts The ACRTC recognizes eight separate conditions which can generate an interrupt including command error detection, com- Base Window mand end, drawing edge detection, light pen strobe and four FIFO status conditions. Each condition has an associated mask Lower bit for enabling/disabling the associated interrupt. The ACRTC removes the interrupt request when the MPU performs appropri- ate interrupt service by reading or writing to the ACRTC. Upper Upper Base Base • DISPLAY FUNCTION • SCREEN DISPLAY CONTROL Logical Display Screens Lower The ACRTC allows division of the frame buffer into four Window Lower separate logical screens. Screen Number Screen Name Screen Group Name Figure 45 Screen Combination Examples o Upper screen}- Frame Memory Setup 1 Base Screen Background Screens The ACRTC can have two types of independent frame 2 Lower Screen memories, 2M byte frame buffer and 128k byte refresh memory, 3 Window Screen and CHR signal controls which memory to be accessed. For the frame memory, memory width is defined by setting In the simplest case, only the Base screen parameters must be up Memory Width Register (MWR), and horizontal display defined. Other screens may be selectively enabled, disabled and width is independently defined by Horizontal Display Register blanked under software control. (HDR). Therefore the frame memory area can be specified The Background (Upper, Base and Lower) screens partition bigger than display area as shown in Figure 46. the display into three horizontal splits whose positions are fully J.o~t--------MemOry Widthl----------.,.~I Start Address ~ Display Screen Area '1 Vertical Display .. 1dth ....... ..... ,," Frame Image : : \. HoriZontal ..I Display Width Figure 46 Frame Memory and Display Screen Area • HITACHI 518 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD63484 Display Control Each screen has its own memory width, start address, vertical Figure 47 shows the relation between the frame memory and display width, and attribution of frame memory (character/ the display screens. graphic), and those are specified by the control registers. Frame Buffer Defined Frame Buffer 0000 for Characte-,___________ ~========-M~W~O~=======:1·1 p-~--------- ----------, SARO i File Name: MOS : L_______________________ J 1--__--1.,,_,_ - - -- - - - - _.1-_ _ _ _ _ _ _ _ _ _ _ _ _ _...:::....:::-...--_ _ _--1 """" 1------MW2-----~ " , ' 1 - - - - - - - - - - - - : -1 ::..:1- -- - - - - - - - - - - - - - - - - - , SAR2 : Left : Layout : FFFFL----l ....................... ,: Right : Symbol !, l . _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ... " Frame Buffer for Graphic 00000 -----______ t------ MW1---! :- -----------l m SAR1 I I I I I I lI _______________ .JI File Name: MOS '.::.~----------­ --- -- ------ -------r---- , ---- -- , 00 !-1~ ''''''' "" r----- MW3---j FFFFFL-__--l SAR3 ~ qp i ________________ l ________ _ Left Layout ""'" Right : Symbol ", " ......- - l_ _ _.-J Figure 47 Frame Memory and Display Screens ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 519 HD63484-------------------------------------------------------------- Figure 48 shows the relation between the control registel sand control are set in units of rasters. the display screens. Registers for horizontal display control are Note a display width specified by * marked register is: set in units of memory cycles, and registers for vertical display (Display width) = (Setup value) + 1 memory cycles He' !. , -I , , ,,, ,, ,, ,, HWS' HWW' , , , I. I , I ,,, HSW ! 'HDS" :. ! ,, , HOW' ,,, ~ ~I HSYNCl ,,I , , ,, , ,, : ,, Display Screen Period , Ul ------------ "0 - - o (Upper) (Window) - (Base) (Base) < n ------- - - - - Ul "0 (Lower) '" Retrace Period Figure 4B Display Screen Specification • HITACHI 520 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 Horizontal Sequence Memory~ :I: ~ ;;r. 2CU( > MCYC F 3 CD 2" ~ HSYNf DiSI'i _ I Sync i. Horlzontal~ ~ : .. (----(HDW+UoM =1 DiSP2 ~ I. WidIh _oM o '1. ___ cJ. . . . .1W"mdowSIlIIt HonzolHWS+U"M I· ----- o -- ~ -- -- -- 2. • CD • H = tHC+lI-M i!- ~% Vertical Sequence ~ I !Ii rnO ~ % <.. -; HSYNf VSYNC g iii§ii -11----+...... !!i~ l!iSI'2 D_ I Verda! :-e~ Vertical syncWkIth ~ S1Irt D_WoIth VDSft.. SPo.H--......oIl••>----~ VSW-H I: VWSoH ~erticII Window -I· Vaticll Window Width vww· H 1 i s.t I' VCoH-:-----------------_..I1 Vlrtlcal Cycle Figure 49 Display Scan Sequence IHDrizDntal and Vertical) :r 0'1 c (J) '" fA) i HD63484----------------------------------------------------------------- Graphic/Character Address Spaces A Block cursor is used with Character screens. The cursor The ACRTC controls two separate logical address spaces. The start and ending raster addresses are fully programmable. Also, CHR pin allows external decoding if physically separate frame the cursor width can be defined as one to eight memory cycles. memories are desired. A Graphic cursor is defined by specifying the start/end memo- Each of the four logical screens (Upper, Base, Lower and ry cycle in the X dimension and the start/end raster in the Y Window) is programmed as residing in the Graphics address dimension. space or the Character address space. The Graphic cursor can be output on character and Graphic ACRTC accesses to Graphics screens are treated as bit map- screens. ped using a 20 bit frame buffer address, with an address space of The ACR TC provides two separate cursor outputs, CUD I and one megaword (1M by 16 bit). CU02. These are combined with two character cursor registers ACRTC accesses to Character screens are treated as character and a graphic cursor register to provide three cursor modes. generator mapped. In this case, a 64k word address space is used and 5 bits of raster address are output to an external character (1) Block Mode generator. Two Block cursors are output on CUD 1 and CUD2 respec- Multiple logical screens defined as Character can be externally tively. decoded to use separate character generators or different ad- (2) Graphic Mode dresses within a combined character generator. Also, each Char- The Graphic cursor is output on CUDI. Using an external acter screen may be defined with separate line spacing, separate cursor pattern memory allows a graphic cursor of various cursors, etc. shapes. Two Block cursors are multiplexed on CU02. (3) Crosshair Mode • CURSOR CONTROL The horizontal and vertical components of the Graphic cur- The ACRTC has two Block Cursor Registers and a Graphic sor are output on CUOI and CU02 respectively. This allows Cursor Register. simple generation of a crosshair cursor control signal. - - - - - - - - - - - 1F - - - First Raster Address --to-+-----tO-+---oo (FAA) HITACHI --+O+-----~O-+--- 01 --~0T-----~04----02 ---I0f-*-0*0-1i0~0~0*--03 ~ Cursor1 --+-0+-------t0-+----04 -~0T-----~04----05 --+-0+-----t0-+---- 06 ---------------07 ACRT[9 L ---------------------08 - - Last Aaster Address (LAA) ~ Cursor2 Raster Address Figure 51 Two Separate Block Cursors Figure 50 Character Screen Raster AddreSSing -------1F 000000 00 000000 01 000000 000000 02 000000 03 000000 -------04 000000 -------05 000000 -------06 000000 000000 -------07 -------08 BCSR=07 BCSR=02 BCSR=OO BCER=07 BCER=07 BCER=02 Figure 52 Block Cursor Examples ~HITACHI 522 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63484 -------,Ur -------------.§/-7 -,' o Figure 53 Graphic Cursor .< ;. n !!!. n c iil HOrizontal Cursor Signal ________~nL______~n~_______ Q '" ~I ii ~ !!!. Figure 54 Crosshair Cursor • SCROLLING Horizontal Scroll Vertical Scroll Horizontal scroll can be performed in units of characters for Each logical screen performs independent vertical scroll. On Character screens and units of words (multi logical pixels) for Character Screens, vertical smooth scroll is accomplished using Graphic screens by increasing or decreasing the screen start ad- the programmable Start Raster Address (SRA). Line by line dress by 1. scroll is accomplished by increasing or decreasing the screen start For smooth horizontal scroll, the ACRTC has dot shift video address by one unit of horizontal memory width. attributes which can be used with an external circuit which condi- On Graphics screens, vertical smooth scroll is accomplished by tions shift register load/clocking. increasing or decreasing the screen start address by one unit of Since this dot shift information is output each raster, horizon- horizontal memory width. tal smooth scroll is limited to either the Background screens or the Window screen at any'given time. However, horizontal smooth scroll is independent for each of the Background screens (Upper, Base, Lower). ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 •. (408) 435-8300 523 HD63484----------------------------------------------------------------- Defined Frame Buffer ([) Sta rt Address (SAR) SAR ! SAR' - --r----------- , I , --, I I <2> Sta rt Address (SAR') aD I I I I I I I : if' , , I I I I MOS I I I \crO~I~~- - ,-- - - - - -- - ~ / , I I r----L --- --- --,, , I ,, I aD I I I . I aD MOS I I I , I I , MOS L ______________ .J I I , I ,, I ([) D,splay (SAR) <2> D,splay (SAR') Figure 55 Scrolling by SAR (Start Address Register) Rewrite ~L-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _~~ Memory Address F'gure 56 Horizontal Smooth Scroll - Background Screen ~HITACHI 524 Hitachi Amenca ltd, • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 --------------------------------------------------------------HD63484 Background EJ DISP1~~____________________________~r_ DISP2 - - - - - - - - - - - - - - , 1 Display Cycle MAD fFBul- E- --1.. !W'@i+,jW2E------ja..rw.!O+1!- E- --1.. ;-1 B Background Address Empty Cycle or Drawing Cycle W Window Addre•• Figure 57 Horizontal Smooth Scroll - Window Screen (WSS= 1) • RASTER SCAN MODES quality of a displayed figure when using an inter1aced CRT device The ACRTC has three software selectable raster scan modes such as a Television Set with RF modulator. - Non-Interlace, Interlace Sync and Interlace Sync & Video. In Interlace Sync & Video mode displays alternate even and odd Non-Interlace mode a frame consists of one field. In the Interlace rasters on alternate even and odd fields. For a given number of modes, a frame consists of two fields, the even and odd fields. rasters/character, this mode allows twice as many characters to be The Interlace modes allow increasing screen resolution while displayed in the vertical direction as Non-Interlace mode. avoiding limits imposed by the CRT display device, such as Note that for Interlace modes, the refresh frequency for a maximum horizontal scan frequency or maximum video dot rate. given dot on the screen is one-half that of the Non-Interlace Interlace Sync mode simply repeats each raster address for mode. Interlace modes normally require the use of a CRT with a both the even and odd fields. This is useful for increasing the more persistent phosphor to avoid a flickering display. Even---- Odd----- IF IF _______________ _ lE--------- -IF 00 e e 00 00 --f-i~------_____Af_ 01 e 02 ---€E-*-3E-5)--e-E-*-3E::"~~f-- 01 e 01 ---------=-/ - 03 02 e e 02 04_-~~~_-_-_-_-_-_-_-_-_-_~-_05 03 €XXXXXXX)() 03~~~~~ 06----------- -----------------07 04 e e 04 08 -;::;:~~::::::::;:::_- - ----09 05 e e 05 06 e e 06 - -00 07 07 OE~;:::;;:::;:::;;:::~~- 08 08 ______________ _ 10~~~~:"='::= ---------------11 Non-Interlace Interlace Sync. Interlace Sync. & Video Figure 58 Raster Scan Modes • HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 525 HD63484---------------------------------------------------------------- [INTERLACE-SYNC) Dummy RCR~~ 1~~ ~ ~: ~,I~:J~================~~~~~====t==It=========::=================:==:::=========~;;;;;;;;!r---- 1VSYNC = = = = = = = =- E-V-E-N-F-'E-L-D- ~ ~ n_-l:~_+:~_-~ ~-=-F- <:~ Io :I-E- - - - - - - - - - - -_-_-_- =_O_D_D_,'_'E_lD_________---Ir- [lNT~~AC~~S~Y~N~C~&~V~I~D~E~O~)~V~~~=~O~O~O~~~~~~~H~/~2~~~V~C~~D~u~m~~~~1~~~~~~~~~~~~~~~~V~C~4~~V~C~~~ VSYNC -l r____ 0 (~:~::~,I:::===============-EV-E-N-'F-'-E-LO-----------~=~=~=======--F.=A~I:.E-----------------_-_-_-_-_- H/2 ___-_-_O_D_D_,'_'E_LD_________~:~~ (Ve Vertical Cycle) Figure 59 Raster Scan Timing • ZOOMING For horizontal zoom, the programmed zoom factor is output The ACRTC supports a zoom function for the Base screen as video attributes. An external circuit uses this factor to condi- (Screen 1). Note that ACRTC zooming is performed by controll- tion the external shift register clock to accomplish horizontal ing the CRT timing signals. The contents of the frame buffer zooming. area being zoomed are not changed. For vertical zoom, no external circuit is required. The The ACRTC allows specification of zoom factors (I to 16) in- ACRTC will scan a single raster multiple times to accomplish dependently in the X and Y directions. vertical zooming. lxl 3xl ~[H] Attri- \) bute Latch SCKE ~ I I DRAM Control ~ / I Zoom Control WEO WE1 I WE ~ ADRA- l,A- ADRC j'-r- ~ Addres! I~ RAM Add- y FAO-FA7 ~Sh~~ Cont- WE2 Latch I rol Select m WE3 1-_ 11 .1 ,-----' --- V '-- ADRA-ADRC MAO- IMO IM1 MA18 Figure 2. GMIC Block Diagram ~HITACHI 536 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63485 2CLK Generator Address Shifter The 2CLK generator generates 2CLKOUT for the The address shifter stores memory addresses ACRTC and itself by dividing the external DOTCK (MA 18-MA 0) sent from the ACRTC. It supplies signal. The ratio of DOTCK to 2CLKOUT is set exter- them to the RAM address section according to the nally by the CDM 1 and CDM 0 inputs. timesharing mode selected by the graphic increment mode (1M I, 1M 0). Attribute Latch ADRA·ADRC Latches The attribute latch temporarily stores the attribute codes input from the ACRTC on MA 18-MA 0 used The ADRA-ADRC latches store the lower or upper for horizontal zoom (HZ 3-HZ 0) and horizontal address bits which are not supplied to FA 7-FA 0 scroll dot (HSD 3-HSD 0). from the memory address sent from the ACRTC. It outputs them for the whole memory cycle. Zoom Control RAM Address Selection Zoom control generates the SCKE signal from OOTCK to control the GV AC clock for horizontal The RAM address selection circuits output the display zooming. time shared row and column addresses to the frame buffers according to the RAS and CAS timing. Scroll Control DRAM Control and WE Control Scroll control generates shift load signals (SLDB, SLDW) which control video signal generation for The DRAM and WE control circuits generate RAS, the GVAC. CAS, OE, and WE signals for frame buffer access from the ACRTC output signals. ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 537 HD63485---------------------------------------------------------------- System Description Applications System Configuration The GMIC provides communications between the The typical graphic system application for the ACRTC and frame buffers. It contains control GMIC and GVAC shown in figure 3 uses two circuits for generating signals necessary for the GVACs, but the number of GV ACs used can be ACRTC to access a frame buffer. In addition it changed to accommodate CRT resolution and generates basic signals for operating the ACRTC color/grey scale per pixel for various applications. and control signals for the GVAC (Graphic Video At- tribute Controller), which generates the video signals The GMIC receives memory addresses (MADl5" for a CRT display. MAD" MAI.-MAI.), address strobe (AS), memory cycle (MCYC), draw (DRAW), memory read The GMIC's operation mode can be controlled by its (MRD) , and other ACRTC outputs, and generates program pins. This makes the GMIC suitable for a wide control signals for the frame buffers. The frame range of operations, from small, low-speed systems to buffers are generally constructed from DRAM, large, high-speed systems, and it allows it to flexibly since graphic systems require large memory change to suit system specification changes. capacity frame buffers. The GMIC therefore uses a DRAM-compatible multiplexing system. Through this multiplexing, the GMIC delivers address Figure 3 shows a graphic system configuration outputs and control signals such as RAS, CAS, WE, using an ACRTC, GMIC, and GVACs. Using a and OE, acting as a direct interface between the GMIC for interface to the frame buffers and GVACs for ACRTC and the frame buffers. Furthermore, the CRT video signal generation creates a flexible, high- GMIC generates a basic clock signal for the performance graphic system with a minimum compo- ACRTC (ZCLK) by dividing the high-speed dot nent count. clock. It also generates control signals for the GVAC. DOTCK Frame Buffer HM50464 MAo- FAo- r---A"C"d-:-d-:-r-e-ss-...J MA'8 FA7 MPU MA,s- HD63485 Interface MA, 8 1--=-......-1 GMIC SCKE,5[5 .ADRA -ADRC.DSPCYC ACRTC 2CLK -Data- MRD, MCYC GVAC x2 Figure 3. System Application Example • HITACHI 538 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63485 Operation higher frequency chock to the ACRTC. For Basic Clock applications using low-speed frame buffers and extermal circuits, larger division rations should be Timing for signals to and from the GMIC is based selected to supply a lower frequency clock to the on the dot clock (DOTCK) supplied to the GMIC ACRTC. and the clock output (2CLKOUT) generated by the GMIC. 2CLKOUT is generated by dividing the Note: The maximum DOTCK frequency is OOTCK input by the ratio selected by the CDM 1 sometimes limited by the OOTCK division ratio. If and CDM 0 inputs. Figure 4 shows the relation the division ratio is 8 or 16, the maximum frequency between DOTCK and 2CLKOUT. The frequency of is allowed, but if a division ratio of 4 is used, the OOTCK depends on the speed and resolution of the DOTCK frequency is limited to 32 MHz. CRT display. DOTCK (in MHz) equals the hor- izontal resolution (pixels/raster line) by the Frame Buffer Control horizontal display raster scan period (ps per raster) . The GMIC is designed for use with DRAM frame buffer memories. Therefore, the GMIC generates [Horizontal resolution (pixels/raster) ] / fDOTeK = DRAM access signals RAS, CAS, WE, and OE. [Horizontal display period (ps) ] (MHz) Also, it outputs row and column addresses to the RAM, timeshared according to RAS and CAS. The dot clock dividing mode should be chosen considering the frame buffer cycle time and the Table 5 shows the GMIC frame buffer access speed of the ACRTC used. For high· speed drawing, modes. The memory cycles are roughly divided into a smaller division ratio should be used to supply a six types. They are distinguished by the ACRTC's COM1 a COMO ~--------------------------------------------------------- OOTCK 2CLKOUT (a) 4-division ratio mode COM1 COMO~,_------------------------------------------------------- OOTCK 2CLKOUT "\'-_ _ _-' (b) a-division ratio mode COM1 ~------------------------------------------------------------ COMO ~------------------------------------------------------------ OOTCK 2CLKOUT ~L______________~ (e) 1 6-division ratio mode Figure 4. DOTCK Division ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 539 HD63485----------------------------------------------------------------- output signals (AS, HSYNC, DRAW, MRD). Figure 6 and 7 show read and write cycle timing, Figure 5 shows RAS only refresh cycle timing. respectively. Table 5. Memory Cycles AS HSYNC DRAW MRD Cycle Mode Memory Cycle Low Low High High Refresh cycle RAS only refresh pulse Low Low Drawing write cycle Memory wnte Low High Drawing read cycle Memory read High High Low Window screen cycle Memory read High High Background screen display Memory read High High High High No access Note: The GMIC performs a frame buffer refresh dUring a honzontal sync penod (HSYNC=low). with DRAW high and AS pulse applied Dunng a refresh cycle, only RAS IS output. ~ and DE are not output. DOTCK {~ ® 2CLKOUT ,'-_ _ _ _ _ _-' \. MCYC''--______________________- J \. HSYNC_J~____________________________________________________~r AS ,'--_ _ _ _--" t DRAW ] ~ MRD J ~ M~-MA,5 ~C==========================~--------------------------~C MA,.-MA,. :J ( RAS~ [ CAS OJ OE~ WE~ FAO-FA7 =x~ ________~R~o~w~A~d~d~r~e~ss~________JX~____________C~o~l~um~n~A~d~d~re~$~________~X Note: DOTCK, from which 2CLKOUT is generated, is represented in CD 16 divide, ~ 8 divide, and @ 4 divide modes. Figure 5. RAS Only Refresh Timing ~HITACHI 540 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63485 CD DOTCK { 0 @ MCYC ,~__________________________~ AS '1-_____ -1 l DRAW_~~ ____________________________________________________~[~ MRDJ l MA o-MA'5 ~[============================~--------------------------_1[ MA'6-MA,. J ( RAS~ r CAS~ r OE~ r WE~ FAO-FA7 ~~______~R=o~w~A~d=d~re=s~s________A __ _ _ _ _ _ _ _ _ _~Co~l~um~n~A~dd~r~es~s~_________( Note: DOTCK, from which 2CLKOUT is generated, is represented in CD 16 divide, ~ 8 divide, and @ 4 divide modes. Figure 6. Read Cycly Timing ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose. CA 95131 • (408) 435-8300 541 HD63485---------------------------------------------------------------- DOTCK {~ ® 2CLKOUT , ' - -__________-' L MCyC\L________________________~ L AS\~__________~ l DRAW\~ ____________________________________________________~[~ MRD\_~__________________________________________________~[~ M~-MA,6~[========================:J~----------------------~C MA,e-MA,. :J ( RAS~ r CAS~ r OE~ r WE~ r FAO-FA7 ::x Row Address Column Address ( Note: DOTCK, from which 2CLKOUT is generated, is represented in < u i:; 0 DSPCYC FDo '3 w u ~ 0... a: u ...J u 0 uCQOCQOO ... N .., ..,. U'I fD 8 :;:!l:; Z >u..u..u..u..u..u..u.. MCYC FD, '" N 2CLK FD, COLO"'ItMN ..... CO,.....COIl) SELO FD3 <...JO 0 cSoo> Uz 000w 000 0 0 ... 0 (II U ~ ~ ~ • M DISP FD'D U 0 0 u.u.u. u.u.u. u.u.u. u. u. SCKE FD2l '" :; :; SLD FDn MODO FD23 MOD! FD,. FD31 FD" FD3D FD,. FD" FD27 Vee FD" (DP-64S) (CP-68) Figure 1. Pin Arrangement ~HITACHI 568 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63486 Power Supply (Vee, V88) frame buffers. When MRD is high, the GV ACs transfer data from the frame buffers to the ACRTC. Vss and Vee are the GV AC power supply pins. V cc When MRD is low, the GVACs transfer data from pins are + 5 V ± 5% supply pins. Vss are the the ACRTC to the frame buffers. MRD must be held ground pins. Be sure to connect all four V ss pins to high during a display read data cycle. Only during a ground and both Vee pins to the power supply. display cycle for superimposed screen data (dual access mode!) does the ACRTC input MRD low. ACRTC Signals This signal is usually supplied by the MRD output. Clock (2CLK): The 2CLK input must be the same Display (DISP): The DISP input is a composite as the 2CLK input to the ACRTC. It is usually signal indicating the screen's horizontal and ver· supplied by the GMIC 2CLKOUT output. 2CLK is tical display period. Display timing output (DISP!) used for data transfer between the ACRTC and is input when the ACRTC's DSP (display signal frame buffers and as a timing signal for display control) bit is set to 1. For superimposed display data input. (dual access mode 1), DISPl must be input to a GV AC for background screens, while DISP2 must Memory Cycle (MCYC): The MCYC input be input the window screen from the ACRTC. specifies frame buffer access by the ACRTC. It must be low when the ACRTC is in address cycle, Data Bus (D7-Do): Dr-Do are the 8·bit data and high when the ACRTC is in data cycle. MCYC input/output for data transfer between the ACRTC controls the data buffers. It is usually supplied by and frame buffers. Usually, Dr-Do are connected to the ACRTC's MCYC output. 8 bits of the memory address data bus (MAD 18 - MADo) according to the operation mode selected Memory Read (MRD): The MRD input controls by the MODI, MODO inputs. the direction of transfers between the ACRTC and Table 1. Pin Description Pin Number Signal DIP-64 PLCC-68 I/O Description Vee 32,64 34,68 + 5 V power supply Vss 16,17, 17,18, Ground 48,49 51, 52 2CLK 4 5 I Clock MCYC 3 4 I Memory Cycle MRD 1 2 I Memory Read DISP 24 26 I Display D7-Do 15-8 16-9 I/O Data Bus MODI, 28,27 30,29 I Operation Mode MODO AM 22 24 I Access Mode DSPCYC 2 3 I Display Cyele SEL2- 7-5 8-6 I Select SELO SCKE 25 27 I Shift Clock Enable SLD 26 28 I Shift Load FD31- 29-31, 31-33, I/O Frame Buffer Data FDo 33-47, 36-50, 50-63 54-67 DOrCK 23 25 I Dot Clock VIDEOA- 21-18 23-20 0 Video Outputs VIDEOD ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 569 HD63486---------------------------------------------------------------- Operation Mode (MODI, MODO): The MOm GMIC Interface Signals and MODO inputs specify the length of the GV AC's internal video signal shift register and the operation Display Cycle (DSPCYC): The DSPCYC input mode for the control data bus data multiplexing indicates whether a display cycle has been entered. between the ACRTC and the frame buffers. The DSPCYC set low signifies a nondisplay cycle, operation mode setting is closely related to the during which data is transferred between frame ACRTC's graphic address increment mode (GAl), buffers and the ACRTC. DSPCYC set high indicates the graphic bit mode (GEM) which specifies the a display cycle, during which data from the frame number of bits per pixel, and the frame buffer's buffers is transferred to the GV ACs. The display access mode (ACM). These settings determine the cycle signal (DSPCYC) output from the GMIC is shift length of one display cycle, and thus the used for this in put. settings for MOm and MODO. The GMIC's clock division mode (CDM1, CDMO) is also related to Select (SEL2-SELO): The SEL2-SELO inputs MOm and MODO. Table 2 shows how GV AC's are the lower three bits of the address specifying a operation mode is related to the ACRTC and GMIC particular word is the frame buffers to be trans- settings. Other settings are allowed in a graphic ferred to the ACRTC. Since SEL2-SELO control the syster with ACRTC, GMIC, GV AC, and additional address bus connection between frame buffers and circuits. For a description of GEM, GAl, and ACM, the ACRTC, it must be valid during a data cycle see the ACRTC User's Manual. For a description of when MCYC is set high. The address outputs CDM and DAM, see the GMIC Data Sheet. (ADRA-ADRC) from the GMIC usually supply these signals. Access Mode (AM): The AM input sets the GV ACs to superimposed display mode. When the Shift Clock Enable (SCKE): The SCKE input ACRTC's access mode (ACM) set to dual access specifies the timing for driving the GV AC's mode 1 (ll), AM switches between two GV ACs for parallel-to-serial converter (shift register) for background and superimposed screens. In single generating video signals (VIDEOA-VIDEOD). The access mode and dual access mode 0, AM must be GV AC's perform serial-to-parallel conversion by set low. In dual access mode 1, AM should be set shifting one bit of display data every shift clock low for a background screen GV AC, and high for a cycle. Using SCKE, the GV ACs generate a lower superimposed screen GV AC. frequency shift clock. Extending one shift clock cycle this way allows zooming. The SCKE output from the GMIC supplies this input. Table 2. Operation Mode and GV AC, ACRTC, and GMIC Settings GVAC ACRTC GMIC MOD GBM GAl ACM CDM DAM Bits/ Shift Max Dot 0 1 1098 654 3 2 1 0 Pixel Length Rate(MHz) 0 0 010 010 0 0 1 0 0 4 16 64 0 1 1 0 0 1 1 4 16 32 1 1 0 1 010 01 1 0 0 1 1 0 4 32 64 0 1 1 0 1 0 1 4 32 64 1 1 1 0 01 1 01 0 0 0 0 1 0 8 8 64 0 1 1 1 01 1 o1 1 0 0 1 0 0 8 16 32 0 1 1 0 0 1 1 8 16 32 1 1 @HITACHI 570 Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD63486 For systems with a superimpose function, SCKE buffers. The 32 bits are read simultaneously from the must be held high for the superimposed window's frame buffer, and FD31_FDo can be directly connected GVAC (AM input high). to the frame buffer data I/O pins. Shift Load (SLD): The SLD input specifies the CRT Display Interface timing in which display data temporarily stored in the GVACs is supplied to the shift register. SLD is Dot Clock (DOTCK): The OOTCK input is the asserted for one period of the dot clock. Horizontal basic video signal generating clock. The DOTCK scrolling is implemented by shifting SLD on a dot frequency is determined by the CRT horizontal clock basis during a single display cycle. SLD must resolution (pixel count) and the horizontal scan be asserted once during each display cycle (shift display period. This clock is usually the same signal length). SLD is usually input from the GMIC SLDB applied to the GMIC DOTCK input. output for background screen GV ACs (AM input low), and SLDW for window screen GV ACs (AM Video Outputs (VIDEOA-VIDEOD): VIDEOA input high). - VIDEOD are the four bits output from the GV AC's parallel-to-serial conversion shift register. They are Frame Buffer Data (FD31-FDo) supplied during a display period specified by the display signal (DISP). Which outputs are usable The 32-bit FD 31 -FDo frame buffer data I/O bus depends on the operation mode (MODI, MODO) transfers data between the ACRTC and frame input. Table 3 shows the usable video signals and buffers and inputs display data from the frame corresponding MODI and MODO signals. Table 3. Operation Mode and Video Outputs Mode Video Output Bits/ MOD! MODO VIDEOA VIDEOB VIDEOC VIDEOD Pixel Shift Length 0 0 Avail Not avail Avail Not avail 4 16 0 1 Avail Not avail Not avail Not avail 4 32 0 Avail Avail Avail Avail 8 8 Avail Not avail Avail Not avail 8 16 ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 571 HD63486----------------------------------------------------------------- Functional Description Figure 2 is a block diagram of the GV AC. SELO- MODO MOD1 SEL2 ir- -- - - ---- ~ d Data buffer ;t--1\ y----y Data multi- plexer A ['r- ----v 1\ Frame memory data buffer b I ~ I II II I I I I ... 2CLK I 7 MCYC I I Latch ,, DSPCY C MRD I I AM I DOTC K I I SCKE I SLD I Shift regIster DISP I I ----{}----~ VIDEOA- VIDEOD Figure 2. GVAC Block Diagram ~HITACHI 572 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD63486 Frame Memory Data Buffer by select signals (SEL2-SELO) and the operation mode (MODI, MODO) set externally to enable The 32-bit bidirectional frame memory data buffer transfer between the ACRTC and frame buffers. consists of input and output buffers to transfer data to and from the frame buffers in response to data Latch transfer requests from the ACRTC. The latch recognizes a display data read cycle by The three·state output buffer is enabled only during memory cycle (MCYC) and memory read (MRD) a memory write cycle by memory cycle (MCYC) signals from the ACRTC, and clock (2CLK) and and memory read (MRD) signals from the ACRTC, display cycle (DSPCYC) from the GMIC, and the and display cycle (DSPCYC) from the GMIC. A 32- access mode (AM) input. During a display data bit output buffer to be enabled is selected by select read cycle, the latch temporarily stores 32-bit signals (SEL2-SELO) from the GMIC and the display data input from a frame memory data operation mode (MODI, MODO) set externally. buffer. It sends the stored data to the shift register for parallel·to·serial conversion. The input buffer reads data from the frame buffers. Shift Register Data Buffers The 32-bit shift register performs parallel·to·serial The 8-bit input/output buffer transfers data conversion on display data stored in the latch to between the ACRTC and frame buffers. provide video signal output. When the latch receives the shift load (SLDB, SLDW) and shift The output buffer is a three·state buffer which is clock enable (SCKE) signals from the GMIC, it enabled during a frame buffer read cycle by feeds the display data it has stored to the shift memory cycle (MCYC) and memory read (MRD) register. The shift register supplies one bit of signals from the ACRTC, and display cycle (D· display data every dot clock cycle while SCKE is SPCYC) from the GMIC. asserted. When the ACRTC's display cycle signal (DISP) is negated, the shift register does not output The input buffer supplies drawing data from the a video signal. ACRTC to the frame buffers. When the GMIC shifts the timing of the shift load Data Multiplexer (SLDB, SLDW) output on a dot clock basis, the GVAC performs horizontal smooth scrolling. When The data multiplexer is a direct connection the GMIC extends the shift clock enable signal between the frame buffers and the data buffer's (SCKE) based on the dot clock, it performs data bus which leads to the ACRTC's and frame horizontal zoom. buffer's data bus. The bus connection in controlled ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 573 HD63486------------------------------------------------------------__ System Description Applications The system example in figure 3 uses two GV ACs, but the number of GV ACs can be varied to meet The GV AC internal circuits perform three major different CRT resolution and color per pixel (or functions: grey scale) applications. • Converting parallel display data read from the The GV ACs recognize a display data read cycle by frame buffers by the ACRTC to serial from and decoding ACRTC output signals such as memory delivering them to the CRT as video signals cycle (MCYC) and memory read (MRD) and • Transferring data between the ACRTC and GMIC output signals such as display cycle frame buffers (DSPCYC). In the display data read cycle, the • Zooming and horizontal smooth scrolling GV ACs latch display data from the frame buffers. according to signals from the GMIC They pass the display data to the internal shift register for parallel-to-serial conversion when they Furthermore, the GV ACs' operation mode can be receive the shift load signal (SLDB or SLDW) from set according to the ACRTC's operation mode by the GMIC. The GV ACs perform successive parallel· the program input signals. This programmability to-serial conversion synchronously with the dot makes the GV AC suitable for a wide range of clock when they receive the shift clock enable applications, from slow, small systems to fast, large (SCKE) output from the GMIC. This generates the systems. It also permits the GV ACs to accom- video signals. modate system specification changes. A GV AC can receive 32-bit display data (FD31 - Figure 3 shows a graphic system configuration FDo) from one frame buffer. Furthermore, it using an ACRTC, GMIC and GVACs. With the provides a connection from the ACRTC's data bus GMIC used for interfacing with frame buffers and (D7 -Do) to the frame buffers data bus (FD31 -FDo), the GV ACs generating the video signals, a flexible, enabling direct data transfer between the two. The high-performance graphic system is constructed GV ACs also implement horizontal smooth scrolling with a minimum number of parts. and zooming, controlled by the shift load (SLDB, SLDW) and shift clock enable (SCKE) signals System Configuration from the GMIC. DoreK Frame Buffer HM50464 MAo- FAo- r----A-dd-r-e-ss---' MA'8 FA7 MPU Interface HD63485 GMIC ACRTC 1-_+--1 2CLK HD63484 -Data- MRD, MCYC GVACx2 Figure 3. System Application Example @HITACHI 574 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63486 Operation Data Transfer MCYC input. When MCYC is high, frame buffers or the ACRTC three-state output buffers are enabled The GVACs contain control circuits for bidir- for transfer. ectional transfer between the ACRTC and frame buffers. To transfer data, the GVACs receive the Drawing Write Cycle: The GVACs recog!1ize a ACRTC's memory cycle (MCYC) and memory drawing write cycle when both DSPCYC and MRD read (MRD) signals, and the GMIC's display cycle are low. Figure 4 shows the timing for a drawing (DSPCYC). From these signals, the GV ACs write cycle. recognize a drawing data transfer cycle. Connec- tion between the ACRTC's data bus and the frame When MCYC is high during this cycle, the GV ACs buffer's data bus is controlled by the select signals enable the frame memory data buffer, and output (SEL2-SELO) from the GMIC and the operation data from the ACRTC one word at a time to the mode (MODI, MODO) inputs. frame buffers, based on the operation mode (MODI, MODO) inputs and the select signals (SEL2 The GV ACs recognize a nondisplay cycle when -SELO) from the GMIC. Table 4 shows the con- DSPCYC is low. In nondisplay cycles, the data nections between FD and D pins when MODI and transfer direction is determined by the memory MODO are set to 00. When SEL2-SELO are set to read signal (MRD). MRD high signifies a read 000 Do-D, from the ACRTC are output to FDo-FD" cycle to transfer data from frame buffers to the D,-D, are output to FD I6 -FD I9 , and the other FD ACRTC. MRD low signifies a write cycle to pins are high-impedance. Table 5-7 show the transfer data from the ACRTC to the frame buffers. relation of D to FD in other modes. Timing for the data transfer is determined ~y the 2CLK "\ I \ I L MCYC "\ I L DSPCYC "\ C MRD "\ C SELO-SEL2 ::l C x«( «( «««« ««( ««« }- FDo-FD" :::)>------------ 0 0 -0 7 :J ( )- Figure 5. Drawing Read Cycle (Frame buffer --+ [FD] GVAC [0] --+ ACRTC [MAD]) ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 577 HD63486 TableS. Number of GVAC's ACRTC GVAC GBM GAl MOD Bits/ Words Bits Shift Number of 1)98 654 1 0 Pixel Read Read Length GVACs 000 000 0 0 16 16 1 (2)' 00 1 0 1 2 32 32 2 (4)' 001 000 1 0 2 1 16 8 1 (2)' 00 1 0 0 2 2 32 16 1 (2)' 010 0 1 2 4 64 32 2 (4)' 010 00 1 1 0 4 2 32 8 1 (2)' 010 0 0 4 4 64 16 2 (4) 01 1 0 1 4 8 128 32 4 (8) 01 1 01 0 0 8 4 64 8 2 (4) o1 1 1 8 8 128 16 4 (8) 1 00 01 1 0 16 8 128 8 4 (8)' Notes: I. 'Indicates that data transfers between frame buffers and the ACRTC requires external CirCUits Since the GVACs to ACRTC data transfer function cannot be used directly. 2. Parenthesized values are the number of GVACs required for superimpose mode (dual access mode 1) applications. HD63484 HD63486 HM50464 ACRTC GVAC1 Frame buffers Plane 0 iA D3 -D o .J\ Data ... FD'5- FD o " MAD 0, 4, 8,12 'I v multiplexer .... v A D, -D. Data I... FD 3 ,-FD'6 '" Plane 1 MAD 1,5,9,13 multiplexer v " HD63486 GVAC2 Plane 2 A D3-D o MAD 2, 6,10,14 1'1 " Data IA FD'5-FD o .J\ " multiplexer 1'1 " D, -D. Data FD 3 ,-FD'6 " A Plane 3 MAD 3, 7, 11, 15 'I "v multiplexer 1'1 v Figure 6. FD Pin Connection (MODl, MODO = 00) ~HITACHI 578 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63486 Data Connections Figure 6 illustrates the data pin connection with GVAC and Graphic Data: The GVAC's must be con- MODl, MODO set to 00. In this mode, one pixel nected to handle data on a one-pixel bit plane consists of 4 bits, and four words (64 bits) are read basis. Table 9 shows the relationshio between from the frame buffers at one time. operation mode 1 (MODl) , pixel number, bit plane number, and ACRTC data. ACRTC and GVAC Connection Connection Between GV ACs and ACRTC: ACRTC Display Data Bit Configuration: The The connection to the ACRTC depends on the ACRTC handles display data on a pixel basis, the operation mode (MODl, MODO). Table 10 shows ACRTC's mimimum unit. The ACRTC transfers the connection with MODl, MODO = 00. In this data on a word (l6·bit) basis. One memory word mode, each pixel is four bits. GVAC1 handles bit can consist of one or more pixels. The ACRTC's planes 0 and 1, and GVAC2 handles bit planes 2 graphic bit mode (GBM) selects one of five types of and3. The conne~tion between the ACRTC and pixel count. The GVAC's directly support data transfers GVAC's is determined by bit plane number and pixel of 4 bits or 8 bits per pixel. In 4 bit/pixel mode, 16 colors number for one word from the ACRTC. In Table 9, or shades of grey can be implemented at one time. In 8 for example, ACRTC pin MADO corresponds to bit bit/pixel mode, 256 colors or 256 shades of grey can be plane 0 for pixel number O. From table 10, therefore, realized. Figure 7 shows pixel data processed by the bit plane number 0 for GVAC1 is connected to pin ACRTC depending on operation mode pin 1 (MODI). Do for pixel number 1. Connection to the ACRTC in For details on the graphic bit mode, see the ACRTC other modes are shown in Table 11-13. User's Manual, 5.5.6 Graphic Bit Mode. Table 9. Pixel Number and Plane Number MAD MODI ACRTC 15 1 14 1 13 1 12 11 1101 9 1 8 7 16 1 5 J4 3J2JIJ 0 a Pixel No. 3 2 1 a Bit Plane No. 3 2 1 a 3 2 1 a 3 2 1 0 3 2 1 a 1 Pixel No. 1 a Bit Plane No. 7 6 5 4 3 2 1 a 7 6 5 4 3 2 1 a bit 15 bit a MOD1="a" ~~i~~~~~~~~~~~~~__~~!~ One pixel bit 15 bit a MOD1="1"1~~i~~~~~~~~~~~~~~~~ One pixel MAD 15 MAD 0 .. I One word I I • Figure 7. Pixel Data and MODI ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 579 HD63486--------------------------____________________________________ Table 10. ACRTC and GVAC Pin Connection, MODI, MODO = 00 (4 Bits/Pixel, 16-Bit Shift Mode) MAD Connection 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Pin Connection D6 D6 D2 GVAC 22112 2 1 2 2 1 1 2 2 1 1 Pixel Number 33332 2 2 2 1 1 o 0 o 0 Bit Plane 3 2 1 0 3 2 1 0 3 2 o 3 2 o Frame Buffer 33332 2 2 2 o 0 o 0 Pixel Number Table 11. ACRTC and GVAC Pin Connection, MODI, MODO = 01 (4 Bits/Pixel, 32-Bit Shift Mode) MAD Connection 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 o Pin Connection D2 Do Do Do Do GVAC 4 3 2 4 3 2 1 4 3 2 4 3 2 Pixel Number 333 3 2 2 2 2 1 o o o o Bit Plane 321 0 3 2 1 o 3 2 o 3 2 o Frame Buffer 3 3 3 3 2 2 2 2 o o o o Pixel Number Note: 0,-0, cannot used In this mode Table 12. ACRTC and GVAC Pin Connection, MODI, MODO = 10 (8 Bits/Pixel, 8-Bit Shift Mode) MAD Connection 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 o Pin Connection Do D2 Do GVAC 2 2 221 1 2 2 2 2 Pixel Number 1 1 1 1 0 o 0 o o o o o Bit Plane 7 6 5 4 3 2 o 7 6 5 4 3 2 o Frame Buffer o o 0 o o o o o Pixel Number Table 13. ACRTC and GVAC Pin Connection, MODI, MODO = 11 (8-Bits/Pixel, 16-Bit Shift Mode) MAD Connection 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 o Pin Connection D5 Do Do Do Do GVAC 4 4 3 3 2 2 1 4 4 3 3 2 2 Pixel Number 1 1 1 0 o o o o o o o Bit Plane 7 6 5 4 3 2 o 7 6 5 4 3 2 o Frame Buffer o o o o o o o o Pixel Number Note: 07, 06, Oa. 02 cannot be used In thiS mode ~HITACHI 580 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63486 Connection Between Frame Buffers and and frame buffers with MODI, MODO = 00_ In this GVACs: Like the connection to the ACRTC, the mode, the ACRTC's graphic address increment data connection to the frame buffers is made on the (GAl) is set to +4 mode, and 4-word data is basis of a bit plane consisting of one word, se- simultaneously read' from the frame buffers_ quentially from the lower pixel address_ Table 14 GVAC1 handles bit planes 0 and 1, and GV AC2 shows pixel number for the frame buffer's word (16 handles bit planes 2 and 3_ For example, pin FDo of bits) vs bit plane number for one pixel in relation to GV AC1 is connected to a data pin of pixel number operation mode 1 (MODI)_ o of the n + 0 address of bit plane number 0_ Connections in other modes are shown in tables 16- Table 15 shows the connection between the GVACs 18. Table 14. One-Word Frame Buffer Pixel Number and Corresponding Bit Plame Number One word of frame buffer Pixel Number MOD! -lsTi-4-rii"i""i"2- -iiJ"iol-g}-s-- --:'--1"6-1"5"J4-- --3]-2}-;'-}-0-- 0 Bit Plane No. 3 I2 I1 I0 3 I2 I1 I0 3 I2 I1 I0 3 I 21 1 1 0 Pixel No. 3 2 1 0 1 Bit Plane No. 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Pixel No. 1 0 Table 15. GVAC and Frame Buffer Pin Connection, MODI, MODO = 00 (4 Bits/Pixel, I6-Bit Shift Mode) F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F GVAC o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 DOD 0 0 0 0 0 o 0 0 0 3130 2928 27 26 2524 2322 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 BIt Plane No. 1 0 1 P,xel No. 3 2 1 o 3 2 1 o 3 2 1 o 3 210 3 2 1 o 3 2 1 o 3 2 1 o 3 210 Word Address n+3 n+2 n+1 n+O n+3 n+2 n+1 n+O Bit Plane No. 3 2 2 Pixel No. 3 2 1 o3 2 1 o 3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 0 Word Address n+3 n+2 n+1 n+O n+3 n+2 1 n+1 n+O Table 16. GVAC and Frame Buffer Pin Connection, MODI, MODO = 01 (4 Bits/Pixel, 32-Bit Shift Mode) F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F GVAC o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 DOD 0 0 0 0 0 0 0 0 0 3130 2928 2726 2524 2322 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 BIt Plane No. 0 1 Pixel No. 3 2 1 o 3 2 1 0 312 1 032 11013121 1 101312 1 o 3 2 1 o 3 2 1 0 Word Address n+7 n+6 n+5 n+4 n+3 n+2 n+1 n+O BIt Plane No. 1 2 Pixel No. 3121110131211101312 1 o 3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 0 Word Address n+7 1 n+6 n+5 n+4 n+3 n+2 n+1 n+O BIt Plane No 2 3 P,xel No. 3121110131211 o 3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 0 Word Address n+7 n+6 n+5 n+4 n+3 n+2 n+1 n+O Bit Plane No. 3 4 Pixel No. 3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 o3 2 1 0 Word Address n+7 n+6 n+5 n+4 n+3 n+2 n+1 n+O ~HITACHI HitachI America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 581 HD63486---------------------------------------------------------------- Video Signal Generation As seen in figure 8, 32-bit display data is output sequentially to four video signal pins one bit by one A GV AC performs parallel-to-serial conversion on bit per dot clock (DOTCK). 32-bit data read from frame buffers using the shift register, and produces 4-bit video signals (VIDEOA • VIDEOA: 32 bits of FDo-FD31 -VIDEOD). • VIDEOB: 24 bits of FD,-FD31 • VIDEOC: 16 bits of FD ,.-FD31 The GV AC recognizes the cycle in which display • VIDEOD: 8 bits of FD 24 -FD31 data is read from frame buffers by memory cycle (MCYC) and memory read (MRD) signals from Using the display timing signal (DISP) from the the ACRTC, display cycle (DSPCYC) from GMIC, ACRTC, 4-bit shift register output data can be and access mode (AM) signal externally set. The masked. That is, while DISP is asserted, shift GVAC then latches 32-bit data supplied from FDo- register output is provided as video signals, and FD31 pins. while it is negated, shift register output is held low, and video signals are not output. The required The latched display data is fed to the shift register number of dot cycles per display cycle is the same on the falling edge of the dot clock (DOTCK) when as the shift length value set by the operation mode the shift load (SLD) input is asserted. This data is (MODI, MODO). then shifted on the falling edge of the dot clock (OOTCK) when shift clock enable (SCKE) is Table 19 shows the dot clock cycle count per asserted. display cycle vs operation mode (MODI, MODO). Table 17. GVAC and Frame Buffer Pin Connection, MODI, MODO = 10 (8 Bits/Pixel, 8·Bit Shift Mode) F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F GVAC o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 DOD 0 0 0 0 0 0 0 0 0 31 30 2928 2726 2524 2322 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit Plane No. 3 2 1 0 1 Pixel No. 1 0 1 o 1 0 1 0 1 0 1 0[1[0[1[0 1 0 1 o 1 0 1 0 1 0 1 o 1 0 1 0 Word Address n+3 n+2 n+l n+O n+3 n+2[n+l[n+0 n+3 n+2 n+l n+O n+3 n+2 n+l n+O Bit Plane No. 7 6 5 4 2 Pixel No. 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Word Address n+3 n+2 n+l n+O n+3 n+2 n+l n+O n+3 n+2 n+l n+O n+3 n+2 n+l n+O Table 18. GV AC and Frame Buffer Pin Connection, MODI, MODO = 11 (8 Bits/Pixel, 16·Bit Shift Mode) F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F GVAC o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 o 0 DOD 0 0 o 0 0 0 0 0 0 31 30 2928 2726 2524 2322 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit Plane No. 1 0 1 Pixel No. 1 0 1 0 1 0 1 0[1[0[1[0[1 0 1 0 1 0 1 0 1 o 1 o 1 0[1[0[1[0 1 0 Word Address n+7 n+6 n+5 n+4[n+3[n+2[n+l n+O n+7 n+6 n+5 n+4 n+3 n+2 n+l n+O Bit Plane No. 3 2 2 Pixel No. 1 0 1 0 1 0 101 0 1 0 1 0 1 0 1 0 1 0 1 0 101 0 1 0 1 0 1 0 Word Address n+7 n+6 n+5 n+4 n+3 n+2 n+l n+O n+7 n+6 n+5 n+4 n+3 n+2 n+l n+O Bit Plane No. 5 4 3 Pixel No. 1 0 1 0 1 0 1 o 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Word Address n+7 n+6 n+5 n+4 n+3 n+2 n+l n+O n+7 n+6 n+5 n+4 n+3 n+2 n+l n+O Bit Plane No. 7 6 4 Pixel No. 1 0 1 0 1 0 -1 o 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 010 1 0 1 0 1 0 Word Address n+7 n+6 n+5 n+4 n+3 n+2 n+l[n+O n+7[n+6 n+5 n+4 n+3 n+2 n+l[n+O ~HITACHI 582 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63486 Figure 9, 10 and 11 show ACRTC frame buffer bit shift mode. When shift load (SLD) is asserted, access vs video outputs in single access mode, dual display data (FD3I - FDo) is sent to the shift register access mode 0, and dual access mode 1. Super· at the rising edge of the dot clock (DOTCK) to imposed display in dual access mode 1 requires that provide the sequential outputs. That is, video the window smooth scroll input (WSS) be high. output A (VIDEOA) receives sequential outputs starting with FDo, and the other video pins receive The GV AC provides display data output se· display data likewise. Figure 13 shows the video quentia\1y from four video outputs VIDEOA- signals output in GMIC divide·by·4 mode, GVAC in VIDEOD synchronously with the dot clock while 16·bit shift mode, and the ACRTC set in dual access the shift clock enable input (SCKE) is asserted. mode O. Figure 14 shows video outputs in the 8·bit Figure 12 shows the video signals output in GMIC shift mode, with the other conditions the same as in divide·by·16 mode, GVAC's MOm, MODO == 01,32· figure 13. Table 19. Shift Length and Shift Clock Shift Dot Clocks/ MOD! MODO Length Display Cycle 0 0 16 16 0 1 32 32 0 8 8 16 16 "'31 Latch ------- .. £~ I~~------D-i-s-PI-a-y-d-a-ta---------- bit 0 ... Set timing bit 31 bit 0 Shift register Shift direction DOTCK .I"""\J" / SCKE r - L - _ _S_h_i_ft_t_im_i_ng_.J. Ibit 24 bit 16 bit 8 bit 0 VIDEOD VIDEOC VIDEOS VIDEOA '~------~~-~~-_ _ _ _ _~I Video signal Figure 8. Video Signal Generation ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA95131 • (408) 435·8300 583 HD63486------------------------------------------------------------------- Base Display ~~~~~:yW- 2CLK "VV' 'JV1 f/V1 VV' f/V1 VV' /f\F J\..f1 VV"' J\...f1 VV"' VV' VV'~ MCVC -L.J ~ ~ V ~ ~ ~ 'I..-J ~ 'I..-J ~ V Vi . . -- I- l5fSP (OISP1) -V V ~ V- V--V-- ....r- lJ"" V- u ru ru ....., ~ I.... MA/MAO MAD r-- r- r- - r-" rL r" ""' r- ~ DSPCVC -I--- r ,... ,.,.. FO ~ - = - = "" n<' .rl< I +0 Scroll] !ml (SLOB) I I l~ I l~ ~r- VIDEO I 1 J II n dot 1 !ml (SLOB) (+n Scroll) IU 1~11 rru- IU ru- I1I IU VIDEO R Refresh Cycle Bn Base Display Cycle A Attribute Cycle Wn Wmdow Display Cycle o DraWing Cycle Figure 9. Video Output Timing (Single Access Mode) ~HITACHI 584 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD63486 Base DIsplay f--W,ndow_ Display 2CLK ""'.f\ji lrv' Vv .fV1 Vv' VV' VV' ~ VV' ~ ~ ~ VV"'~ MCYC -~ V V ~ W- W- W- W- ~ ~ V V f.-r~ -- ~ 01SP (DISP') AS -V V ru u V [U \.J [U [U [U [U [U U ~ MA/MAD MAD Ir...~ ~ 1>--- "- - - '--- Ir... 1'-- - Ir... I'--- -.... - -~ Ir... i.- - DSPCYC -f--- ~ 1..-- '--- ,--- I'--- ,--- 1'-- ,--- ... FD ~ "" - ~ .." ,.., "'" ,.., - ~ ~ ~ '1i [+0 Scroll} SLD (SLDB) I I I lr-I- VIDEO r - +- B' W,- I-T- B 3 - I-. I+n Scroll] ndot H SLD (SLDB) U VIDED IB' r--w, B3 B4- I-. R Refresh Cycle Bn Base Display Cycle A Attribute Cycle Wn Window Display Cycle o Drawing Cycle Figure 10. Video Output Timing (Dual Access Mode 0) ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 585 HD63486--------------------------------------------____________________ t--------8a5e Dlsplay---------i 1 ' 4 - - - - Window DIsplay ----<~ [Base GVAC/AM=O: ) DISP (DISP1) I I {+O Scroll} SLD I I I r--r- (SLOB) VIDEO [+n Scroll] ndot H ~ U U u (SLOB) VIDEO I (Window GVAC (AM=l») DiSP (DISP2) I I [+0 Scroll) "SID (SLOW) VIDEO 1 2 [+n Scroll] ndot H "SiD U U (SLOW) Wl VIDEO R. Refresh Cycle Sn Base DIsplay Cycle A Attnbute Cycle Wn Window Display Cycle o Drawing Cycle Figure 11. Video Output Timing (Dual Access Mode 1) ~HITACHI 586 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 DOTCK I I I I ~ :!" SUi L1J I W- » VIDEOA 3 CD :::!. C) OJ VIDEOS !:" P. VIDAOC 16117118119120121122123124125126127128129130131\ ~ I o I ~~----------------------------------------------------------~------ o VIDEOD cJ.@ Q. CD • I I Number used in this timing chart are FD pin numbers. l:I ~ ~ Figure 12. Video Signal Output (32·Dot Shift) cnO ~ :I c.... ~ ~ W U U U U U U U U U U U U U U U :I I o I I » I I I I ~ ~ -sID L-ll I UJ I VIDEOA o ~ .. $ 8 ~ VIDEOS gJ o VIDEOC 16 VIDEOD 24 Number used in this timing chart are FD pin numbers. :c en cOl CD Figure 13. Video Signal Output (16·Dot Shift) ...... ~ ~ I o 0> (11 OJ * OJ 0> ::t: ~ ::! » 3 9a ,," 0> !: ". DOTCK I r I~ ~ o q ~t J \ oI~ __ __ I I L __ ~ -_.:1 r-~~--=~. - - - -=r==c==l._ , - - - - - - - - - - - - . - - - - - - - -~ o • VIDEOA CD 5 2 --- 3 4 -I 6 ~ J: . ~ 61 MA/MAD -~ ~ 3 ~ 5 ~ .5- r-5- ~ ~ ~ D HR MRD DSPCYC -I-- Ir--- r-- Ir- D D 61 61 61 61 62 62[)...........62 ,D ,D D FD ~ ~ ~ ~ ...JL1 f--.n.-I f--.n.-I ..JLJ ...JL1 f--.n.-I ~ SCKE SU5 (SLD6) l l 61 . 62- VIDEO :-l. R Refresh Cycle o DraWing Cycle A Attnbute Cycle Sn Base Display Cycle Figure 15. Zoom Display Timing (Single Access Mode, Quadruple Zoom) Base Display ..., .li.J"' 2CLK fJVl J\J1 VV' ~ fJV' J\J1 ~ .li.J"' fJV' :,J\.n ~ VV"'J MCYC - L J L J L I f....-J ~ L.J W- W-- ~ W-- f....-J f....-J L.J,,- -- 1'- ffiSI' (DiSP1) -IJ IJ IJ IJ IJ ~ ~ ~ ~ I'-' IJ 1'- -~ ~ ~ ~ ~~~ ~ ~ ~ ~ ~ R MA/MAD ~ r- MRO '--- I'-- '--- '--- DSPCYC -r-- ' - - - rr--- rr--- Ir- FD - D 61 ~ ~ 0 61 ~ 0 ~ 62 ~ 0 ~ 62 ~ - 0 ~ 0 ,0 ~ - ,0 SCKE nruu fIUlJU lJtnru ruuu ~ :nnnr ~~ lm:j (SL06) l 61 62- VIDEO h R Refresh Cycle o DraWing Cycle A Attnbute Cycle Bn Base Display Cycle Figure 16. Zoom Display Timing (Dual Access Mode 0, Double Zoom) ~HITACHI 590 Hitachi America ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -------------------------------------------------------------------HD63486 I - - - - - - - - B a s e DIsplay - - - - - - - - t I - - - - - W . n d o w Display - - -___ 2CLK MCYC MA/MAO MAD OSPCYC FO [Base GVAC (AM~O) J (jJSP (OISP1) 111111ti±Rift SCKE SLO (SLOB) (WIndow GVAC (AM ~ 1) J (O~ I I I I I I (+0 Scroll] ~ I I I r I I I R Refresh Cycle Bn Base Display Cycle A Attnbute Cycle Wn WIndow Display Cycle D Drawing Cycle Figure 17. Zoom Display Timing (Dual Access Mode 1, Double Zoom) ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 591 HD63486---------------------------------------------------------------- Absolute Maximum Ratings (All voltages referenced to Vss = 0 V) Item Symbol Rating Unit Supply voltage Vee -0.3 to + 7.0 V Input voltage -0.3 to Vee +0.3 V Output voltage Vout 5.5 V Operating temperature o to +70 Storage temperature Tstr -55 to +150 Notes: Usmg an LSI beyond Its maximum ratmgs may result In Its permanent destruction. LSI's should usually be operated under the recommended operatmg conditions. Exceedmg any of these conditions may adversely affect Its reliaMy Recommended Operating Conditions (All voltages referenced to Vss = 0 V) Item Symbol Min Typ Max Unit Supply voltage Vee 4.75 5.00 5.25 V Input voltage low VIL 0 0.7 V Input voltage high VIH 2.2 Vee V Operating temperature Topr 0 25 70 'C ~HITACHI 592 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD63486 Electrical Characteristics DC Characteristics (Vee = 5.0 V ± 5%. Vss = 0 V. Ta = o'e to +70'e. unless otherwise noted) Item Symbol Min Max Unit Test Condition Input voltage high VIH 2.2 Vee V I nput voltage low Vil -0.3 0.7 V Input elamp voltage VI -1.5 V Vee = 4.75 V. I,n = -18 mA Output voltage high VOH 2.7 V Vee = 4.75 V. IOH = -400 mA Output voltage low VOL 0.5 V Vee = 4.75 V. 10l = 8 mA I nput current high hH 20 IJA Vee = 5.25 V. VI = 2.7 V I nput current low hl -400 IJA Vee = 5.25 V. VI = 0.4 V Output short circuit current los -40 -120 mA Vee = 5.25 V Current consumption lee 160 mA Vee = 5.25 V Input capacitance Cin 10 pF Off·state output current DrDo. 10zH 20 IJA Vec = 5.25 V. Vo = 2.7 V FD31-FDo lozl -20 IJA Vee = 5.25 V. Vo = 0.4 V AC Characteristics (Vee = 5.0 V ± 5%. Vss = 0 V. Ta = O'e to +70'e) 32 MHz 48 MHz 64 MHz No Item Symbol Min Max Min Max Min Max Unit Figure DOTCK operation frequency f 32 48 64 MHz CD DOTCK cycle time te 31.3 20.8 15.6 ns 18 ~ DOTCK high level pulse width tHw 12 9 6 ns @ DOTCK low level pulse width tlw 12 9 6 ns @ DOTCK rise time tR 5 5 5 ns @ DOTCK fall time tF 5 5 5 ns @ SCKE setup time tseKs 6 2 0 ns (J) SCKE hold time tseKH 5 5 5 ns @ SLD setup time tSlDS 6 2 0 ns ® SLD hold time tSlDH 3 3 3 ns @ VIDEO delay time tVD 3 24 3 17 3 14 ns @ 2CLK setup time t2CKS 6 2 0 ns 19-21 @ MCYC setup time tMeyeS 30 30 30 ns @ MCYC hold time tMeyeH 0 0 0 ns @ FD three!state recovery time tFDR 5 5 5 ns 20 @ FD setup time tFDS 30 30 30 ns 21 @ FD hold time tFDH 5 5 5 ns ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 593 HD6~86------------------------ ____________________________________ AC Characteristics (cont) 32 MHz 48 MHz 64 MHz No Item Symbol Min Max Min Max Min Max Unit Fiaure @ o three state recovery time tOR 5 5 5 ns 19 @ o hold time tOH 5 5 5 ns @ FD delay time from 0 tFOOLY 30 30 18 ns 20 @ o delay time from FD tOOLY 30 30 18 ns 19 @ SEL setup time tSELS 10 10 10 ns 19,20 @ SEL hold time tSELH 5 5 5 ns @ DSPCYC setup time tosps 20 20 20 ns 19-21 @ DSPCYC hold time tOSPH 5 5 5 ns @ MRD setup tMROS 20 20 20 ns @ MRD hold time tMROH 10 10 10 ns @ DISP setup time tOISPS 20 20 20 ns 21 CD ® ® _L ® L® ~ I DOTCK t \ \ ® CD SCKE \II \I /\ j\ ® ® \ / \ / ~ VIDEO \1 /\ Figure 18. Dot Clock ~HITACHI 594 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 -----------------------------------------------------------------HD63486 I~ ,1{\- OOTCK 2ClK .:; -I- @ © @.J MCYC --==:{ -I- \ FOO-F031 ~ I ~ @ 00-07 @ ® J @ I SElO-SEl2 ~ ¥ I @ @ I. @ OSPCYC ~ -¥- @ ~ MRO ~ -'I. Figure 19. Read Cycle OOTCK ,W ,W 2ClK -:{ -¥- I I@ © @ -I MCYC --=--{ 3- \ FOO- F031 A I@ I@ 00-07 ® .J @ SELO- SEl2 @ ~ ~ *" OSPCYC -I "'" @ ~ -~ MRO ¥- Figure 20. Write Cycle ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 595 HD63486----------------------------------------------------------------- I~ I~ DOTCK -, I 2ClK + / @I © @ ~- MCYC -¥- \ @ @I FDO- FD31 @ DSPCYC I ...~ ~..,., @ MRD ~ ~ @ "* :,; Figure 21. Display Cycle (a) Totem Pole Output (b) Three State Output (VOUTA-VOUTO) (0 0 -0 7 , FOo-F0 3 d Vee 1 Vee ~ 6679 RL=2K9 Test Point Test Point 5K9 CL =40pF L...-_ _ _,. note: All diodes are 1S2074@'s or the equivalent. S, ON ON ON ON OFF ON ON ON OFF ON Figure 22. Test Load Circuit ~HITACHI 596 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 ------------------------------~--------~--~-------------------HD63486 Input Input Output Output ( Enable ) Disenable Figure 23. Input/Output waveforms • HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 597 HD63486-------------------------------------------------------------- Package Dimensions Unit: mm(inches) DP-64S 576(2268) 64 58.6ma. (2 301max.) I nnnnnnnnnnnnnnnn, ,~ '" 0 l.ll:hQ.~ '32 (0039) 19 OS £ € ;~ I (0750) ~~t,.---~ ~±02S (0070±OOIO) 048±010~ ~1Jl (OOI9±0004) ~~ 0'-15' ~:~;~~~) S CP-68 25 IS±O 12 (0 990± 0 005) 9 I 68 61 60 .. 10 0 i '" i !'.." ~" ~1J.'·'·' ~ ~ . ~ ')' illi!..rJ,~ ~,. '~'" .g: S . re N d '" ;;; g "'y./' ·'r." .1.'." . I' ,.I.!.lll '. -1.,/1.1.1-" 26 44 27 43 2420 ~i (0953) ~~ ~~ NS, 23.12±0.5 (0.91 O± 0.020) Note) Inch valve indicated for your reference. ~HITACHI 598 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 --------------------------------------------------------------HD63486 Reference Literature Product Data Sheet User's Manual Application Note Others H063484 ACRTC 10 #U149 10 #U75 Introduction to ACRTC Applications, Circuits and Software 10 #U90 H063485 GMIC 10 #U175 • HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 599 HD68562 DUSCC (Dual Universal Serial Communications Controller) -ADVANCE INFORMATION- The HD68562 Dual Universal Serial Communications Con- troller (DUSCC) transforms parallel data which is transferred from central processing unit into serial data_ It is a single chip MOS-LSI communications device designed to be a foundation of universal high-performance data-communication subsystems, particularly for the 68000 family microprocessors_ The DUSCC provides two independent, multi-protocol, full duplex receiver/transmitter channels in a single package_ Since the DUSCC supports a wide range of protocols, it handles data communications with the minimum intervention, usually just a few commands from its host processor. The controller's data rate is maximum 4M bits/s which meets the requirement of the presently most powerful systems. A high-speed, high-per- formance communication system is realized with minimum extemallogic at low cost through a variety of functions prOvid- ed by the chip: 16-bit multi-function counter/timer, a digital phase locked loop (DPLL), a parity/CRC generator and checker, (DC-48) and baud rate generator. The DUSCC is useful for communication between host computer and terminals, electric mail, VIDEOTEX, local area • PIN ARRANGEMENT network (LAN), communications network among personal com- puters, etc. lACK' • FEATURES • Channel data rate: 4M bps maximum Al 4 • Receiver/Transmitter: Two channels, dual full-duplex syn- RTXDAKB/GPiIe 5 synchronous/asynchronous IRQ 6 • MUlti-protocol BOP (Bit Oriented Protocol) RESET operation: BCP (Byte Controlled Protocol) RTSB/SYNOUTB COP (Character Oriented Protocol) TRXCB 9 ASYNC (Asynchronous) RTXCB , 3 RTXCA • High data transfer efficiency: Four-character receiver/trans- DCDB/SYNIB 11 mitter FIFOs RXDS 12 • Parity and FCS (Frame Check Sequence): VRC, LRC-8, TXDB , TXDA CRC-16, CRC-CCITT TXDAKii/GPI2B , • Programmable data encoding/decoding: NRZ, NRZI, FMO, FM1, Manchester • DMA interface: Compatible with Hitachi HD68450/HD- 63450 DMAC and other DMA controllers • Multi-function programmable l6-bit CIT: Baud rate gener- ator, etc. • Clock oscillator: On-chip oscillator for crystal • Power supply: Single +5V @HITACHI 600 H,tachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ___________________________________________________________ HD68562 • MAJOR FUNCTIONS OF DUSCC Item FUNCTION Maximum operating frequency 4MHz Maximum data transfer rate 4 Mbits/s Data length 5·S bits Bus interface Compatible with HD68000 (S bits bus) FIFO 4 bytes for each receiver/transmitter Number of channels 2 channels Error check Parity, framing, over run, under run, FCS Channel mode Half·duplex, full·duplex, auto·echo, local loopback Data tra nsfer mode Polled, interrupt, DMA, wait Protocol operation ASYNC : 5·S bits plus optional parity COP : BISYNC, X.21 BCP : DDCMP BOP : HDLC/ADCCP, SDLC, SDLC Loop, Link Level, X.75 Link Level Baud rate generator Built·in Selection of baud rate (1) 16 fixed rates: 50 to 3S.4K baud. (2) Optional baud rate by timer. Encoding/Decoding NRZ, NRZI, FMO, FM1, Manchester Digital phase locked loop Built·in DMA interface Compatible with HD68450/HD63460 Half or full duplex operation Single or dual address data transfer Interrupt capabilities (1) Daisy chain option (2) Vector output (fixed or modified by status) (3) Maskable interrupt conditions (4) Programmable internal priorities Model control RTS, CTS, DCD Four general purpose I/O pins per channel 16·bit counter ti mer Built·in Oscillator Built·in Package Ceramic DIP 4S·pin Power supply 6V:I: 10% Ta - 0 to 70·C Power dissipation Typ.l W ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-S300 601 HD68562-------------------------------------------------------------- • INTERNAL BLOCK DIAGRAM TXDA TXDB RXDB RXDA CONTROL '"::> .. Ol -' z TIMING ffi ....---+----I~ RTXDROA/GP01 A RTXDROB/GP01 B "f'XilRllA/GP02A/RTS TXDROB/GP02B/RTSB RTXCA DMA RTXDAKA/GPI 1A TRXCA ....-----~-I CONTROL RTXDAKB/GPI1 B LK SELECT...._ _ _-+___ -I TXDAKA/GPm RTXCB AND B R G TRXCB TXDAKB/Gl'l2l! A/B X1/CLK DTC x2/Ti5C DONE --Vee -GND Figure 1 DUSCC Block Diagram • SYSTEM CONFIGURATION MPU DMAC HD68450 HD6BOOO HD63450 SYSTEM BUS MAIN MEMORY ······ ··· Figure 2 System Configuration Example ~HITACHI 602 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD63645F/HD64645F LCD Timing Controller (LCTC) Description Pin Arrangement The HD63645F /HD64645F LCTC is a control LSI for large size dot matrix liquid crystal displays. The LCTC is software compatible with the HD6845 CRTC, since its programming method of internal registers and memory addresses is based on the MOO M01 ' , CRTC. A display system can be easily converted M02 , from a CRT to an LCD. M03 • M04 , M05 • The LCTC offers a variety of functions and per· Moe ' M07 • formance features such as vertical and horizontal MOB' scrolling, and various types of character attribute M09 10 functions such as reverse video, blinking, nondis- play (white or black), and an OR function for simple superimposition of character and graphic displays. The LCTC also provides DRAM refresh address output. A compact LCD system with a large screen can be configured by connecting the LCTC with the HD61104 (column driver) and the HD61105 (com- mon driver) by utilizing 4-bit x 2 data outputs. Power dissipation has been lowered by adopting the CMOS process. . !!IN 001 00 :::>zWIOOOO U(!) a: ua: Features ) is for HD64645F • Software compatible with the HD6845 CRTC • 4- or 8-bit parallel data transfer between LCTC • Programmable screen size: and LCD driver -Up to 1024 dots (height) • Recommended LCD driver: HD61104 -Up to 4096 dots (width) (column) and HD61105 (common) • High-speed data transfer: • CPU interface: 68 family (HD63645F), -Up to 20 Mbits/sec in character mode 80 family (HD64645F) -Up to 40 Mbits/sec in graphic mode • CMOS process • Selectable single or dual screen configuration • Single +5 V ±10% • Programmable multiplexing duty ratio: static • 80-pin flat plastic package (FP-80) to 1/512 duty cycle • Programmable character font: -1-32 dots (height) -8 dots (width) Type of Products • Versatile character attributes: reverse video, blinking, nondisplay (white), nondisplay Type No. Bus Timinl Bus Interface Packale (black) HD63645F 2MHz 68 System so.pin FPP • OR function: superimposing characters and graphics display HD64645F 4 MHz so System so.pin FPP • Cursor with programmable height, blink rate, display position, and on/off switch • Vertical smooth scrolling and horizontal scrol- ling by the character • Versatile display modes programmable by mode register or external pins: display on/off, graphic or character, normal or wide, attrib- utes, and blink enable • Refresh address output for dynamic RAM ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 603 H D63645F/H D64645F Pin Description Symbol Pin Number Name I/O Vecl, Vce2 17, 32 Vee GNDl, GND2 37,59 Ground LUO-LU3 22-25 LCD Up Panel Data 0-3 0 LDO-LD3 18-21 LCD' Down Panel Data 0-3 0 CLl 28 Clock One 0 CL2 29 Clock Two 0 FLM 27 First Line Marker 0 M 26 M 0 MAO-MA15 65-80 Memory Address 0-15 0 RAO-RA4 60-64 Raster Address 0-4 0 MDO-MD7 1-8 Memory Data 0-7 MD8-MDI5 9-16 Memory Data 8-15 I DBc-DB7 43-50 Data Bus 0-7 I/O CS 39 Chip Select E 41 Enable (HD63645F Only) R/W 42 Read/Write (HD63645F Only) WR 41 Write (HD64645F Only) RD 42 Read (HD64645F Only) RS 40 Register Select RES 38 Reset DCLK 33 D Clock I MCLK 34 M Clock 0 DISPTMG 35 Display Timing 0 CUDISP 36 Cursor Display 0 SKO 30 Skew 0 SKI 31 Skew 1 ON/OFF 53 On/Off BLE 51 Blink Enable AT 57 Attribute G/C 58 Graphic/Character WIDE 54 Wide LS 56 Large Screen D/S 55 Dual/Single MODE 52 Mode ~HITACHI 604 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F Pin Functions Power Supply (Vec1, 2, GND) enables MPU read/write of the LCTC internal registers. Power Supply Pin (+5 V): Connect Veel and Vee 2 with + 5 V power supply circuit. Enable (E): E receives an enable clock. (HD63645F only). Ground Pin (0 V): Connect GNDl and GND2 with OV. Read/Write (R/W): R/W enables MPU read of the LCTC internal registers when R/W is high, and LCD Interface MPU write when low. (HD63634F only). LCD Up Panel Data (LUO-LU3), LCD Down Write (WR): WR receives MPU write signal. Panel Data (LDO-LD3): LUO-LU3 and LDO- (HD64645F Only) LD3 output LCD data as shown in table 1. Read (RD): RD receives MPU read signal. Clock One (CLl): CLl supplies timing clocks for (HD64645F Only) display data latch. Register Select (RS): RS selects registers. Clock Two (CL2): CL2 supplies timing clock for (Refer to table 5.) display data shift. Reset (RES): RES performs external reset of the First Line Marker (FLM): FLM supplies first LCTC. Low level of RES stops and zero-clears the line marker. LCTC internal counter. No register contents are affected. M (M): M converts liquid crystal drive output to AC. Timing Signal Memory Interface D Clock (DCLK): DCLK inputs the system clock. Memory Address (MAO-MAl5): MAO-MAI5 M Clock (MCLK): MCLK indicates memory supply the display memory address. cycle; DCLK is divided by four. Raster Address (RAO-RA4): RAO-RA4 supply Display Timing (DISPTMG): DISPTMG high the raster address. indicates that the LCTC is reading display data. Memory Data (MDO-MD7): MDO-MD7 receive Cursor Display (CUDISP): CUDISP supplies the character dot data and bit-mapped data. cursor display timing; connect with MDl2 in character mode. Memory Data (MDS-MDl5): MD8-MDl5 receive attribute code data and bit-mapped data. Skew 0 (SKO) /Skew 1 (SKl): SKO and SKI control skew timing. Refer to table 2. MPU Interface Mode Select Data Bus (DBO-DB7): DBO-DB7 send/receive data as a three-state I/O common bus. The mode select pinsON/OFF, BLE, AT, G/C, and WIDE are ORed with the mode register (R22) to Chip Select (CS): CS selects a chip. Low level determine the mode. Table 1. LCD Up Panel Data and LCD Down Panel Data SinKle Screen Pin name 4-Bit Data 8-Blt Data Dual Screen LUO-LU3 Data output Data output Data output for upper screen LDO-LD3 Disconnected Data output Data output for lower screen • HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 605 HD63645F/HD64645F----------------------------------------------------------- On/Off (ON/OFF): ON/OFF switches display and wide display mode (high == wide display, low on and off. (High == display on). == normal display). Blink Enable (BLE): BLE high level enables Large Screen (LS): LS controls a large screen. attribute code "blinking" (MD13) and provides LS high provides a data transfer rate of 40 Mbits/s normal/blank blinking of specified characters for for a graphic display. Also used to specify 8-bit LCD 32 frames each. interface mode. For more details, refer to page 26. Attribute (AT): AT controls character attribute Dual/Single (D/S): D/S switches between single functions. and dual screen display (dual screen display when high). Graphic/Character (G/C): G/C switches between graphic and character display mode Mode (MODE): MODE controls easy mode. (graphic display when high). MODE high sets duty ratio, maximum number of rasters, cursor start/end rasters, etc. (Refer to table Wide (WIDE): WIDE switches between normal 9.) Table 2. Skew Signals SKO SKI Skew Function o o No skew o I-character time skew o 2-character time skew Inhibited combination @HITACHI 606 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F Function Overview LCD and CRT Display Systems Main Features of HD63645F/HD64645F Figure 1 shows a system using both LCD and CRT Main features of the LCTC are: displays. High-resolution liquid crystal display screen control (up to 720 X 512 dots) Software compatible with HD6845 (CRTC) Built-in character attribute control circuit Table 3 shows how the LeTC can be used. Table 3. Functions, Application, and Configuration Classification Item Description Functions Screen Format Programmable horizontal scanning cycle by the character clock period Programmable multiplexing duty ratio from static up to 1/512 Programmable number of displayed characters per character row Programmable number of rasters per character row (number of vertical dots within a character row + space between character rows) Cursor Control Programmable cursor display position, corresponding to RAM address Programmable cursor height by setting display start/end rasters Programmable blink rate, 1/32 or 1/64 frame rate Memory Time for rewriting memory set either by speCifying number of horizontal Rewriting total characters or by cycle steal utilizing MCLK Memory 16-bit memory address output, up to 64 kbytes x 2 memory accessible Addressing DRAM refresh address output Paging and Paging by updating start address Scrolling Horizontal scrolling by the character, by setting hOrizontal virtual screen width Vertical smooth scrolling by updating display start raster Character Attributes Reverse video, blinking, nondisplay (white or black) character attributes Application CRTC Compatible Facilitates system replacement of CRT display with LCD. OR Function Enables superimposing display of character screen and graphic screen Configuration LCTC Single 5 V power supply Configuration I/O TTL compatible except RES, MODE, SKO, SKI Bus connectable with HMCS 6800 family (HD63645F) Bus connectable with 80 family (HD64645F) CMOS process Internal logic fully static 80-pin flat plastic package ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 607 HD63645F/HD64645F - - - - - - - - - - - - - - - - - - - - - - - - - - - - Liquid crystal display CRT (monochrome) LCD display signals Video signals MPU 6301 Figure 1. LCD and CRT Displays $ HITACHI 608 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F Internal Block Diagram Figure 2 is a block diagram of the LCTC. (WR) (AD) E RiW Cl2 M MAO-MA15~===Tr=====~~~~~~~ G/C AT LS Dis WIDE RAO-RA4~==~~======~================~ ONIOFF MODE LE _1- MOO-M015 CUDISP SKO SK 1 ( ) IS for HD64645F (80 types bus Interface) Figure 2. LCTC Block Diagram ~HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 609 HD63645F/HD64645F - - - - - - - - - - - - - - - - - - - - - - - - - - - - System Block Configuration Examples Figure 3 is a block diagram of a character/graphic LCD drivers. display system. Figure 4 shows two exa!llples using HD63645F/HD64645F MPU Bus (WR) (RD) E,R/W DBO-DB7 G/C IM~~~ CS,RS AT LS MAO-MA15 D/S WIDE MODE 2345678 122334455667788 WIDE='Low' WIDE='High' Figure 13. Example of Wide Display ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 621 HD63645F/HD64645F---------------------------- Attribute Functions The attribute functions are offered only in charac- ter mode, and controlled either by bit 0 of the mode A variety of character attribute functions such as register (R22) or the AT pin_ As shown in figure 15, reverse video, blinking, nondisplay (white) or a character attribute can be specified by placing the nondisplay (black) can be implemented by storing character code on MDO-MD7, and the attribute the attribute data in A-RAM (attribute RAM)_ code on MDll-MOl5_ MDB-MOlD are invalid_ Figure 14 shows a display example using each attribute function_ 1_ Black 2. White 3. Blinking D [8J~D~[8J 4. Cursor 5. Reverse Video Ii] Figure 14. Display Example Using Attribute Functions MD Input 15 14 13 12 11 10-8 7-0 Non- Non- Reverse Function display display Blinking Cursor Character Code (black) (white) video *** "': Invalid Figure 15. Attribute Code ~HITACHI 622 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F OR Function -Superimposing Characters and data) in the LCTC and transfers this data as 1 byte. Graphics This function is offered only in character mode, and The OR function (figure 16) generates the OR of controlled by bit 0 of the mode register (R22) or by the data entered into MDO-MD7 (e.g. character the AT pin. Any attribute functions ar,e disabled data) and the data into MD8-MDl5 (e.g. graphic when using the OR function. Graphic data Character data (Character data) (Graphic data) -L --- I MD15 MD14 - - - - MD9 MDf; 'MD7 MD6 - - - - MDl MDO I ,. ------ ------ ---1- -- --- ------ -- -0 - - - - - - a-bit data - 6 7 L _______________________________________ - - - _ - - - - - _I Figure 16. OR Function @HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 623 HD63645F/HD64645F---------------------------- DRAM Refresh Address Output Function display period, the access is retarded to the next cycle by inserting a latch to memory address output The LCTC outputs the address for DRAM refresh and buffer memory output. The skew function while CLl is high, as shown in figure 17. The 16 retards the CUDISP, DISPTMG, CL2 outputs, and refresh addresses per scanned line are output 16 MD inputs in the LCTC to match phase with the times, from $OO-$FF. display data signal. Skew Function By utilizing this function, a low· speed memory can be used as a buffer RAM or a character generator The LCTC can specify the skew (delay) for ROM. CUDISP, DISPTMG, CL2 outputs and MD inputs. This function is controlled by pins SKO and SKI as If buffer memory and character generator ROM shown in table 7. cannot be accessed within one horizontal character Table 7. Skew Function SKO SKl Skew Function o o No skew 1 o 1 character time skew o 2 character time skew Inhibited combination DISPTMG Cll L MCLK MAO-7 Display Memory • I of DRAM Refresh Address •• I Display Memory Address Address Figure 17. DRAM Refresh Address Output • HITACHI 624 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 -----------------------------------------------------------HD63645~HD64645F Easy Mode display mode and screen format are fixed as shown in table 8. With this mode, software for a CRT This mode utilizes software for systems using the screen can be utilized in a system using the LCTC, CRTC (HD6845). By setting MODE pin to high, the without changing the BIOS. Table 8. Fixed Values in Easy Mode Reg. No. Register Name Fixed Value (decimal) R9 Maximum raster address 7 RIO Cursor start raster 6 Rll Cursor end raster 7 R18 Horizontal virtual screen width Same value as (R 1) RI9 Multiplexing duty ratio (H) 99 (In dual screen mode) R20 Multiplexing duty ratio (L) 199 (in single screen mode) R21 Display start raster o R22 Mode register o ~HITACHI Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 625 HD63645F/HD64645F---------------------------- System Configuration and Mode Setting LCD System Configuration Hardware Configuration and Mode Setting The screen configuration, single or dual, must be The LCTC supports the following hardware con· specified when using the LCD system (figure 18). figurations: Using the single screen configuration, you can con· Single or dual screen configuration struct an LCD system with lower cost than a dual 4·or 8·bit LCD data transfer screen system, since the required number of column drivers is smaller and the manufacturing process for and the following screen format: mounting them is simpler. However, there are some limitations, such as duty ratio, breakdown voltage Character, graphic I, or graphic 2 display of a driver, and display quality of the liquid crystal, Normal or wide display (only in character in single screen configuration. Thus, a dual screen mode) configuration may be more suitable to an applica· OR or attribute display (only in character tion. mode) The LCTC also offers an 8·bit LCD data transfer Also, the LCTC supports up to 40 Mbits/s of large function to support an LCD screen with a smaller screeen mode (mode 13) for large screen display. interval of signal input terminals. For a general size This mode is provided only in graphic 1 mode. LCD screen, such as 640 x 200 single, or 640 x 400 dual, the usual 4·bit LCD data transfer is satisfac· Table 9 shows the mode selection method according tory. to hardware configuration and screen format. Ta· ble 10 shows how they are specified. 4 Data ---..,,---~ Column Driver (Upper panel) .~ LCD Upper Panel oc: o E Dma --~~-.1: ____~C~o~lu~m~n~D~riv~e~r____~ § u LCD Lower Panel (a) Single screen 4 Data ---,"--+1 Column Driver (Lower panel) (b) Dual screen Figure 18. Hardware Configuration According to Screen Format ~HITACHI 626 Hitachi America Ltd .• 2210 O'Toole Avenue· San Jose, CA 95131 • (408) 435-8300 H D63645F/H D64645F Table 9. Mode Selection Hardware Configuration Screen Format Screen Maximum LCD Data Configu- Screen Character/ Normal/ Attribute/ data transfer Transfer ration Size Graphic Wide OR speed (MBPS) Mode No. 4·bit Single Normal Character Normal AT 20 5 OR Wide AT 10 6 OR Graphic 1 20 7 Graphic 2 20 8 Dual Normal Character Normal AT 20 OR Wide AT 10 2 OR Graphic 1 20 3 Graphic 2 20 4 Large Graphic 1 40 13 8·blt Single Normal Character Normal AT 20 9 OR Wide AT 10 10 OR Graphic 1 20 11 Graphic 2 20 12 Note: Maximum data transfer speed Indicates amount of the data read out of a memory Thus, the data transfer speed sent to the LCD driver In wide function IS 20 Mbps. ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 627 HD63645F/HD64645F Mode List Table 10. Mode List Pin Name Screen Graphicl Data Wide No. Mode Name DIS GIC LS WIDE AT Confg. Character Transfer Display Attribute Dual-screen 0 0 0 0 Dual Character 4-bit Normal OR character 0 0 0 1 screen x2 AT 2 Dual-screen 0 0 0 Wide OR wide character 0 0 AT 3 Dual-screen graphic 0 0 Graphic 1 4 Dual-screen graphic 0 0 0 2 5 Single-screen 0 0 0 0 0 Single Character 4-bit Normal OR character 0 0 0 0 1 screen AT 6 Single-screen 0 0 0 0 Wide OR wide character 0 0 0 AT 7 Single-screen 0 0 0 Graphic graphic 1 S Single-screen 0 0 0 0 graphic 2 9 S-bit character 0 0 0 0 Character S-bit Normal OR 0 0 0 1 AT 10 8-bit wide 0 0 0 Wide OR character 0 0 1 AT 11 S-bit graphic 1 0 0 1 Graphic 12 8-bit graphic 2 0 0 0 13 Large screen 0 Dual 4-bit screen X2 The LCTC display mode is determined by pins DrS (pin 55), G!C (pin 58), LS (pin 56), WIDE (pin 54), and AT (pin 57). As for G/C, WIDE, and AT, the DR is taken between data bits 0, 2, and 3 of the mode register (R22). The display mode can be controlled by either one of the external pins or the data bits of R22. Note: The above 5 pins heve 32 status combinations (high and low). Any combinations other than the above are inhibited, because they may cause melfunctions. If you set an inhibited combination, set the right combination again. ~HITACHI 628 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F Internal Registers The HD63645F /HD64645F has one address register acter pitches are 8 bits for normal character display and fourteen data registers~ In order to select one and 16 dots for wide character display and graphic out of fourteen data registers, the address of the display. data register to be selected must be written into the address register. The MPU can transfer data to/ The "Nhd" must be less than the total number of from the data register corresponding to the written horizontal characters. address. Maximum Raster Address Register (R9) To be software compatible with the CRTC R9 register (figure 22) specifies the number of ras· (HD6845), registers R2-R8, R16, and R17, which are ters per row in characters mode, consisting of 5 bits. not necessary for an LCD are defined as invalid for The programmable range is 0 (1 raster/row) to 31 the LCTC. (32 rasters/row). Address Register (AR) Cursor Start Raster Register (RIO) AR register (figure 19) specifies one out of 14 data RIO register (figure 23) specifies the cursor start registers. Address data is written into the address raster address and its blink mode. Refer to table 11. register when RS is low. If no register correspond· ing to a specified address exists, the address data is invalid. Horizontal Total Characters Register (RO) RO register (figure 20) specifies a horizontal scan· ning period. The total number of horizontal char· acters less 1 must be programmed into this 8·bit 32- or 64-frame register in character units. The "Nht" indicates the horizontal scanning period including the period when the CPU occupies memory (total number of Cursor End Raster Register (RIl) horizontal characters minus the number of hori· Rll register (figure 24) specifies the cursor end zontal displayed characters). Its unit is, then, raster address. converted from time into the number of characters. This value is to be specified according to the speci· Start Address Register (H/L) (RI2/RI3) fication of the LCD system to be used. R12/R13 register (figure 25) specifies a buffer memory read start address. Updating this register Horizontal Displayed Characters Register (RI) facilitates paging and scrolling. R14/R15 register Rl register (figure 21) specifies the number of can be read and written to/from the MPU. characters displayed per row. The horizontal char· Data Bit Progra m Unit R/W Data Bit Program Unit R/W 716151413121110 - 716151 4 131 21110 - 1- 1- 1 Register address W Nhd (Displayed characters) Character W Figure 19. Address Register Figure 21. Horizontal Displayed Characters Register Data Bit Program Unit R/W Data Bit Program Unit R/W 716151413121110 7161514131211 10 Nht (Total characters - 1) Character W -l-'j-I Nr Raster W Figure 20. Horizontal Total Figure 22. Maximum Raster Address Characters Register Register ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 629 HD63645F/HD64645F - - - - - - - - - - - - - - - - - - - - - - - - - - - Cursor Address Register (H/L) (R14/R15) Multiplexing Duty Ratio Register (H/L) (R19/ R14/R15 register (figure 26) specifies a cursor dis· R20) play address. Cusor display requires setting RIO and R19/R20 register (figure 28) specifies the number Rll, and CUDlSP should be connected with MD12 of vertical dots of the display screen. The pro· (in character mode). This register can be read from grammed value differs according to the LCD screen and written to the MPU. configura tion. Horizontal Virtual Screen Width Register (RI8) In single screen configuration: RI8 register (figure 27) specifies the memory width (Programmed value) = Number of vertical dots to determine the start address of the next row. By -1. using this register, memory width can be specified larger than the number of horizontal displayed In dual screen configuration: characters. Updating the display start address (Programmed value) = Number of vertical dots facilitates scrol1ing in any direction within a memo 2 ory space. -1. The start address of the next row is that of the Display Start Raster Register (R21) previous row plus Nir. If a larger memory width R2I register (figure 29) specifies the start raster of than display width is unnecessary, Nir should be set the character row displayed on the top of the equal to the number of horizontal displayed char· screen. The programmed value should be equal or acters. less than the maximum raster address. Updating Table 11 Cursor Blink Mode B P Cursor blink mode Data Bit Program Unit R/W o 0 Cursor on; without blinking 7161s141312111° o 1 Cursor off Memory address (H) (R14) Memory R/W o Blinking once every 32 frames Memory address (L) (R1S) address 1 Blinking once every 64 frames Figure 26. Cursor Address Register Data Bit Program Unit R/W Data Bit Program Unit R/W 71 6 1 sI 4 1 3 1 2 J1jo -[ B I P I Ncs (Raster address) Raster W 716151413121110 Nir (No. of chars. of virtual width) Character W Figure 23. Cursor Start Raster Register Figure 27. Horizontal Virtual Screen Width Register Data Bit Program Unit R/W 716151413121110 - I- I - I Nce (Raster address) Raster W Data Bit Program Unit R/W 716151413121110 Figure 24. Cursor End Raster Register -1-\-\-\-\-\IA1Q,\Ndh' Raster W Ndl (Number of rasters - I) (R20) *: Number of rasters Data Bit Program Unit R/W 7161 S 1413121 1 10 Figure 28. Multiplexing Duty Ratio Register Memory address (H) (R12) Memory R/W Memory address (L) (R13) address Figure 25. Start Address Register ~HITACHI 630 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F this register allows smooth scrolling in character The OR of the data bits of R22 (figure 30) register mode. and the external terminals of the same name determines a particular mode. (figure 31) Mode register (R22) Data Bit Program Unit R/W Data Bit Program Unit R/W 716151413121110 7 I6 I5 I 41 3 1 2 1 1 1 0 - ~I~I~I Raster address Raster W ~ I ~ I ~ ION/OFF IG/CIWIDEI BlE IAT W Figure 29. Display Start Raster Register Figure 30. Mode Register AT (data bit 0) ~ 6 6 B BlE (data bit 1) WIDE (data bit 2) G/C (data bit 3) ON/OFF (data bit 4) AT ~ Mode Register ON/OFF G/C WIDE BlE (R22) (Pin 53) (Pin 58) (Pin 54) (Pin 51) (Pin 57) Notes: 1. AT (valid only when G/G IS low (character mode)) AT = High: Attribute functions enabled, OR function disabled AT = low: OR function enabled, attribute functions disabled. 2. BlE (valid only when G/GIS low (character mode)) BlE = High: Blinking enable on the character specified by attribute RAM BlE = low: No blinking 3. WIDE (valid only when G/G IS low (character mode)) WIDE = High: Wide display enabled WIDE = low: Normal display 4. G/G G/C = High: Graphic 1 display (when AT = low) or Graphic 2 display (when AT = High) G/C = low: Character display 5 ON/OFF ON/OFF = High: Display on state ON/OFF = low: Display off state Figure 31. Correspondence between Mode Register and External Pins ~HITACHI Hitachi America Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 631 HD636458HD64645F----------------------------------------------------------- Reset RES pin determines the internal state of LSI level according to the timing when the reset counters and the like. This pin does not affect signal is input: register contents nor does it basically control out- DISPTMG, CUDISP, MAO-MA15 put terminals. (4) Fixed at high or low according to mode: CL2 "Reset" is defined as follows (Figure 32) : (5) Unaffected: DBo-DB7 o At reset: the time when RES goes low o During reset: the period while RES remains Reset State of Registers low o After reset: the period on and after the RES RES pin does not affect register contents. There· transition from low to high fore, registers can be read or written even during a reset state; their contents will be preserved RES pin should be pulled high by users during regardless of reset until they are rewritten to. operation. Notes for HD63645F/HD64645F Reset State of Pins (1) The HD63645F /HD64645F are CMOS LSIs, RES pin does not basically control output pins, and and it should be noted that input pins must not operates regardless of other input pins. be left disconnected, etc. (2) At power-on, the state of internal registers (1) Preserves states before reset: becomes undefined. The LSI operation is un- LUO-LU3, LDO-LD3, FLM, CLl, RAO-RA4 defined until all internal registers have been (2) Fixed at high level: programmed. MLCK (3) Preserves states before reset or fixed at low RES - - - - - " " ' \ V During reset After reset At reset Figure 32. Reset Definition ~HITACHI 632 Hitachi Amenca Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F Absolute Maximum Ratings Item Symbol Value Note Supply voltage Vee -0.3 to + 7.0 V 2 Terminal voltage Y,n -0.3 to Vee +0.3 V 2 Operating temperature Topr -20'C to + 75'C Storage temperature Tstg -55'C to +125'C Notes: 1 Permanent LSI damage may occur If maximum ratmgs are exceeded Normal operation should be under recommended operating conditions (Vee = 5.0 V ± 1 0%, GNO = 0 V, Ta = - 20'e to + 75'e) If these conditIOns are exceeded, It could affect reliability of LSI. 2 Width respect to GROUNO (GNO = 0 V) Electrical Characteristics DC characteristics (Vee = 5.0V ±1O%. GND = OV. Ta = -20'C to +75'C. unless otherwise noted.) Test Item Symbol Min Typ Max Unit Condition Input high voltage RES, MODE, SKO, SKI V,H Vee-0.5 Vee+0.3 V DCLK, ON/OFF 2.2 Vee+0.3 V All others 2.0 Vee+0.3 V Input low voltage All others V,L -0.3 0.8 V Output high voltage TTL I nterfaee' VOH 2.4 V CMOS Interfacel Vee-0.8 V Output low voltage TTL Interface VOL 0.4 V CMOS Interface 0.8 V Input leakage current All Inputs except IlL -2.5 +2.5 "A DBa-DB? Three state (off-state) DBa-DB7 IrSL -10 +10 "A leakage current Current dissipation' Ice 10 mA Notes: 1 TTL Interface; MAO-MA15, RAO-RA4, DlSPTMG, CUOISP, OBO-OB7, MCLK C·MOS Interface, LUO-LU3, LOO-L03, Cll, CL2, M, FLM Input/output current IS excluded. When Input IS at the intermediate level with CMOS, excessive current flows through the Input CirCUit to power supply. Input level must be fixed at high or low to avoid thiS condition. 3. If the capacity loads of LUO-LU3 and LOO-L03 exceed the rating, nOise over 08 V may be produced on CUDISP, OISPTMG, MCLK, FLM and M In case the loads of LUO-LU3 and LOO-L03 are larger than the ratings, supply Signals to the LCO module through buffers ~HITACHI Hitachi Amenca Ltd • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 633 HD63645F/HD64645F AC Characteristics CPU Interface (HD63645F - 68 family) Item Symbol Min Typ Max Unit Figure Enable cycle time tCYCE 500 ns 33 Enable pulse width (high) PWEH 220 ns Enable pulse width (low) PWEL 220 ns Enable rise time tEr 25 ns Enable fall time tEl 25 ns es, RS, RjW setup time tAS 70 ns es, RS, RjW hold time tAH 10 ns DBo-DB? setup time tDS 60 ns DBa-DB? hold time tDHW 10 ns DBa-DB? output delay time tDDR 150 ns DBa-DB? output hold time tDHR 20 ns \4-------tcVCE ------~ 2.0Vl.foo_ __ E O.8V CS RS R/W DBa-DB7 (input) DB a-DB 7 (output) Figure 33. CPU Interface (HD63645F) ~HITACHI 634 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HD63645F/HD64645F CPU Interface (HD64645F - 80 family) Item Symbol Min Typ Max Unit Filure RD high level width tWROH 190 ns 34 RD low level width tWROL 190 ns WR high level width tWWOH 190 ns WR low level width tWWOL 190 ns Cs, RS setup time tAS 0 ns CS, RS hold time tAH 0 ns DBo-DB7 setup time tosw 60 ns DBo-DB7 hold time tOHW 0 ns DBo-DB7 output delay time tOOR 150 ns DBo-DB7 output hold time tOHR 20 ns , 2.0V~ r :~ CS II -' '- RS o.svj r- ~ ~ 1\ J tAs ~ tAs !-to tAH twAOL 2.0V-' ... -' twAOH O.SV i\ ~ ~ twwOH tWWOL " ~r 2.0V~ - J O.SV - i\ tDOA tOHA tosw 2.4V,f- I .I-~ , If , ~ tOHW ~ t- DBo-D B7 output input OAV i\. J'- O.S V i\. J Figure 34. CPU Interface (HD64645F) • HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 635 HD63645F/HD64645F AC Characteristics (Cont) Memory Interface Item Symbol Min Typ Max Unit Figure DClK cycle time tCYCO 100 ns 35 DClK high level width tWOH 30 ns DClK low level width twOL 30 ns DClK rise time to, 20 ns DClK fall time to! 20 ns MClK delay time tOMO 70 ns MClK rise time tM, 30 ns MClK fall time tM! 30 ns MAO-MA15 delay time tMAO 150 ns MAO-MA15 hold time tMAH 10 ns RAO-RA4 delay time tRAO 150 ns RAO-RA4 hold time tRAH 10 ns DISPTMG delay time tOTO 150 ns DISPTMG hold time tOTH 10 ns CUDISP delay time tcoo 150 ns CUDISP hold time tCOH 10 ns CLl delay time tCLIO 150 ns Cl1 hold time tCLlH 10 ns CLl rise time tCLl, 50 ns CLl fall time tCLlf 50 ns MDO-MD15 setup time tMOS 80 ns MDO-MD15 hold time tMOH 15 ns • HITACHI 636 Hitachi Amenca Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F teyeD DClK MClK Cl1 MDO-MD15 (input) Figure 35. Memory Interface ~HITACHI Hitachi America ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 637 HD63645F/HD64645F AC Characteristics (Cont) LCD Interface Item Symbol Min Typ Max Unit Figure Display data setup time tLDS 50 ns 36 Display data hold time tLDH 100 ns CL2 high level width tWCL2H 100 ns CL2 low level width tWCL2L 100 ns FLM setup time tFS 500 ns FLM hold time tFH 300 ns CLl rise time tCLlr 50 ns CLl fall time tCLl! 50 ns CL2 rise time tCL2r 50 ns CL2 fall time tCL2! 50 ns Note: At fCL2 = 3 MHz LUO-LU3 LDO-LD3 ; 1/ Vee- O.BV O.BV I4--tos---l I ( tOH Vee- O.BV CL2 ~ O.BV tweL2L tweL2H teL2! tCL2r 1/ \ Vee- O.BV CL1 O.BV -I.- tFS tFH tcur tell! ., Vee- O.BV \ ~ FLM f O.BV Figure 36. LCD Interface ~HITACHI 638 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (40B) 435·B300 - - - - - - - - - - - - - - - - - - - - - - - - - - - - HD63645F/HD64645F AC Characteristics TTL Load Terminal RL R C Remarks DBc-DB7 2.4 kCl 11 kCl 130 pF tr, tf: Not specified -------------------------~-- MAO-MAI5, RAO-RA4, DISPTMG, CUDISP 2.4 kCl llkCl 40 pF MCLK 2.4 kCl 11 kCl 30 pF tr, tf: Specified All diodes; 1S20742 OS Read Eneble R/W R/W Write Enable Figure 13 Functional Diagram of the Bus Control Circuit • ADDRESS MAP may initialize the time, calendar, and alarm by writing to Figure 14 shows the address map of the HD146818. The these RAM locations. The contents of the 10 time, calendar, memory consists of 50 general purpose RAM bytes, 10 RAM and alarm byte may be either binary or binary-coded decimal bytes which normally contain the time, calendar, and alarm (BCD). data, and four control and status bytes. All 64 bytes are Before initializing the internal registers, the SET bit in directly readable and writable by the processor program ex- Register B should be set to a "I" to prevent time/calendar cept Registers C and D which are read only. Bit 7 of Register updates from occurring. The program initializes the I 0 loca- A and the seconds byte are also read only. Bit 7, of the second tions in the selected format (binary or BCD), then indicates byte, always reads "0". The contents of the four control and the format in the data mode (DM) bit of Register B. All 10 status registers are described in the Register section. time, calendar, and alarm bytes must us.~ the same data mode, either binary or BCD. The SET bit may now be cleared to • Time, Calendar, and Alarm Locations allow updates. Once initialized the real-time clock makes The processor program obtains time and calendar infor- all updates in the selected data mode. The data mode cannot mation by reading the appropriate locations. The program be changed without reinitializing the 10 data bytes. o 00 o Seconds 00 14 Sec Alarm 0 Bytes 13 00 Minutes 02 14+--------+ Min Alarm 03 Hours 04 Binary or BCD Hr Alarm 05 Contents Day of Wk 06 50 Bytes Date of Mo 07 User RAM Month 08 Year 09 Register A 0A 1 Register B 0B Register C 0C 63 Register 0 0o -'----------'- Figure 14 Address Map @HITACHI Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 653 HD146818---------------------------------------------------------------- Table 2 shows the binary and BCD formats of the 10 time, the update cycle in the processor program. calendar, and alarm locations. The 24/12 bit in Register B The three alarm bytes may be used in two ways. When establishes whether the hour locations represent l-to-12 or the program inserts an alarm time in the appropriate hours, 0-to-23. The 24/12 bit cannot be changed without reinitializing minutes, and seconds alarm locations, the alarm interrupt is the hour locations. When the 12-hour format is selected the initiated at the specified time each day if the alarm enable bit high-order bit of the hours byte represents PM when it is a "I". is "I". The alternate usage is to insert a "don't care" state in The time, calendar, and alarm bytes are not always ac- one or more of three alarm bytes. The "don't care" code is cessable by the processor program. Once-per-second the 10 any hexadecimal byte from CO to FF. That is, the two most- bytes are switched to the update logic to be advanced by one significant bits of each byte, when set to "I", create a "don't second and to check for an alarm condition. If any of the 10 care" situation. An alarm interrupt each hour is created with bytes are read at this time, the data outputs are undefined. a "don't care" code in the hours alarm location. Similarly, an The update lockout time is 248 JJ.S at the 4.194304 MHz and alarm is generated every minute with "don't care" codes in 1.048567 MHz time bases and 1948 JJ.S for the 32.768 kHz time the hours and minutes alarm bytes. The "don't care" codes base. The Update Cycle section shows how to accommodate in all three alaro bytes create an interrupt every second. Table 2 Time, Calendar, and Alarm Data Modes Range Example* Address Decimal Function Binary BCD Location Range Binary Data Mode BCD Data Mode Data Mode Data Mode 0 Seconds 0-59 $00-$3B $00-$59 15 21 1 Seconds Alarm 0-59 $00-$3B $00-$59 15 21 2 Minutes 0-59 $00-$3B $00-$59 3A 58 3 Minutes Alarm 0-59 $00-$3B $00-$59 3A 58 Hours $01-$OC (AM) and $01-$12 (AM) and 1-12 05 05 (12 Hour Mode) $81 -$8C (PM) $81 -$92 (PM) 4 Hours 0-23 $00-$17 $00-$23 05 05 (24 Hour Mode) Hours Alarm $01 -$OC (AM) and $01 -$12 (AM) and 1-12 05 05 (12 Hour Mode) $81 -$8C (PM) $81 -$92 (PM) 5 Hours Alarm $00-$23 0-23 $00-$17 05 05 (24 Hour Mode) Day of the Week 1-7 $01 -$07 6 $01 -$07 05 05 Sunday = 1 7 Day of the Month 1 -31 $01-$1F $01-$31 OF 15 8 Month 1-12 $Ol-$OC $01 -$12 02 02 9 Year 0-99** $00-$63 $00-$99 4F 79 * Example: 5:58:21 Thursday 15th February 1979 ** Set the lower two digits of year In AD. If this number is multiple of 4, update applied to leap year is excuted. • Static CMOS RAM • INTERRUPTS The 50 general purpose RAM bytes are not dedicated within The RTC plus RAM includes three separate fully automatic the HD 146818. They can be used by the processor program, sources of interrupts to the processor. The alarm interrupt and are fully available during the update cycle. may be programmed to occur at rates from once-per-second When time and calendar information must use battery to one-a-day. The periodic interrupt may be selected for rates back-up, very frequently there is other non-volatile data that from half-a-second to 30.517 JJ.s. The update~nded interrupt must be retained when main power is removed. The 50 user may be used to indicate to the program that an up-date cycle RAM bytes serve the need for low-power CMOS battery- is completed. Each of these independent interrupt conditions backed storage, and extend the RAM available to the program. are described in greater detail in other sections. When further CMOS RAM is needed, additional HDI46818s The processor program selects which interrupts, if any, it may be included in the system. The time/calendar functions wishes to receive. Three bits in Register B enable the three may be disabled by holding the dividers, in Register A, in the interrupts. Writing a "I" to a interrupt~nable bit permits reset state by setting the SET bit in Register B or by removing that interrupt to be initiated when the event occurs. A "0" in the oscillator. Holding the dividers in reset prevents interrupts the I interrupt~nable bit prohibits the IRQ pin from being or SQW output from operating while setting the SET bit allows asserted due to the interrupt cause. these functions to occur. With the dividers clear, the available If an interrupt flag is already set when the interrupt becomes user RAM is extended to 59 bytes. Bit 7 of Register A, Registers enabled, the IRQ pin is immediately activated, though the C and D, and the high-order Bit of the seconds byte cannot interrupt initiating the event may have occurred much earlier. effectively be used as general purpose RAM. Thus, there are cases where the program should clear such ~HITACHI 654 Hitachi Amenca Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435·8300 -------------------------------------------------------------HD146818 earlier initiated interrupts before fust enabling new interrupts. IRQF bit in Register C is a "I" whenever the IRQ pin is being When an interrupt event occurs a flag bit is set to a "I" in driven "Low". Register C. Each of the three interrupt sources have separate The processor program can determine that the RTC initiated flag bits in Register C, which are set independent of the state the interrupt by reading Register C. A "I" in bit 7 (IRQF bit) of the corresponding enable bits in Register B. The flag bit indicates that one of more interrupts have been initiated by may be used with or without enabling the corresponding enable the part. The act of reading Register C clears all the then-active bits. flag bits, plus the IRQF bit. When the program finds IRQF set, In the software scanned case, the program does not enable it should look at each of the individual flag bits in the same the interrupt. The "interrupt" flag bit becomes a status bit, byte which have the corresponding interrupt-mask bits set which the software interrogates, when it wishes. When the and service each interrupt which is set. Again, more than one software detects that the flag is set, it is an indication to soft- interrupt-flag bit may be set. ware that the "interrupt" event occurred since the bit was last read. • DIVIDER STAGES However, there is one precaution. The flag bits in Register The HD146818 has 22 binary-divider stages following the C are cleared (record of the interrupt event is erased) when time base as shown in Figure 10. The output of the dividers is Register C is read. Double latching is included with Register a I Hz signal to the update-cycle logic. The dividers are con- C so the bits which are set are stable throughout the read troller by three divider bus (DV2, DVI, and DVO) in Register cycle. All bits which are high when read by the program are A. cleared, and new interrupts (on any bits) are held until after the read cycle. One, two, or three flag bits may be found to • Divider Control be set when Register C is read. The program should inspect The divider-control bits have three uses, as shown in Table all utilized flag bits every time Register C is read to insure that 3. Three usable operating time bases may be selected (4.194304 no interrupts are lost. MHz, 1.048576 MHz, or 32.768 kHz). The divider chain may The second flag bit usage method is with fully enabled be held reset, which allows precision setting of the time. When interrupts. When an interrupt-flag bit is set and the correspond- the divider is changed from reset to an operating time base, ing inter~-enable bit is also set, the IRQ pin is asserted the first update cycle is. one second later. The divider-control "Low". IRQ is asserted as long as at least one of the three bits are also used to facilitate testing the HD146818. interrupt sources has its flag and enable bits both set. The Table 3 Divider Configurations Divider Bits Time-Base Register A Operation Divider Bypass First Frequency Mode Reset N-Divider Bits DV2 DVl DVO 4.194304 MHz 0 0 0 Yes - N=O 1.048576 MHz 0 0 1 Yes - N =2 32.768 kHz 0 1 0 Yes - N=7 Any 1 1 0 No Yes - Any 1 1 1 No Yes - (NOTE) Other combinations of divider bits are used for test purposes only. • Square-Wave Output Selection • Periodic Interrupt Selection Fifteen of the 22 divider taps are made available to a l-of-15 The periodic interrupt allows the IRQ pin to be triggered selector as shown in Figure 10. The fust purpose of selecting from once every 500 ms to once every 30.517 j.lS. The periodic a divider tap is to generate a square-wave output signal m the interrupt is separate from the alarm interrupt which may be SQW pin. Four bits in Register A establish the square-wave output from once-per-second to once-per-day. frequency as listed in Table 4. The SQW frequency selection Table 4 shows that the periodic interrupt rate is selected shares the l-of-15 selector with periodic interrupts. with the same Register A bits which select the square-wave Once the frequency is selected, the output of the SQW pin frequency. Changing one also changes the other. But each may be turned on and off under program control with the function may be separately enabled so that a program could square-wave enable (SQWE) bit in Register B. Altering the switch between the two features or use both. The SQW pin divider, square-wave output selection bits, or the SQW output- is enabled by the SQWE bit. Similarly the periodic interrupt is enable bit may generate an asymetrical waveform at the time enabled by the PIE bit in Register B. of execution. The square-wave output pin has a number of Periodic interrupt is usable by practically all real-time sys- potential uses. For example, it can serve as a frequency standard tems. It can be used to scan for all forms of input from contact for external use, a frequency synthesizer, or could be used to closures to serial receive bits or tyes. It can be used in multi- generate one or more audio tones under program control. plexing displays or with software counters to measure inputs, create output intervals, or await the next needed software func- tion. ~HITACHI Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 655 HD146818---------------------------------------------------------------- Table 4 Periodic Interrupt Rate and Square Wave Output Frequency 4.194304 or 1.048576 MHz 32.768 kHz Rate Select Time Base Time Base Control Register 1 Periodic SQWOutput Periodic SQWOutput Interrupt Rate Frequency Interrupt Rate Frequency RS3 RS2 RSI RSO tpi tpi 0 0 0 0 None None None None 0 0 0 1 30.517 liS 32.768 kHz 3.90625 ms 256 Hz 0 0 1 0 61.035 liS 16.384 kHz 7.8125 ms 128 Hz 0 0 1 1 122.070 liS 8.192 kHz 122.070115 8.192 kHz 0 1 0 0 244.141115 4.096 kHz 244. 141 115 4.096 kHz 0 1 0 1 488.281115 2.048 kHz 488.281115 2.048 kHz 0 1 1 0 976.562115 1.024 kHz 976.562115 1.024 kHz 0 1 1 1 1.953125 ms 512 Hz 1.953125 ms 512 Hz 1 0 0 0 3.90625 ms 256 Hz 3.90625 ms 256 Hz 1 0 0 1 7.8125 ms 128 Hz 7.8125 ms 128 Hz 1 0 1 0 15.625 ms 64 Hz 15.625 ms 64 Hz 1 0 1 1 31.25 ms 32 Hz 31.25 ms 32 Hz 1 1 0 0 62.5 ms 16 Hz 62.5 ms 16 Hz 1 1 0 1 125 ms 8 Hz 125 ms 8 Hz 1 1 1 0 250 ms 4 Hz 250ms 4 Hz 1 1 1 1 500ms 2 Hz 500ms 2 Hz • Initialization of the Time and the Start Sequence day shown below. The first update of the time occurs about 500ms later after the SET bit of control register B is reset. So keep followings in mind when initializing and adjusting the time. Calendar, Time of day Examples Procedure of time initialization & Status after Update (1) Set the SET bit of control register B. (SET = "I") If 29th 23:59:59 in all the months is initial· ized, update to 1st in the next month is Mar. 29th (2) Set "1" into all the DVO, I, 2 bits of control register A. executed. (Jan. - Dec. However except for --Apr. 1st (DVO =DVI =DV2 = "1") Feb. 29th in leap year) (3) Set the time and calendar to each RAM. (4) Set the frequency in use into DVO, 1 and DV2. If 30th 23: 59 :59 in Apr., June, Sept., and Nov. is initialized, update to 31st in each Apr. 30th (5) Reset the SET bit. (SET = "0") --Apr. 31st month is executed. If Feb. 28th 23:59:59 (not in leap year) is Feb. 28th,1983 U"B .. Ln~ ~ ~ initialized, update to Feb. 29th is executed. -- Feb. 29th,1983 !4MHJ'IMHZL-J ('IIII_rA) 15OOm1-15111 Ttm.,nOl'-'n If Feb. 28th 23:59: 58 (in leap year) is ini· Feb. 28th,1984 (SETbJtl ..... 01 2441'1+24811S i24411.+1!J84j1S(38kHz}) tialized, update to Mar. 1st is executed. --Mar.lst,1984 I 1 Second 1 Second • UPDATE CYCLE Figure 15 Time Initialization and the First Update The HDI46818 executes an update cycle once-per-second, assuming one of the proper time bases is in place, the divider Restriction on Time-of-day and Calendar Initialization is not clear, and the SET bit in Register B is clear. The SET bit There is a case in HDI46818 (RTC) that update is not exe- in the "I" state permits the program to initialize the time and cuted correctly if time of day and calendar shown below are calendar bytes by stopping an existing update and preventing initialized. Therefore, initialize the RTC without using time of a new one from occurring. The primary function of the update cycle is to increment the seconds byte, check for overflow, increment the minutes byte when appropriate and so forth through to the year of the century byte. The update cycle also compares each alarm byte with the corresponding time byte and issues an alarm if a match or if a "don't care" code (11 XXXXXX) is present in all three positions. With a 4.194304 MHz or 1.048576 MHz time base the up- ~HITACHI 656 Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ----------------------------------------------------------------HD146818 date cycle takes 248 j.ts while a 32.768 kHz time base update time needed to read valid time/ calendar data to exceed 244 j.tS. cycle takes 1984 j.ts. During the update cycle, the time, calen- The third method uses a periodic interrupt to determine if dar, and alarm bytes are not accessable by the processor an update cycle is in progress. The UIP bit in Register A is set program. The HD146818 protects the program from reading "I" between the setting of the PF bit in Register C (see Figure transitional data. This protection is provided by switching 16) Periodic interrupts that occur at a rate of greater than the time, calendar, and alarm portion of the RAM off the tDue + tue allow valid time and date information to be read microprocessor bus during the entire update cycle. If the at each occurrence of the periodic interrupt. The reads should processor reads these RAM locations before the update is be completed within (tPI + 2) + tDue to insure that data is complete the output will be undefined. The update in progress not read during the update cycle. (UIP) status bit is set during the interval. A program which randomly accesses the time and date infor- • POWER-DOWN CONSIDERATIONS mation finds data unavailable statistically once every 4032 In most systems, the HDI46818 must continue to keep attempts. Three methods of accommodating nonavailability time when system power is removed. In such systems, a con- during update are usable by the program. In discussing the version from system power to an alternate power supply, three methods it is assumed that at random points user pro- usually a battery, must be made. During the transition from grams are able to call a subroutine to obtain the time of day. system to battery power, the deSigner of a battery backed-up The first method of avoiding the update cycle uses the RTC system must protect data integrity, minimize power update-ended interrupt. If enabled, an interrupt occurs after consumption, and ensure hardware reliability according to every update cycle which indicates that over 999 ms are avail- the specification described in the section regarding Battery able to read valid time and date information. During this time Backed-up operation. a display could be updated or the information could be trans- The chip enable (CE) pin controls all bus inputs (R/W, OS, fered to continuously available RAM. Before leaving the inter- AS, ADo - AD,). CEo when negated, disallows any unintended rupt service routine, the IRQF bit in Register C should be modification of the RTC data by the bus. CE also reduces cleared. power consumption by reducing the number of transitions The second method uses the update-in-progress bit (UIP) seen internally. in Register A to determine if the update cycle is in progress Power consumption may be further reduced by removing or not. The UIP bit will pulse once-per-second. Statistically, resistive and capacitive loads from the clock out (CKOUT) the UIP bit will indicate that time and date information is pin and the squarewave (SQW) pin. unavailable once every 2032 attempts. After the UIP bit goes During and after the power source conversion, the V IN "I", the update cycle begins 244 j.ts later. Therefore, if a "0" maximum specification must never be exceeded. Failure to is read on the UIP bit, the user has at least 244 j.tS before the meet the VIN maximum specification can cause a virtual time/calendar data will be changed. If a "I" is read in the SCR to appear which may result in excessive current drain UIP bit, the time/c~endar data may not be valid. The user and destruction of the part. should avoid interrupt service routines that would cause the UIP bit in r----1 Register A - - - - - - - - - - - - - t - a u - c - - J - - " i - n n m ....- ,'t-uc------ UF bit in Register C I !---tPI+2---j - tPI--ll r-tPI+2--j PF bit inC Register ~ L-_ _ _ _ _ _ _ _ _ _ _.... tlmm tlmm ......" -_ _ _ __ tpi = Periodic Interrupt Time Interval (500 ms, 250 ms, 125 ms, 62.5 ms, etc.) tue = Update Cycle Time (248"" or 1984".1 taue = Delay Time 8efore Update Cycle (244 ".1 Figure 16. Update-Ended and Periodic Interrupt Relationship ~HITACHI Hitachi America Ltd . • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 657 H0146S1S---------------------------------------------------------------- • SIGNAL DESCRIPTIONS by four. Table 5 summarizes the effect ofCKFS. The block diagram in Figure 10, shows the pin connection with the major internal functions of the HDI46818 Real-Time Table 5 Clock Output Frequencies Clock plus RAM. The following paragraphs describe the func- tion of each pin. Time Base Clock Frequency Clock Frequency (OSC,) Select Pin Output Pin Frequency (CKFS) (CKOUT) • Vee. Vss DC power is provided to the part on these two pins, Vee 4.194304 MHz "High" 4.194304 MHz being the most positive voltage. The minimum and maximum 4.194304 MHz "Low" 1.048576 MHz voltages are listed in the Electrical Characteristics tables. 1.048576 MHz "High" 1.048576 MHz 1.048576 MHz "Low" 262.144 kHz • OSC •• OSC, - Time Base 32.768 kHz "High" 32.768 kHz 32.768 kHz "Low" 8.192 kHz Input Pin No.2, 3 • saw - Square Wave The time base for the time functions may be an external signal or the crystal oscillator. External square waves at Output Pin No. 23 4.194304 MHz, 1.048576 MHz, or 32.768 kHz may be connect- ed to OSC. as shown in Figure 17 The time-base frequency to be used is chosen in Register A. The SQW pin can output a signal one of 15 of the 22 internal-divider stages. The frequency and output enable of VCC the SQW may be altered by programming Register A, as shown ~ Optional (V cc -1.0V) in Table 4. The SQW signal may be turned on and off using a bit in Register B. 4.194304 MHz • ADo - AD7 - Multiplexed Bidirectional Address/Data Bus or 1.048576 MHz - - - - - <.......---..::.....j OSC. or Input/Output Pin No.4 - II 32.768 kHz (Open) ~ OSC, Multiplexed bus processors save pins by presenting the address during the first portion of the bus cycle and using HD146818 the same pins during the second portion for data. Address- then-data multiplexing does not slow the access time of the HD 146818 since the bus reversal from address to data is oc- curring during the internal RAM access time. The address must be valid just prior to the fall of AS/ALE Figure 17 External Time·Base Connection at which time the HDI46818 latches the address from ADo to ADs. Valid write data must be presented and held stable during The on~hip oscillator is designed for a parallel resonant the latter portion of the DS or WR pulses. In a read cycle, crystal at 4.194304 MHz or 1.048576 MHz or 32.768 kHz fre- the HDl46818 outputs 8 bits of data during the latter portion quencies. The crystal connections are shown in Figure 11. of the DS or RD pulses, then ceases driving the bus (returns the output drivers to three-state) when DS falls in the HD6801, • CKOUT - Clock Out HD6301 case or RD rises in the other case. • AS - Multiplexed Address Strobe Output Pin No. 21 Input Pin No. 14 The CKOUT pin is an output at the time-base frequency divided by I or 4. A major use for CKOUT is as the input clock to the microprocessor; thereby saving the cost of a second A positive going multiplexed address strobe pulse serves crystal. The frequency of CKOUT depends upon the time-base to demultiplex the bus. The falling edge of AS or ALE causes frequency and the state of the CKFS pin as shown in Table 5. the address to be latched within the HD146818. The bus control circuit in the HDl46818 also latches the state of the • CKFS - Clock Out Frequency Select DS pin with the falling edge of AS or ALE. Input Pin No. 20 • OS - Data Strobe or Read Input Pin No. 17 The CKOUT pin is an output at the time-base frequency divided by 1 or 4. CKFS tied to Vee causes CKOUT to be the same frequency as the time base at the OSC. pin. When CKFS The DS pin has two interpretations via the bus control is at V ss , CKOUT is the OSC, time-base frequency divided circuit. When emanating from 680 I family type processor, ~HITACH. 658 Hitachi America Ltd. • 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 ---------------------------------------------------------------HD146818 DS is a positive pulse during the latter portion of the bus interrupt is present and the corresponding interrupt-2 (1/>2 clock). During read cycles, DS signifies the time that the reads Register C. The RES pin also clears pending interrupts. RTC is to drive the bidirectional bus. In write cycles, the trail- When no interrupt conditions are present, the IRQ level is ing edge of DS causes the Real-Time Clock plus RAM to latch in the high-impedance state. Multiple interrupting devices the written data. may thus be connected to an IRQ bus with one pullup at the The second interpretation of DS is that of RD, MEMR, or processor. !/OR emanating from the 8085 type processor. In this case, DS identifies the time period when the real-time clock plus • RES - Reset RAM drives the bus with read data. This interpretation of DS is also the same as an output- HD146818P (X type ..... Marked as follows) Xor RX r-----------~--~ • 2B2 H0146B1BP JAPAN < Restriction on usage> Please set "0" to DSE bit (Daylight Saving Enable bit) on initializing the control register B. DSE = "1" is prohibited. RESTRICTION ON HD146818 USAGE (2) Access to HD146818 needs to be performed under following conditions. (i) Chip-enable (CE) must be asserted to active "Low" level only when MPU performs read/write operation from/into internal RAM (Time and Calendar RAM, Control register, User RAM). (ii) User RAM and control register must be accessed in less than 1/4 frequency shown below. (Example: After one access, non-access cycles more than three cycles are necessary to be inserted.) ~ [Example 11 Addres. Non·Access Access to H0146818 ~ [Example 21 Addre.. CE Access to HD146818 (Two Continuous Accesses) As shown in the above (example 2], when HD146818 is accessed continuously. continuous access must not be executed over fifty times. (iii) The application that User RAM is used for program area should be avoided. (Inhibit continuous access.) (iv) Minimize the noise by inserting noise bypass condenser between power supply and ground pin (Vcc-V ss). (Insert noise bypass condenser as near HD146818 as possible.) RESTRICTION ON H0146818 USAGE (3) Chip-enable (CE) must be stable between falling edge of OS and rising edge of AS shown below. (Address decoder hazard needs to be externally suppressed in this period.) AS os L..:. Eliminate hazard in this period. ~HITACHI 662 Hitachi America Ltd .• 2210 O'Toole Avenue • San Jose, CA 95131 • (408) 435-8300 HITACHI AMERICA, LTD. SEMICONDUCTOR AND IC DIVISION HEADQUARTERS U.s. SALES OFFICE Hitachi, Ltd. Hitachi America, Ltd. New Marunouchi Bldg., 5-1, Semiconductor and IC Division Marunouchi 1-chome 2210 O'Toole Avenue Chiyoda-ku, Tokyo 100, Japan San Jose, CA 95131 Tel: Tokyo (03) 212-1111 Tel: 408-435-8300 Telex: J22395, J22432, J24491, Telex: 17-1581 J26375 (HITACHY) Twx: 910-338-2103 Cable: HITACHY TOKYO Fax: 408-435-2748 Fax: 408-435-2749 Fax: 408-435-2782 REGIONAL OFFICES DISTRICT OFFICES MID-ATLANTIC REGION • Hitachi Amenca, Ltd. 3800 W. 80th Street, Suite 1050 Hitachi America, Ltd. Bloomington, MN 55431 1700 Galloping Hill Rd. 612/896-3444 Kenilworth, NJ 07033 201/245-6400 • Hitachi America, Ltd. NORTHEAST REGION 80 Washington St., Suite 302 Hitachi America, Ltd. Poughkeepsie, NY 12601 5 Burlington Woods Drive 914/485-3400 Burlington, MA 01803 617/229-2150 • Hitachi America, Ltd. SOUTH CENTRAL REGION 6 Parklane Blvd., #558 Dearborn, MI 48126 Hitachi America, Ltd. 313/271-4410 Two Lincoln Centre, Suite 865 5420 LBJ Freeway Dallas, TX 75240 • Hitachi America, Ltd. 214/991-4510 6161 Savoy Dr., Suite 850 Houston, TX 77036 NORTH CENTRAL REGION 713/974-0534 Hitachi America, Ltd. 500 Park Blvd., Suite 415 itasca, IL 60143 • Hitachi (Canadian) Ltd. 312/773-4864 2625 Queensview Dr. Ottawa, Ontario, Canada K2A 3Y4 NORTHWEST REGION 613/596-2777 Hitachi America, Ltd. 2210 O'Toole Avenue San Jose, CA 95131 408/435-2200 SOUTHWEST REGION Hitachi America, Ltd. 18300 Von Karman Avenue, Suite 730 Irvine, CA 92715 714/553-8500 SOUTHEAST REGION Hitachi America, Ltd. 4901 N.W. 17th Way, Suite 302 Fort Lauderdale, FL 33309 663 305/491-6154 NOTES NOTES NOTES