Cat. No. 25-1511 Tandy 1000 SX Technical Reference Manual TANDY® TANDY 1000 SX TECHNICAL REFERENCE MANUAL Tandy 1000 SX Technical Reference Manual Copyright 1986, Tandy Corporation. All rights reserved. Reproduction or use without the express written permission from Tandy Corporation, of any portion of this manual is prohibited. While reasonable efforts have been taken in the preparation of this manual to assure its accuracy, Tandy Corporation assumes no liability resulting from any errors or omissions in this manual, or from the use of the information obtained herein. . TANDY COMPUTER PRODUCTS TANDY 1000 SX CONTENTS MAIN LOGIC BOARD POWER SUPPLIES KEYBOARD 8087 COPROCESSOR RS-232 INTERFACE BOARD MOOSE CONTROLLER/CALENDAR PLUS NETWORK 4 INTERFACE DEVICES Note: Complete information for the Disk Drives for this unit is available through your local store. They will order the desired Service Manual from Radio Shack National Parts, Fort Worth, Texas. TANDY COMPUTER PRODUCTS Foldout Page Insertion Guide To Be Inserted after Page 12 of the Main Logic Section Light Blue to System Timing Diagram Sheets 1 of 2 and 2 of 2 Big Blue To System Timing Diagram Sheets 1 of 2 and 2 of 2 Tan to System Timing Diagram Sheet 1 of 1 To Be Inserted at the end of the Main Logic Section PCB Art (Silkscreen, 1700337 Rev. A Component and Solder Sides) Main Logic Schematic 8000272 Sheets 1 of 10 thru 10 of 10 To Be Inserted at the end of the 67 Watt Single Input Power Supply Schematic 8790085 3P-M1-0164 To Be Inserted at the end of the 67 Watt Dual Input Power Supply Schematic 8790084 3P-M1-0165 TANDY COMPUTER PRODUCTS To Be Inserted just before WD 8250 Asynchronous Communication Element Specification of RS-232 Section Schematic of RS-232 8000253 (Rev. A) Board Sheet 1 of 1 To Be Inserted after Page 22 of the Mouse Controller/Calendar Section Schematic 8000254 Sheet 1 of 1 To Be Inserted at the end of the PLUS Network 4 Interface Section Schematic D-8000279 Sheets 1,2 and 3 of 3 TANDY COMPUTER PRODUCTS MAIN LOGIC BOARD . TANDV COMPUTER PRODUCTS MAIN LOGIC BOARD CONTENTS INTRODUCTION 1 SPECIFICATIONS 3 SYSTEM TIMING 14 THEORY OF OPERATION 19 PARTS LIST PCB ART SCHEMATICS Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS INTRODUCTION TO THE TANDY 1000 SX COMPUTER The Tandy 1000 SX Computer is modular in design to allow maximum flexibility in system configuration. The computer consists of a Main Unit, a detachable keyboard with coiled cable, and a monitor. The Main Unit is supplied with two internal floppy disk drives. The standard types of monitors used with the Tandy 1000 SX are the monochrome composite and the color RGB monitor. Since these units are modular, they may be placed on top of the Main Unit or at any convenient location. The Tandy 1000 SX comes standard with 384K of system RAM. An optional 8 additional 256K RAM chips may be added on the system board to expand the memory to a full 640K bytes, the maximum RAM allowed by the system memory map. Other features include a parallel printer port, two built-in joystick interfaces, a speaker for audio feedback, and a light pen interface. The Main Unit is the heart of the Tandy 1000 SX. It houses the Main Logic Assembly, system power supply, and floppy disk drives. The Main Logic Assembly is a large board mounted to the bottom of the Main Unit and interconnected to the keyboard, power supply, and disk drives by a series of cables. The illustration in Figure 1 shows the major components of a Tandy 1000 SX system. The Power Supply is a 67W switching regulator type, designed to provide adequate power capacity for a fully configured system using all the option slots. The Floppy Disk Drive uses 5 1/4" double-sided, double-density diskettes to read, write, or store data. These are soft sector diskettes. The Disk Drive assembly is installed in the main unit. The floppy disk stores approximately 360K bytes (formatted) of data. All system programs, with the exception of the system startup sequence, are stored on disk. Either a monochrome or a color display may be used with the Tandy 1000 SX. The monochrome monitor is a high-resolution green phosphor display which provides excellent visual quality. It features a 12" screen with an anti-glare surface. Each display is capable of 25 lines of 80 characters. The character matrix is 8 wide x 9 high. 1 Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS REFERENCE KWIW UUMUGHO, PCKMDt cwxain •7O-HM CMMttl •70-M7S SOUL, rum am CMWW A (TO-*M7 C*M£, KCTOMO •TO-tMT CWN1H rw C2M0OM mwM •70-MU •13 VtHCK CMOWTO t70-Mn> C 1L£ NOTE: A * °* c « " " » ' «u. K UKD V CMU KMT a DCOUWD Figure 1. TANDY 1000 SX Interconnect Diagram 2 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS SPECIFICATIONS (Computer and Keyboard) Processor: Intel 8088 - 2 Dimensions: Computer - 16 3/4" x 13 1/2" x 5 3/4" Keyboard - 16 1/4" x 8" x 1.5" Weight: Computer - 18 lbs (with 2 Floppy Disk Drives) Keyboard - 3 lbs 4 oz. Power Requirements: Range: 105 VAC to 135 VAC Nominal: 120 VAC, 60 Hz, 3 Amp maximum With 2 Floppy Disk Drives, 640K Memory: AC Current: 350 - 400 mA with Floppy doing R/W tests. Leakage Current: 0.5 mA Disk Drive: +5 VDC +12 VDC Idle 330 mA 160 mA R/W 300 mA 330 mA R/W 220 mA (Min.) 600 mA (Max.) Main Logic Board: 1700 mA 360 mA Option Cards: -12VDC, 9 m,A Operating Environment: Temperature: 55 to 85 degrees F (13 to 30 degrees C) Humidity: 40% to 80% non-condensing Non-Operating Environment: Temperature: -40 to +160 degrees F (-40 to 71 degrees C) Humidity: 20% to 90% non-condensing Disk Drive Specifications Power: Supply Voltage +5 VDC Input +12 VDC Input Ripple 0 to 50 kHz 100 mV 100 mV Tolerance Including Ripple +/-5% +/-5% Standby Current Nominal 190 mA 160 mA Worst Case 220 mA 190 mA Operating Current Nominal 260 mA 600 mA Worst Case 300 mA 1000 mA Environment: Temperature Operating 40 to 115 degrees F (4 to 46C) Nonoperating -8 to 140 degrees F (-22 to 60C) Relative Humidity Operating 20% to 80% (noncondensing) Nonoperating 5% to 95% (noncondensing) 3 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Connector pin Assignments Jl — Speaker Interface (2-Pin Vertical Header) 1 — Sound 2 — Ground J2 — Right Joystick (6-Pin Rt. Angle Circular Din) 1 — Y Axis 2— X Axis 3 — Ground 4— Switch 1 5 — +5 VDC 6— Switch 2 J3 — Left Joystick (6-Pin Rt. Angle Circular Din) 1 — Y Axis 2— X Axis 3 — Ground 4— Switch 1 5 — +5 VDC 6— Switch 2 J4 — Keyboard Interface (8-pin Rt. Angle Circular Din) 1 — KBDDATA 2— KBDBUSY* 3 — Ground 4— KBDCLK 5 — +5 VDC 6— KBDRST 4 ~ MULTIDATA 8— MULTICLK 4 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS J5 — Floppy Disk Interface (Dual 17-Pin Vertical Header) 1 — Ground 2 — NC 3 — Ground 4 — NC 5 — Ground 6 — NC 7 — Ground 8 — INDEX* 9 — Ground 10 — DSO* 11 — Ground 12 — DS1* 13 — Ground 14 — NC 15 — Ground 16 — MTRON* 17 — Ground 18 — DIR* 19 — Ground 20 — STEP* 21 — Ground 22 — WRDATA* 23 — Ground 24 — WEN* 25 — Ground 26 — TRK0* 27 — Ground 28 — WRPRT* 29 — Ground 30 — RDDATA* 31 — Ground 32 — SIDESELECT* 33 — Ground 34 — DRVRDY* J6 — DC POWER (9-PIN VERTICAL HEADER) 1 — +5 VDC 2 — +5 VDC 3 — +5 VDC 4 — Ground 5 — Ground 6 — Ground 7 — +12 VDC 8 — -12 VDC 5 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS J7 — Parallel Interface (34-Pin Card Edge) 1 — PPSTROBE* 2 — Ground 3 — PPDATAO 4 — Ground 5 — PPDATAl 6 — Ground 7 — PPDATA2 8 — Ground 9 — PPDATA3 10 — Ground 11 — PPDATA4 12 — Ground 13 — PPDATA5 14 — NC 15 — PPDATA6 16 — Ground 17 — PPDATA7 18 — Ground 19 — PPACK* 20 — Ground 21 — PPBUSY 22 — Ground 23 — PPPAEM 24 — Ground 25 — PSEL* 26 — NC 27 — PPAUTOF* 28 — PPFAUL1 29 — NC 30 — PPINIT* 31 — Ground 32 — NC 33 — Ground 34 — +5V J8 -- Light Pen (9-Pin Connector Male Rt. Angle D-Subminiature) 1 — +5 VDC 2 — Ground 3 — LPIN 4 — LPSW* 5 — NC 6 — NC 7 — NC 8 — NC 9 — NC J9 — RGBI Video (9-Pin Socket Rt. Angle D-Subminiature) 1 — Ground 2 — Ground 3 — Red 4 — Green 5 — Blue 6 — Intensity 7 — Video 8 — HSYNC 9 — VSYNC J10 — Composite Output (Dual Rt. Angle RCA-Type Phone Jack) A — Video B — Audio 6 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Jll, J12, J13, J14, J15 — Expansion Interface Connectors (Dual 31-Pin Card Edge) A01 — NMI B01 — Ground A02 -- D7 BO2 — BRESET A03 — D6 B03 — +5 VDC A04 — D5 B04 — IR2 A05 — D4 B05 5 VDC A06 ~ D3 BO6 — FDCDMARQ* A07 -- D2 B07 — -12 VDC A08 — Dl B08 — AUDIOIN A09 — Dl B09 — +12 VDC A10 — READY BIO — Ground All — AEN Bll — MEMW* A12 — A19 B12 — MEMR* A13 — A18 B13 — IOW* A14 — A17 B14 ~ IOR* A15 — A16 B15 — DACK3* A16 ~ A15 B16 ~ DRQ3* A17 — A14 B17 — DACKl* A18 — A13 B18 — DRQl* A19 — A12 B19 — REFRESH* A20 — All B20 — CLK A21 — A10 B21 ~ IR7 A22 ~ A09 B22 ~ IR6* A23 — A08 B23 ~ IR5 A24 — A07 B24 ~ IR4 A25 ~ A06 B25 — IR3 A26 — A05 B26 ~ FDCDACK* A27 ~ A04 B27 ~ DMATC A28 — A03 B28 — ALE A29 — A02 B29 — +5 VDC A30 — A01 B30 — OSC A31 — A00 B31 — Ground 7 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Tandy 1000 SX and IBM I/O Bus Cross Reference Chart Pin No. Description B21 IBM - Interrupt Request 7. TANDY 1000 SX - Optional Interrupt Request 7. B22 IBM - Interrupt Request 6. TANDY 1000 SX - Optional Interrupt Request 6. Pin Mo. Signal Name Description B08 AUDIOIN IBM - Reserved TANDY 1000 SX - Audio input is supplied from an optional board on the I/O bus to a multiplexer on the main logic board for an output to the external speaker. Note: All other pins are identical to the IBM PC. See Section 3 for the connector pin assignments. 8 Tandy 1000 SX Reference Manual TANDV COMPUTER PRODUCTS BUS INTERFACE SPECIFICATIONS This specification is for the primary bus on the Tandy 1000 SX main logic board, which also is available to the option board connectors. The specification describes the signals in the following manner. See Figures 2 - 4 . o The following signal nomenclature is used in the schematic and literature. Signals designated with the suffix "*" are logically "true low" (normal inactive state is high); if they are not so designated, the signal is logically "true high." o Direction — input or output — is referenced to the CPU. o Brief functional description of the signal. o Description of the "drive" or "load" characteristics of the signal. This includes the specific source by IC type and reference designator, drive capability for "output" signals, and actual load for "input" signals. The drive/load is defined in "unit loads" and specified as "high/low." This specification is for the main logic board only. Some signals have an alternate source, an external bus master such as the DMA. o 1 Unit Load (UL) is defined as: Ioh = .04mA @ 2.4V Iol = 1.6mA § 0.5V Signal Listing A00 - A19 0 ADDRESS SOURCE: 43,42,U54 Drive - 65/15 UL Latch Strobe - ALE Output Enable - AEN Alternate external source D0-D7 I/O DATA SOURCE: U52 Drive - 37/15 UL Direction Control - READ* (CPU read signal) Enable - DEN* ALE 0 ADDRESS LATCH STROBE SOURCE: U56 IOW* 0 I/O WRITE STROBE Drive - 50/7.5 UL IOR* 0 I/O READ STROBE Output Enable - AEN MEMW* 0 MEMORY WRITE STROBE Pull-Up - 4.7K Ohms 9 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS MEMR* 0 MEMORY READ STROBE Alternate external CLK 0 CPU CLOCK 4.77MHz, 33% duty cycle, 7.16MHz, 50% duty cycle. SOURCE: U54 Drive - 75/7.5 UL OSC 0 OSCILLATOR 14.32MHz, 50% duty cycle SOURCE: U54 Drive - 75/7.5 UL NMI I NON-MASKABLE To System NMI INTERRUPT Load: 1/1 UL, U117 READY I SYSTEM WAIT SOURCE: OPEN-COLLECTOR OR 3-STATE BUFFERS Load: 1 UL and 1.0K ohm pull-up. 10/0.9 UL Set LOW by Peripherals (I/O or Memory) to extend READ or WRITE cycles. BRESET 0 SYSTEM RESET Power On or Manual SOURCE: U54 Drive: 75/7.5 UL AEN 0 BUS GRANT To external masters SOURCE: U82 Drive - 75/7.5 UL IR2 I INTERRUPT REQUEST*2 To system interrupt controller IR3 I INTERRUPT REQUEST*3 Load: 1 UL and 2.2K pull-down IR4 I INTERRUPT REQUEST*4 IR5 I INTERRUPT REQUEST*5 IR6 I INTERRUPT REQUEST#6 IR7 I INTERRUPT REQUEST#7 AUDIO IN I From External Sound Source Load: 10k ohms. 10 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS AUDIO 0 To External Source Drive: 1.25 Volts P-P into 10K DRQ1 I REQUEST DMA CHANNEL*1 Load: 8237A-5/9517A FDCDMARQ I REQUEST DMA CHANNEL*2 1 MOS load 40/160 UL DRQ3 I REQUEST DMA CHANNEL*3 REFRESH* 0 ACKNOWLEDGE DRQO* Dedicated output DACK1* 0 ACKNOWLEDGE DRQ1* acknowledges from DMA. FDCDACK* 0 ACKNOWLEDGE DRQ2* Drive: 8237A-5/9517A DACK3* 0 ACKNOWLEDGE DRQ3* 2/2 UL DMATC 0 TERMINAL COUNT Used by DMA Controller to indicate Terminal Count reached. Drive: 2/2 UL +5VDC + 5VDC 4% 0.6 Amps per slot available on the bus. +12VDC +12VDC 5% 0.1 Amps per slot available on the bus. -12VDC -12VDC +8.3% - 25% 0.06 Amps available on the bus. GROUND Power Return for +5, +12, -12 VDC. 11 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Figure 2. Light Blue to System Timing (1 of 2) Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Figure 2. Light Blue to System Timing (2 of 2) Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Figure 3. Big Blue to System Timing (1 of 2) Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS Figure 3. Big Blue to System Timing (2 of 2) Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS Figure 4. Tan to System Timing TANDY S YSTEHS DESIGN FILMWORK FAB. SPEC.i TSD- 868- PR0JEC1 N Q . I E S ? 1 ATEi JB/B3/BG TITLEiHAIN LDCIC PCI C/S SILKSCREEN DWG. NC .t 1700337 REV.A PART N( . .8709699 DESIGN ;RID. .-.025 -.025 DES1GNE !' IDDI 1 1 11 INSPj Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Tandy 1000 SX Theory of Operation The block diagram for the Tandy 1000 SX (sheet 1 of the schematic) shows the main elements of the computer system. The most important single element is the Central Processor Unit (CPU). The other major elements of the Tandy 1000 SX are the Timing and CPU Control chip, the video interface, the Direct Memory Access controller (DMA) and system memory, system Read Only Memory (ROM), system timer (8253), expansion bus, and five input/output (I/O) interfaces (keyboard, printer, floppy disk, joystick, and sound). The CPU section of the Tandy 1000 SX consists of the 8088 CPU chip, the 8259A interrupt controller chip, and an optional 8087 numeric co-processor. These three devices share the CPU address/data bus, which is buffered before being supplied to the rest of the computer. The CPU data bus is buffered by U52 (74LS245) before being supplied to the rest of the computer. The address bus is buffered as follows: 16 of 22 address bus lines are latched and buffered by U42 and U43 (74LS373). Four lines (A12-A15) are buffered by 1/2 of U54 (74LS244). CPU Bus The 8087 numeric data co-processor option provides up to 100 times the performance of the CPU alone on numeric applications. To install this option in your Tandy 1000 SX, simply remove the jumper connecting E3 to E4 and install the 8087-2 part in the socket for U33. Also on the CPU bus, the 8259A interrupt controller chip supplies the maskable interrupt input to the CPU. The 8259A has eight interrupt inputs controlled through software commands. It can mask (disable) and prioritize (arrange priority) to generate the interrupt input to the CPU. The eight interrupts are assigned as follows: #0 Timer Channel 0 Software Timer #1 Keyboard Keyboard Code Receiver #2 Interrupt on the Bus Hard Disk Controller #3 Interrupt on the Bus Modem #4 Interrupt on the Bus RS-232 #5 Vertical Sync Optional Bus Interrupt #6 Floppy Disk Controller Optional Bus Interrupt #7 Printer Optional Bus Interrupt 17 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Interrupts 0 and 1 are connected to system board functions as indicated in the chart. Interrupts 2 - 4 are connected directly to the expansion bus, with the normally assigned functions listed in the chart. Interrupts 5 - 7 are connected through a switch to the system board function listed, and are also connected to the expansion bus. To use interrupt 5, 6, or 7 on the bus, the system board function must be disconnected (set the appropriate switch to off). Please note that disconnecting the normal system board function may cause some application programs to fail or operate incorrectly. After being buffered, the CPU address/data bus is connected directly to the 5 expansion bus connectors. Also, the address bus is directly connected to the rest of the system board. The data bus is separately buffered by (U40) before being supplied to system board. U18 is a programmed logic device that is used to provide the ROM chip select signal, enable gating for the non-maskable interrupt, and chip select and direction signals for U40 (the system board data buffer). Table 1 lists the equations for U40. The Tandy 1000 SX uses a 128K ROM to store the BIOS and diagnostic operating code. The ROM chip select enables the ROM for the top 64K of memory (F0000 - FFFFF). The next major functional block of the Tandy 1000 SX is the CPU control and timing chip (light blue). A block diagram of this 40 pin custom part is shown in Figure 5. This chip accepts 16MHz and 28.6 MHz clock signals from the master oscillator circuits and generates clocks for all of the other circuitry on the board. This chip also generates the system reset signal and derives the CPU control signals based on status inputs from the CPU chip. The last major function of this part is to generate timing signals and a chip select signal for the FDC. The next major block of the Tandy 1000 SX is the video interface circuitry. A block diagram of the video interface custom circuitry is shown in Figure 6. This custom part contains all of the logic necessary to generate an IBM compatible color video display. The video interface logic consists of the 84 pin custom video circuit, 4 - 64K X 4 RAMS, a 74LS244 buffer, and associated logic for generation of composite video. 18 Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS System Control IFL Inputs PIN 1 = !mio PIN 2 = !memr PIN 3 al9 PIN 4 al8 PIN 5 al7 PIN 6 = Imemios PIN 7 Sfdcack PIN 8 = ! ior PIN 9 = !refresh PIN 11 = nmien PIN 12 = nmi PIN 13 al6 Outputs PIN 14 = PIN 15 = enbnmi PIN 16 = !romcs PIN 17 = Ibufenb PIN 18 = bufdir PIN 19 Logic Equations !bufdir = memr & !mio & Ifdcack fmemr & !mio & memios #memr & !mio & ior #ior & mio #ior & fdack & •memios & ! memr; ibufenb = Imemios & !romcs & Ifdcack imemios & fdcack; romcs = memr & !refresh & al9 & al8 & al7 & al6; enbnmi - nmien & nmi; Table 1 19 Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS Figure 5. Timing Control Generator Block Diagram 20 Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS Figure 6. Video Controller Block Diagram 21 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS The Tandy 1000 SX video interface circuitry controls 128K of memory. This RAM is shared by the CPU and the video. Normally, the video only requires 16K or 32K for the video screen and the remainder of the 128K is available for system memory uses. The Tandy 1000 SX video interface custom circuit is composed of a 6845 equivalent design, dynamic RAM address generation/timing, and video attribute controller logic. Normal functioning of the video interface custom circuit is as follows. After the 6845 is programmed with a correct set of operating values (Table 2 ) , the address inputs to the dynamic RAMs are generated by a 4:1 multiplexer. This Mux switches between video (6845) addresses and CPU address as well as between row and column address. Also, the video interface chip provides the RAM timing signals and generates a wait signal to CPU for proper synchronization with the video RAM access cycles. The outputs from the RAM chips are only connected to the video interface custom circuit, so all CPU read/write operations are buffered by this part. During a normal display cycle, video data from the RAM chips is first latched in the Video Attribute latch and the Video Character latch. The video interface requires a memory organization of 64K X 16 and will latch 16 bits of memory during each access to RAM. From the output of the two latches, the data is supplied to the character ROM for the Alpha modes or to the shift registers for graphics modes. A final 2:1 Mux is used to switch between foreground or background in the alpha modes. From the 2:1 Mux the RGBI data is combined with the PC color select data and latched in the Pre-Palette latch. This latch synchronizes the RGBI data before it is used to address the Palette. The palette mask Mux is used to switch between incoming RGBI data and the palette address register. During a CPU write to the palette, this address register selects one of the 16 palette locations. Also, the Palette mask Mux allows any of the input RGBI bits to be set to zero. The palette allows the 16 colors to be remapped in any desired organization. Normally, the palette is set for a 1:1 mapping (red = red, blue = blue, etc.) for PC compatibility. However, instantly changing the on-screen colors is a very powerful tool for animation or graphics programs. 22 Tandy 1000 SX Reference Manual PROGRAMMING T A B L E F O R T H E 6845 A l l V a l u e s in B e x (Decimal) Register 40 x 25 80 x 25 Low Res. High Res. 40 x 25 80 x 25 Low Res High Res Address Alpha Alpha Graphics Graphics Alpha Alpha Graphics Graphics uo Horizontal Total 36 (56) 71 (113) 38 (56) 71 (113) 38 (56) 71 (113) 38 (56) 71 (113) Horizontal 01 Displayed 28 (40) 50 (80) 28 (40) 50 (80) 28 (40) 50 (80) 28 (40) 50 (80) Horizontal 02 Sync Position 2D (45) 59 (89) 2D (45) 59 (89) 2D (45) 59 (89) 2D (45) 59 (89) Horizontal | 03 Sync Width 08 (8) 10 (16) 08 (8) 10 (16) 08 (8) 10 (16) 08 (8) 10 (16) 04 Vertical Total 1C (28) 1C (28) 7F (127) 3F (63) IF (31) IF (31) 7F (127) 3F (63) Vertical 05 Total Adjust 01 (1) 01 (1) 06 (6) 06 (6) 06 (6) 06 (6) 06 (6) 06 (6) Vertical 06 Displayed 19 (25) 19 (25) 64 (100) 32 (50) 19 (25) 19 (25) 64 (100) 32 (50) Vertical 107 Sync Position 1A (26) 1A (26) 70 (112) 3b (56) lc (28) 1C (28) 70 (112) 38 (56) 08 Interlace Mode 02 (2) 02 (2) 02 (2) 02 (2) 02 (2) 02 (2) 02 (2) 02 (2) Max Scan 09 Line Address 08 (8) 08 (8) 01 (1) 03 (3) 07 (7) 07 (7) 01 (1) 03 (3) 10 Cursor Start 06 (6) 06 (6) 06 (6) 06 (6) 06 (6) 06 (6) 06 (6) 06 (6) 11 Cursor End 07 (7) 07 (7) 07 (7) 07 (7) 07 (7) 07 (7) 07 (7) 07 (7) Start 12 Address (High) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) Start 13 Address (Low) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) 00 (0) Monitor Mode 1 TV Mode Table 2 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS After the Palette, the RGBI data is resynchronized in the Post Palette register. The final logic before the RGBI data is buffered off the chip is the Border Mux. This Mux allows the Border to be replaced with any color selected by the border color latch. This latch is normally disabled in PC modes, but it is used in all PC jr modes. The next major functional block in the Tandy 1000 SX is the DMA/Memory controller chip. A block diagram for this part is shown in Figure 7. j This custom part is composed of the equivalent of an 8237A-5 Direct Memory Access chip and a small amount of additional logic to complete the DMA function. Also, this chip provides timing and refresh addresses to the system memory. In the Tandy 1000 SX, this system memory is 256K and may be expanded to 512K of memory (with the video/system memory, this is a total of 640K on the main logic board). To expand the memory to 640K total, simply remove the jumper connecting El to E2 and add the 8 additional RAM chips in Bank 1. The final system function other than I/O is the 8253 timer chip. This part is composed of three independent programmable counters. The clock for all three counters is 1.19 25 MHz. Counter 0 and 1 are permanently enabled. Counter 2 is controlled by port Hex 0062, bit 0. Counter #0 is connected to system interrupt #0 and is used for software timing functions. Counter #1 is used for timing of the refresh function. Counter 2 is connected to the sound circuit and also to port Hex 0061, bit 5. The sound circuit is one of the five I/O functions of the Tandy 1000 SX. The circuit provides sound output for the internal speaker and also for an external sound circuit. A functional block diagram of this circuit is shown in Figure 8. The main source of sound in the Tandy 1000 SX is the 76496 complex sound generator. This device has 3 tone generators and 1 white noise generator. Each tone generator may be programmed for frequency and attenuation. Also, this device has an audio input pin which is connected to the gated output of timer channel 2. This audio input signal is mixed with the sound generator signal and supplied to the audio output pin. From the output of the 76496, the sound signal is connected to a dual analog multiplexer. The multiplexer is switched by port 61, bits 5 and 6. One section of the multiplexer is used for the internal speaker, and the other section is used for the external audio signal. The section controlling the internal speaker may be disabled by port 61, bit 4. 24 Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS Figure 7. DMA/Memory Controller Chip Block Diagram 25 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Figure 8. Sound Functional Block Diagram 26 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS The next I/O function of the Tandy 1000 SX is the Keyboard interface custom circuit. A block diagram of this part is shown in Figure 9. The heart of this custom part is several read-write registers that are used to control the keyboard interface logic, sound circuitry, and FDC circuitry. For the interface to the keyboard connector, a 164 type shift register is used to load the serial data and allow the CPU to read it as 8 parallel bits. The FDC circuitry consists of a write-only latch for the FDC control signal plus additional circuitry to allow the 2 drive select signals to be switched. Joystick Interface The joystick interface converts positional information from hand-held joysticks (1 or 2) into CPU data. Each joystick provides 1 or 2 push-buttons and X,Y position for a total of 4 bits each. You can use 2 joysticks. The joystick handle is connected to two potentiometers mounted perpendicular to each other; one for X position, one for Y position. Through the cable, the main logic board applies +5 VDC to one side and ground to the other of the pots. The pot wiper is the position signal: a voltage between 0 and +5 VDC. This signal is applied to one input of a comparator U17. The other comparator input is the reference signal ( a ramp between 0.0 to +5.0 volts.) When the position signal is equal or less than the reference signal, the comparator output goes true. This comparator output is the X or Y position data bit. The ramp is reset to 0.0 VDC whenever a "write" is made at Port 200/201 Hex. The IOW* signal turns on Q 2 , which drains C118 to 0.0 volts. When Q2 is turned off, Ql, R12, R13, R14, and CRl create a constant-current source that linearly charges C118 to +5.0 VDC in 1.12 milliseconds. The joystick information is "read" by the CPU at Port 200/201 Hex through U21. See Figure 10. One of the most important I/O functions of the Tandy 1000 SX is the floppy disk interface. This I/O function consists of the 765 controller and support circuitry. In the Tandy 1000 SX, the support circuitry is broken up and located in several of the other custom circuits. The clock and chip select signals for the rest of the FDC circuit are generated by Light Blue. The motor on and drive select signals are supplied from the keyboard interface custom circuit. Also, the logic to switch between the DMA terminal count and the CPU terminal count is located in the printer interface custom chip. 27 Tandy 1000 SX Reference Manual . TANDV COMPUTER PRODUCTS Figure 9. Keyboard Interface Block Diagram 28 Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS • PROGRAMMING CONSIDERATIONS IOR's @REGULAR INTERVALS ONCE TRIGGERED BY SOFTWARE THE INTERGRATOR CIRCUIT PRODUCES A PULSE THE DURATION OF WHICH IS DEPENDENT ON JOYSK POSITION. Figure 10. Joystick Interface Block Diagram 29 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS The bulk of the FDC interface is handled by the 765 controller chip and the 9216 digital data separator. The 765 generates write data which has pre-compensation added by U50. Read data from the floppy drive is separated into data and clock for the 765 by the 9216 data separator. The final I/O interface of the Tandy 1000 SX is the Printer Interface, shown in block diagram form in Figure 11. This part supplies all of the signals required to interface to a typical parallel printer. These signals are 8 data out lines, plus various handshake control signals. Also, the printer interface will generate an interrupt to the CPU if enabled. 30 Tandy 1000 SX Reference Manual . TANDY COMPUTER PRODUCTS Figure 11. Printer Interface Block Diagram 31 Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS 32 Tandy 1000 SX TANDY COMPUTER PRODUCTS Reference Manual 1 / 0 MAP SUMMARY Block Usage Function 0000-001F 0000-000F DMA Function 0020-003F 0020-0021 Interrupt Controller 0040-005F 0040-0043 Timer 0060-007F 0060-0063 PIO Function 0080-009F 0080-0083 DMA Page Register 00A0-00BF 00A0 NMI Mask Register 00C0-00DF 00C0-00C1 Sound Generator 00E0-01FF Reserved 0200-020F 0200-0201 Joystick Interface 0210-031F Reserved 0320-032F Reserved Hard Disk 0330-036F Not Assigned 0370-037F 0378-037B Printer 0380-03CF Not Used 03D0-03DF All System Video 03E0-03EF Reserved 03F0-03FF 03F2,F4,F5 Floppy Disk Controller 0400-FFFF Not Usable Address Description 0000 DMA Controller IOW* = 0: Channel 0 Base and Current Address Internal Flip/Flop = 0: Write A0-A7 Internal Flip/Flop = 1: Write A8-A15 IOR* = O: Channel 0 Current Address Internal Flip/Flop = 0: Read A0-A7 Internal Flip/Flop = 1: Read A8-A15 0001 DMA Controller IOW* = 0: Channel 0 Base and Current Word Count internal Flip/Flop = 0: Write W0-W7 Internal Flip/Flop = 1: Write W8-W15 IOR* = 0: Channel 0 Current Word Count Internal Flip/Flop = 0: Read W0-W7 Internal Flip/Flop = 1: Read W8-W15 0002 DMA Controller IOW* = 0: Channel 1 Base and Current Address Internal Flip/Flop = 0: Write A0-A7 Internal Flip/Plop = 1: Write A8-A15 IOR* = 0: Channel 1 Current Address Internal Flip/Flop = 0: Read A0-A7 Internal Flip/Flop = 1: Read A8-A15 33 Tandy 1000 SX TANDY COMPUTER PRODUCTS Reference Manual Address Description 0003 DMA Controller IOW* = 0: Channel 1 Base and Current Word Count Internal Flip/Flop = 0: Write W0-W7 Internal Flip/Flop = 1: Write A8-A15 IOR* = 0: Channel 1 Current Word Count Internal Flip/Flop = 0: Read W0-W7 Internal Flip/Flop = 1: Read W8-W15 0004 DMA Controller IOW* = 0: Channel 2 Base and Current Address Internal Flip/Flop = 0: Write A0-A7 Internal Flip/Flop = 1: Write A8-A15 IOR* = 0: Channel 2 Current Address Internal Flip/Flop = 0: Read A0-A7 Internal Flip/Flop = 1: Read A8-A15 0005 DMA Controller IOW* = 0: Channel 2 Base and Current Word Count Internal Flip/Flop = 0: Write W0-W7 Internal Flip/Flop = 1: Write W8-W15 IOR* = 0: Channel 2 Current Word Count Internal Flip/Flop = 0s Read W0-W7 Internal Flip/Flop = 1: Read W8-W15 0006 DMA Controller IOW* = 0: Channel 3 Base and Current Address Internal Flip/Flop = 0: Write A0-A7 Internal Flip/Flop = Is Write A8-A15 IOR* = 0: Channel 3 Current Address Internal Flip/Flop = 0: Read A0-A7 Internal Flip/Flop = 1: Read A8-A15 0007 DMA Controller IOW* = 0: Channel 3 Base and Current Word Count Internal Flip/Flop = 0: Write W0-W7 Internal Flip/Flop = 1: Write W8-W15 IOR* = 0: Channel 3 Current Word Count Internal Flip/Flop = 0: Read W0-W7 Internal Flip/Flop = 1: Read W8-W15 34 Tandy 1000 SX TaM r,v e n M B I TANDY COMPUTER . T . B MPRODUCTS r«,.jFvro Reference Manual 0008 DMA Controller IOW* = 0, Write Command Register Bit Description 0 0 = Memory to Memory Disable 1 = Memory to Memory Enable 1 0 = Channel 0 Address Hold Disable 1 = Channel 0 Address Hold Enable X If bit 0 = 0 2 0 = Controller enable 1 = Controller disable 3 0 = Normal timing 1 = Compressed timing X If bit 0 = 1 4 0 = Fixed priority 1 = Rotating priority 5 0 = Late write selection 1 = Extended write selection X = If bit 3 = 1 6 0 = DREQ sense active high 1 = DREQ sense active low 7 0 = DACK sense active low 1 = DACK sense active high IOR* = 0, Read Status Register Bit Description 0 1 = Channel 0 has reached TC 1 1 = Channel 1 has reached TC 2 1 = Channel 2 has reached TC 3 1 = Channel 3 has reached TC 4 1 = Channel 0 Request 5 1 = Channel 1 Request 6 1 = Channel 2 Request 7 1 = Channel 3 Request 0009 DMA Controller IOW* = 0, Write Request Register Bit Description 0-1 Bitl BitO 0 0 Select channel 0 0 1 Select channel 1 1 0 Select channel 2 1 1 Select channel 3 2 0 Reset request bit 1 Set request bit 3-7 Don•t Care IOR* = 0, Illegal 35 Tandy 1000 SX TANDY COMPUTER PRODUCTS Reference Manual 000A DMA Controller IOW* = 0 , Write Single Mask Register Bit Description 0-1 Bitl BitO 0 0 Select channel 0 mask bit 0 1 Select channel 1 mask bit 1 0 Select channel 2 mask bit 1 1 Select channel 3 mask bit 2 0 Clear mask bit (Disable Channel) 1 Set mask bit (Disable Channel) 3-7 Don't care IOR* = 0, Illegal 000B DMA Controller IOW* = 0, Write Mode Register Bit Description 0-1 Bitl BitO 0 0 Channel 0 select 0 1 Channel 1 select 1 0 Channel 2 select 1 1 Channel 3 select 2-3 Bit3 Bit2 0 0 Verify transfer 0 1 Write transfer to memory 1 0 Read transfer to memory 1 1 Illegal X If bits 6 and 7 = 11 4 0 Autoinitialization disable 1 Autoinitialization enable 5 0 Address increment select 1 Address decrement select 6-7 Bit7 Bit6 0 0 Demand mode select 0 1 Single mode select 1 0 Block mode select 1 1 Cascade mode select IOR* = 0, Illegal 000C DMA Controller IOW* = 0, Clear Byte Pointer Flip/Flop IOR* = 0, Illegal 36 Tandy 1000 SX . TANDY COMPUTER PRODUCTS Reference Manual 000D DMA Controller IOW* = 0, Master Clear IOR* = 0 , Read Temporary Register 000E DMA Controller IOW* = 0, Clear Mask Register IOR* = 0, Illegal 000F DMA Controller IOW* = 0, Write all Mask Register Bits Bit Description 0 0 = Clear channel 0 mask bit (Enable) 1 = Set channel 0 mask bit (Disable) 1 0 = Clear channel 1 mask bit (Enable) 1 = Set channel 1 mask bit (Disable) 2 0 = Clear channel 2 mask bit (Enable) 1 = Set channel 2 mask bit (Disable) 3 0 = Clear channel 3 mask bit (Enable) 1 = Set channel 3 mask bit (Disable) 4-7 Don't care IOR* = Illegal 0010 - 001F Not Used Address Description 0020 8259A Interrupt Controller Note: Initialization Words are setup by the operating system and are generally not to be changed. Writing an initialization word may cancel pending interrupts. Bit4 = 1: INITIALIZATION COMMAND WORD 1 BitO = 0: ICW4 needed = 1: ICW4 not needed Bitl = 0: Cascade Mode = 1: Single Bit2 = Not used Bit3 = 0: Edge Triggered Mode = 1: Level Triggered Mode when the SL bit is active Bit5 - 7: Not Used 37 Tandy 1000 SX TANDY COMPUTER PRODUCT8 Reference Manual Bit4 = 0 & OPERATION CONTROL WORD 2 Bit3 = 0 BitO - 2: Determine t h e i n t e r r u p t l e v e l a c t e d on when t h e SL b i t i s a c t i v e I n t e r r u p t Level = 0 1 2 3 4 5 6 7 BitO (LO): 0 1 0 1 0 1 0 1 Bitl (Ll): 0 0 1 1 0 0 1 1 Bit2 HA2 002 [ YHD2 MA2 002^- YMD6 -MA3 003 f- YHD3 MA3 D03l- YHD7 . HA4 ] A6 64KX4 MA6 54KX4 | ORAH [ ORAH . HHE1» U: RAS. CAS. HCAS. OE. •JOE. CAS» lXTT +5VO- "r l l .1 "~r S~r 8-r SUBTITLE ~ OHO HO REV 8000272 A VIDEO MEMORY SCALE I SHEET i a a a a a i iJ SH 2 > ^ ^ +5VQ- r- —1_ B —L r- —L to _ l _ p _L m _1_ S S 5 5 S S TTTTTT SUBTITLE DW6 NO I REV FLOPPY DISK 6000278 | A CONTROLLER SCALE I SHEET ' OF,,, 8 OHM SPEAKER NOTES: U17 P I N 3 - + 12V U17 PIN 12 - GNO I SUBTITLE AUDIO-JOYSTICK SCALE SHEET D0D1D2D30* SYSRST 100 A01 IOH> IOR« PIOCS DOHCLK KBDCLK KBDOATA TMROUT! RSIZO •5VO- NOTES: 1 . C111-C116 ARE 20 PICO-FARADS. 2 . CH.Cn ARE 0 . 1 MICRO-FARADS. SUBTITLE 0M6 NO REV KEYBOARD 8000272 A SCALE I SHEET PARALLEL INTERFACE CONNECTOR 34 PIN CARD EDGE t i i i st 4 st £ £ £ i i GND ^7 VR2 79M05CT -12V . 1+ 5 IN OUT r 5T° T' 6MD 7 f- 1— 5 <- 4 (— 3 o « o ^ 3 •" a 5 oi 3 Q S o S 5 o - »Is ^> 1£ SUBTITLE REV PRINTER INTERFACE A SCALE SHEET g Of 1 Q B000272 EXPANSION BUS SCALE I SHEET TANDY COMPUTER PRODUCTS 1000 SX POWER SUPPLIES (SINGLE AND DDAL INPUT) 1000 SX 67 Watt Single Input Power Supply . TANDY COMPUTER PRODUCTS 1000 SX 67 WATT SINGLE INPUT POWER SUPPLY CONTENTS OPERATING CHARACTERISTICS BLOCK DIAGRAM THEORY OF OPERATION TROUBLESHOOTING PARTS LIST PCB ART SCHEMATIC OPERATING CHARACTERISTICS MINIMUM TOPICAL MAXIMUM UNITS Operating Voltage Range 90 120 135 VAC Line Frequency 47 50/60 63 Hz Output Voltages Vol 4.85 5.00 5-15 V Vo2 11.40 12.00 12.60 V Vo3 -13.20 -12.00 -10.80 V Output Loads Iol 1.25 - 7.0 A Io2 0.15 - 2.4 A Io3 0 - 0.25 A Over Current Protection Current Limit I C U - - 14.0 A ICL2 - - 4.8 A ICL3 - - 1.0 A Over Voltage Protection Crowbar 5.8 - 6.8 V Output Noise Vol - - 50 mV P-P Vo2 - - 100 mV P-P Vo3 . - - 150 mV P-P Efficiency 63 65 - % Holdup Time Full Load at Nominal Line 16 - - mSec. Insulation Resistance Input to Output 7 1000 - M ohms Input to Ground 7 1000 - M ohms Isolation Input to Ground 1.7 - - KVDC Power Supply Block Diagram Theory of Operation AC Input Circuit This circuit is composed of an AC Power Switch, a fuse, a line filter, and an inrush current limiting circuit and rectifying smoothing circuit. The inrush current limiting circuit controls the charging current to electrolytic capacitors when power is ON. The line filter reduces noise that leaks from the power source to the AC line or that returns from the unit to the power souce; it satisfies the specifications of noise regulations. Control Circuit & Power Converter Circuit This circuit is a self oscillation switching system, generally called an R.C.C. (Ringing Choke Converter). The R.C.C. circuit does not fix the oscillating frequency. Whenever input voltage is high or the load becomes light, the oscillating frequency will be high. The current through R2 supplies transistor Ql 1 s base, then Ql turns ON. When transistor Ql is On, the Ql current excites the transformer Tl and voltage rises in the bias coil of T K 5 - 6 ) which leads transistor Ql positive bias, then transistor Ql turns ON. When transistor Ql turns ON, collector current charges the energy to primary inductance of transformer Tl (1-3). Increasing the collector current of transistor Ql to the point of: I > I .hfe C = B Then, transistor Ql immediately turns OFF. In a moment, transformer Tl will have negative voltage which will be supplied to the secondary circuit through a rectifier. A Short Circuit Protector is provided to protect transistor Ql from excess amounts of current when the secondary circuit becomes shorted. When transistor Q2 detects the voltage drop at R12, the collector of Q2 shorts the base and emitter of Ql. Then Ql stops working so that the circuit protects Ql from over current. The over current protector in the -12V line is provided by the three terminal positive voltage regulator ICl (built-in current fold back protection ) , which protects Ql against excessive current from the -12v line. 5V Output Voltage Detecting Circuit The circuit detects the change of output load current compared with the output voltage and AC line input voltage, which feeds back to the control circuit through a photo coupler PHCl to keep the output voltage stable. The Photo coupler isolates the primary and secondary circuits. Over-Voltage Protection When the +5 output voltage rises, between 5.8V to 6.8V, a control signal turns on the photo coupler PHC2 (Photo Thyristor) with the current of zener diode (DID and stops oscillation by turning on Q3, which turns off Ql in the switching circuit. In the case of stopped oscillation, correct the cause of the failure, and reinput the power. The overvoltage protection circuit will reset automatically under good conditions. The Photo Thyristor isolates the primary and secondary circuits. Troubleshooting Equipment for Test Set-Up Isolation Transformer(minimum of 500 VA rating) CAUTION Dangerously high voltages are present in this power supply. For the safety of the individual doing the testing, please use an isolation transformer. The 500 VA rating is needed to keep the AC waveform from being clipped off at the peaks. These power supplies have peak charging capacitors and draw full power at the peak of the AC waveform. 0-280V Variable Transformer (Variac)- Used to vary input voltage. Recommend 10 amp, 1.4 KVA rating, minimum. Voltmeter- Need to measure DC voltages to 50 VDC and AC voltages to 200 VAC. Recommend two digital multimeters. Oscilloscope- Need x 10 and x 100 probes. Load board with connectors- See Table 1 for values of loads required. The entry on the table for Safe Load Power is the minimum power ratings for the load resistors used. NOTE: Because of its design, this power supply must have a load present or damaging oscillations may result. Never test the power supply without a suitable load. Ohmmeter Set-Up Procedure Set up as shown in Figure 1. You will want to monitor the input voltage and the output voltage of the regulated bus, which is the +5 output, with DVM's. Also monitor the +5 output with the oscilloscope using 500 mv/div sensitivity. The DVM monitoring the +5 output can also be used to check the other outputs. See text of "No output" section for the test points within the power supply. Visual Inspection Check power supply for any broken, burned, or obviously damaged components. Visually check fuse, if any question check with ohmmeter. MINLOAD LOADR SAFE MAX SAFE OUTPUT LOAD POWER LOADR LOAD POWER LOAD + 5V 1.25 A 4 ohms 20 W 7.0 A 0.7 ohms 60 W + 12V 0.15 A 80 ohms 5W 2.4 A 5 ohms 50 W -12 V 0 0 0 0.25 A 48 ohms 5W Table 1 Load Board Values (67 watt) Figure 1 Test Setup Start-Up Load power supply with minimum load as specified in Table 1. Bring up power slowly with the Variable Transformer while monitoring the +5 output with the oscilloscope and DVM. Supply should start with approximately 40-60 VAC applied, and should regulate when 90 VAC is reached. If output has reached 5 volts, do a performance test on operating characteristics, if there is no output, refer to "No output" section. Waveforms Power Converter Circuit Collector Voltage Waveform Collector Current Waveform The input and output voltage are represented by the following equations: Vo = n x Vf Vo : Output voltage n : Turn ratio of the transformer Tl Vf : Collector Voltage at turn-off time Vin x Ton = Vf x Toff Vin : Input voltage Ton : Turn-on time of transistor Toff: Turn-off time of transistor No Output 1. Check fuse: If fuse is blown, replace it but do not apply power until the cause of the failure is found. 2. Preliminary Check on Major Primary Components: Check diode bridge (Dl), power transistor (Ql), and drive transistor (Q2,Q3) for shorted junctions. If any component is found shorted, replace it. 3. Preliminary Check on Major Secondary Components: Using an ohmmeter from an output that is common to each output and with output loads disconnected, check for shorted rectifiers or capacitors. 4. Check Over Voltage Protector: Read the output voltage with a DVM at the +5 output terminals by increasing the input voltage from Ov. Output voltage will appear at some input voltage and then go down to OV again. Check the Diode Dll or Photo Coupler (PHC2). 5. Check Ql Waveforms: Read waveform of Ql Collector with oscilloscope at x 100 probe. Figure 2 is Ql Collector normal waveform. Figure 3 is Ql Base normal waveform. Figure 4 is the waveforms when shorted circuits of the secondary parts as listed in Table 2. Check listed parts according to the waveform. Collector Waveforms Shorted Secondary Components D8, D9, D10, C16, C17, C19, C20, C21, Figure 4 C22, C23 Table 2. List of Shorted Circuits 50V/DIV 5ns/DIV Ql Collector Waveforms (Input 90 VAC Minimum Load) 0.5V/DIV 5|is/DIV Ql Base Waveforms (Input 90 VAC Minimum Load) 50V/DIV 5^s/DIV Ql Collector Waveforms - Shorted Secondary Components (Input 90 VAC) FARTS LIST K)R SWITCHING POWER SUPPLY UNIT PART NO . 8790085 Symbol Description QTY RS Part No. Kfr's Part No. CAPACITORS Cl mm O.luF 250VAC 1 XE-104 C2 Film 0.22uF 250VAC 1 XE-224 C3A/11 Ceramic 2200pF 400VAC 3 DE7100J222MVA1-KC or CS13-E2GA222MYAS C5 Ceramic lOOOOpF 400VAC 1 DE715OFZ1O3PVA1-KC or CS17-F2GA103ZYAS C6 Electrolytic 680uF 200WV 1 CETSW2D681 or 200LPSS680 C7/8/9 film 0.047uF 50V 3 50F2D473K or AMZF473IC50V CIO Pllm O.luF 50V 1 50F2D10te (0.1-0.22U F) or AMZF104K50V (Adjust 104-K-224K) C12 mm 0.22uF 250V 1 250MW224K C13 Ceramic 1500pF 2KV 1 DE1210R152K2K or CK45-B3DD152KYAR C15/25 Electrolytic luF 50WV 2 CEUSM1H010 C16 Electrolytic 2200uF 25WV 1 CEUSM1E222 C17/23/24 Electrolytic 470uF 25WV 3 cEus^aE47l C18 Electrolytic lOOOuF 16WV 1 CEUSM1C102 C19/20/21 Electrolytic 4700uF 10WV 3 CEUSK1A472 C22 Electrolytic 2200uF lowv 1 CEUSK1A222 CONNECTORS SKI Connector, 2 conductors Input 1 5277-02A SK2 Connector, 2 conductors Jan-out 1 5045-02F SK3-1 Connector, 10 conductors Output 1 5277-1OA SK3-2 Connector, 4 conductors Output 1 5273-04A DIODES Dl Silicon, Staclf 400V 4A 1 S4VB40 or RB404 or DBA40E D2/11 Silicon 5V 400mW 2 HZ5B3 D3A/5 Silicon 600V 1A 3 FI-06 cr V19G D6/7 Silicon 100V 200mA 2 DS446 or 1S954 D8 Silicon, Staclc 200V 5A 1 D5LCA20 or 5CH2SM Symbol Description QTY RS Part Ho. Mfr's Part No. D9 Silicon, Stadc 40V 10A 1 D10SC4M or 10CS04SM FUSE Fl Fuse, 250V 3A 1 MT4 3A250V Fuse Clip 2 P#5722113 HEATSINK HS1 Heatsink, for Ql 1 40-08440-01 HS2 Heatsink, for D8/D9/Q4/IC2 1 4P-D2-0180 INDUCTORS LI Choke Coil 8mH 1 TO-9161-1 or TO-9161 L2 Choke Coil 4.3uH 1 PSC-I56 INTEGRATED IC1 IC, Regulator 37V 150mA 1 TL431CLPB or UA431AWC IC2 IC, Regulator 12V 0.5A 1 L78M12 or NJM78M12 IC3 IC, Regulator 36V 30mA 1 M5236L PHOTO COUPLERS PHC-1 Photo Coupler 35V 50mA 1 TLP521-1 or PC817 PHC-2 Photo Coupler 400V 150mA 1 TLP541G or S22MD1 PRINTED CIRCUIT BOARD PCI Printed Circuit Board XPC 1 2P-P1-0177 105°C RESISTORS Rl Thermistor 8 1.6A 1 117-080-45202 or 8D-11 or D4FFL8R0P R2/3 Carbon 100K 1/2W 2 RD50P100KohmsJ or RD50S100KohmsJ R4 Metal-oxide 27 2W 1 RSF2B27ohmsJ (10-56) (Adjust 10-56ohms) R5/6/19/2O Metal-oxide 27K 2tf 4 RSF2B27KohmsJ Symbol Description QTY RS Part No. Mfr's Part No. H7/8 Metal-oxide 470 2W 2 RSF2B470ohmsJ R9 Carbon 560 1 RD25P560ohmsJ (330-750) or RD25S560ohmsJ (Adjust 330-750ohms) RIO Carbon 270 iAw 1 RD25P270ohmsJ (180-470) or RD25S270ohmsJ (Adjust 180-470ohms) Rll Carbon 47 1/4W 1 RD25P47ohmsJ or RD25S47ohmsJ R12 Cement 0.27 5W 1 MPC71 0.2?ohasK R13 Carbon 27K iAw 1 RD25P27KohrasJ or RD25S27KohmsJ R14 Carbon 39 1/4W 1 RD25P39ohmsJ or RD25S39ohmsJ R15 Carbon 180 l/4w 1 RD25P180ohmsJ or RD25S180ohmsJ R16 Carbon 100 1/4W 1 RD25P100ohmsJ or RD25S100ohmsJ R17/18/21/24 Carbon 2.2K iAw 4 RD25P2.2KohmsJ or RD25S2.2KohmsJ R22/27 Carbon 220 iAw 2 RD25P220ohmsJ or RD25S220ohmsJ R23 Carbon 18K iAw 1 RD25P18KohmsJ or RD25S18KohmsJ R25 Carbon IK 1/kV 1 RD25PlKohmsJ or RD25SlKohmsJ R26 Carbon 15K iAw 1 RD25P15KohmsJ or RD25S15KohmsJ R28 Carbon IK i/6w 1 RDl6PlKohmsJ or RDl6SlKohmsJ VRl/2 Variable 2K 0.5W 2 V6EK-PV(1S)2O2B or H0615-222B TRANSIT)]RMER Tl Transformer 1 TO-4342 TRANSIS1:TORS 01 Transistor 400V 12A 1 2SC2833 or 2SC2938 02/3 Transistor 50V 2A 2 2SD1207 or 2SC2655 04 Transistor 60V 5A 1 2SA1441 or 2SB1019 Power Supply PCB - Silkscreen Power Supply PCB - Component Side TAMURA SEISAKUSHO CO., LTD. 1000 SX 67 Watt Dual Input Power Supply . TANDY COMPUTER PRODUCTS 1000 SX 67 WATT DOAL INPUT POWER SUPPLY CONTENTS OPERATING CHARACTERISTICS BLOCK DIAGRAM THEORY OF OPERATION TROUBLESHOOTING PARTS LIST PCB ART SCHEMATIC OPERATING CHARACTERISTICS MINIMUM TYPICAL MAXIMUM UNITS Operating Voltage Range 90 120 135 VAC 198 240 264 Line Frequency 47 50/60 63 Hz Output Voltages Vol 4.85 5.00 5.15 V Vo2 11.40 12.00 12.60 V Vo3 -13.20 -120.00 -10.80 V Output Loads Iol 1.25 - 7.0 A Io2 0.15 2.4 A Io3 0 0.25 A Over Current Protection Current Limit ICL1 - 14.0 A ICL2 - 4.8 A ICL3 1.0 A Over Voltage Protection Crowbar 5.8 6.8 V Output Noise Vol - 50 mV P-P Vo2 - 100 mV P-P Vo3 150 mV P-P Efficiency- 63 65 - % Holdup Time Full Load at Nominal Line 16 _ mSec. Insulation Resistance Input to Output 7 1000 - M ohms Input to Ground 7 1000 M ohms Isolation Input to Ground 1.25 - - KVAC Input to Output 3.75 KVAC Power Supply Block Diagram Theory of Operation AC Input Circuit This circuit is composed of an AC Power Switch, a fuse, a line filter, and an inrush current limiting circuit and rectifying smoothing circuit. The inrush current limiting circuit controls the charging current to electrolytic capacitors when power is ON. The line filter reduces noise that leaks from the power source to the AC line or that returns from the unit to the power souce; it satisfies the specifications of noise regulations. Control Circuit & Power Converter Circuit This circuit is a self oscillation switching system, generally called an R.C.C. (Ringing Choke Converter). The R.C.C. circuit does not fix the oscillating frequency. Whenever input voltage is high or the load becomes light, the oscillating frequency will be high. The current through R4 and R5 supplies transistor Ql's base, then Ql turns ON. When transistor Ql is On, the Ql current excites the transformer Tl and voltage rises in the bias coil of T K 2 - 3 ) which leads transistor Ql positive bias, then transistor Ql turns ON. When transistor Ql turns ON, collector current charges the energy to primary inductance of transformer Tl (4-6). Increasing the collector current of transistor Ql to the point of: I > I .hfe C = B Then, transistor Ql immediately turns OFF. In a moment, transformer Tl will have negative voltage which will be supplied to the secondary circuit through a rectifier. A Short Circuit Protector is provided to protect transistor Ql from excess amounts of current when the secondary circuit becomes shorted. When transistor Q2 detects the voltage drop at R13, the collector of Q2 shorts the base and emitter of Ql. Then Ql stops working so that the circuit protects Ql from over current. The over current protector in the -12V line is provided by the three terminal positive voltage regulators IC2, IC3 (built-in current fold back protection ) , which protects Ql against excessive current from the -12V line. 5V Output Voltage Detecting Circuit The circuit detects the change of output load current compared with the output voltage and AC line input voltage, which feeds back to the control circuit through a photo coupler PHCl to keep the output voltage stable. The Photo coupler isolates the primary and secondary circuits. Over-Voltage Protection When the +5 output voltage rises, between 5.8V to 6.8V, a control signal turns on the photo coupler PHC2 (Photo Thyristor) with the current of zener diode (DID and stops oscillation by turning on Q3, which turns off Ql in the switching circuit. In the case of stopped oscillation, correct the cause of the failure, and reinput the power. The overvoltage protection circuit will reset automatically under good conditions. The Photo Thyristor isolates the primary and secondary circuits. Troubleshooting Equipment for Test Set-Op Isolation Transformer(minimum of 500 VA rating) CAUTION Dangerously high voltages are present in this power supply. For the safety of the individual doing the testing, please use an isolation transformer. The 500 VA rating is needed to keep the AC waveform from being clipped off at the peaks. These power supplies have peak charging capacitors and draw full power at the peak of the AC waveform. 0-280V Variable Transformer (Variac)- Used to vary input voltage. Recommend 5 amp, 1.4 KVA rating, minimum. Voltmeter- Need to measure DC voltages to 50 VDC and AC voltages to 300 VAC. Recommend two digital multimeters. Oscilloscope- Need x 10 and x 100 probes. Load board with connectors- See Table 1 for values of loads required. The entry on the table for Safe Load Power is the minimum power ratings for the load resistors used. NOTE: Because of its design, this power supply must have a load present or damaging oscillations may result. Never test the power supply without a suitable load. Ohmmeter Set-Op Procedure Set up as shown in Figure 1. You will want to monitor the input voltage and the output voltage of the regulated bus, which is the +5 output, with DVM's. Also monitor the +5 output with the oscilloscope using 500 mv/div sensitivity. The DVM monitoring the +5 output can also be used to check the other outputs. See text of "No output" section for the test points within the power supply. Visual Inspection Check power supply for any broken, burned, or obviously damaged components. Visually check fuse, if any question check with ohmmeter. Start-Up Load power supply with minimum load as specified in Table 1. Check up on the voltage selector jumper and don't apply over voltage. Bring up power slowly with the Variable Transformer while monitoring the +5 output with the oscilloscope and DVM. Supply should start with approximately 40-60/80-120 VAC applied, and should regulate when 90/180 VAC is reached. If output has reached 5 volts, do a performance test on operating characteristics, if there is no output, refer to "No output" section. SAFE MAX SAFE OUTPUT MINLOAD LOADR LOAD POWER LOAD LOADR LOAD POWER + 5V 1.25 A 4 ohms 20 W 7.0 A 0.7 ohms 60 W + 12V 0.15 A 80 ohms 5W 2.4 A 5 ohms 50 W -12 V 0 0 0 0.25 A 48 ohms 5W Table 1 Load Board Values (67 watt) Figure 1 Test Setup No Output 1. Check fuse: If fuse is blown, replace it but do not apply power until the cause of the failure is found. 2. Preliminary Check on Major Primary Components: Check diode bridge (Dl), power transistor (Ql), and drive transistors (Q2,Q3) for shorted junctions. If any component is found shorted, replace it. 3. Preliminary Check on Major Secondary Components: Using an ohmmeter from an output that is common to each output and with output loads disconnected, check for shorted rectifiers or capacitors. 4. Check Over Voltage Protector: Read the output voltage with a DVM at the +5 output terminals by increasing the input voltage from OV. Output voltage will appear at some input voltage and then go down to OV again. Check the Diode Dll or Photo Coupler (PHC2). 5. Check Ql Waveforms: Read waveform of Ql Collector with oscilloscope at x 100 probe. Figure 2 is Ql Collector normal waveform. Figure 3 is Ql Base normal waveform. Figure 4 is the waveforms when shorted circuits of the secondary parts as listed in Table 2. Check listed parts according to the waveform. Collector Waveforms Shorted Secondary Components Figure 4 D8, D9, C17, C18, C20, C21, C22, C23, Table 2. List of Shorted Circuits 6. Check Resistor (R26) If R26 is open, check D10, C24,and IC2. Waveforms Power Converter Circuit Collector Voltage Waveform Collector Current Waveform The input and output voltage are represented by the following equations: Vo = n x Vf Vo : Output voltage n : Turn ratio of the transformer Tl Vf : Collector Voltage at turn-off time Vin x Ton = Vf x Toff Vin : Input voltage Ton : Turn-on time of transistor Toff: Turn-off time of transistor 100V/DIV 5ns/DIV Ql Collector Waveforms (Input 90 VAC Minimum Load) 0.5V/DIV 5|js/DIV Ql Base Waveforms (Input 90 VAC Minimum Load) 100V/DIV 5ns/DIV Ql Collector Waveforms - Shorted Secondary Components (Input 90 VAC) PARTS LIST K)R SWITCHING POWER SUPPLY UNIT PART NO . 8790084 Symbol Description QTY RS Part No. Mfr's Part No. CAPACITORS C2 Film 0.22uF 400VAC 1 XE-224 C3/4 Ceramic 4700pF 400VAC 2 DE7150F472MVA1-KC or CS17-E2GA472MIAS C5 Ceramic lOOOOpP 400VAC 1 DE7150FZ103PVA1-KC or CS17-F2GA103ZYAS C6/7 Electrolytic 33OuF 200WV 2 CETSW2D331 or 200LPSS330 C8/9/10/15 Film 0.047uF 50V 4 50F2D473K or AMZF473K50V Cll Film O.luF 50V 1 50F2D104K (0.1-0.22uF) or AKZF104K50V C12 Ceramic 470pF 2KV 1 DE0907R471K2K or CK45-B3DD471KYAR C13 Film O.OluF 630V 1 CF921L2J103K or MDDZ2J103K C14 Ceramic 680pF 2KV 1 DE1010R681K2K or CK45-B3DD681KYAR C16/26 Electrolytic luF 50WV 2 CEUSM1H010 C17 Electrolytic 2200uF 25WV 1 CEUSK1E222 C18/24/25 Electrolytic 4?0uF 25WV 3 CEUS1O.E471 C19 Electrolytic lOOOuF 16WV 1 CEUSM1C102 C20/21/22 Electrolytic 4700uF 10WV 3 CEUSKLA472 C23 Electrolytic 2200uF 10WV 1 CEUShaA222 CONNECTORS SKI Connector, 2 conductors Input 1 5277-02A SK2 Connector, 2 conductors Fan-out 1 5045-02F SK3-1 Connector, 10 conductors Output 1 5277-10A SK3-2 Connector, 4 conductors Output 1 5273-04A Pin Terminal, Voltage Selector 2 RT-01N-2.3A Jumping Connector 1 4P-M3-0017 DIODES Dl Silicon, Stack 600V 3A 1 S3WB60 D2/11 Silicon, Zener 5V 400mW 2 HZ5B3 D3/1O Silicon 600V 1A 2 FI-06 or V19G D4/ 5 Silicon 800V 1A 2 FI-08 or RU2B D6/7/I3 Silicon 100V 200mA 3 DS446 or 1S954 Syabol Description QTY RS Part No. Mfr's Part No. D8 Silicon, Stack 200V 5A 1 D5LCA20 or 5CH2SH D9 Silicon, StacJc 40V 10A 1 D10SC4M or 10CS04SM FUSE PI Fuse 250V 3A 1 MT4 3A25OV Fuse Clip 2 P#5722113 HEATSINK HS1 Heatsink, for Ql 1 1*0-08440-01 HS2 Heatsink, for D8/D9/WIC2 1 4P-D2-0180 INDUCTORS Ll/2 Choke Coil 0.5mH 2 TO-9175 L3 Choke Coil 8IQH 1 TO-9161 IA Choke Coil 4.3uH 1 PSC-156 INTEGRATED CIRCUITS IG1 IC, Regulator 37V 150mA 1 TIA31CLPB or UA431AWC IC2 IC, Regulator 12V 0.5A 1 L78M12 or NJM78M12 IC3 IC, Regulator 36V 30mA 1 M5236L PHOTO COUPLER PHC1 Photo Coupler 55V 60mA 1 TLP732 or PC111 PHC2 Photo Coupler 600V 150mA 1 TLP741J PRINTED CIRCUIT BOARD PCI Printed Circuit Board XPC 1 2P-P1-0178 105°C RESISTORS Rl Thennister 16 1.2A 1 117-160-45201 or 16D-13 or D4FFL160P R2/3/V5 Carbon 100K 1/2W 4 RD50P100KohmsJ or RD50S100KohmsJ R6 Metal-oxide 47 2W 1 RSF2B47ohmsJ (15-68) (Adjust 15-68ohms) Symbol Description QTY RS Part No. Mix's Part No. H7/29 Metal-oxide 100K 2W 2 RSF2B100KohmsJ B8/9 Metal-oxide 100 2W 2 RSF2B100ohmsJ RIO Carbon 560 i/4w 1 RD25P560ohmsJ (330-680) or RD25S560ohmsJ (Adjust 330-680ohms) Rll Carbon 330 lAw 1 RD25P330ohmsJ (220-560) or RD25S330ohmsJ (Adjust 220-560ohms) KL2 Carbon 47 iAw 1 RD25P47ohmsJ or RD25S47ohmsJ KL3 Cement 0.56 5W 1 MPC71 0.56ohmsK R14 Carbon 27K l/4w 1 RD25P27Kohms or RD25S27KohmsJ R15 Carbon 39 l/4w 1 RD25P39ohmsJ or RD25S39ohmsJ R16 Carbon 180 l/4w 1 RD25P180ohmsJ or RD25S180ohmsJ Rl? Carbon 100 l/4w 1 RD25P100ohmsJ < or RD25S100ohmsJ R18/19/22I Carbon 2.2K lAw 3 RD25P2.2KohmsJ or RD25S2.2KohmsJ R20/27 Carbon IK l/4tf 2 RD25PlKohmsJ or RD25SlKohmsJ R21/23 Carbon 220 1/4W 2 RD25P220ohmsJ or RD25S220ohmsJ R24 Carbon 18K 1/ku 1 RD25P18KohmsJ or RD25S18KohmsJ R26 PVising 1 1 RF25SlohmsJ R28 Carbon 15K l/4w 1 RD25P15KohmsJ or RD25S15KohmsJ VRl/2 Variable 2K 0.5V 2 V6E3C-PV(1S)2O2B or H0615-222B TRANSFORMER Tl Transformer 1 TO-4341 TRANSISTORS Ql Transistor 800V 6A 1 2SC3460 or 2SC3680 Q2/3 Transistor 50V 2A 2 2SD1207 or 2SC2655 Q4 Transistor 60V 5A 1 2SA1441 or 2SB1019 Power Supply PCB - Silkscreen Power Supply PCB - Component Side TAMURA SEISAKUSHO CO., LTD. 1 0 0 0 SX KEYBOARD . TANDY COMPUTEFt PRODUCTS KEYBOARD CONTENTS SPECIFICATION KEYBOARD TIMING KEYBOARD LAYOUT KEYBOARD ASSEMBLY The Tandy 1000 has a 90-key keyboard that includes 12 function keys, a numeric keypad, and special purpose keys for paging. The keyboard is con- nected to the Main Unit by a coiled cable and operated at a maximum distance of 4 feet from the main unit. Figure shows the interconnecting cable con- nector to the keyboard assembly. The cable assembly can be disconnected from the keyboard assembly during repair. Keyboard Assembly Connector Figure 1 Keyboard Specifications The keyboard is fully encoded with microprocessor control, and requires +5 VDC supplied from the Main Unit. 1. Key Type — all keys generate "make" and "break" codes. See the Key Code Chart. Break codes are formed by adding 80H to the make code. Keys 49 and 71 have alternate action that "makes" on one actuation of the key and "breaks" on succeeding actuation. No code is generated for these two keys when the key is released. 2. Number of Keys — 90 3. Repeat Strobe — there is a repeat strobe of 66 to 111 mSec when any key is depressed for more than 1 second, with the exception of SHIFT, CTRL, CAPS, ENTER, and NUMBER LOCK. Keyboard Timing Figure 2 is the timing chart for the Tandy 1000 Keyboard Assembly. f, - MIN f s- ^ s MIN ' ? - I X S MIN ta- MIN ' l - I ^cS kllN t7- MIN '4- MIN tB- MAX Keyboard Assembly Timing Chart Figure 2 Key Code Chart Key Number Legend Scan Code 1 F1 3B 2 F2 3C 3 F3 3D 4 F4 3E 5 F5 3F 6 F6 40 7 F7 41 8 F8 42 9 F9 43 10 F10 44 11 F11 59 12 F12 5A 13 INSERT + 55 14 DELETE - 53 15 BREAK 54 16 ESC 01 17 1! 02 18 2@ 03 19 3# 04 20 4$ 05 21 5% 06 22 6 A 07 23 7& 08 24 8 * 09 25 9( 0A 26 0) OB 27 OC 28 = + OD 29 BACKSPACE OE 30 ALT 38 31 PRINT 37 32 7 (backslash) 47 33 8 (Tilde) 48 34 9 PG UP 49 35 TAB OF 36 Q 10 37 ' W 11 38 E 12 39 R 13 40 T 14 41 Y 15 42 U 16 43 I 17 45 P 19 Key Number Legend Scan Code 46 ! [ 1A 47 } ] 1B 48 HOLD 46 49 NUM LOCK 45 50 4: 4B 51 5 4C 52 6 4D 53 CTRL 1D 54 A 1E 55 S 1F 56 D 20 57 F 21 58 G 22 59 H 23 60 J 24 61 K 25 62 L 26 63 27 64 28 65 ENTER 1C 66 29 67 HOME 58 68 1 END 4F 69 2 (Grave) 50 70 3 PG DN 51 71 CAPS 3A 72 SHIFT 2A 73 Z 2C 74 X 2D 75 c 2E 76 V 2F 77 B 30 78 N 31 79 M 32 80 < 33 81 -H- 34 i 82 /? 35 83 SHIFT 36 84 2B 85 4A 86 4E 87 0 52 88 56 89 ENTER 57 90 (Space Key) 91 thru 95 — reserved for International Keyboard Layout Shown below is the keyboard layout and number designation of the keys on the Tandy 1000 keyboard. They should be used with the Key Code Chart for determining data value transmitted by the keyboard. Figure 3 Keyboard Identification NOTE: KEYS 9! THRU 9 5 NOT USED ON U S VERSION, USED ON INTERNATIONAL VERSION QHLY Figure 4 Key Number Identification Figure 5 TANDY COMPUTER PRODUCTS 8087 NUMERIC DATA COPROCESSOR 8087 Coprocessor Operation The 8087 executes instructions as a coprocessor to the 8086 processor while in the maximum mode (MN/MX pin is connected to ground). The processors status (S0-S1) and queue status lines (QS0-QS1) enable the coprocessor to monitor and decode instructions in synchronization with the microprocessor. An instruction Opcode is sent to the coprocessor and the processor. The processor calculates the memory addresss and the co-processor checks the instruction simultaneously. The coprocessor then accesses the memory location through the local bus from the processor when the processor finishes its current instruction. After the coprocessor is finished with a memory transaction, it returns local bus to the processor. The BUSY signal is used to inform the processor that the coprocessor is performing an operation. The processor WAIT instruction tests this signal to ensure that the coprocessor is ready to excute subsequent instructions. The control unit (CO) keeps the coprocessor operation synchronized with the processor. The processor and the coprocessor fetch all instructions at the same time from a single stream of mixed instructions. The processor's status lines (S0-S1, S6) are used by the control unit to determine when an instruction is being fetched. The coprocessor sends an error signal which generates an interrupt through the NMI interrupt logic when the correct execution mask for the coprocessor is not set. The following two conditions will disable the coprocessor interrupt to the processor: 1. Interrupt Enable bits and the exception of the control word are set to l's. 2. NMI Mask Register is set to zero. During Power On the NMI Mask Reg. is cleared to disable the NMI. This condition (NMI mask Reg. is set to zero) causes the processor to wait indefinitely for a BUSY* signal from the coprocessor, while the coprocessor expects an interrupt signal from the processor. For additional information on the the 8087 coprocessor see the 8087 Numeric Data Coprocessor information sheet in this manual. Tandy 1000 SX Reference Manual TANDY COMPUTER PRODUCTS Tandy* 1000 PLOS RS-232 Interface Board . TANDY COMPUTER PRODUCTS CONTENTS PAGE NO. 1/ Introduction 1 2/ Jumper Configuration 3 Domestic 3 International 4 3/ Theory of Operation 7 Block Diagram of RS-232 Adapter (Figure 1.) 8 82S153 Pin Functions (Figure 2.) 9 82S153 IFL Equations (Figure 3.) 10 4/ Troubleshooting 11 5/ Component Layout 13 Si Ik screen 13 Component Side 14 Solder Side 15 6/ Parts List 17 Domestic 17 International 18 7/ Schematic 19 8/ WD8250 Asynchronous Communications Element TANDY COMPUTER PRODUCTS 1/ Introduction to RS-232 Interface Board The RS-232 board is a single-channel asynchronous serial communications board. The heart of the board is the WD8250 Asynchronous Communications Element (ACE), that functions as a serial data input/output interface. It performs serial- to-parallel conversion on data characters received from a peripheral device or a modem and parallel-to-serial conver- sion on data characters received from the CPU. Status information reported includes the type and condition of the ACE's transfer operations as well as any error con- ditions. The WD8250 includes a programmable baud rate generator that allows operation from 50 to 9600 baud. The WD8250 can be software tailored to the user's requirements. It can add and remove start bits, stop bits, and parity bits. It supports 5-,6-,7- or 8-bit characters with 1, 1 1/2, or 2 stop bits. Diagnostic capabilities provide loopback functions of transmit/receive and input/output signals. This manual covers both domestic and international RS-232 boards. The main difference between the domestic and international boards is the jumper configuration and the programming of the receiving baud rate. This information is covered in section 2. An international parts list is also included in section 5. Other features include: Full double buffering which eliminates the need for precise synchronization. Independent receiver clock input. False start bit detection. Line break generation and detection. Modem control functions: Clear To Send (CTS), Request To Send (RTS), Data Set Ready (DSR), Data Terminal Ready (DTR), Ring Indicator (RI), and Carrier Detect (CD). 1 TANDY COMPUTER PRODUCTS 2 . TANDY COMPUTER PRODUCTS 2/ Jumper Configuration Most commercially available terminal or communications programs use the primary addresses. Points E2 and E3 should be jumpered for primary operation. Points El and E2 should be jumpered for secondary operation. 3 TANDY COMPUTER PRODUCTS International RS-232 Board The RS-232 serial communications board for the Tandy 1000 has two versions. One board is a domestic version which cannot be altered and is used for domestic operations only. Domestic operations means that the board transmits and receives at the same baud rate. The other board is an inter- national version which can be used as either a domestic board or easily modified to accommodate international opera- tions. International operations means that the board can be programmed to transmit at one baud rate while receiving at another baud rate. This is known to be a common mode of operation in Europe. In order for the board to operate in the international mode, some jumpers on the board will have to be changed. The jumper arrangements for domestic and international operation as well as operation in the primary and secondary address spaces are as follows: Domestic operation in the primary address (3F8-3FF) - Jumper E2 to E3 Jumper E4 to E6 Jumper E7 to E9, E8 and E10 empty Domestic operation in the secondary address (2F8-2FF) - Jumper El to E2 Jumper E4 to E6 Jumper E7 to E9, E8 and E10 empty International operation in the primary address - Jumper E2 to E3 Jumper E4 to E5 Jumper E7 to E8 Jumper E9 to E10 International operation in the secondary address - Jumper El to E2 Jumper E4 to E5 Jumper E7 to E8 Jumper E9 to E10 While the board is jumpered to the international mode of operation, the user can select between domestic and international operation. This can be done as follows: Primary address - 3FC, or secondary address - 2FC, Bit 2. Set low for domestic operation, set high for international operation. NOTE: This bit is low on power up and reset. 4 . TANDY COMPUTER PRODUCTS Programming the Baud Rates for International Operation While the Board is setup for international operation, two baud rate generators will have to be programmed. One for the transmit baud rate and the other for the receive baud rate. The transmit baud rate is supplied from the internal baud rate generator on the 8250 UART and is programmed the same as before with the domestic board. The receive baud rate is supplied from an external baud rate generator and is totally independent from the programming for the internal transmit baud rate generator. This external receive baud rate generator is enabled through address 3FF (primary) or 2FF (secondary). The baud rate generator is then programmed by sending the appropriate bits via the data bus (D0-D3). Refer to the following table for selecting the various baud rates. Frequency Options Transmit/Receive Baud Duty Address Rate Theortical Actual Percent Cycle D C B A (16X Clock) Freq. (kHz) Freq. (kHz) Error % Divisor 0 0 0 50 0.8 0.8 __ 50/50 6336 0 0 0 0 1 75 1.2 1.2 — 50/50 4224 0 0 1 0 110 1.76 1.76 — 50/50 2880 0 0 1 1 134.5 2.152 2.1523 0.016 50/50 2355 0 1 0 0 150 2.4 2.4 — 50/50 2112 0 1 0 1 300 4.8 4.8 — 50/50 1056 0 1 1 0 600 9.6 9.6 — 50/50 528 0 1 1 1 1200 19.2 19.2 50/50 264 1 0 0 0 1800 28.8 28.8 — 50/50 176 1 0 0 1 2000 32.0 32.081 0.253 50/50 158 1 0 1 0 2400 38.4 38.4 — 50/50 132 1 0 1 1 3600 57.6 57.6 — 50/50 88 1 1 0 0 4800 76.8 76.8 — 50/50 66 1 1 0 1 7200 115.2 115.2 — 50/50 44 1 1 1 0 9600 153.6 153.6 — 48/52 33 1 1 1 1 19,200 307.2 316.8 3.125 50/50 16 Crystal Frequency = 5.0688 MHZ 5 . TANDY COMPUTER PRODUCTS 6 TANDY COMPUTER PRODUCTS 3/ Theory Of Operation The user's manual for the TRS-80 RS-232-C Interface (Cat. No. 26-1145) has a general discussion of the EIA RS-232-C Standard. The RS-232 asynchronous communications board has various modes of operation that can be selected by programming the WD8250 ACE. The WD8250 is programmed by selecting the I/O address (3F8 to 3FE primary, and 2FB to 2FE secondary), and writing data out to the board. Address bits AO, Al, and A2 are used to define the modes of opera- tion by selecting the different registers to be programmed or read. One interrupt is provided to the system from IRQ4 for primary operation, and IRQ3 for secondary operation. This interrupt is active high. Bit 3 of the modem control register must be set high in order to send interrupts to the system. When this bit is high, any interrupts allowed by the interrupt enable register will cause an interrupt. Refer to Section 8 for the Functional Pin Definitions and Timing Diagrams for the WD8250. Figure 1 shows the Block Diagram for the RS-232 Adapter. Figure 2 shows the Functional Pin Definitions for the 82S153 IFL. Figure 3 shows the IFL equations for the 82S153 IFL. 7 TANDY COMPUTER PRODUCTS Figure 1. Block Diagram for the RS-232 Adapter. 8 TANDY COMPUTER PRODUCTS PIN NUMBER PIN NAME SYMBOL FUNCTION 1 ADDRESS ENABLE AEN DMA cycle when high, CPU cycle when low. 2-8 ADDRESS LINES A3-A9 These address lines are used for decoding the address space 2F8-2FF (secondary) or 3F8-3FF (primary). 9 SECONDARY INTERRUPT IORQ3 Sends interrupts to the CPU REQUEST while operating in the secon- dary address space. 10 GROUND 11 PRIMARY INTERRUPT IORQ4 Sends interrupts to the CPU REQUEST while operating in the primary address space. 12 PRIMARY OR P or S An input that determines which SECONDARY UARTS address space will be used. Primary (3F8-3FF) when high or secondary (2F8-2FF) when low. 13 UART INTERRUPT INT Receives interrupt signal from the 8250. 14 UART CHIP SELECT UCS Enables the 8250 ACE when low. 15 NOT USED 16 NOT USED 17 DATA CHIP SELECT DCS Enables the data bus buffers when low. 18 NOT USED 19 NOT USED 20 VCC Figure 2. Functional Pin Definitions for the 82S153 IFL. 9 . TANDV COMPUTER PRODUCTS INPUTS PRI_PORT = IOADDRESS 3F8-3FF SEC PORT = IOADDRESS 2F8-2FF OUTPUTS DCS = PRI PORT AEN P OR S + SEC PORT AEN P OR S IORQ4 = MODEM_INT P_OR_S M_OR_U + UART_INT P_OR_S M_OR_U IORQ3 = UART INT P_OR_S M_OR_U + MODEM_INT P_OR_S M_OR_U UART CS = PRI PORT AEN P OR S + SEC PORT AEN P OR S Figure 3. IFL Equations for the 82S153 IFL. 10 TANDY COMPUTER PRODUCTS ' 4/ Troubleshooting The RS-232 board can be tested by using the IOTEST program included with the Tandy 1000 diagnostics diskette. The following is an excerpt from the IOTEST reference quide. Equipment Needed 1. Computer: Tandy 1000 or 1200 HD 2. RS-232 card 3. Loopback connector test fixture in the following configuration: DB-25 Signal 2-3 TX-RX 4-5 RTS-CTS 6-8-20-22 DTR-DSR-CD-RI 4. Tandy 1000 Diagnostic Diskette Troubleshooting Hints If some of the control functions are bad: Check the loopback connector. Check the line drivers/receivers for activity. Check the 8250 UART (U2) for any bent pins. The BRG fails: Check for correct configuration of the jumpers. The 8250 UART may be malfunctioning. The RX test fails: Check for interrupts on the bus. Check the 8250 and jumper configurations. 11 TANDY COMPUTER PRODUCTS Break detect fails: The 8250 UART may be malfunctioning. RX and Break detect fails: Check the data path through the loopback connector and the line drivers/receivers. Check the 8250 and jumper configurations. If the above tests are negative: Check the 82S153 (U5). Check the 8250 UART and jumper configurations. Check the 74LS245 (Ul). 12 . TANDY COMPUTER PRODUCTS 5/ Component Layout Silkscreen 13 . TANDY COMPUTER PRODUCTS Component Side 14 TANDY COMPUTER PRODUCTS Solder Side 15 . TANDY COMPUTER PRODUCTS 16 TANDY COMPUTER PRODUCTS 6/ Parts List RS-232 Board Catalog Number 25-1014 SYMBOL QTY DESCRIPTION PART NO. 1 RS-232 COMBO/ T1000 REV. A 3 JUMPER PLUG AJ-6908 3 STANDOFF AHC-24 29 4 SCREW - 4-40 X 1/4 PAN H, MACHINE AHD-2991 2 NUTS - 4-40 AHD-7143 1 PANEL BRACKET, RS-232 AHC-3192 Cl-8,22 9 CAPACITOR 330 PF 5/50V C. DISK CF-7412 C9 1 CAPACITOR 22 PF/+.5PF/50V CC-220DJCP CIO 1 CAPACITOR 56 PF 80% 50V C. DISK CC-560QJCP Cll-12 2 CAPACITOR 4.7 MFD 20% 50V ELEC. AXIAL CC-475MJAA C13 1 CAPACITOR 10 MFD +20/25V ELEC. AXIAL CC-106MFAA C14-18 5 CAPACITOR 0.1 MFD 50V AXIAL CC-104JJLA El-10 10 STAKING PINS AHB-9682 Jl 1 RECEPTICAL AJ-4052 J2 1 CONNECTOR, DB25 FEMALE RT. ANGLE AJ-6983 METAL SHELL, GROUND STRAP 4-40 THREADED INSERTS Rl-2 2 RESISTOR 4.7K OHM 1/4 WATT 5% N-0247EEC R3 1 RESISTOR 1.5K OHM 1/4 WATT 5% N-0206EEC R4 1 RESISTOR 1 MEG OHM 1/4 WATT 5% N-0445EEC Ul 1 IC 74LS245 OCTAL BUS TRANSCEIVER AMX-4470 U2 1 IC 8250 SINGLE CHIP UART MX-6859 U2 1 SOCKET 40-PIN DIP AJ-6580 U3-4 2 IC MC1489 RECEIVER MX-2143 U5 1 IC 82S153 IFL, MOD UART MX-6858 U5 1 SOCKET 20-PIN DIP AJ-6760 U6 1 IC 1488 DRIVER AMX-3867 Yl 1 CRYSTAL 1.8432 MHZ MX-0097 17 • TANDY COMPUTER PRODUCTS RS-232 Board—International Catalog Number 25-1014X SYMBOL QTY DESCRIPTION PART NO. 1 RS-232 COMBO/ T1000 REV. A 4 JUMPER PLUG AJ-6908 3 STANDOFF AHC-24 29 4 SCREW - 4-40 X 1/4 PAN H, MACHINE AHD-2991 2 NUTS - 4-40 AHD-7143 1 PANEL BRACKET, RS-23 2 AHC-319 2 Cl-8,22 9 CAPACITOR 330 PF 5/50V C. DISK CF-7412 C9 1 CAPACITOR 22 PF/+.5PF/ 50V CC-220DJCP CIO 1 CAPACITOR 56 PF 80% 50V C. DISK CC-560QJCP Cll-12 2 CAPACITOR 4.7 MFD 20% 50V ELEC. AXIAL CC-47 5MJAA C13 1 CAPACITOR 10 MFD +20/25V ELEC. AXIAL CC-10 6MFAA C14-21 8 CAPACITOR 0.1 MFD 50V AXIAL CC-104JJLA El-10 10 STAKING PINS AHB-9682 Jl 1 RECEPTICAL AJ-4 05 2 J2 1 CONNECTOR, DB25 FEMALE RT. ANGLE AJ-6983 METAL SHELL, GROUND STRAP 4-4 0 THREADED INSERTS Rl,2,5 3 RESISTOR 4.7K OHM 1/4 WATT 5% N-0247EEC R3 1 RESISTOR 1.5K OHM 1/4 WATT 5% N-0206EEC R4 1 RESISTOR 1 MEG OHM 1/4 WATT 5% N-0445EEC Ul 1 IC 74LS245 OCTAL BUS TRANSCEIVER AMX-4470 U2 1 IC 8 250 SINGLE CHIP UART MX-6859 U2 1 SOCKET 40-PIN DIP AJ-6580 U3-4 2 IC MC1489 RECEIVER MX-6859 U5 1 IC 82S153 IFL, MOD UART MX-6858 U5 1 SOCKET 20-PIN DIP AJ-6760 U6 1 IC 1488 DRIVER AMX-3867 U7 1 IC BR1943-00 AMX-3921 U8 1 IC 74LS21 DUAL 4-IN AND MX-6502 U9 1 IC 74LS00 QUAD 2-IN NAND MX-3495 Yl 1 CRYSTAL 1.8432 MHZ MX-0097 Y2 1 CRYSTAL 5.0688 AMX-2395 18 . TANDY COMPUTER PRODUCTS 8/ WD8250 Asynchronous Communications Element . TANDY COMPUTER PRODUCTS ' I ONE OF* —rsr APPROVED RELEASE FOR PRODUCTION •s/?? 1 . COMPONENTS WITHIN DASHED BOX USED ONLY FOR INTERNATIONAL VERSION. . JUMPERS SHOWN IN PRIMARY. DOMESTIC CONFIGURATION. SCHEMATIC- RS-232 COMBO TANDY IOOO PROJECT NO. 652 tandq RELEASE FOR PRODUCTION 'T E D Jl 32. . c w ( High-Impedance V 0 U T = 4.6V j st»e Capacitance TA = 25° C, VCC = VSS = 0V Symbol Parameter Typ. Max. Units Test Conditions CXIN Clock 10 15 pF Capacitance fc=1 MHz C|N Input 6 10 pF Unmeasured Capacitance pins returned to Vss COUT Output 10 20 PF Capacitance 10 AC Electrical Characteristic TA = 0°C to +70°C, Vcc = +5V ± 5% Test Conditions Symbol Parameter Units Min Max tAW Address Strobe Width ns 120 1TTL Load l Address and Chip Select Setup Time ACS ns 100 1TTL Load tAH Address Hold Time ns 0 1TTL Load tcss Chip Select Output Delay from Latch ns 160 1TTL Load *DID DISTR/DISTR Delay from Latch ns 50 1TTL Load *DIW DISTR/DISTR Strobe Width ns 300 1TTL Load tRC Read Cycle Delay ns 655 1TTL Load RC Read Cycle = tACS + tDID + l DIW + *RC + 20 ns ns 1125 1TTL Load
interrupt pending Bit 5 set => interrupts disabled Boot ROM /Buffer RAM The PLUS Network 4 Interface board has a 2K-byte boot ROM (Ull) and 4K-bytes of buffer RAM (Ul, U 2 ) . ROM extends from host CPU address DF000 to address DFFFF and uses the first 1024 bytes of the 4K buffer RAM. - 3 - TANDY COMPUTER PRODUCTS PLUS Network 4 Interface The PLUS Network 4 Interface uses two components, (U10) which is a differential driver and receiver, and a transformer (Tl), which acts as a filter. Note that since the input is a differential (as is the output) and the data is NRZI, which depends solely on transmission, the connector pins may be reversed on a unit without any effect to data transmission. The network interface is the lowest level of the network architecture. Communications The Comm. Chip, a CORVUS 68A54 Advanced Data Link Controller Chip, (U5) mainly encodes and decodes network data and monitors the network status for CRC errors, etc. This device constitutes the second level of the network architecture. Network Control The Network Control Chip, a CORVUS 6801 Chip, (U4) forms the network interface intelligence by monitoring the output of the Comm. chip (U5) and handling the header information. It handles the header information by communicating with the host side by a "command vector" in the buffered RAM and a message as to where to find the vector (sent via the C.A.R.). This device constitutes the third level of the network architecture. Buffer Interface The Buffer Interface Chip, a CORVUS 3131 Gate Array Chip, (U3) controls the timing and bus control for interfacing the users of the buffer RAM. It may be thought of as a two port memory controller, interfacing the host and the CORVUS 6801 chip with memory. In addition, the buffer interface chip also gates, times, and controls signals to each to facilitate their part of the interface. - 4 - TAIMOY COMPUTER PRODUCTS Installation Instructions Introduction Adding the PLUS Network 4 Interface to your computer allows you to communicate with up to 64 units, all operating asynchronously at 1 MHz., via the Network 4 LAN (local area network). The PLUS Network 4 Interface is readily installable by you. However, you can have the kit installed by the service technicians at your Radio Shack Service Center. Having service technicians install the kit not only ensures expert installation, but also enables them to quickly check that all the equipment is functioning properly. Installation Caution should be exercised in low humidity environments to prevent damage to electronic parts by static electricity being discharged through them. Discharge any built-up static electricity by touching a grounded metal object before proceeding further. Warning: Turn off all equipment. Turn the power off and disconnect the power cord from the wall socket. If the computer is on, you could damage the central processing unit, as well as your PLUS Network 4 Interface board. Before proceeding with the installation of the PLUS Network 4 Interface, be sure the kit contains the PLUS Network 4 Interface board, a terminal block and 2 star washers, 2 wing nuts, an alternate mounting bracket and 2 mounting screws, and 3 plastic standoffs (for the Tandy 1000 S X ) . On the PLUS Network 4 Interface board locate the jumper at Jl which selects the interrupt that is to be used. Be sure the jumper is set to interrupt 3 (IR3) as this interrupt is recognized by the software. Also on the PLUS Network 4 Interface board, find DIP Switch SW1 (in the mounting bracket) which selects the station number. The settings on the DIP switches are a binary encoding of the numbers 0 to 63 (decimal). Each dip switch represents a digit in the 6 bit binary number. A switch set to down or "OFF" equals bit on or binary " 1 " . Switch SWl-1 is the least significant bit. See the switch setting examples in Figure 1. - 5 - • TANDY COMPUTER PRODUCTS Station 0 Station 1 Station 42 Figure 1. Note: On each PLUS Network 4 Interface board set these SW1 switches to a unique number of 0-63. Be sure to record the switch settings for each computer. The software currently selects station 63 as the disk server, therefore, we recommend that the stations be set at 0-62. - 6 - . TANDY COMPUTER PRODUCTS When installing the PLUS Network 4 Interface board in the Tandy 1000 SX: 1. Remove the 2 screws on the front of the computer. Then remove the computer's cover by tilting it away from you and lifting it clear of the slot. See Figure 2. Figure 2. 2. If you are going to use an installed Memory PLUS Expansion board (Cat. No. 25-1011) as the carrier board for the PLUS Network 4 Interface board remove the Memory PLUS Expansion board from its slot. 3. Remove the mounting bracket from this Memory PLUS Expansion board. 4. Disconnect the small harness assembly from the pins of J2 on the PLUS Network 4 Interface board. 5. Remove the mounting bracket from the PLUS Network 4 Interface board. 6. Remove the nuts, plastic washers (plain and shouldered), small harness assembly and screws from the mounting bracket. - 7 - TANDY COMPUTER PRODUCTS 7. Install these screws, plastic washers, nuts and the small harness assembly on the supplied alternate mounting bracket as shown in Figure 3. The polarity on the wire harness does not matter, therefore, either ring terminal on the wire harness can be used with either screw. Be sure the shouldered plastic washers are seated in the bracket holes so that the screws are insulated from (that is, do not touch) the mounting bracket. Also be sure that the harness wires do not show through the switch setting opening in the mounting bracket. Figure 3. 8. Install the alternate mounting bracket on the carrier board, either the: PLUS Upgrade Adapter board. Cat. No. 25-1016, or the Memory PLUS Expansion board, Cat. No. 25-1011, (if you have one) using the 2 screws that mounted the old bracket. 9. Plug the small harness into the PLUS Network 4 Interface board. - 8 - TANDY COMPUTER PRODUCTS 10. Install the 3 standoffs in the PLUS Network 4 Board. Then carefully install the PLUS Network 4 Interface board on the carrier board by aligning the pins and the connector and pressing the PLUS Network 4 Interface board down firmly but gently to seat it. 11. If necessary remove the option slot cover of an unused expansion slot. Carefully insert the carrier board in the empty slot. Secure the mounting bracket of the carrier board to the chassis with the screw that held the slot cover on. See Figure 4. Figure 4. 12. Slide the terminal block over the 2 screws that protrude from the back of the computer, with the flat side of the block with 2 round indentations facing to the outside. See Figure 5. 13. Slip the 2 star washers over the protruding screws, with the teeth facing toward the terminal block. Also install the 2 wing nuts on the ends of the screws. 14. Install a strand of the network cable between the terminal block and the star washer on one of the protruding screws and tighten the wing nut. Do likewise for the other cable strand, protruding screw and wing nut. - 9 - TANDY COMPUTER PRODUCTS Figure 5. 15. Reinstall the computer's cover, securing it with the screws previously removed. The PLUS Network 4 board is now ready for use. See the PLUS Network 4 Interface Owner's Manual. - 10 - TANDY 1000 Network SMT Parts List Symbol Description Part No. PC Board, T1000 Network SMT 8859002A Cl-9,11,13-18, Capacitor 0.1 MFD 50V Axial X37410341 101,103,104,106 C1O2,1O5 Capacitor 33 MFD 10V Tant.Rad. X33633310 cioo Capacitor 220 PFD X30122241 FBI, 2 Ferrite Bead 8419013 Jl Staking Pin 8529014 J2 Connector 2-Pos. Rt. Angle 8519308 J3 Connector, Recepticle 2 X 31 8519257 Rl Resistor 3K Ohm 1/8W 5% X20323030 R2-7 Resistor 22K Ohm 1/8W 5% X20332230 R8,10 Resistor 2.2K Ohm 1/8W 5% X20322230 R9 Resistor IK Ohm 1/8W 5% X20321030 SWl Switch, 12-Pin 6 POS DIP Rt. Angle 8489087 Tl Transformer 8417001 Ul,2 SOWIC, 4016 2KX8 Static RAM X04016020 U3 IC, Corvus Chip Set #2 (3131) 8 U3 Socket 68-Pin 8509020 U4 IC, Corvus Chip Set #3 (MC6801) 8 U4 Socket 40-Pin 8509002 U5 IC Corvus Chip Set #1 (MC6854) 8 U5 Socket 28-Pin 8509007 U6 SOIC, 74LS367 X02367000 U8 SOIC, 74LS125 X02125000 U7 SOIC, 74LS08 X02008000 U9 SOIC, 74LS04 X02004000 U10 IC, SN75176 8050176 Ull IC, TMS2732A 300NS 8 Ull Socket 24-Pin 8509001 U12 SOIC, 74LS21 X02021000 U13 SOIC, 74LS32 X02032000 U14 SOIC, 74LS74 X02074000 U15 SOIC, 74LS138 X02138000 U15 Socket 8-Pin 8509011 U16,17 SOWIC, 74LS688 X02688000 U18 SOWIC, 74LS245 X02245000 Yl Oscillator, 10 MHz 8409041 - 11 - TANDY COMPUTER PRODUCTS TANDY 1000 Network SMT Parts List Symbol Description Part No. Bracket, 8729601 Bracket, 8729572 Standoff, Pastic 8590164 - 12 - . TANDY COMPUTER PRODUCTS PLUS Network 4 Interface Board - Silkscreen - 13 - . TANDY COMPUTER PRODUCTS PLUS Network 4 Interface Board - Component Side - 14 - TANDY COMPUTER PRODUCTS PLUS Network 4 Interface Board - Solder Side - 15 - • TANDY COMPUTER PRODUCTS - 16 - TANDY COMPUTER PRODUCTS Schematic - 17 - NETWORK CONTROL CHIP NETWORK SWITCH ADDRESS COMM. CHIP in^ininiDiouiw DATA BUFFER FROM DECODE ON SHEET 3 FROM Jl CONNECTOR ON SHEET 1 BUFFER INTERFACE CHIP rj-l8000279 BUFFER RAM S 3 3 5 3 3 5 S 2 S ROM 1101 1111 XXXX XXXX XXXX (DFOOO) 1100 0000 XXXX XXXX XXXX Koooo) XXXX XXXX 0010 0100 OXXX (24°) XXXX XXXX 0010 0100 1XXX (2<« I/O XXXX XXXX 0011 0110 OXXX 1360) XXXX XXXX 0011 0110 1XXX 068) 110R RRRR XXXX XXXX XXXX TWO ADDRESSES XXXX XXXX 0011 0110 SDDD FOUR ADDRESSES X - DON'T CARE R - ROM CHANGES 1 TO 0 TO SHEET 1 I - I/O CHANGES 0 TO 1 S - STEP UP B D - DECODE ADDRESS _ TO SHEET 2 °D- l §000279 SCALE SHEET TANDY COMPUTER PRODUCTS DEVICES TANDY COMPUTER PRODUCTS DEVICES CONTENTS VIDEO CONTROLLER CHIP SPECIFICATION DMA CHIP SPECIFICATION PRINTER INTERFACE KEYBOARD INTERFACE SPECIFICATION TIMING CONTROL GENERATOR 8087 NUMERIC DATA COPROCESSOR . TANDY COMPUTER PRODUCTS VIDEO CONTROLLER CHIP SPECIFICATION TANDY COMPUTER PRODUCTS VIDEO CONTROLLER CHIP SPECIFICATION CONTENTS GENERAL DESCRIPTION 1 BLOCK DIAGRAM 2 OPERATING MODES 3 PIN LIST 24 LOGIC BLOCK DIAGRAM 27 ELECTRICAL SPECIFICATIONS 29 TIMING 30 TANDY COMPUTER PRODUCTS ' VIDEO CONTROLLER CHIP SPECIFICATION GENERAL DESCRIPTION The Tandy 1000 video controller chip is designed to operate with three types of display devices: A standard TV using an RF modulator, a composite monitor, and an RGBI 200 line Color monitor. This custom controller chip implements all of the video logic for the Tandy 1000 plus most of the system decode logic. Figure 1 shows a block diagram of the controller chip. The video display system is very flexible and can be programmed for a number of video modes. These modes use varying numbers of colors (2,4 or 1 6 ) . These 16 colors are defined by combinations of the RGBI as shown in the color chart below and can be used for the foreground color or background color. If you are using a black and white monitor, these colors will appear as shades of gray. In addition, any 1 of the 16 colors or shades of gray can be used for the screen border. I R G B | Color 0 0 0 0 Black l-l 0 0 0 Blue 0 0 1 0 Green 0 0 1 1 Cyan 0 1 0 0 Red 0 1 0 1 Magenta 0 1 1 0 Brown 0 1 1 1 Light Gray 1 0 0 0 Dark Gray 1 0 0 1 Light Blue 1 0 1 0 Light Green 1-1 0 1 1 Light Cyan 1 1 0 0 Pink 1 1 0 1 Light Magenta 1 1 1 0 Yellow 1 1 1 1 White TABLE 1 AVAILABLE COLORS TABLE 1 TANDY COMPUTER PRODUCTS Figure 1. VIDEO CONTROLLER CHIP BLOCK DIAGRAM 2 TANDY COMPUTER PRODUCTS OPERATING MODES The operating modes supported by the Tandy 1000 video controller may be grouped in two categories: Alphanumeric and Graphic. ALPHANUMERIC MODE The Alphanumeric mode has two basic types of operation: 80 character by 25 rows, and 40 character by 25 rows. In both modes the characters are generated by a 256 character ROM. The character ROM is divided into the following groups: * 96 Standard ASCII characters * 48 Block Graphics characters * 64 Foreign Language/Greek characters * 16 Special Graphics characters. * 32 Word Processing/Scientific Notation characters In both modes all characters are 7 dots wide by 7 dots high and are placed in an 8 dot wide by 8 or 9 dot high matrix. In both the 40x25 and the 80x25 modes, two bytes of data are used to define each character on the screen. The even address (0,2,4 etc.) is the character code and is used in addressing the character generating ROM. The odd address (1,3,5 etc.) is the attribute byte, that defines the foreground and the background color of the character. The following chart shows how the attribute byte controls colors. ATTRIBUTE BYTE 7 6 5 4 3 2 1 0 Background Foreground I R G B I R G B R G B I R G B _ + > =1 Selects Blinking of foreground if enabled Table 2 ALPHANUMERIC MODE ATTRIBUTE BYTE DEFINITION * Writing a 1 in bit 5 of register 'H3D8 enables Blinking 3 • TANDY COMPUTER PRODUCTS GRAPHICS MODE The Tandy 1000 Video Controller chip can be programmed for a variety of modes. The Tandy 1000 Computer family supports the following Graphics Modes: MODE IBM PCJR IBM PC 4 Color Medium Resolution 320 x 200 X X 16 Color Medium Resolution 320 x 200 X 16 Color Low Resolution 160 x 200 . X 2 Color High Resolution 640 x 200 X 4 Color High Resolution 640 x 200 X GRAPHICS MEMORY USAGE * 200 line Graphics Memory uses either 2 or 4 banks of 8000 bytes. In either case, pixel information for the display's upper left corner is found at address 0000. #### The 4 Color High Resolution 640 X 200 and #### The 16 Color Medium Resolution 640 X 200 #### use 4 banks of 8000 bytes as follows (Hex) -160 Bytes- 0000 00 Scans (0,4,8,...,196) 1F3F 2000 01 Scans (1,5,9,...,197) 3F3F 4000 10 Scans (2,6,10,...,198) 5F3F 6000 11 Scans (3,7,11,...,199) 7F3F 4 TANOV COMPUTER PRODUCTS #### The 2 Color High Resolution 640 X 200 and The 4 Color Medium Resolution 640 X 200 and #### The 16 Color Low Resolution 640 X 200 *### use only 2 banks of 8000 bytes as follows (Hex) <-80 Bytes-> 0000 Even Scans (0,,2,4,6,8,...,198> 1F3F 2000 Odd Scans (1,3,5,7,9,...,199) 3F3F 2 COLOR HIGH RESOLUTION 640 X 200 GRAPHICS MODE The 2 Color High Resolution 640 X 200 Graphics mode may require a high resolution monitor for proper operation. Available in the IBMPC and IBM PCjr, this mode has the following characteristics: Contains a maximum of 200 rows of 640 PELs Can display 2 of 16 possible colors Requires 16K bytes of read/write memory Formats 8 PELs per byte for each byte in the following manner: 7 6 5 4 3 2 1 0 PA3 PA2 PAl PA0 PA3 PA2 PAl PA0 First Second Third Fourth Fifth Sixth Seventh Eighth Display Display Display Display Display Display Display Display PEL PEL PEL PEL PEL PEL PEL PEL 5 . TANDY COMPUTER PRODUCTS - 4 COLOR HIGH RESOLUTION 640 X 200 GRAPHICS MODE The 4 Color High Resolution 640 X 200 Graphics mode may require a high resolution monitor for proper operation. Only supported on the IBM PCjr, this mode has the following characteristics: Contains a maximum of 200 rows of 640 PELs Can display 4 of 16 possible colors Each pixel selects 1 of 4 colors Requires 32K bytes of read/write memory Formats 8 PELS per two bytes (1 even byte and 1 odd byte) in the following manner: EVEN BYTES 7 6 5 4 3 2 1 0 PA0 PA0 PA0 PA0 PA0 PA0 PA0 PA0 First Second Third Fourth Fifth Sixth Seventh Eighth Display Display Display Display Display Display Display Display PEL PEL PEL PEL PEL PEL PEL PEL PAl PAl PAl PAl PAl PAl PAl PAl 7 6 5 4 3 2 1 0 ODD BYTES 6 • TANDY COMPUTER PRODUCTS 16 COLOR MEDIUM RESOLUTION 320 X 200 GRAPHICS MODE The 16 Color Medium Resolution 320 X 200 Graphics mode works with all types of display devices. This mode is available in the IBM PCjr only and has the following characteristics: Contains a maximum of 200 rows of 320 PELs Can display 16 of 16 possible colors Each pixel selects 1 of 16 colors Requires 32K bytes of read/write memory Formats 2 PELS per byte in the following manner: 7 6 5 4 3 2 1 0 PA3 PA2 PAl PA0 PA3 PA2 PAl PA0 First Second Display Display PEL PEL 16 COLOR LOW RESOLUTION 160 X 200 GRAPHICS MODE The 16 Color Low Resolution 160 X 200 Graphics mode works with all types of display devices. This mode is available in the IBM PCjr only, with the following characteristics: Contains a maximum of 200 rows of 160 PELS Can display 16 of 16 possible colors Each pixel selects 1 of 16 colors Requires 16K bytes of read/write memory Formats 2 PELs per byte in the following manner: 7 6 5 4 3 2 1 0 PA3 PA 2 PAl PA0 PA3 PA2 PAl PA0 First Second Display Display PEL PEL 7 TANDY COMPUTER PRODUCTS 4 COLOR MEDIUM RESOLUTION 320 X 200 GRAPHICS MODE The 4 Color Medium Resolution 320 X 200 Graphics mode works with all types of display devices. It is available in the IBM PC and PCjr. This mode has the following characteris- tics: Contains a maximum of 200 rows of 320 PELs Can display 4 of 16 possible colors Each pixel selects 1 of 4 colors Requires 16K bytes of read/write memory Formats 4 PELS per byte in the following manner: 7 6 5 4 3 2 1 0 PAl PAl PA0 PAl PA0 PAl PA0 PAl PA0 First Second Third Fourth Display Display Display Display PEL PEL PEL PEL VIDEO MEMORY MAP AND GRAPHICS USAGE Hex Address Register 3D0 Not Used 3D1 Not Used 3D2 Not Used 3D3 Not Used 3D4 G845 Address Register 3D5 G845 Data Register 3D6 Not Used 3D7 Not Used 3D8 Mode Select Register 3D9 Color Select Register 3 DA Video Array Address & Status 3DB Clear Light Pen Latch 3 DC Set Light Pen Latch 3DD Extended RAM Page Register 3DE Video Array Data 3DF CRT Processor Page Register 8 TANDY COMPUTER PRODUCTS VIDEO ARRAY REGISTERS The following registers can be accessed by writing their Hex Address to 3DA and their Data to 3DE Hex Address Video Array Register 01 Palette Mask 02 Border Color 03 Mode Control 10-lF Palette Registers ARRAY PALETTE MASK REGISTER Bit Programming Hex Address|Array Register 7 6 5 4 3 2 1 0 Notes 01 Palette Mask X X X X Write Only MSK[3] Palette Mask 3 MSK[2] Palette Mask 2 MSK[1] Palette Mask 1 MSKtO] Palette Mask 0 When bits 0-3 are 0, they force the appropriate palette address to be 0 regardless of the incoming color information. This can be used to make some information in memory a 'don't care' condition until it is requested. 9 . TANDY COMPUTER PRODUCTS ARRAY BORDER COLOR |Hex Address |Array Register | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | |Notes| 02 Border Color X X 0 X Write Only Reserved = 0 I BORI I (Intensity) Border Color Select_ BORR R (Red) Border Color Select BORG G (Green) Border Color Select BORB B (Blue) Border Color Select A combination of bits 0-3 selects the screen border as one of 16 colors, as listed in Table 1 "Available Colors Table" at the beginning of this section. 10 TANDY COMPUTER PRODUCTS ARRAY MODE CONTROL REGISTER Bit Programming |Hex Address|Array Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 03 Mode Control X X O x Write Only NVDM Set to 1 for 640x200 | secondary pixel organization C16COL Set to 1 for 16 Color Modes C4COLHR Set to 1 for 4 Color 640x200 Mode BORENB Enables the border color register For PC compatibility, this bit should be 0. For PCjr compatibility, this bit should be 1. Reserved for future implementations. Must always be set to zero. 11 • TANDY COMPUTER PRODUCTS ARRAY PALETTE REGISTERS There are sixteen 4 bit wide palette registers implemented by a 16x4 bit RAM. These registers are 'write' only; they cannot be 'read'. Their address in the Video Array are from hex 10 to IF. They can be used to redefine any color. To load the palette, write the hex address to the Video Array register at 3DA. Then, the new palette color is written to 3DE. Palette address hex 10 is accessed whenever the color code from memory is a hex 0, address hex 11 is accessed whenever the color code from memory is a hex 1, and so forth. A description of the color codes is in Table 1 "Available Colors Table" at the beginning of this section. Note: The palette address can be 'masked' by using the palette mask register. The following is a description of the register's bit functions: Bit Number Function 0 Blue 1 Green 2 Red 3 Intensity When loading the palette, the video is 'disabled' and the color viewed on the screen is the data contained in the register being addressed by the processor. When the program has completed loading the palette, it must change the hex address to some address less than hex 10 for video to be 'enabled' again. If a programmer does not wish a user to see the adverse effects of loading the palette, the palette should be loaded during the vertical retrace time. The program must modify the palette and change the address to less than hex 10 within the vertical retrace time. A vertical retrace interrupt and a status bit are provided to facilitate this procedure. 12 . TANDY COMPUTER PRODUCTS In two color modes, the palette is defined by using one bit (PAO), with the following-logic: PALETTE ADDRESS BIT PAO Function 0 Palette Register 0 1 Palette Register 1 In four color modes, the palette is defined by using two bits (PAl and P A O ) , with the following logic: PALETTE ADDRESS BITS PAl PAO Function 0 0 Palette Register 0 0 1 Palette Register 1 1 0 Palette Register 2 1 1 Palette Register 3 In sixteen color modes, the palette is defined by using four bits (PA3,PA2,PAl and PAO), with the following logic: PALETTE ADDRESS BITS PA3 PA2 PAl PAO Function (I) (R) (G) (B) 0 0 0 0 Palette Register 0 0 0 0 1 Palette Register 1 0 0 1 0 Palette Register 2 0 0 1 1 Palette Register 3 0 1 0 0 Palette Register 4 0 1 0 1 Palette Register 5 0 1 1 0 Palette Register 6 0 1 1 1 Palette Register 7 1 0 0 0 Palette Register 8 1 0 0 1 Palette Register 9 1 0 1 0 Palette Register 10 1 0 1 1 Palette Register 11 1 1 0 0 Palette Register 12 1 1 0 1 Palette Register 13 1 1 1 0 Palette Register 14 1 1 1 1 Palette Register 15 SSSS 13 TANDY COMPUTER PRODUCTS DETAILED I/O REGISTER INFORMATION Bit Programming |Hex Address| Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 3D4 6845 Address X X X Write Register _ Only ~1 | | | |~ Addresses 1 of 18 |<- 5 bit address ->| 6845 Registers Hex Address Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | Notes 3D5 6845 Data Write Register Only | 1 | | | | | | Data placed in |< 8 bit Data >| 1 of 18 6845 Registers 14 . TANDY COMPUTER PRODUCTS Bit Programming |Hex Address| Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 3D8 Mode Register X X Write Only ENABLINKCR Alpha Blink Enable.A 1 | selects blink if attribute bit 7 is set. A 0 selects 16 back- ground colors. A 1 selects 8 background colors. HRESAD 640 Dot Graphics. A 1 selects 640 X 200 ( 2 or 4 Color ) VIDENBCR Video Enable. A 1 enables the Video display. BW Black & White Select. Selects B&W or color mode for TV or composite monitors. In RGB monitors, a different color palette is selected by this bit in 320 x 200 4 Col Mode. This bit will have no other effect on RGB operation GRPH Graphics Select. A 0 selects Alpha- numeric Mode. A 1 selects Graphics Mode. HRESCK High Resolution Dot Clock. A 0 selects the lower speed for 40 character text or low resolution graphics mode. A 1 selects the higher speed for 80 character text or high resolution graphics mode. 15 TANDY COMPUTER PRODUCTS Bit Programming |Hex Address| Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 3D9 Color Select X X Write Register _ Only COLSEL 320 X 200 4 Color Blue J Control BACKGROUNDI Alpha Background/320 Graphics Foreground Intensity. When Blink is enabled in alpha mode, this bit is used to select intensity. In the 320 X 200 4 color mode, it selects the intensity of the foreground OVERSCANI In Alpha mode screen Border intensity In 320x200 4 Col Background intensity if PA0=PAl=0 In 640x200 2 Col Foreground intensity OVERSCANR In Alpha mode screen Border Red In 320x200 4 Col Background Red if PA0=PAl=0 In 640x200 2 Col Foreground Red OVERSCANG In Alpha mode screen Border Green _________ In 320x200 4 Col Background Green if PA0=PAl=0 In 640x200 2 Col Foreground Green OVERSCANB In Alpha mode screen Border Blue In 320x200 4 Col Background Blue if PA0=PAl=0 In 640x200 2 Col Foreground Blue 16 • TANDY COMPUTER PRODUCTS < Bit programming |Hex Address| Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 3DA Video/Light Pen X X X X Read Status _ Only CVSYNC When 1 Vertical retrace is active | LPSWB Light Pen Switch Status When 0 Light Pen Switch is on. Switch not latched or debounced. LPSTRB When 1 Light Pen input has positive going edge and has set Light Pen trigger. When this trigger is low during a system power on, it may be cleared by performing an I/O command to address 3DB. No specific data is required. DISPENB When 0 Display is active When 1 Video is not displayed Bit Programming |Hex Address| Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 3DC Set Light Pen X X X X X X X X Write Latch Only 3DB Clear Light Pen X X X X X X X X Write Latch Only Data Byte has no effect. Before the 6845 can read the light pen again, the latch at 3DB must be cleared 17 . TANDY COMPUTER PRODUCTS Bit Programming |Hex A d d r e s s | Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 3DD Extended Ram X X X Write Page Reg _ Only PG18 (#) CPU Page Address 18 | PG17 CPU Page Address 17 All bits VPG18 (#) video Page Address 18 cleared VPG17 Video Page Address 17 by a System Reset EXTADR Extended Addressing Mode for 256K systems Note (#) Not implemented in current design but reserved for future implementations 18 . TANDY COMPUTER PRODUCTS Bit Programming |Hex Address| Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 3DF CRT/Processor Write Page Reg _ _ ^ Only ADRMK**) Video Address | Mode 1 with Reg 3DD bitO selects video Address supplied to RAM ADRM0(**) Video Address Mode 0 with Reg 3DD bitO selects Video Address supplied to RAM Processor Page 2 Processor Page 1 processor Page 0 CRTPG2 CRT Page 2 CRTPGl CRT Page 1 CRTPGO CRT Page 0 The processor page bits are combined with the CPU address to select the 32K segment of memory accessed at B8000. If an odd page number is selected, the window is reduced to 16K. The CRT Page bits select the 16K Page used by the Video. In 32K modes bit 0 is ignored. Note (**) : These bits are used in conjunction with Reg 3DD bit 0 to select the Video addresses to the RAM. See the Video Memory Address- ing Modes Table. Also the Graphics control bit 3D8 bit 1 (GRPH) will force the same condition as setting ADRMO. 19 • TANDY COMPUTER PRODUCTS Bit Programming |Hex A d d r e s s | Register | | 7 | 6 | 5 | 4 | 3 | 2 | l | 0 | | Notes | 0OAO-OOA7 NMI Mask X X Write Register Only NMIEN Enable Non | Maskable Interrupt PORTMD Enable 256K Video RAM All bits MC3 Memory Configuration 3 cleared MC2 Memory Configuration 2 by a MCI Memory Configuration 1 System XTERNVID Disables all video Accesses to Video Memory Reset at B8000-BFFFF and video I/O locations 3D0-3D7 20 . TANDY COMPUTER PRODUCTS 6845 PROGRAMMING TABLE FOR ALL MODES * REGISTER 40X25 80X25 160X200 16 Col 640X200 4 Col ALPHANUM ALPHANUM 320X200 4 Col 320X200 16 Col 640X200 2 Col 0 Horizontal Total 38 (56) 71 (113) 38 (56) 71 (113) 1 Horiz. Displayed 28 (40) 50 (80) 28 (40) 50 (80) 2 Horiz. Sync. Pos 2D (45) 5A (90) 2D (45) 5A (90) 3 Horiz. Sync. Width 08 (8) 0E (14) 08 (8) 0E (14) 4 Vertical Total-1 1C (28) 1C (28) 7F (127) 3F (63) 5 Vert. Total Adjust 01 (1) 01 (1) 06 (6) 06 (6) 6 Vertic. Displayed 19 (25) 19 (25) 64 (100) 32 (50) 7 Vert. Sync Pos. 1A (26) 1A (26) 70 (112) 38 (56) 8 Interlace Mode 02 (2) 02 (2) 02 (2) 02 (2) 9 MaxScanLineAdd -1 08 (8) 08 (8) 01 (1) 03 (3) 10 Cursor Start 06 (6) 06 (6) 06 (6) 06 (6) 11 Cursor End 07 (7) 07 (7) 07 (7) 07 (7) 12 StartAddresss High (JO (0) 00 (0) 00 (0) 00 (0) 13 StartAddress Low 00 (0) 00 (0) 00 (0) 00 (0) MODE SELECTION SUMMARY MODE 1 H3D8 'H3D8 1 H3DE REG3 1H3DE REG3 1 H3DE REG3 'H3D8 'H3DD 'HJDF 'H3DF BIT 0 BIT 4 BIT 3 BIT 4 BIT 5 BIT 1 BIT 0 BIT 7 BIT 6 HRESCK HRESAD C4COLHR C16COL NVDM GRPH EXTADR ADRMl ADRM0 4 0X25 ALPHA 0 0 0 0 0 0 0 0 0 80X25 ALPHA 1 0 0 0 0 0 0 0 0 t-1 i-t 160X200 16 COL 0 0 0 0 0 0 1 320X200 4 COL 0 0 0 0 0 1 0 0 1 320X200 16 COL 1 0 0 1 0 1 0 1 1 |640X200 2 COL 0 1 0 0 0 1 0 0 1 |640X200 4 COL 1 1 1 o 1 0 1 1 21 TAMDY COMPUTER PRODUCTS VIDEO/SYSTEM MEMORY ADDRESS MAP 1 VIDEO/SYSTEM MEMORY VIDEO/SYSTEM MEMORY VIDEO/SYSTEM MEMORY HOAO BITS 4 3 2 1 START ADDRESS LENGTH ADDRESS RANGE 0 0 00 0 0 0 00 128K 0 0 0 0 0 - 1 F F F F 0 0 0 1 2 0 0 00 128K 2 0 0 0 0 - 3 F F F F 0 01 0 4 0 0 00 128K 4 0 0 0 0 - 5 F F F F 0 0 1 1 6 0 0 00 128K 6 0 0 0 0 - 7 F F F F 0 1 00 8 0 0 00 128K 8 0 0 0 0 - 9 F F F F 10 0 1 0 0 0 00 256K 0 0 0 0 0 - 3 F F F F 10 1 0 2 0 0 00 256K 2 0 0 0 0 - 5 F F F F 10 1 1 4 0 0 00 256K 4 0 0 0 0 - 7 F F F F 1 1 0 0 6 0 0 00 256K 6 0 0 0 0 - 9 F F F F VIDEO MEMORY ADDRESSING MODES 'H3DD 1 H3DF 'H3DF VIDEO MEMORY ORGANIZATION BIT 0 BIT 7 BIT 6 (128) EXT ADR ADRMl ADRM0 0 0 0 1 16K Segment of Memory (8 Pages) 0 0 1 2 8K Segments of Memory (8 Pages) Switched on RA[0] 0 1 0 2 16K Segments of Memory (4 Pages) Switched on RAtO] 0 1 4 8K Segments of Memory (4 Pages) Switched on RA[0],RA[l] 1 0 0 1 32K Segment of Memory (4 Pages) 1 0 1 2 32K Segments of Memory (2 Pages) Switched on RA[0] For 8 Page Modes CRTPG[2:0] select the Video Page For 4 Page Modes CRTPG[2:1] select the Video Page For 2 Page Modes CRTPGI2] select the Video Page 22 TANDY COMPUTER PRODUCTS OTHER CHIP FUNCTIONS In addition to the video controller functions, the Tandy 1000 video controller chip also provides most of the system address decode functions. These decode and chip select functions are described as follows: A, B, C outputs are encoded device select lines and are connected to an external LS138. cB A IOMB BA0-15(HEX) DESCRIPTION 1 1 1 NONE OF BELOW 1 1 0 1 0020-0027 INTCSB 1 0 1 1 0040-0047 TMRCSB 1 0 0 1 0060-0067 PIOCSB 0 1 1 1 0200-0207 JOYSTKCSB 0 1 0 1 00C0-00C7 SNDCSB 0 0 1 1 03F0-03F7 FDCCSB 0 0 0 1 0378-037F PRINTCSB The output signal ROMIOSELB is the enable signal for an LS245 that controls all of the data flow to devices on the main logic board. This signal is active low and will be activated for any of the following conditions: 1. Video/System Memory Read or Write 2. Video Access at B8000-BFFFF 3. Rom Access at F0000-FFFFF 4. Video I/O access at 03D0-03DF 5. I/O access to any of the following addresses: 0040-0047 0060-0067 00A0-00A7 00C0-00C7 0200-0207 0378-037F 03F0-03F7 23 • TANDY COMPUTER PRODUCTS PIN LIST 1 1 0 0 0 0 0 0 0 0 0 8 8 8 8 8 7 7 7 7 7 1 0 9 8 7 6 5 4 3 2 1 4 3 2 1 0 9 8 7 6 5 12 74 13 73 14 72 15 71 16 Video C o n t r o l l e r Chip 70 17 69 18 68 19 84 PIN PLCC 67 20 66 21 #2684 65 22 64 23 63 24 62 25 61 26 60 27 59 28 58 29 57 30 56 31 55 32 54 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 5 5 5 5 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 24 . TANDY COMPUTER PRODUCTS DESCRIPTION OF EACH PIN FUNCTION PIN# PIN NAME TYPE DESCRIPTION 1 vss Ground Ground 2 XMD[2] Input/Output External Memory Data I/O Bank 0 3 XMD[3] Input/Output External Memory Data I/O Bank 0 4 XMD[4] Input/Output External Memory Data I/O Bank 0 5 XMD[5] Input/Output External Memory Data I/O Bank 0 6 XMD[6] Input/Output External Memory Data I/O Bank 0 7 XMD[7] Input/Output External Memory Data I/O Bank 0 8 YMD[0] Input/Output External Memory Data I/O Bank 1 9 YMD[1] Input/Output External Memory Data I/O Bank 1 10 YMD[2] Input/Output External Memory Data I/O Bank 1 11 YMD[3] Input/Output External Memory Data I/O Bank 1 12 YMD[4] Input/Output External Memory Data I/O Bank 1 13 YMD[5] Input/Output External Memory Data I/O Bank 1 14 YMD[6] Input/Output External Memory Data I/O Bank 1 15 YMD[7] Input/Output External Memory Data I/O Bank 1 16 RFSHB Input Memory Refresh Strobe Input 17 MWE1B Output Ram Bank 1 Write Enable Signal 18 MWEOB Output Ram Bank 0 Write Enable Signal 19 RASB Output Ram Row Address Strobe 20 CASB Output Ram Column Address Strobe 21 BMEMRB Input CPU Memory Read Strobe 22 VDD Power 5 Volts Supply 23 BMEMWB Input CPU Memory Write Strobe 24 CK28M Clock 28.636 36 Mhz Clock Input 25 VIDEOWAIT Output(OpenDrain) Video Wait Signal 26 SYSRSTB Input System Reset 27 IOMB Input CPU I/O-Memory Signal (Memory ->1, I/O -> 0) 28 A Output Encoded Peripheral Select Line 29 B Output Encoded Peripheral Select Line 30 C Output Encoded Peripheral Select Line 31 IOMEMSELB Output External Buffer Enable 32 NMIEN Output Nonmaskable Interrupt Enable 33 BIORB Input CPU I/O Read Strobe 34 BIOWB Input CPU I/O Write Strobe 35 LPIN Input Light Pen Signal Input 36 LPSWB Input Light Pen Switch Input 37 OUTVSYNC Output Vertical Sync Output 38 OUTHSYNC Output Horizontal Sync Output 39 COMPCOLOR Output Composite Color Signal 40 COMPSYNC Output Composite Sync Signal 41 OUTI Output Intensity Out 42 OUTR Output Red Video Out 43 VSS1 Ground Ground 44 OUTB Output Blue Video Out/Monochrome Dotclock 25 TANDY COMPUTER PRODUCTS ' 45 OUTG Output Green Video Out/Monochrome Video 46 BA[19 ] Input CPU Address Line 47 BA[18] Input CPU Address Line 48 BA[17] Input CPU Address Line 49 BA[16] Input CPU Address Line 50 BA[157 Input CPU Address Line 51 BA[14] Input CPU Address Line 52 BA[13] Input CPU Address Line 53 BA[12] Input CPU Address Line 54 BA[11] Input CPU Address Line 55 BA[10] Input CPU Address Line 56 BA[9] Input CPU Address Line 57 BA[8] Input CPU Address Line 58 BA[7] Input CPU Address Line 59 BA[6] Input CPU Address Line 60 BA[5] Input CPU Address Line 61 BA[4] Input CPU Address Line 62 BA[3] Input CPU Address Line 63 BA[2] Input CPU Address Line 64 BA[1] Input CPU Address Line 65 BA[0] Input CPU Address Line 66 DB[7] Input/Output CPU Data I/O 67 DB[6] Input/Output CPU Data I/O 68 DB[5] Input/Output CPU Data I/O 69 DB[4] Input/Output CPU Data I/O 70 DB[3] Input/Output CPU Data I/O 71 DB[2] Input/Output CPU Data I/O 72 DB[1] Input/Output CPU Data I/O 73 DB[0] Input/Output CPU Data I/O 74 MA[0] Output Memory Address Line 75 MA[1] Output Memory Address Line 76 MA[2] Output Memory Address Line 77 MA[3] Output Memory Address Line 78 MA[4] Output Memory Address Line 79 MA[5] Output Memory Address Line 80 MA[6] Output Memory Address Line 81 MA[7] Output Memory Address Line 82 BANKSL Output Memory Address Line 83 XMD[0] Input/Output External Memory Data I/O Bank 0 84 XMD[1] Input/Output External Memory Data I/O Bank 0 26 . TANDY COMPUTER PRODUCTS - LOGIC BLOCK DIAGRAM TEST MODES AND THEIR OPERATIONS There are four Test Modes that the chip can be placed into to make the part easily and efficiently testable. All these Test Modes use conditions that can never occur in a System environ- ment, therefore avoiding accidental entry in Test Mode. All the test modes are entered when both MEMRB and MEMWB are active. The selection of the different tests is done by an additional decode on some bits of the BA lines according to the following chart: ENABLED WHEN OPERATION PERFORMED TEST MODE BMEMRB BMEMWB BA15 BA14 BA13 BA12 1 0 0 1 X X X Pinout the 6845 Megacell on external pins and/or Start Self Test Rom. While the testing of the Megacell is in progress, the Rom is performing a signature analysis. At the end of 4500 clocks, a PASS/FAIL bit is set, if the Self Test was successful. 2 0 0 0 1 X X Enable a Software Reset on the 6845. 3 0 0 0 X 1 X Clear the Clock generators & blink counter to start from a known condition. 4 0 0 0 X X 0/1 A 1 writes a bit that forces Display Enable con- stantly. A 0 removes forced Display Enable. Cleared by SYSRSTB. 27 TANDY COMPUTER PRODUCTS TEST MODE 1 PINOUT THAT EMULATES THE 6845 STANDARD PRODUCT The following signals of the Megacell are available on the following pins in Test Mode 1: 6845 SIGNAL VIDEO CONTROLLER SIGNAL RESETB SYSRSTB LPSTB LPIN MA[7:0] MA[7:0] MA[8] BANKSL MA[9] MWElB MA[10] ROMIOSELB MA[11] A MA[12] B MA[13] C DE COMPSYNC CURSOR COMPCOLOR CLK IOMB ( See Note *** ) RNW BIOWB E RFSHB RS BA[0] CSB LPSWB DB[7:0] DB[7:0] RA[0] RASB RA[1] CASB RA[2] OUTR RA[3] OUT I RA[4] MWEOB HS OUTHSYNC VS OUTVSYNC Also the Pass/Fail bit for the Self Test Rom can be tested on the OUTG output pin during TEST MODE 1. Note that at least 4,500 clocks must be given in Test Mode 1 before checking the Pass/Fail bit. These clock times could be used to exercise the 6845 as a standard part according to the previous pinout. Note***: IOMB is in fact CLK Bar so in order to test it using the standard part's test program, there is a need to invert the clock coming in the Test program. 28 • TANDY COMPUTER PRODUCTS - ELECTRICAL SPECIFICATIONS ABSOLUTE MAX RATINGS (NON-OPERATING, VSS=0v) MIN MAX UNITS STORAGE TEMPERATURE -65 150 DEGREES C. VOLTAGE ON ANY PIN W.R.T.GROUND -0.5 7.0 VOLTS OPERATING ELECTRICAL SPECIFICATIONS OPERATING AMBIENT MIN TYP MAX UNITS AIR TEMP. RANGE 0 25 70 DEGREES C. POWER SUPPLIES VCC SUPPLY VOLTAGE 4.5 5.0 5.5 VOLTS VSS SUPPLY VOLTAGE 0 0 0 VOLTS ICC SUPPLY CURRENT 20 35 MILLIAMPS TOTAL POWER DISSIPATION 100 175 MILLIWATTS (INCLUDE LOADING ON OUTPUTS) LEAKAGE CURRENT MIN TYP MAX ALL INPUTS AND TRISTATE OUTPUTS -10 10 MICROAMPS INPUT VOLTAGES LOGIC "0" (Vil) ALL INPUTS 0.8 VOLTS LOGIC "1" (Vih) ALL INPUTS 2.0 VOLTS OUTPUT VOLTAGES CURRENT LOADING MIN TYP MAX UNITS LOGIC"0" (Vol) ALL OUTPUTS 2.0 MA 0.4 VOLTS LOGIC"1" (Voh) ALL OUTPUTS 0.4 MA 2.4 VOLTS INPUT CAPACITANCE MIN TYP MAX ALL INPUTS 10 PICOFARADS TIMING SPECIFICATION 29 . TANDY COMPUTER PRODUCTS MAXIMUM LOADING FOR EACH OUTPUT MA[8]-MA[0] 100 pF ALL OTHER OUTPUTS 20 pF CHARACTERISTICS READ Operation I/O TIMING 1 #| DESCRIPTION |MIN | MAX | UNITS| NOTE] 1 1| ADDRESS VALID TO BIORB ACTIVE SETUP 1 501 | NS 1 1 1 2| ADDRESS VALID HOLD AFTER BIORB INACTIVE1 501 | NS 1 1 1 3| BIORB PULSE WIDTH LOW | 250 1 | NS 1 1 1 4| BIORB ACTIVE TO DATA OUT VALID 1 j | 200 | | NS 1 1 1 5| BIORB INACTIVE TO DATA OUT TRISTATE 1 | 201 ioo j1 NS 1 1 READ OPERATION 30 TANDY COMPUTER PRODUCTS WRITE OPERATION AND I/O OUTPUT TIMING l# | DESCRIPTION |MIN|MAX|UNITS|NOTE| | 6| ADDRESS VALID TO BIOWB ACTIVE SETUP 1 1 50 | NS 1 1 | 7| ADDRESS VALID HOLD AFTER BIOWB INACTIVE 1 1 50 | NS 1 1 1 8|BIOWB PULSE WIDTH LOW |250| | NS 1 1 1 9|DATA IN VALID TO BIOWB INACTIVE SETUP 1 200 | | NS 1 1 110 | BIOWB INACTIVE TO DATA IN VALID HOLD 1 1 501 | NS 1 1 111 |ADDRESS VALID TO C,B,A,ROMIOSELB OUTPUT DELAY 1 | 80| NS 1 1 112 |ADDRESS NOT VALID TO ROMIOSELB INACTIVE OUT DELAY 1 NS 1 1 801 1 |13| BIOWB INACTIVE TO NMIEN LATCHED OUTPUT DELAY j| 11001 NS 1| 1 31 TANDY COMPUTER PRODUCTS MEMORY DECODE TIMING MEMORY READ OR WRITE OPERATION 32 TANDY COMPUTER PRODUCTS | * | DESCRIPTION |MIN |MAX|UNITS |NOTE| 115 | ADDRESS VALID TO BMEMRB ACTIVE SETUP 1 1 50 1 1 1 NS |16| ADDRESS VALID HOLD AFTER BMEMRB INACTIVE 1 1 50 1 1 1 NS |17 | BMEMRB PULSE WIDTH LOW | 2501 1 1 1 NS |18 | ADDRESS VALID TO ROMIOSELB OUTPUT DELAY | | 30| NS 1 1 |19 ADDRESS NOT VALID TO ROMIOSELB INACTIVE OUT DELAY 1 SO j NS 1 1 [20 |VIDWAIT DELAY FROM BMEMRB READ LOW 1 | 501 NS 1 1 121,| VIDWAIT PULSE WIDTH 1 35 |600| NS | | | 22| XMD, YMD SETUP TO CASB LOW (MEM READ) I 901 | 1 1 NS |23 | XMD, YMD HOLD TO CASB LOW (MEM READ) 1 o1 1 NS 1 1 1 24 | VIDWAIT LOW DELAY TO RASB LOW 1 | 70| NS | 1 1 25 |VIDWAIT LOW DELAY TO CASB LOW [ 0|1401 NS | 1 |26| I/O DATA BUS OUT SETUP TO BMEMRB HIGH | 601 | NS | 1 |27| I/O DATA BUS OUT HOLD TO BMEMRB HIGH | 01 30 | NS | 1 33 . TANDY COMPUTER PRODUCTS CRTC TIMING 34 TANDV COMPUTER PRODUCTS CRTC TIMING Characteristics Symbol Min Nom Max Units 28 CCLK frequency Fcyc 2 MHz 29 CCLK width PWcl 100 nS 30 CCLK rise and fall time Tcr ,Tcf 5 nS 31 CLK fall to MA[7:0]RA0-4 delay time Tmad,Trad 50 nS 32 CLK fall to HS, VS, DE,CURSOR delay time Thsd,Tvsd 50 nS Tdtd,Tcdd 33 MA[7:0],BANKSL setup to 40 nS RASB low 34 MA[7:0],BANKSL setup to 10 nS CASB low 35 MA[7:0],BANKSL hold from 30 nS RASB low 36 MA[7:0],BANKSL hold from 40 nS CASB low 37 RASB,CASB fall 20 nS 38 RASB,CASB rise 5 nS 35 TANDY COMPUTER PRODUCTS OTHER TIMING SPECS Characteristics Symbol Min Norn Max Units 39 Relative Skew of R,G,B,I 10 nS 40 Relative Skew of R,G,B,I 20 nS With respect to Compcol 41 Relative Skew of R,G,B,I 35 nS With respect to CompSync OutHsync,OutVsync 42 Relative Skew of R,G,B,I 35 nS With respect to CompSync 36 . TANDY COMPUTER PRODUCTS MEGACELL 6845R1 SPECIFICATION DATASHEET FOR 6845 MEGACELL VE 68C45 MEGACELL DESIGN KIT CRT CONTROLLER MEGACELL FEATDRES o Completely integrated with VTI's extensive IC design tools and libraries o CMOS (2-micron) M68C45 Megacell configurable as: — 68C45R - CMOS equivalent of Motorola 6845R CRTC — 68C45R1 - CMOS equivalent of Motorola 6845R1 Enhanced CRTC — 68C45S - CMOS equivalent of Hitachi 6845S CRTC — 68C45SY - CMOS CRTC similar to Synertek 6545 CRTC o 4.5 MHz video memory interface o 3 MHz system processor interface o Compatible with the VTI bus architecture o Programmable Display Enable and Cursor delays (standard for S and SY versions — optional for R and Rl versions) o Programmable Vertical Sync pulse width (standard for S version — optional for R, Rl and SY versions) o Row/Column display memory addressing (SY version) o Double Width character control OPTIONAL FEATURES o 16K, 32K, or 64K display Memory Address range (14, 15, or 16 bits) o 7, 8, or 9-bit Vertical Row counter VTI MEGACELLS Megacells are building block equivalents of standard LSI functions that can be combined with other megacells, standard cells or compiled cells to create custom User-Specific ICs (USICs). Megacells are fully compatible with VTI's other cell technologies and design tools. The VTI bus (TM) architecture allows multiple megacells to be combined on a single IC, along with additional cells from VTI's extensive libraries — decreasing the design time, design cost, and size of complex systems. A detailed Functional Model provided with each megacell further reduces design verification time. 37 . TANDY COMPUTER PRODUCTS SIGNAL DESCRIPTIONS The following signals function the same on the M68C45 Megacells and on the standard VL6845 family of CRT Controller ICs. Signal I/O Description RS IP Register Select E IP Enable RNW IP Specify READ (high) or WRITE (low) operation CSB IP Chip (6845 megacell) select, low true CCLK IP Character Clock LPSTB IP Light Pen Strobe D0-D7 I/O Data Bus RA0-RA4 OP Raster Address HS OP Horizontal Sync RESETB IP Reset, low true The following signals are unique to the VE68C45 Megacells, or are functionally different on the VE68C45 Megacells and the VL6845 ICs. Signal I/O Description DE OP Display Enable output - active (DE = "1") when the VE68C45 is generating active display information. The S version can be programmed with a 0, 1, or 2 character delay. The SY version can be programmed for a 0 or 1 character delay. CURSOR OP Cursor output - this signal is high when the raster scan coincides with the programmed cursor position. The S version can be programmed with a 0, 1, or 2 character delay. The SY version can be programmed for a 0 or 1 character delay. VS OP Vertical Sync output - active high pulse which determines the vertical placement of the video data. An optional feature permits programming the Vertical Sync pulse width. 38 . TANDY COMPUTER PRODUCTS MA0-MA13, OP 14, 15, or 16- bit Video Memory 14,15 Address bus. These tri-state outputs provide the binary address to the external video RAM. If row/column addressing is selected (SY version only) this bus will provide row/column addressing to the external RAM instead of binary addressing. The AENB input signal can be used to place the MA bus in the high impedance state. AENB IP Address Enable input - when asserted low (AENB = "0") the MA outputs are enabled. AENB = "1" forces the MA outputs into a high impedance state. LD0-LD13, I/O 14, 15, or 16-bit Advanced Memory 14,15 Address bus - separate video memory address information on this bus precedes the information on the MA bus by one character clock. This bus is provided to interface with a separate strip of logic for split display capability. LOAD IP When asserted (high) a new value is loaded into the RA counter. Tie to VSS when not used. BREAK IP To be used for splitted screen format. Tie to VSS when not used. READB OP This signal goes LOW during a legitimate read operation. VDRA n/c Reserved for future expansion. To (reserved) be left unconnected. DW IP Double Width input - this input puts the VE68C45 in a double-width display mode. Tie to VSS when not used. 39 . TANDY COMPUTER PRODUCTS 6845R, IP One of these three inputs is tied 6845S, high to select the version of the 6545SY VE68C45 used in your application. The remaining two inputs must be grounded. NOTE: the VE68C45SY does not provide 6545 transparent addressing or the 6545 status register. 40 • TANDY COMPUTER PRODUCTS ELECTRICAL SPECIFICATIONS Absolute Maximum Ratings Ambient temperature under bias 0 C to 70 C Storage temperature -65 C to +150 C Voltage on any signal with respect to Gnd -0.5V to +7V Power dissipation 750mW DC characteristics ( Ta = 0 - 70 degree C, Vss=0v, Vcc=+5 +/- 10%) Characteristics Symbol Min Typ Max Units Input High Voltage Inputs,1/0 Vih 3.0 Vcc Volts Input Low Voltage Inputs,I/O Vil VSS 0.8 Volts Output High Voltage Outputs,I/O Voh 3.0 Vcc Volts Output Low Voltage Outputs,1/0 Vol 0.4 Volts Capacitance Input Capacitance CLK input Cin 6 pF remaining inputs Cin .7 pF Output Loading MA0-13,D0-7 Cout 9 pF RA0-4,HS,VS,DE, Cout 3 pF Cursor 41 . TANDY COMPUTER PRODUCTS AC CHARACTERISTICS (Vcc=+5v +/- 10%, Vss=0v, Ta=0 C to 70 C) VTI BUS TIMING 42 • TANDY COMPUTER PRODUCTS WRITE 43 TANDY COMPUTER PRODUCTS VTI BOS TIMING MIN(ns) MAX (ns) TAC address to CS delay 0 TARW address to read/write delay 0 TAEN address to enable set up 40 TCEN CS to enable delay 10 TRWEN read/write to enable set up 10 TENW enable pulse width 100 TENA enable to address hold time 10 TENC enable to cs hold time 10 TENRW enable to read/write hold time 10 read: TEND enable to read data delay 50 TENDF enable to data bus float 5 30 write: TDEN write data to enable setup time 50 TENDH enable to write data hold time 10 44 TANDY COMPUTER PRODUCTS CRTC TIMING CRTC TIMING Characteristics Symbol Min Nom Max Units 20 CLK frequency Fcyc 4.5 MHz 21 CLK width PWcl 100 nS 22 CLK rise and fall time Tcr,Tcf 5 nS 23 CLK fall to MA0-15,RA0-4 delay time Tmad,Trad 50 nS 24 CLK fall to HS, VS, DE,CURSOR delay time Thsd,Tvsd 50 nS Tdtd,Tcdd 45 . TANDY COMPUTER PRODUCTS DMA CHIP SPECIFICATION TANDY COMPUTER PRODUCTS DMA CHIP SPECIFICATION CONTENTS GENERAL DESCRIPTION 1 ADDRESS DECODE 1 PIN LIST 5 PIN FUNCTIONS 6 LOGIC BLOCK DIAGRAM 10 ELECTRICAL SPECIFICATIONS 11 TIMING 18 TANDY COMPUTER PRODUCTS DMA CHIP SPECIFICATION GENERAL DESCRIPTION The DMA Chip is an Intel 8237A-5 (AMD 9517) DMA Controller plus associated support circuity to integrate the TANDY 1000 External Memory function into a single ASIC part. The support circuity is divided into the five functional sections. The ADDRESS DECODE-MEMORY and ADDRESS DECODE-IO are independent of the DMA function and interface directly into the bus. The TIMING and DMA RDY sections are DMA support functions. The BUFFERS support the in/out pins. The functional configuration of the 8237 for the DMA Chip is a fixed subset of its total capability. It is configured via the BIOS ROM for: normal timing, fixed priority, late write, high DREQ sense, low DACK sense. ADDRESS DECODE - MEMORY Provides RAM Memory access decode and address generation. Bus addresses A19-A15 determine which segment(bank) of memory is being accessed based on one of four possible memory configurations, (see memory map Figure 1 ) . This is combined with Bus strobes MEMWB or MEMRB and CLK to create one of the three RAS strobes (RASOB, RAS1B or RAS2B), MUX, CAS, data directional controls DBDIR, DBENB and the multiplexed RAM addresses MA0-MA8. The signals CAS and MUX will occur for all access's except REFRESH. The address lines MA0-MA8 are Bus addresses A0-A8 and A9-A17 multiplexed together by the signal MUX. These will occur for all access's including REFRESH (since MUX does not occur during REFRESH, MA0-MA8 will be only A0-A8). The selection of MA8 will be made externally since Bank 0 and Bank 1 can be either 64K or 265K DRAM IC's. 1 MCFO,MCF1 MEMORY ADDRESS ACCESS CODE ORGANIZATION CONTROL SIGNAL OPTION #1 00 BANK 0 64K x 8 0.0000-0.FFFF RAS0 BANK 1 64K x 8 1.0000-1.FFFF RAS1 BANK 2 EMPTY OPTION #2 01 BANK 0 256K x 8 0.0000-3.FFFF RAS0 BANK 1 EMPTY BANK 2 EMPTY OPTION #3 10 BANK 0 256K x 8 0.0000-3.FFFF RAS0 BANK 1 256K x 8 4.0000-7.FFFF RAS1 BANK 2 EMPTY OPTION #4 11 BANK 0 64K x 8 0.0000-0.FFFF RAS0 BANK 1 64K x 8 1.0000-1.FFFF RAS1 BANK 2 256K x 8 2.0000-5.FFFF RAS2 Figure 1 MEMORY CONFIGURATION MAP EQUATIONS FOR RAS-B 64K DRAMS require address A0-A15, therefore A19-A16 determine access. 256K DRAMS require address A0-A17, therefore A19-A18 determine access. RAS0B = /MCF1./MCF0./19./18./17./16./REFRESH.(MEMRB+MEMWB) OPTION #1 + /MCFl. MCF0./19./18. /REFRESH.(MEMRB+MEMWB) OPTION #2 + MCF1./MCF0./19./18. /REFRESH.(MEMRB+MEMWB) OPTION #3 + MCFl. MCF0./19./18./17./16./REFRESH.(MEMRB+MEMWB) OPTION #4 + REFRESH.MEMRB RASlB = /MCF1./MCF0./19./18./17. 16./REFRESH.(MEMRB+MEMWB) OPTION #1 + MCF1./MCF0./19. 18. /REFRESH.(MEMRB+MEMWB) OPTION #3, NO OPTION #2 + MCFl. MCF0./19./18./17. 16./REFRESH.(MEMRB+MEMWB) OPTION #4 + REFRESH.MEMRB RAS3B = MCFl. MCF0./19./18. 17 /REFRESH.(MEMRB+MEMWB) OPTION #4, NO OPTION #1,#2,#3 + MCFl. MCF0./19. 18./17 /REFRESH.(MEMRB+MEMWB) + REFRESH.MEMRB 2 TANDY COMPUTER PRODUCTS EQUATIONS FOR MULTIPLEXED ADDRESSES MA- ROW ADDRESS COLUMN ADDRESS (FIRST) (SECOND) MAO AO A8 Since these addresses will MAI Al A9 be used for either/both MA2 A2 A10 64K and 256K DRAMS, MA8 MA3 A3 All will be A16,A17 instead MA4 A4 A12 of two sets of MAs. MA5 A5 A13 (i.e. 64K MA0=A0/A8, MA6 A6 A14 256K MA0=A0/A9,...etc.) MA7 A7 A15 MA8 A16 A17 ADDRESS DECODE - I/O Provides I/O decode for generating the chip selects for the DMA Controller and the DMA Segment Address Register plus the data directional control signals DBDIR and DBENB. Bus addresses A0-A15 are decoded and combined with Bus strobes IORB or IOWB to create the chip selects. CHIP SELECT ADDRESS SIGNAL EQUATION (A19-A16 = don't care) FUNCTION (A15,...,A8 = 0, ALWAYS) DMA X.0000-X.000F DMACSB = /A7./A6./A5./A4./AEN.(IORB + IOWB) DMA SEGMENT REGISTER X.0080-X.0083 WPRCSB = A7./A6./A5./A4./A4./AEN.IOWB Figure 2 I/O CONFIGURATION MAP DMA READY A system requirement is to have one WAIT cycle automatically inserted into each I/O transfer. When an IORB occurs, WAIT cycles will continually be inserted until IORB returns inactive or until a MEMWB or MEMRB occurs. This one WAIT cycle is inserted automatically when the CPU is Bus Master. Therefore when the DMA is a Bus Master, it is necessary to insert one WAIT cycle into each DMA I/O transfer (that is every transfer) and honor any additional WAIT requests from the system. 3 TANDY COMPUTER PRODUCTS TIMING GENERATOR The input clock is OSC (= 14.31818 MHZ). 1.) It is divided by three to recreate the 4.77 MHz system processor clock which is used as the clock for the 8237. 2.) It is used to delay the memory access strobe MEM-B twice to create the timing for RAS-, MUX, and CAS. BUFFERS Provide isolation and drive capability since this circuit will interface directly onto the system bus. These buffers include the bi-directional buffers for address and control strobes (CPU Bus Master - Receive control,address, DMA Bus Master - transmit control,address) but excludes the bi-directional data buffer. Since it must be shared by the memory, this part will be provided externally. Decoding from the ADDRESS DECODE I/O and MEMORY circuitry are combined to provide directional control signals DBDIR, DBENB for this data bus buffer. FUNCTION SIGNAL EQUATION DATA BUS DBDIR = DMACSB.IORB DIRECTIONAL + /MCF1./MCFO./19./18./17. /REFRESH. MEMRB CONTROL + /MCF1. MCFO./19./18. /REFRESH. MEMRB + MCFl. /MCF0./19. /REFRESH. MEMRB + MCFl. MCF0./19.(/18 + 18./17)./REFRESH. MEMRB DATA BUS DBENB = DMACSB + WPRCSB BUFFER ENABLE + /MCFl./MCFO./19./18./17. /REFRESH. MEM-B + /MCFl. MCF0./19./18. /REFRESH. MEM-B + MCFl. /MCF0./19. /REFRESH. MEM-B + MCFl. MCF0./19.(/18 + 18./17)./REFRESH. MEM-B ADDRESS BUS, CONTROL BUS DIRECTIONAL DMAAENB = 8257 Signal AEN inverted CONTROL Figure 3 BUFFER CONTROL SIGNALS 4 TANDY COMPUTER PRODUCTS PIN LIST 5 TANDY COMPUTER PRODUCTS DESCRIPTION OF EACH PIN FUNCTION FUNCTION PIN NUMBER FUNCTION PIN NUMBER vss 1 VDD 35 RFSHB 2 CASB 36 REFRESHB 3 RASOB 37 MCFl 4 RAS1B 38 MCFO 5 RAS2B 39 WRB 6 MAO 40 FDCDMACKB 7 MAl 41 DACKlB 8 MA2 42 DACK3B 9 MA3 43 DMATC 10 MA4 44 FDCDMARQB 11 MA5 45 DRQ1B 12 MA6 46 DRQ3B 13 MA7 47 DBDIR 14 MA8 48 DBEN 15 A19 49 MEGAPIN 16 A18 50 OSC 17 A17 51 VSS2 18 A16 52 BREQB 19 A15 53 RESET 20 A14 54 AENA 21 A13 55 BRDY 22 A12 56 MEMWB 23 All 57 MEMRB 24 A10 58 IOWB 25 A9 59 IORB 26 A8 60 D7 27 A7 61 D6 28 A6 62 D5 29 A5 63 D4 30 A4 64 D3 31 A3 65 D2 32 A2 66 Dl 33 Al 67 DO 34 A0 68 6 . TANDY COMPUTER PRODUCTS PIN DEFINITIONS NOTE: All negative true signals use the suffix "B". INPUTS: (11 pins) MCFO Memory configuration OPTION Select. MCFl (See Figure 1 for details.) RFSH 8237 CHANNEL 0 REQUEST (DREQ2) Input from timer. Set up as 16 microsec interval timer for REFRESH. DRQ1 8237 CHANNEL 1 REQUEST (DREQ1) FDCDMARQ 8237 CHANNEL 2 REQUEST (DREQ2) dedicated to FDC. DRQ3 8237 CHANNEL 3 REQUEST (DREQ3) READY System READY signal for DMA. RESET System hardware master RESET. OSC Memory timing clock. Currently CLK14M. AEN CPU Bus Grant (8237 HLDA) TEST Input for TEST mode used by IC mfg. BI-DIRECTIONAL: (32 pins) BUSA19-BUSA16 System Segment Address (CPU BUS MASTER- INPUT, DMA BUS MASTER- OUTPUT) BUSA15-BUSA0 System Address (CPU BUS MASTER- INPUT, DMA BUS MASTER- OUTPUT) D00-D07 System Data Bus (WRITE-OUTPUT, READ- INPUT) MRB System Memory Read strobe (CPU BUS MASTER- INPUT, DMA BUS MASTER- OUTPUT) MWB System Memory Write strobe (CPU BUS MASTER- INPUT, DMA BUS MASTER- OUTPUT) IRB System Memory Read strobe (CPU BUS MASTER- INPUT, DMA BUS MASTER- OUTPUT) IWB System Memory Write strobe (CPU BUS MASTER- INPUT, DMA BUS MASTER- OUTPUT) 7 TANDY COMPUTER PRODUCTS OUTPUTS: (20 pins) MA0O-MAO8 External Memory multilplexed address RAS0B-RAS2B External Memory ROW strobes. CASB External Memory COLUMN strobe. WRB External Memory WRITE strobe . DBDIR Data Buffer directional control (Read=l). DBENB Data Buffer enable. REFRESHB 8237 CHANNEL 0 ACKNOWLEDGE (DREQO) Acknowledge from DMA channel 0 setup for refresh. DACK1B 8237 CHANNEL 1 ACKNOWLEDGE (DREQl) FDCDMACKB 8237 CHANNEL 2 ACKNOWLEDGE (DREQ2) DACK3B 8237 CHANNEL 3 ACKNOWLEDGE (DREQ3) DMATC 8237 EOP (output only) BREQB CPU Bus Request (8237 HRQ) POWER: (4 pins) VDD +5 VDC VSS GND TOTAL P I N COUNT = 6 8 PIN SENSE DMA PINOUT 8237 PINOUT BIDIR AO - AO BIDIR Al (BIDIR ENA Al (BIDIR ENA BIDIR A2 - = DMAAEN) A2 - =8237 CNTL) BIDIR A3 - A3 TSFBAK A4 - A4 TSFBAK A5 (TS ENA A5 | (TS ENA TSFBAK A6 - = DMAAEN) A6 | = LOGIC 1) TSFBAK A7 - A7 TSFBAK A8 TSFBAK A9 TSFBAK A10 TSFBAK All TSFBAK A12 TSFBAK A13 TSFBAK A14 TSFBAK A15 TSFBAK A16 TSFBAK A17 TSFBAK A18 TSFBAK A19 8 TANDY COMPUTER PRODUCTS PIN SENSE DMA PINOUT 8237 PINOUT BIDIR DO DO BIDIR Dl Dl BIDIR D2 D2 BIDIR D3 D3 BIDIR D4 D4 BIDIR D5 D5 BIDIR D6 D6 BIDIR D7 D7 OUTPUT MADO OUTPUT MADl OUTPUT MAD2 OUTPUT MAD 3 OUTPUT MAD4 OUTPUT MAD 5 OUTPUT MAD 6 OUTPUT MAD7 TRISTATE MAD 8 INPUT RESET RESET INPUT READY RDY (MUXED) OUTPUT DMATC EOP* (INVERTED) OUTPUT BREQ* HRQ (INVERTED) INPUT OSC CLK (MUXED) INPUT DRQ3 DREQ3 INPUT FDCDMARQ* DREQ2 INPUT DRQ1* DREQ1 INPUT RFSH* DREQO (MUXED) OUTPUT REFRESH* DACKO OUTPUT DACKl* DACKl OUTPUT FDCDMACK* DACK2 OUTPUT DACK3* DACK3 OUTPUT RASO OUTPUT RAS1 OUTPUT RAS2 OUTPUT CAS AS (MUXED) OUTPUT WR* AEN (MUXED) INPUT MCFl CS (MUXED) INPUT MCFO OUTPUT DBDIR OUTPUT DBEN INPUT AEN (SYSTEM) HLDA BIDIR MEMW* - MW* BIDIR MEMR* (BIDIR ENA MR* (BIDIR ENA BIDIR IOW* = DMAAEN) IOW* - =82 37 CNTL) BIDIR IOR* IOR* - POWER VDD VDD POWER VDD VDD GROUND VSS VSS GROUND VSS 68 PINS 40 PINS 9 TANDY COMPUTER PRODUCTS LOGIC BLOCK DIAGRAM 10 TANDY COMPUTER PRODUCTS ELECTRICAL SPECIFICATIONS - DMA ELECTRICAL PARAMETERS ABSOLUTE MAX RATINGS (NON-OPERATING, VSS=0.0V) MIN MAX UNITS STORAGE TEMPERATURE -65 +150 DEGREES C. VOLTAGE ON ANY PIN -0.5 7.0 VOLTS W.R.T.GROUND OPERATING ELECTRICAL SPECIFICATIONS: OPERATING AMBIENT MIN TYP MAX UNITS AIR TEMP. RANGE 0 25 70 DEGREES C POWER SUPPLIES VDD 4.5 5.0 5.5 VOLTS VSS 0 0 0 VOLTS ICC 100 MILLIAMPS NOTE: INCLUDE ALL RELEVENT CONDITIONS UNDER WHICH ICC IS TO BE MEASURED; IE, ALL INPUTS AT VSS OR VCC, CLOCK FREQUENCY, ETC. TOTAL POWER DISSIPATION 700 MILLIWATTS (Include output loading) LEAKAGE CURRENT MIN TYP MAX Vj.n = 0.0 v 20 microamps Vin = 5.0 v -20 microamps INPUT VOLTAGES LOGIC "0" (Vil) 0.8 volts LOGIC "1" (Vih) 2.0 volts 11 TANDY COMPUTER PRODUCTS OUTPUT VOLTAGES CURRENT LOADING|MIN TYP MAX UNITS LOGIC " 0 " (Vol) 0.4 volts @ 4.0 MA LOAD LOGIC "1" (Voh) 2.4 volts @ 0.4 MA LOAD INPUT CAPACITANCE MIN TYP MAX All inputs 0.0 < Vin < 5.0 10 picofarads OUTPUT CAPACITANCE All outputs 50 picofarads Except Data (bi-directional) BI-DIRECTIONAL CAPACITANCE SEE NOTES 3-6 IN THE FOLLOWING SECTION. 12 TANDY COMPUTER PRODUCTS TIMING SPECIFICATION MAXIMUM LOADING FOR EACH OUTPUT Capacitive Load:50pf Current Load: Ioh = 4.0 MA Iol = 0.4 MA INPUT/OUTPUT TIMING (NOTE: ALL AC TESTING AND TIMING MEASUREMENTS WILL BE AT THE FOLLOWING CONDITIONS: VOH (OUTPUT 1 LEVEL) = 2.0V, AND VOL (OUTPUT 0 LEVEL) = .8V) 13 TANDY COMPUTER PRODUCTS OSC (CLK14M) / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ RAS*B CASB MEMORY ADDRESS \/\/\7 MAO* ( o u t p u t ) A/\/\_ Figure 1. MEMORY TIMING PARAMETERS, READ 14 TANDY COMPUTER PRODUCTS MEMORY TIMING PARAMETERS , READ min typ max tO Reference time zero, STROBE lo tOSC Period of 14.31818 MHz 69.8 tl ADDRESS Setup to STROBE lo 50 t2 STROBE lo Setup to OSC hi 15 t2A STROBE lo Length 250 t2B STROBE hi Length 250 t3 STROBE hi Setup to OSC hi don't care t4 RAS*B lo Delay from OSC hi 0 40 t5 RAS*B hi Delay from STROBE hi 0 40 t5A RAS*B hi Length 100 t6 CAS*B lo Delay from OSC hi 0 40 t6A CAS*B lo Length 75 t6B CAS*B lo Delay from RAS*B lo 69.8 70 t7 CAS*B hi Delay from STROBE hi 69 .8 70 t8 MA*-Row Address Valid Setup to RAS*B lo 20 NOTE 2 t9 MA*-Column Address Valid Setup to CAS*B lo 20 NOTE 2 tio MA*-Column Address Hold 35 til DATA Valid Delay from RAS*B True 150 NOTE 6 (reference) tl2 DATA Valid Setup to STROBE hi 70 NOTE 3 tl3 DATA Hold from STROBE False hi 0 tl4 DBDIR lo Delay from STROBE lo 40 tl5 DBENB lo Delay after DBDIR hi 70 NOTE 4 tl6 DBENB Hold from STROBE hi 0 tl7 DBDIR Hold from DBENB hi 0 NOTE 5 NOTE 1 Setup time t2 will be defined by the ASIC design. It should be of sufficient length to allow Clear on RAS flip-flop to go false and still meet setup time before next clock; rising edge. NOTE 2 Address outputs are loaded with 3 row x 8 DRAMS = 24 x 8 pf = 19 2 pf. each. NOTE 3 Additional delay through LS245 needs to be added to match Bus Specs. Bus requires +75 ns setup. LS245 into 45pf requires 20 ns. Therefore 75+20=95 ns. NOTE 4 Applying the DIRection signal to the LS245 and allowing the part to settle before applying OUTput ENable reduces Bus and power noise. Also OUTput ENable should be removed first. NOTE 5 OUTput ENable should be removed first before changing DIRection. NOTE 6 Depends upon DRAM used. 15 TANDY COMPUTER PRODUCTS Figure 2. MEMORY TIMING PARAMETERS, WRITE 16 . TANDY COMPUTER PRODUCTS MEMORY TIMING PARAMETERS, WRITE | mintyp max tl thru tlO, see MEMORY TIMING PARAMETERS, READ | til DATA Valid Delay after STROBE lo 50 NOTE 1 [1] tl2 DATA Valid Hold after STROBE hi 20 {2} tl3 WRB lo Setup to CASB lo 30 (3) tl4 WRB lo Hold after CASB lo 70 (3) tl5 DBENB lo Delay after STROBE lo 70 [1] tl6 DBENB Hold from STROBE hi 0 [1] NOTE 1 For CPU generated MEMWB, data will appear about the same time as the STROBE, but for DMA generated MEMWB, data will appear before MEMWB. 17 TANDY COMPUTER PRODUCTS Figure 3. I/O CHIP SELECT PARAMETERS, READ I/O CHIP SELECT PARAMETERS, READ | min typ max tl ADDRESS Valid Setup to STROBE lo 50 t2 STROBE lo Setup to OSC hi 15 t2A STROBE lo Length 420 t3 STROBE hi Setup to OSC hi 20 tl2 DATA Valid Setup to STROBE hi 90 tl3 DATA Hold from STROBE hi 0 tl4 DBDIR hi Delay from STROBE lo 70 tl5 DBENB lo Delay after DBDIR hi 70 NOTE 1 tl6 DBENB Hold from STROBE hi 0 tl7 DBDIR Hold after DBENB hi 0 NOTE 1 NOTE 1 ENable should be removed first before changing DIRection. 18 . TANDY COMPUTER PRODUCTS • Figure 4. I/O CHIP SELECT PARAMETERS, WRITE I/O CHIP SELECT PARAMETERS, WRITE | min typ max tl ADDRESS Valid Setup to STROBE lo 50 t2 STROBE lo Setup to OSC hi 15 t2A STROBE lo Length 420 t3 STROBE hi Setup to OSC hi 20 t4 DATA Valid Setup to STROBE lo 0 t5 DATA Hold from STROBE hi 0 t6 DBENB Delay after STROBE lo 70 t7 DBENB Hold from STROBE hi 0 19 . TANDY COMPUTER PRODUCTS Figure 5. DMA BUS MASTER TIMING, READ / WRITE 20 . TANDY COMPUTER PRODUCTS DMA BUS MASTER TIMING, READ / WRITE | min typ max tl DRQ* True Setup to CLK lo 30 t2 DRQ* False Setup to CLK lo 30 t3 BREQB True Delay from CLK hi 120 8237A-5 tDQl t4 BREQB False Delay from CLK hi 120 8237A-5 tDQl t5 AEN True Delay after BREQB True N x tCYC +30 N = t6 AEN True Setup to CLK Hi 40 t7 AEN False delay from CLK hi 40 t8 DACK*B True Delay from CLK lo 170 8237A-5 tAK t9 DACK*B True Hold from AEN True 0 8237A-5 NOTE. 6 tlO DACK*B False delay from CLK lo 170 8237A-5 tAK til ADDRESS Valid Setup to CLK Hi 50 System Spec tl2 ADDRESS False delay from CLK hi 0 tl2 MEMRB or IORB True Delay from CLK hi 40 tl3 MEMRB or IORB False Delay after CLK hi 40 tl4 MEMWB or IOWB True Delay from CLK hi 40 tl5 MEMWB or IOWB False Delay after CLK hi 40 tl6 EOP True Delay after CLK hi 40 tl7 EOP False Delay after CLK hi 40 tl8 BRDY False Setup to CLK hi 30 tl9 BRDY False Hold after CLK hi 30 21 TANDY COMPUTER PRODUCTS PRINTER INTERFACE SPECIFICATION . TANDY COMPUTER PRODUCTS PRINTER INTERFACE SPECIFICATION CONTENTS GENERAL DESCRIPTION 1 SPECIFICATIONS 3 PRINTER INTERFACE SPECIFICATION TANDY PART # 8075068 APRIL 3D, 1786 1. GENERAL DESCRIPTION 1.1 T h e T a n d y part** 8 0 7 5 0 6 8 - P r i n t e r I n t e r f a c e I.C p r o v i d e s t h e i n t e r f a c e b e t w e e n t h e s y s t e m I/O b u s a n d t h e p r i n t e r Figure 1 shows Block diagram Df Printer Interface chip. Figure 2 shows pin configurations of Printer Interface F i gure 2 . 1 OF 5 1.2 DESCRIPTION OF EACH PINS: P i n# P i n Name Type Descr i pt i on 1 INT output I nterrupt s i gna1 2 SWITCH i nput S w i t c h for totem pole outF or open col lector output c INITB, AF, STROBEB. 3 ADI i nput C P U a d d r e s s 1 i ne 4 ADD i nput C P U a d d r e s s 1 i ne 5 OUTO i nput/output D a t a I/O 1 i ne 6 OUT1 i nput/nutput D a t a I/O line 7 0UT2 i nput/output D a t a I/O 1 i ne B 0UT3 i nput/output D a t a I/O 1 i n e 9 0UT7 i nput/output D a t a I/O line 10 0UT6 i nput/output D a t a I/O 1 i n e 11 0UT5 i nput/output D a t a I/O line 12 QUT4 i nput/output D a t a I/O 1 i n e 13 STROBEB output P r i n t e r S t r o b e signal 14 AFB output Printer Autofeed signal 15 .INITB output Printer Initialize signal 16 SEL output Printer Select signal 17 FAULTS i nput Printer Fault signal IB PE i nput Printer Paper empty signa 1? BUSY i nput Printer Busy signal 20 VSS gr ound Gr DJnd 21 ACKB i nput Printer A c k n o w l e d g e signa 22 FDCTC i nput FDC Terminal Count 23 FDCDACKB i nput F D C - D M A A c k n o w l e d g e signa 24 DMATC i nput DMA Terminal Count 25 TC output FDC Terminal Count signal 26 SLCTINB i nput Printer Select input 27 NC — Not used 2B RSTB i nput System Reset 27 I ORB i nput CPU I/O Read strobe 3D IOUB i nput CPU I/O U r i t e strobe 31 CSB i nput Chip select si gna1 32 D6 1 nput/output CPU Data I/O 33 D4 1nput/output CPU Data I/O 34 D2 I nput/output CPU Data I/O 35 DO Input/output CPU Data I/O 36 Dl I nput/output CPU Data I/O 37 D3 Input/output CPU Data I/O 38 D5 Input/Dutput CPU Data I/O 37 D7 Input/output CPU Data 1/0 4D VDD power +5 Volt Power Supply 2 OF 5 2. ENVIRONMENTAL SPECIFICATIONS 2.1 Storage Temperature -65 C to 150 C 2.2 Operating Temperature 0 C to 7D C 3. ELECTRICAL SPECIFICATIONS 3.1 Absolute Maximum Rating Parameter Min. Typ. Max. Units Cond. Voltagei any pin -1.0 7.D Volts U.R.T ground Power Dissipation D.5 Uatts 3.2 D.C. Electrical Characteristics Symb. Parameter Min. Typ. Max. Units Cond. VDD Supply Voltage 4.5 5.0 5.5 Volts Icc(q) Quiescent current 50 uA Icc(o) Operating Current 40 mA Vil Input Lou Voltage 0.B Volts TTL inputs Vih Input High Voltage 2.0 Volts TTL inputs Iin Input Leakage -10 10 uA Cin Input Capacitance 7 pF VoI Output Low Voltage 0.4 Volts 34 mA Voh Output High Voltage 2.4 Volts 3-2 mA Ioz High Impedance Leak -ID ID uA 3 OF 5 3.3 A.C Electrical Characteristics 3.3.1 Ur i te CycIe Symb . Parameter Mi n. Typ . Max. Units Cond. Tasu Address Setup 15 nS Twpw Ulr i te Pu 1 se U i dth 6? nS Tdsu Data Setup 29 nS Tdh Data Hold 6 nS k OF 5 Symb . Par ameter Mi n. Typ . Max . Un i ts Cond. Tcspw Ch i p Se1ect U i dth 69 nS Trpw Read Pulse Width 69 nS Tda Data Access 69 nS Tdz Bus Hold/release 6 25 n 5 OF 5 . TANDY COMPUTER PRODUCTS • KEYBOARD INTERFACE SPECIFICATION . TANDY COMPUTER PRODUCTS KEYBOARD INTERFACE SPECIFICATION CONTENTS GENERAL DESCRIPTION 1 SPECIFICATIONS 3 KEYBOARD INTERFACE SPECIFICATION TANDY PART » 807506? MAY 05, 1786 1. GENERAL DESCRIPTION 1.1 The Tandy part* 8075067 - Keyboard Interface I.C provides two functi o n s ! a. Interface between the system I/O bus and keyboard. b. FDC support logic that generates DRIVE SELECT SIGNAL, MOTOR ON SIGNAL, FDC TERMINAL COUNT, FDC RESET and DMA/1. Figure 1. shows block diagram of Keyboard Interface chip Figure 2 . shows pin configuration o f Keyboard Interface chip. F i gure 1. F i gur e 2. 1 OF 5 1.2 DESCRIPTION OF EACH P I N : P i nff Pin Name Type D e s c r i pt i on 1 KBDCLK input Keyboar d clock 2 KBDDATA i nput Keyboard data 3 KBDBUSYB output K e y b o a r d busy signal 4 KBQINT output K e y b o a r d interrupt signal 5 RSIZD i nput M o n o c h r o m e / c o 1 or m o n i t o r m o d e •i> RSIZ1 i nput Reserved 7 DD i nput/output D a t a I/O line B Dl i nput/output D a t a I/O line Squarewave 14 0SC16M INPUT Input Frequency = 16.00000 MHz 15 VCC POUIER 16 CPUCLK OUTPUT FA.ST = 1; CPUCLK = 7. 16MHz (OSC2BM/4, 50-50 cycle) FAST=0; CPUCLK=4.77MHz (0SC28M/6, 33-67 cycle) 17 CLK477DK OUTPUT CLK14M/3, 3 3 % duty cycle 18 S2B INPUT 8088 Status Signal 19 SIB INPUT BDBB Status Signal 20 SOB INPUT 80B8 Status Signal 21 RSTINB INPUT Asynchronous system input 22 RESET OUTPUT BOBB CPU Reset input 23 READ OUTPUT Directional Control for CPU Data buffer 24 INTAB OUTPUT Interrupt Acknowledge 25 RQ/GTB INPUT/OUTPUT Request/Acknaw1 edge/Re 1 ease 26 GND GROUND 27 0SC2BM INPUT Input frequency = 28.63636 MHz 28 HLDA OUTPUT Bus Acknowledge 27 READY OUTPUT 8 0 B B CPU R E A D Y input 30 INTCSB INPUT 8257 Interrupt Controller Chip Select 31 MEMWB OUTPUT M e m o r y Ur i te 32 MEMRB OUTPUT Memory Read 33 IOB/M OUTPUT 1 = M e m o r y a c c e s s i 0 = I/O a c c e s s 34 RDYIN INPUT A s y n c h r o n o u s s y s t e m i n p u t (0 - W a i t c o n d i t i o n ) 35 FDCCSB INPUT P r e v i o u s l y d e c o d e d F D C F u n c t i o n I/O c h i p s e l e c t 36 DORCLK OUTPUT Configuration register Chip Select 37 FDCCHPB OUTPUT F D C Ch i p S e l e c t 38 FDCWCK OUTPUT Pulsei Period = 2 microsec* 2 5 0 ( n o m ) pulse 3V CLK4M OUTPUT OSClfcM/4. S q u a r e w a v e 40 HOLDB INPUT Bus Request TIMING CONTROL GENERATOR BLOCK DIAGRAM 2.0 E N V I R O N M E N T A L SPECIFICATIONS 2.1 Storage T e m p e r a t u r e : -65 mini +150 max degrees C 2.2 Operating temperature: D mini +25 typ> + 70 max degrees C 3.0 E L E C T R I C A L SPECIFICATIONS 3.1 A b s o l u t e M a x i m u m R a t i n g : V o l t a g e an any p i n w . r . t . G r o u n d 1 - 0 . 5 mini 7.0 m a x volts 3.2 O p e r a t i n g E l e c t r i c a l S p e c i f i c a t i o n s : min typ max units 3.2.1 O p e r a t i n g A m b i e n t : Air T e m p . R a n g e D 25 70 degrees C 3.2.2 Power S u p p l i e s : VCC 4.5 5.D 5.5 volts VSS 0 0 0 volts ICC 100 mill!amps Total Power 700 mi I I iwatts 3.2.3 Leakage C u r r e n t ; AlI Inputs: Vin = 0.0 v -10 microamps Vin = 5.0 v +10 microamps 3.2.4 Input voltages: Logic "Q" .6 volts Except RSTIN .5 volts Logic "1" 2.0 volts Except RSTIN 3.5 volts 3.2.5 Output V o l t a g e s : logic "U" 3 4.0 mA load .4 volts logic "\" 3 4.0 mA load 2.4 volts except all clocks 4.0 units 3.2.6 INPUT CAPACITANCE <0.D < Vin < 5.0) All i nputs 10 pf 3.2.7 OUTPUT CAPACITANCE A II Ioads 50 pf TIMING DIAGRAMS FIGURE 1 . CPUCLK CLOCK PARAMETER 7.16 MHZ 4. 77MHZ m in typ max min typ max tHI Level at least 4.0v 44 69.5-tR-tF) 69 69.5 ns tLOW Level not greater than 0.4v 68 S9.5 118 (140-tR-tF> ns tR Rise time , 0.4 to 4.0v 8 10 ns tF fall time , 4.0 to 0.4v 7 10 ns tCYC 140 210 ns FIGURE 2 . RESET RESET PARAMETERS tl RSTIN Setup to CPUCLK low 1 Asynchronous Input t2 RESET Delay from CPUCLK low 1 40 ns max FIGURE 3. READY READY PARAMETER min max tl RDYIN False Setup to CPUCLK low 35 ns t2 RDYIN False Hold after CPUCLK low 10 ns t3 READY False before CPUCLK low -8 ns tRYLCL 8088 t4 READY False Hold after CPUCLK hi tCH + 8 ns tCHRYX 8088 ts RDYIN True Setup to CPUCLK hi 35 ns t6 RDYIN True Hold after CPUCLK low 10 ns t7 READY True before CPUCLK low 0 ns tRYHCH 8088 t8 READY True Hold after CPUCLK hi tCH + 8 ns tCHRYX 8088 FIGURE 4. CONTROL GENERATOR CONTROL GENERATOR 1 m1n max tl STATUS Active Delay from CLK hi 1 10 60 ns tCHSV 8088 t2 STATUS Inactive Delay from CLK lowl 10 70 ns tCLSH 8088 t3 ALE True Delay from Status Active 1 20 ns tSVLH 8288 t4- ALE False Delay from CLK hi 20 ns t5 ALE Pulse Width 55 ns ts STROBE True Delay from CLK low 30 ns t7 STROBE False Delay from CLK low 30 ns t8 STROBE False Delay from CLK hi 30 ns t9 STROBE True Delav from C1k hi 30 ns FIGURE 5A. ARBITTER/REQUEST RO/GTB REQUEST and ACKNOWLEDGE can overlap and be seen as one pulse by circuit. FIGURE 5B. ARBITTER/RELEASE AERITTER PARAMETER I min max tl HOLDB (True) setup to CPUCLK low 1 20 ns t2 CPUCLK low to RQ/GTB active (REQ/REL pulse) 1 50 ns tGVCH 8088 t3 CPUCLK low to RQ/GTB Inactive (REQ/REL pulse) 1 50 ns tCHGX 8088 tt RQ/GTB (True) setup to CPUCLK hi (ACK pulse) 1 2J0T ns tCLGL 8088 t5 RQ/GTB (False) hold from CPUCLK low (ACK pulse)1 50 ns tCLGH 8088 t6 CPUCLK hi to HLDA Delay 1 30 ns t7 HOLDB (False) Setup to CPUCLK low 1 20 ns FIGURE 6. OSCILLATOR/CLOCK RELATIONSHIPS, 28 MHZ CLOCK PARAMETER Bin typ max tl OSC28M Period 34.9 NOTE 1 t2 CLK14M Period tl x 2 t3 CLK14M high (fncludes tRISE) -10X t2/2 + 10X t4 CLK14M low (includes tFALL) (t2-t3) t5 OSC28M to CLK*M Output Delay skew 15 t6 CLK"M to CLK*M Output Delay skew 15 t7 CLK3580K Period tl x 8 t8 CLK3580K high (includes tRISE) -10X t7/2 *10X t9 CLK3580K low (includes tFALL) I (t7-t8) tR CLK*M I 10 ns tF CLK*M I 10 ns NOTE 1 Use only one edge because the oscillator duty cycle symmetery can not be specified. NOTE 2 Phase Relationship 1s Important between the CLK14M clock and the outputs It generates. FIGURE 7. OSCILLATOR/CLOCK RELATIONSHIPS, 8MHZ CLOCK PARAMETER nin typ max tl OSC16M Period 62.5 t2 CLK8M Period tl x 2 t3 CLK8M High (Includes tRISE) t2/2 + 1ZX t* CLK8M Low (includes tFALL) t2-t3 t5 CLK4M Period tl x 4 t6 CLK4M High (Includes tRISE) t5/2 *\SSX t7 CLK4M Low (includes tFALL) t5-tG I tR I in ns tF I 10 ns FIGURE 8. FDCCIK/FDWCK RELATIONSHIPS CLOCK PARAMETER 1 1 min typ max tl FDCWCK High (Includes tRISE) 1 250 ns t2 FDCWCK Period 1 Z.0 us FIGURE 9. CLK4M/FDDMAREQ RELATIONSHIPS CLOCK PARAMETER I I mfn typ max tl FDCDRQ Setup to CLK4M I 20 ns Asynchronous tZ DFDCDRQ Delay TRUE I .75 us 1.0 us 1.1 us t3 FDCDRQ False to DFDCDRQ False Delay I 30 ns TANDY COMPUTER PRODUCTS 8087 NUMERIC DATA COPROCESSOR iny 8087 NUMERIC DATA COPROCESSOR 8087/8087-2/8087-1 High Performance Numeric Data Coprocessor • CPU/8087 System Supports 8 Data Types: 16-, 32-, 64-Bit Integers, 32-, 64-, 80-Bit Adds Arithmetic, Trigonometric, Exponential, Floating Point, and 18-Digit BCD Operands and Logarithmic Instructions to the Standard iAPX 86 and iAPX 186 Instruction Set For All • Adds 8 x 80-Bit Individually Addressable Data Types Register Stack All 24 Addressing Modes Available with • 7 Built-in Exception Handling Functions 8086, 8088, 80186, 80188 CPUs. • MULTIBUS System Compatible Interface Compatible with Proposed IEEE Floating Point Standard The 8087 Numeric Data Coprocessor provides the instructions and data types needed for high performance numeric applications, providing up to 100 times the performance of a CPU alone. The 8087 is implemented in N-channel, depletion load, silicon gate technology (HMOS), housed in a 40-pin package. Sixty-eight numeric processing instructions are added to the iAPX 86,186 instruction sets, and eight 80-bit registers are added to the register set. The 8087 is compatible with the proposed IEEE Floating Point Standard. The two-chip numeric data processing systems are referred to as follows; iAPX 86/20—16-bit 8086 CPU with 8087 iAPX 88/20—8-bit 8088 CPU with 8087 iAPX 186/20—16-bit 80186 CPU with 8087 iAPX 188/20—8-bit 80188 CPU with 8087 Figure 1 . 8087 Block Diagram Figure 2. 8087 Pin Configuration Intel Corporation Assumes No Responsibilty lor the Use ol Any Circuitry Other Than Circuitry Embodied in an Intel Product. No Other Circuit Patent Licenses are Implied. ©INTEL C O R P O R A T I O N , 1984 -1171; October 1984 °" " ° ORDER NUMBER: 205835-002 iny 8087/8087-2/8087-1 Table 1.8087 Pin Description Symbol Type Name and Function AD15-AD0 I/O Address Data: These lines constitute the time multiplexed memory address (1^) and data (T 2 , T 3 , T w , T 4 ) bus. A0 is analogous to BHEf or the lower byte of the data bus, pins D7-D0. It is LOW during T, when a byte is to be transferred on the lower portion of the bus in memory operations. Eight-bit oriented devices tied to the lower half of the bus would normally use A0 to condition chip select functions. These lines are active HIGH. They are input/output lines for 8087-driven bus cycles and are inputs which the 8087 monitors when the CPU is in control of the bus. A15-A8 do not require an address latch in an iAPX 88/20 or iAPX 188/20. The 8087 will supply an address for the T r T 4 period. A19/S6, I/O Address Memory: During T, these are the four most significant address lines for memory operations. A18/S5, During memory operations, status information is available on these lines during T 2 , T 3 , T w , and T 4 . For A17/S4, 8087-controlled bus cycles, S6, S4, and S3 are reserved and currently one (HIGH), while S5 is always A16/S3 LOW.These lines are inputs which the 8087 monitors when the CPU is in control of the bus. BHE/S7 I/O Bus High Enable: During T, the bus high enable signal (BHE) should be used to enable data onto the most significant half of the data bus, pins D15-D8. Eight-bit-oriented devices tied to the upper half of the bus would normally use BME to condition chip select functions. BHE is LOW during T, for read and write cycles when a byte is to be transferred on the high portion of the bus. The S7 status information is available during T2, T3, T w , and T4. The signal is active LOW. S7 is an input which the 8087 monitors during the CPU-controlled bus cycles. S2,ST,S0 I/O Status: For 8087-driven bus cycles, these status lines are encoded as follows: S2 SI SO 0(LOW) X X Unused 1 (HIGH) 0 0 Unused 1 0 1 Read Memory 1 1 0 Write Memory 1 1 1 Passive Status is driven active during T4, remains valid during T, and T2, and is returned to the passive state (1,1,1) during T 3 or during T w when READY is HIGH. This status is used by the 8288 Bus Controller (or the 82188 Integrated Bus Controller with an 80186/80188 CPU) to generate all memory access control signals. Any change in S2, S1, or SO during T4 is used to indicate the beginning of a bus cycle, and the return to the passive state in T3 or T w is used to indicate the end of a bus cycle. These signals are monitored by the 8087 when the CPU is in control of the bus. RQ/GTO I/O Request/Grant: This request/grant pin is used by the 8087 to gain control of the local bus from the CPU for operand transfers or on behalf of another bus master. It must be connected to one of the two processor request/ grant pins. The request grant sequence on this pin is as follows: 1. A pulse one clock wide is passed to the CPU to indicate a local bus request by either the 8087 or the master connected to the 8087 RQ/GT1 pin. 2. The 8087 waits for the grant pulse and when it is received will either initiate bus transfer activity in the clock cycle following the grant or pass the grant out on the RQ/GT1 pin in this clock if the initial request was for another bus master. 3. The 8087 will generate a release pulse to the CPU one clock cycle after the completion of the last 8087bus cycle or on receipt of the release pulse from the bus master on RQ/GT1. For iAPX 186/188 systems, the same sequence applies except RQ/GT signals are converted to appropriate HOLD, HLDA signals by the 82188 Integrated Bus Controller. This is to conform with iAPX 186/188's HOLD, HLDA bus exchange protocol. Refer to the 82188 data sheet for further information. 3-176 205835-003 inteT 8087/8087-2/8087-1 Table 1.8087 Pin Description (Continued) Symbol Type Name and Function RQ/GT1 I/O Request/Grant: This request/grant pin is used by another local bus master to force the 8087 to request the local bus. If the 8087 is not in control of the bus when the request is made the request/grant sequence is passed through the 8087 on the RQ/GT0 pin one cycle later. Subsequent grant and release pulses are also passed through the 8087 with a two and one clock delay, respectively, for resynchronization. RQ7ST1 has an internal pullup resistor, and so may be left unconnected. If the 8087 has control of the bus the request/ grant sequence is as follows: 1. A pulse 1 CLK wide from another local bus master indicates a local bus request to the 8087 (pulse 1). 2. During the 8087's next T4 or T, a pulse 1 CLK wide from the 8087 to the requesting master (pulse 2) indicates that the 8087 has allowed the local bus to float and that it will enter the "RQ/GT acknowledge" state at the next CLK. The 8087's control unit is disconnected logically from the local bus during "RQ/GT acknowledge." 3. A pulse 1 CLK wide from the requesting master indicates to the 8087 (pulse 3) that the "RQ/GT' request is about to end and that the 8087 can reclaim the local bus at the next CLK. Each master-master exchange of the local bus is a sequence of 3 pulses. There must be one dead CLK cycle after each bus exchange. Pulses are active LOW. For iAPX 186/188 systems, the RQ/GT1 line may be connected to the 82188 Integrated Bus Controller. In this case, a third processor with a HOLD, HLDA bus exchange system may acquire the bus from the 8087. For this configuration, RQ/GT1 will only be used if the 8087 is the bus master. Refer to 82188 data sheet for further information. QS1.QS0 I QS1, QS0: QS1 and QS0 provide the 8087 with status to allow tracking of the CPU instruction queue. QS1 QS0 0 (LOW) 0 No Operation 0 1 First Byte of Op Code from Queue 1 (HIGH) 0 Empty the Queue 1 1 Subsequent Byte from Queue INT 0 Interrupt This line is used to indicate that an unmasked exception has occurred during numeric instruction execution when 8087 interrupts are enabled. This signal is typically routed to an 8259A for 8086 systems and to INTO for iAPX 186/188 systems. INT is active HIGH. BUSY 0 Busy: This signal indicates that the 8087 NEU is executing a numeric instruction. It is connected to the CPU's TEST pin to provide synchronization. In the case of an unmasked exception BUSY remains active until the exception is cleared. BUSY is active HIGH. READY I Ready: READY is the acknowledgement from the addressed memory device that it will complete the data transfer. The RDY signal from memory is synchronized by the 8284A Clock Generator to form READY for 8086 systems. For iAPX 186/188 systems, RDY is synchronized by the 82188 Integrated Bus Controller to form READY. This signal is active HIGH. RESET I Reset: RESET causes the processor to immediately terminate its present activity. The sighal must be active HIGH for at least four clock cycles. RESET is internally synchronized. CLK I Clock: The clock provides the basic timing for the processor and bus controller. It is asymmetric with a 33% duty cycle to provide optimized internal timing. Vcc Power: V c c i s I " 6 +5V power supply pin. GND Ground: GND are the ground pins. NOTE: For the pin descriptions of the 8086, 8088, 80186 and 80188 CPU's, reference the respective data sheets (iAPX 86/10, iAPX 88/10, iAPX 186, iAPX 188). 3-177 205835-003 inteT 8087/8087-2/8087-1 APPLICATION AREAS The 8087 is a numeric processor extension that provides arithmetic and logical instruction support for a variety of The 8087 provides functions meant specifically for high numeric data types. It also executes numerous built-in performance numeric processing requirements. Trigo- transcendental functions (e.g., tangent and log func- nometric, logarithmic, and exponential functions are tions) . The 8087 executes instructions as a coprocessor built into the coprocessor hardware. These functions to a maximum mode CPU. It effectively extends the are essential in scientific, engineering, navigational, register and instruction set of the system and adds or military applications. several new data types as well. Figure 3 presents the registers of the CPU+8087. Table 2 shows the range of The 8087 also has capabilities meant for business or data types supported by the 8087. The 8087 is treated as commercial computing. An 8087 can process Binary an extension to the CPU, providing register, data types, Coded Decimal (BCD) numbers up to 18 digits without control, and instruction capabilities at the hardware roundoff errors. It can also perform arithmetic on inte- level. At the programmers level the CPU and the 8087 gers as large as 64 bits ± 1018). are viewed as a single unified processor. PROGRAMMING LANGUAGE SUPPORT Programs for the 8087 can be written in Intel's high-level System Configuration languages for iAPX 86/88 and iAPX 186/188 Systems; ASM-86 (the iAPX 86,88 assembly language), PL/M-86, As a coprocessor to an 8086 or 8088, the 8087 is wired in parallel with the CPU as shown in Figure 4. Figure 5 FORTRAN-86, and PASCAL-86. shows the iAPX 186/188 system configuration. The CPU's status (S0-S2) and queue status lines (QS0-QS1) RELATED INFORMATION enable the 8087 to monitor and decode instructions in synchronization with the CPU and without any CPU For iAPX 86/10, iAPX 88/10, iAPX 186 or iAPX 188 overhead. For iAPX 186/188 systems, the queue status details, refer to the respective data sheets. For iAPX 186 signals of the iAPX 186/188 are synchronized to 8087 or iAPX 188 systems, also refer to the 82188 Integrated requirements by the 82188 Integrated Bus Controller. Bus Controller data sheet. Once started, the 8087 can process in parallel with, and independent of, the host CPU. For resynchronization, FUNCTIONAL DESCRIPTION the 8087's BUSY signal informs the CPU that the 8087 is executing an instruction and the CPU WAIT instruction The 8087 Numeric Data Processor's architecture is tests this signal to insure that the 8087 is ready to designed for high performance numeric computing in execute subsequent instructions. The 8087 can interrupt conjunction with general purpose processing. the CPU when it detects an error or exception. The Figure 3. CPU+8087 Architecture 3-178 205835-003 inter 8087/8087-2/8087-1 8O87's interrupt request line is typically routed to the Integrated Bus Controller. Because the iAPX 186/188 CPU through an 8259A Programmable Interrupt Con- has a HOLD, HLDA bus exchange protocol, an interface troller for 8086, 8088 systems and INTO for iAPX is needed which will translate RQ/GT signals to cor- 186/188. responding HOLD, HDLA signals and visa versa. One of the functions of the 82188 IBC is to provide this translation. RQ/GT0 is translated to HOLD, HLDA signals which_are_then directly connected to the iAPX The 8087 uses one of the request/grant lines of the iAPX 186/188. The RQ/GT1 line is also translated into HOLD, 86/88 architecture (typically RQ/GT0)to obtain control HLDA signals (referred to as SYSHOLD, SYSHLDA of the local bus for data transfers. The other request/ signals) by the 82188 IBC. This allows a third processor grant line is available for general system use (for (using a HOLD, HLDA bus exchange protocol) to gain instance by an I/O processor in LOCAL mode). A bus control of the bus. master can also be connected to the 8087's RQ/GT1 line. In this configuration the 8087 will pass the request/ grant handshake signals between the CPU and the Unlike an iAPX 86/20 system, RQ/GT1 is only used attached master when the 8087 is not in control of the when the 8087 has bus control. If the third processor bus and will relinquish the bus to the master directly requests the bus when the current bus master is the when the 8087 is in control. In this way two additional iAPX 186/188, the 82188 IBC will directly pass the masters can be configured in an iAPX 86/88system; one request onto the iAPX 186/188 without going through will share the 8086 bus with the 8087 on a first come first the 8087. The third processor has the highest bus served basis, and the second will be guaranteed to be priority in the system. If the 8087 requests the bus while higher in priority than the 8087 the third processor has bus control, the grant pulse will not be issued until the third processor releases the bus (using SYSHOLD). In this configuration, the third proces- sor has the highest priority, the 8087 has the next For iAPX 186/188 systems, RQ/GT0 and RQ/GT1 are highest, and the iAPX 186/188 has the lowest bus connected to the corresponding inputs of the 82188 priority. Table 2.8087 Data Types Data Range Precision Formats Word Integer 10 4 16 Bits 9 Short Integer 10 32 Bits 18 Long Integer 10 64 Bits Packed BCD 10 18 18 Digits Short Real 10±38 24 Bits 10 ±308 Long Real 53 Bits 10 ±4932 Temporary Real 64 Bits Integer: I Real:(-1) S (2 E " BIAS )(F 0 -F 1 ...) S Packed BCD: (-1) (D 17 . . .Do) Bias=127 for Short Real 1023 for Long Real 16383 for Temp Real 3-179 inteT 8087/8087-2/8087-1 Bus Operation Table 2 lists the eight data types the 8087 supports and presents the format for each type. Internally, the The 8087 bus structure, operation and timing are 8087 holds all numbers in the temporary real format. identical to all other processors in the iAPX 86/88 series Load and store instructions automatically convert (maximum mode configuration). The address is time operands represented in memory as 16-, 32-, or 64-bit multiplexed with the data on the first 16/8 lines of the integers, 32- or 64-bit floating point numbers or 18- address/data bus. A16 through A19 are time multiplexed digit packed BCD numbers into temporary real format with four status lines S3-S6. S3, S4 and S6 are always and vice versa. The 8087 also provides the capability one (HIGH) for 8087-driven bus cycles while S5 is to control round off, underflow, and overflow errors always zero (LOW). When the 8087 is monitoring CPU in each calculation. bus cycles (passive mode) S6 is also monitored by the 8087 to differentiate 8086/8088 activity from that of a Computations in the 8087 use the processor's register local I/O processor or any other local bus master. (The stack. These eight 80-bit registers provide the equivalent 8086/8088 must be the only processor on the local bus capacity of 20 32-bit registers. The 8087 register set to drive S6 LOW). S7 is multiplexed with and has the can be accessed as a stack, with instructions operating same value as BHE for all 8087 bus cycles. on the top one or two stack elements, or as a fixed register set, with instructions operating on explicitly The first three status lines, S0-S2, are used with an 8288 designated registers. bus controller or 82188 Integrated Bus Controller to determine the type of bus cycle being run: Table 5 lists the 8087's instructions by class. All appear as ESCAPE instructions to the host. Assembly language 52 ST 50 programs are written in ASM-86, the iAPX 86, 88 as- 0 X X Unused sembly language. 1 0 0 Unused 1 0 1 Memory Data Read 1 1 0 Memory Data Write Table 3. Execution Times for Selected iAPX 86/20 1 1 1 Passive (no bus Numeric Instructions and Corresponding cycle) iAPX 86/10 Emulation Approximate Execution Time (yxs) Programming Interface Floating Point Instruction iAPX 86/20 iAPX 86/10 The 8087 includes the standard iAPX 86/10, 88/10 (5 MHz instruction set for general data manipulation and pro- Clock) Emulation gram control. It also includes 68 numeric instructions for extended precision integer, floating point, trigono- Add/Subtract 17 1,600 metric, logarithmic, and exponential functions. Sample Multiply (single execution times for several 8087 functions are shown in precision) 19 1,600 Table 3. Overal I performance is u p to 100 ti mes that of an Multiply (extended iAPX 86/10 processor for numeric instructions. precision) 27 2,100 Divide 39 3,200 Compare 9 1,300 Any instruction executed by the 8087 is the combined Load (double precision) 10 1,700 result of the CPU and 8087 activity. The CPU and the Store (double precision) 21 1,200 8087 have specialized functions and registers providing Square Root 36 19,600 fast concurrent operation. The CPU controls overall Tangent 90 13,000 program execution while the 8087 uses the coprocessor Exponentiation 100 17,100 interface to recognize and perform numeric operations. 3-180 205835-003 intef 8087/8087-2/8087-1 NUMERIC PROCESSOR with the CPU while the NEU is busy processing a EXTENSION ARCHITECTURE numeric instruction. As Shown in Figure 1, the 8087 is internally divided Control Unit into two processing elements, the control unit (CU) and the numeric execution unit (NEU). The NEU exe- The CU keeps the 8087 operating in synchronization cutes all numeric instructions, while the CU receives with its host CPU. 8087 instructions are intermixed with and decodes instructions, reads and writes memory CPU instructions in a single instruction stream. The CPU operands and executes 8087 control instructions. The fetches all instructions from memory; by monitoring the two elements are able to operate independently of one status (SO-S2, S6) emitted by the CPU, the control unit another, allowing the CU to maintain synchronization determines when an instruction is being fetched. The Figure 4. iAPX 86/20,88/20 System Configuration Figure 5. iAPX 186/20,188/20 System Configuration 3-181 intef 8087/8087-2/8087-1 CU monitors the data bus in parallel with the CPU to Numeric Execution Unit obtain instructions that pertain to the 8087. The NEU executes all instructions that involve the The CU maintains an instruction queue that is identical register stack; these include arithmetic, logical, to the queue in the host CPU. The CU automatically transcendental, constant and data transfer instruc- determines if the CPU is an 8086/186 or an 8088/188 tions. The data path in the NEU is 84 bits wide (68 immediately after reset (by monitoring the BHE/S7 line) fraction bits, 15 exponent bits and a sign bit) which and matches its queue length accordingly. By monitor- allows internal operand transfers to be performed at ing the CPU's queue status lines (QS0, QS1), the CU very high speeds. obtains and decodes instructions from the queue in synchronization with the CPU. When the NEU begins executing an instruction, it activates the 8087 BUSY signal. This signal can be A numeric instruction appears as an ESCAPE instruction used in conjunction with the CPU WAIT instruction to the CPU. Both the CPU and 8087 decode and execute to resynchronize both processors when the NEU has the ESCAPE instruction together. The 8087 only completed its current instruction. recognizes the numeric instructions shown in Table 5. The start of a numeric operation is acomplished when the CPU executes the ESCAPE instruction. The instruc- Register Set tion may or may not identify a memory operand. The CPU+8087 register set is shown in Figure 3. Each of The CPU does, however, distinguish between ESC the eight data registers in the 8087's register stack is 80 instructions that reference memory and those that bits and is divided into "fields" corresponding to the do not. If the instruction refers to a memory operand, 8087's temporary real data type. the CPU calculates the operand's address using any one of its available addressing modes, and then per- At a given point in time the TOP field in the control word forms a "dummy read" of the word at that location. identifies the current top-of-stack register. A "push" (Any location within the 1M byte address space is operation decrements TOP by 1 and loads a value into allowed.) This is a normal read cycle except that the the new top register. A "pop" operation stores the value CPU ignores the data it receives. If the ESC instruc- from the current top register and then increments TOP tion does not contain a memory reference (e.g. an by 1. Like CPU stacks in memory, the 8087 register 8087 stack operation), the CPU simply proceeds to stack grows "down" toward lower-addressed registers. the next instruction. Instructions may address the data registers either An 8087 instruction can have one of three memory implicitly or explicitly. Many instructions operate on reference options; (1) not reference memory, (2) the register at the top of the stack. These instruc- load an operand word from memory into the 8087; or tions implicitly address the register pointed to by the (3) store an operand word from the 8087 into TOP. Other instructions allow the programmer to memory. If no memory reference is required, the explicitly specify the register which is to be used. 8087 simply executes its instruction. If a memory Explicit register addressing is "top-relative." reference is required, the CU uses a "dummy read" cycle initiated by the CPU to capture and save the address that the CPU places on the bus. If the in- struction is a load, the CU additionally captures the Status Word data word when it becomes available on the local data bus. If data required is longer than one word, The status word shown in Figure 6 reflects the over- the CU immediately obtains the bus from the CPU all state of the 8087; it may be stored in memory and using the request/grant protocol and reads the rest then inspected by CPU code. The status word is a of the information in consecutive bus cycles. In a 16-bit register divided into fields as shown in Figure store operation, the CU captures and saves the store 6. The busy bit (bit 15) indicates whether the NEU is address as in a load, and ignores the data word that either executing an instruction or has an interrupt follows in the "dummy read" cycle. When the 8087 is request pending (B = 1), or is idle (B = 0). Several ready to perform the store, the CU obtains the bus instructions which store and manipulate the status from the CPU and writes the operand starting at the word are executed exclusively by the CU, and these specified address. do not set the busy bit themselves. 3-182 205835-003 iny 8087/8087-2/8087-1 Figure 6. 8087 Status Word The four numeric condition code bits (C0-C3) are similar word can be used, however, to interpret the contents to flags in a CPU: various instructions update these bits of 8087 registers. to reflect the outcome of 8087 operations. The effect of these instructions on the condition code bits is sum- marized in Table 4. Instruction and Data Pointers Bits 14-12 of the status word point to the 8087 regis- The instruction and data pointers (see Figure 8) are ter that is the current top-of-stack (TOP) as provided for user-written error handlers. Whenever described above. the 8087 executes an NEU instruction, the CU saves the instruction address, the operand address (if Bit 7 is the interrupt request bit. This bit is set if any present) and the instruction opcode. 8087 instruc- unmasked exception bit is set and cleared other- tions can store this data into memory. wise. Bits 5-0 are set to indicate that the NEU has detected an exception while executing an instruc- tion. Tag Word The tag word marks the content of each register as shown in Figure 7. The principal function of the tag word is to optimize the 8087's performance. The tag Figure 7. 8087 Tag Word 3-183 205835-003 inteT 8087/8087-2/8087-1 Table 4a. Condition Code Interpretation Instruction c3 C2 Ci Co Interpretation Type Compare, Test 0 0 X 0 ST > Source or 0 (FTST) 0 0 X 1 ST < Source or 0 (FTST) 1 0 X 0 ST = Source or 0 (FTST) 1 1 X 1 ST is not comparable Remainder Qi 0 Qo Q2 Complete reduction with three low bits of q u o t i e n t (See Table 4b) u 1 u u Incomplete Reduction Examine 0 0 0 0 Valid, positive unnormalized 0 0 0 1 Invalid, positive, exponent =0 0 0 1 0 Valid, negative, unnormalized 0 0 1 1 Invalid, negative, exponent =0 0 1 0 0 Valid, positive, normalized 0 1 0 1 Infinity, positive 0 1 1 0 Valid, negative, normalized 0 1 1 1 Infinity, negative 1 0 0 0 Zero, positive 1 0 0 1 Empty 1 0 1 0 Zero, negative 1 0 1 1 Empty 1 1 0 0 Invalid, positive, exponent = 0 1 1 0 1 Empty 1 1 1 0 Invalid, negative, exponent = 0 1 1 1 1 Empty NOTES: 1. ST = Top of stack 2. X = value is not affected by instruction 3. U = value is undefined following instruction 4. Qn = Quotient bit n Table 4b. Condition Code Interpretation after FPREM Instruction As a Function of Dividend Value Dividend Range Q2 Qi Qo Dividend < 2 * Modulus c 3 11 Qo c3 pop Dividend < 4 * Modulus Qo Dividend 3= 4 * Modulus Q2 Qo NOTE: 1. Previous value of indicated bit, not affected by FPREM Figure 8. 8087 Instruction and Data Pointer instruction execution. image in Memory 3-184 205835-003 inteT 8087/8087-2/8087-1 Control Word Exception Handling The 8087 provides several processing options which The 8087 detects six different exception conditions are selected by loading a word from memory into the that can occur during instruction execution. Any or control word. Figure 9 shows the format and encod- all exceptions will cause an interrupt if unmasked ing of the fields in the control word. and interrupts are enabled. The low order byte of this control word configures If interrupts are disabled the 8087 will simply con- 8087 interrupts and exception masking. Bits 5-0 of tinue execution regardless of whether the host the control word contain individual masks for each clears the exception. If a specific exception class is of the six exceptions that the 8087 recognizes and masked and that exception occurs, however, the bit 7 contains a general mask bit for all 8087 in- 8087 will post the exception in the status register terrupts. The high order byte of the control word and perform an on-chip default exception handling configures the 8087 operating mode including procedure, thereby allowing processing to continue. precision, rounding, and infinity controls. The preci- The exceptions that the 8087 detects are the sion control bits (bits 9-8) can be used to set the following: 8087 internal operating precision at less than the default of temporary real precision. This can be use- 1. INVALID OPERATION: Stack overflow, stack un- ful in providing compatibility with earlier generation derflow, indeterminate form (0/0, °°- °°, etc.) or arithmetic processors of smaller precision than the the use of a Non-Number (NAN) as an operand. 8087. The rounding control bits (bits 11-10) provide An exponent value is reserved and any bit pattern for directed rounding and true chop as well as the with this value in the exponent field is termed a unbiased round to nearest mode specified in the Non-Number and causes this exception. If this proposed IEEE standard. Control over closure of the exception is masked, the 8087 s default response number space at infinity is also provided (either is to generate a specific NAN called INDEFINITE, affine closure, ±°°, or projective closure, °°, is treated or to propagate already existing NANs as the cal- as unsigned, may be specified). culation result. Figure 9. 8087 Control Word 3-185 205835-003 inteT 8087/8087-2/8087-1 2. OVERFLOW: The result is too large in magnitude ponent is in range. This process is called gradual to fit the specified format. The 8087 will generate underflow. an encoding for infinity if this exception is masked. 5. DENORMALIZED OPERAND: At least one of the operands or the result is denormalized; it has the 3. ZERO DIVISOR: The divisor is zero while the divi- smallest exponent but a non-zero significand. dend is a non-infinite, non-zero number. Again, Normal processing continues if this exception is the 8087 will generate an encoding for infinity if masked off. this exception is masked. 6. INEXACT RESULT: If the true result is not exactly 4. UNDERFLOW: The result is non-zero but too representable in the specified format, the result small in magnitude to fit in the specified format. If is rounded according to the rounding mode, and this exception is masked the 8087 will this flag is set. If this exception is masked, pro- denormalize (shift right) the fraction until the ex- cessing will simply continue. 3-186 205835-003 inter 8087/8087-2/8087-1 ABSOLUTE MAXIMUM RATINGS* 'NOTICE: Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional opera- Ambient Temperature Under Bias 0°C to 70°C tion of the device at these or any other conditions above Storage Temperature -65°C to +150°C those indicated in the operational sections of this Voltage on Any Pin with specification is not implied. Exposure to absolute maxi- Respect to Ground -1.0V to +7V mum rating conditions for extended periods may affect Power Dissipation 3.0 Watt device reliability. D.C. CHARACTERISTICS (TA = o°c to 7o°c, v c c =+sv ±5%) Symbol Parameter Mln. Max. Units Test Conditions V|L Input Low Voltage -0.5 +0.8 V V|H Input High Voltage 2.0 VCC +0-5 V V0L Output Low Voltage 0.45 V IQL = 2.0 mA V0H Output High Voltage 2.4 V >OH = - 4 0 0 ^iA ice Power Supply Current 475 mA TA = 25X ILI Input Leakage Current ±10 MA 0V s V, N « V C C ILO Output Leakage Current ±10 MA 0.45V =£ VQUT « VCC VCL Clock Input Low Voltage -0.5 +0.6 V VCH Clock Input High Voltage 3.9 V C c + 10 V C|N Capacitance of Inputs 10 PF fc = 1 MHz C|Q Capacitance of I/O Buffer (ADO-15, A 1 6 -A 1 9 , BHE, S2-S0, 15 PF fc = 1 MHz RQ/GT) and CLK CoUT Capacitance of Outputs BUSY, INT 10 PF fc = 1 MHz A.C. CHARACTERISTICS (TA == 0°C to 70°C, V C c = +5V ±5%) TIMING REQUIREMENTS 8087 8087-2 8087-1 (Preliminary: See Note 7) Symbol Parameter Min. Max. Min. Max. Min. Max. Units Test Conditions TCLCL CLK Cycle Period 200 500 125 500 100 500 ns TCLCH CLK Low Time 118 66 53 ns TCHCL CLK High Time 69 44 39 ns TCH1CH2 CLK Rise Time 10 10 15 ns From 1.0V to 3.5V TCL2CL2 CLK Fall Time 10 10 15 ns From 3.5V to 1.0V TDVCL Data in Setup Time 30 20 15 ns TCLDX Data in Hold Time 10 10 10 ns TRYHCH READY Setup Time 118 68 53 ns TCHRYX READY Hold Time 30 20 5 ns TRYLCL READY Inactive to C L K " - 8 - 8 -10 ns TGVCH RQ/GT Setup Time 30 15 8 ns TCHGX RQ/GT Hold Time 40 30 20 ns TQVCL QS0-1 Setup Time 30 30 10 ns TCLQX QS0-1 Hold Time 10 10 5 ns TSACH Status Active Setup Time 30 30 30 ns TSNCL Status Inactive Setup Time 30 30 30 ns TILIH Input Rise Time (Except CLK) 20 20 20 ns From 0.8V to 2.0V TIHIL Input Fall Time (Except CLK) 12 12 15 ns From 2.0V to 0.8V 3-187 205835-003 inteT 8087/8087-2/8087-1 A.C. CHARACTERISTICS (Continued) TIMING RESPONSES 8087 8087-2 8087-1 (Preliminary: See Note 7) Symbol Parameter Mln. Max. Min. Max. Min. Max. Units Test Conditions TCLML Command Active Delay C|_ = 20-100pF (See Notes 1,2) 10/0 35/70 10/0 35/70 10/0 35/70 ns for all 8087 Outputs TCLMH Command Inactive Delay (in addition to 8087 (See Notes 1,2) 10/0 35/55 10/0 35/55 10/0 35/70 ns self-load) TRYHSH Ready Active to Status Passive (See Note 5) 110 65 45 ns TCHSV Status Active Delay 10 110 10 60 10 45 ns TCLSH Status Inactive Delay 10 130 10 70 10 55 ns TCLAV Address Valid Delay 10 110 10 60 10 55 ns TCLAX Address Hold Time 10 10 10 ns TCLAZ Address Float Delay TCLAX 80 TCLAX 50 TCLAX 45 ns TSVLH Status Valid to ALE High (See Notes 1,2) 15/30 15/30 15/30 ns TCLLH CLK Low to ALE Valid (See Notes 1,2) 15/30 15/30 15/30 ns TCHLL ALE Inactive Delay (See Notes 1,2) 15/30 15/30 15/30 ns TCLDV Data Valid Delay 10 110 10 60 10 50 ns TCHDX Data Hold Time 10 10 10 45 ns TCVNV Control Active Delay (See Notes 1,3) 5 45 5 45 5 45 ns TCVNX Control Inactive Delay (See Notes 1,3) 10 45 10 45 10 45 ns TCHBV BUSY and INT Valid Delay 10 150 10 85 10 65 ns TCHDTL Direction Control Active Delay (See Notes 1,3) 50 50 50 ns TCHDTH Direction Control Inactive Delay (See Notes 1,3) 30 30 30 ns TSVDTV STATUS to DT/R Delay (See Notes 1,4) 0 30 0 30 0 30 ns TCLDTV DT/R Active Delay (See Notes 1,4) 0 55 0 55 0 55 ns TCHDNV DEN Active Delay (See Notes 1,4) 0 55 0 55 0 55 ns TCHDNX DEN Inactive Delay (See Notes 1,4) 5 55 5 55 5 55 ns TCLGL RQ/GT Active Delay 0 85 0 50 0 41 ns C|_=40pF (in addition TCLGH RQ/GT Inactive Delay 0 85 0 50 0 45 ns to 8087 self-load) TOLOH Output Rise Time 20 20 15 ns From 0.8V to 2.0V TOHOL Output Fall Time 12 12 12 ns From 2.0V to 0.8V NOTES: 1. Signal at 8284A, 8288, or 82188 shown for reference only. 2. 8288 timing/82188 timing 3. 8288 timing 4. 82188 timing 5. Applies only to T3 and wait states 6. Applies only to T2 state (8ns into T3) 7. IMPORTANT SYSTEM CONSIDERATION: Some 8087-1 timing parameters are constrained relative to the corresponding 8086-1 specifications. Therefore, 8086-1 systems incorporating the 8087-1 should be designed with the 8087-1 specifications. 3-188 205835-003 inteT 8087/8087-2/8087-1 A.C. TESTING INPUT, OUTPUT WAVEFORM A.C. TESTING LOAD CIRCUIT 3-189 205835-003 irrtel 8087/8087-2/8087-1 WAVEFORMS MASTER MODE (with 8288 references) NOTES: 1. ALL SIGNALS SWITCH BETWEEN V(x. AND V 0 H UNLESS OTHERWISE SPECIFIED. 2. READY IS SAMPLED NEAR THE END OF T 2 , T 3 AND T w TO DETERMINE IF T w MACHINE STATES ARE TO BE INSERTED. 3. THE LOCAL BUS aOATS ONLY IF THE 8087 IS RETURNING CONTROL TO THE 8086/8088. 4. ALE RISES AT LATER OF (TSVLH, TCLLH). 5. STATUS INACTIVE IN STATE JUST PRIOR TO T 4 . 6. SIGNALS AT 8284A OR 8288 ARE SHOWN FOR REFERENCE ONLY. 7. THE ISSUANCE OF 8288 COMMAND AND CONTROL SIGNALS (MRDC, MWTC, AMWC AND DEN) LAGS THE ACTIVE HIGH 8288 CEN. 8. ALL TIMING MEASUREMENTS ARE MADE AT 1 5V UNLESS OTHERWISE NOTED. 3-190 205835-003 inteT 8087/8087-2/8087-1 WAVEFORMS (Continued) MASTER MODE (with 82188 references) NOTES: 1. ALL SIGNALS SWITCH BETWEEN V 0 L AND V 0 H UNLESS OTHERWISE SPECIFIED. 2. READY IS SAMPLED NEAR THE END OF T2, T3 AND T w TO DETERMINE IF T w MACHINE STATES ARE TO BE INSERTED. 3. THE LOCAL BUS FLOATS ONLY IF THE 8087 IS RETURNING CONTROL TO THE 80186/80188 4. ALE RISES AT LATER OF (TSVLH, TCLLH). 5. STATUS INACTIVE IN STATE JUST PRIOR TO T4. 6. SIGNALS AT 8284A OR 82188 ARE SHOWN FOR REFERENCE ONLY. 7. THE ISSUANCE OF 8288 COMMAND AND CONTROL SIGNALS (MRDC, MWTC, AMWC, AND DEN) LAGS THE ACTIVE HIGH 8288 CEN. 8. ALL TIMING MEASUREMENTS ARE MADE AT 1.5V UNLESS OTHERWISE NOTED. 9. DT/R BECOMES VALID AT THE LATER OF (TSVDTV, TCLDTV). 3-191 205835-003 irrtel 8087/8087-2/8087-1 WAVEFORMS (Continued) PASSIVE MODE RESET TIMING REQUEST/GRANT,, TIMING 3-192 205835-003 irrtel 8087/8087-2/8087-1 WAVEFORMS (Continued) REQUEST/GRANT! TIMING BUSY AND INTERRUPT TIMING 3-193 205835-003 iny 8087/8087-2/8087-1 Table 5.8087 Extensions to the 86/186 Instructions Sets Optional (;iock Cou it Range 8,16 Bit 32 Bit 32 Bit 64 Bit 16 Bit Data Transfer Displacement Real Integer Rea| Integer FLD = LOAD MF 00 01 10 11 Integer/Real Memory to ST(0) ESCAPE MF 1 | MOD 0 0 0 R/M | DISP 38-56 52-60 40-60 46-54 + EA + EA + EA + EA Long Integer Memory to ST(0) ESCAPE 1 1 1 j MOD 1 0 1 R/M | DISP 60-68 + EA Temporary Real Memory to ESCAPE 0 1 1 MOD 1 0 1 R/M DISP 53-65 +EA ST(0) BCD Memory to ST(0) ESCAPE 1 1 1 MOD 1 0 0 R/M DISP • 290-310 +EA ST(i) to ST(0) ESCAPE 0 0 1 1 1 0 0 0 ST(i) 17-22 FST = STORE ST(0) to Integer/Real Memory ESCAPE MF 1 MOD 0 1 0 R/M DISP 84-90 82-92 96-104 80-90 + EA + EA + EA + EA ST(0) to ST(i) ESCAPE 1 0 1 1 1 0 1 0 ST(i) 15-22 FSTP = STORE AND POP ST(0) to Integer/Real Memory ESCAPE MF 1 MOD 0 1 1 R/M DISP I 86-92 84-94 98-106 82-92 + EA + EA + EA + EA ST(0) to Long Integer Memory ESCAPE 1 1 1 MOD 1 1 1 R/M DISP ' 94-105 +EA ST(0) to Temporary Real ESCAPE 0 1 1 MOD 1 1 1 R/M DISP Memory 52-58 +EA ST(0) to BCD Memory ESCAPE 1 1 1 MOD 1 1 0 R/M DISP 520-540 +EA ST(0) to ST(i) ESCAPE 1 0 1 1 1 0 1 1 ST(i) 17-24 FXCH = Exchange ST(i) and ESCAPE 0 0 1 1 1 0 0 1 ST(i) 10-15 ST(0) Comparison FCOM = Compare Integer/Real Memory to ST(0) ESCAPE MF 0 MOD 0 1 0 R/M DISP \ 60-70 78-91 65-75 72-86 + EA + EA + EA + EA ST(i) to ST (0) ESCAPE 0 0 0 ] 1 1 0 1 0 ST(i) 40-50 FCOMP = Compare and Pop Integer/Real Memory to ST(0) ESCAPE MF 0 MOD 0 1 1 R/M DISP 63-73 80-93 67-77 74-88 ST(i) to ST(0) ESCAPE 0 0 0 1 1 0 1 1 ST(i) 45-52 FCOMPP = Compare ST(1) to ESCAPE 1 1 o | i 1 0 1 1 0 0 1 45-55 ST(0) and Pop Twice FTST = Test ST(0) ESCAPE 0 0 1 1 1 1 0 0 1 0 0 38-48 FXAM = Examine ST(0) ESCAPE 0 0 1 j 1 1 1 0 0 1 0 1 12-23 3-194 inteT 8087/8087-2/8087-1 lable 5.8087 Extensionstothe 86/186 Instruction Sets (cont) Optional (;iock Cou it Range 8,16 Bit 32 Bit 32 Bit 64 Bit. 16 Bit Constants Displacement Real Integer Real* Integer | MF 00 01 10 11 FLDZ = LOAD + 0.0 into ST(0) | ESCAPE 0 0 i | i 1 1 0 1 1 1 0 ] 11-17 FLD1 = LOAD + 1.0 into ST(0) [ ESCAPE 0 0 i | i 1 1 0 1 0 0 0 I 15-21 FLOPI = LOAD n into ST(0) I ESCAPE 0 0 1 J 1 1 1 0 1 0 1 1 16-22 FLDL2T = LOAD log 2 10 into ESCAPE 0 0 i | i 1 1 0 1 0 0 1 16-22 ST(0) FLOL2E = LOAD log 2 e into ST(0) ESCAPE 0 0 i | i 1 1 0 1 0 1 0 ] 15-21 FLDLG2 = LOAD log 1 0 2 into ST(0) ESCAPE 0 0 i | i 1 ] 1 0 1 1 0 0 18-24 FLOLN2 = LOAD log e 2 into ST(0) ESCAPE 0 0 1 | 1 1 1 0 1 1 0 1 ] 17-23 Arithmetic FADD = Addition Integer/Real Memory with ST(0) ESCAPE MF 0 I MOD 0 0 0 R/M DISP | 90-120 108-143 95-125 102-137 + EA + EA + EA + EA ST(i) and ST(0) ESCAPE d P 0 I 1 1 0 0 0 ST(i) 70-100 (Note 1) FSUB = Subtraction Integer/Real Memory with ST(0) ESCAPE MF 0 | MOD 1 0 R R/M __DI_SP. J 90-120 + EA 108-143 + EA 95-125 + EA 102-137 + EA ST(i) and ST(0) ESCAPE d P 0 1 1 1 0 R R/M 70-100 (Note 1) FMUL = Multiplication Integer/Real Memory with ST(0) ESCAPE MF 0 I MOD 0 0 1 R/M DISP j 110-125 130-144 112-168 124-138 + EA + EA + EA + EA ST(i) and ST(0) ESCAPE d P 0 | 1 1 0 0 1 R/M 90-145 (Note 1) FDIV = Division Integer/Real Memory with ST(0) ESCAPE MF 0 | MOD 1 1 R R/M DISP 215-225 230-243 220-230 224-238 + EA + EA + EA + EA ST(i) and ST(0) ESCAPE d P 0 | 1 1 1 1 R R/M 193-203 (Note 1) FSQRT = Square Root of ST(0) ESCAPE 0 0 1 I 1 1 1 1 1 0 1 0 180-186 FSCALE = Scale ST(0) by ST(1) ESCAPE 0 0 i | i 1 1 1 1 1 0 1 32-38 • FPHEM -- Partial Remainder of ESCAPE 0 0 i | i 1 1 1 1 0 0 0 15-190 ST(0) -ST(1) FRNDINT = Round ST(0) to | ESCAPE 0 0 i | i 1 1 1 1 1 0 0 [ 16-50 Integer NOTE: 1. If P=1 then add 5 clocks. 3-195 205835-003 irrtef 8087/8087-2/8087-1 Table 5.8087 Extensions to the 86/186 Instructions Sets (cont.) Optional Clock Count Range 8,16 Bit Displacement FXTRACT = Extract ESCAPE 0 0 1 I 1 1 1 1 0 1 0 0 27-55 Components of St(O) FABS = Absolute Value of ESCAPE 0 0 1 1 1 1 00 0 0 1 10-17 ST(0) FCHS = Change Sign of ST(0) ESCAPE 0 0 1 I 1 1 1 0 0 0 0 0 10-17 Transcendental FPTAN = Partial Tangent of ESCAPE 0 0 1 1 1 1 1 0 0 1 0 30-540 ST(0) FPATAN = Partial Arctangent ESCAPE 0 0 1 I 1 1 1 1 0 0 1 1 250-800 of ST(0) -ST(1) ST(0) F2XM1=2 -1 ESCAPE 0 0 1 1 1 1 1 0 0 0 0 310-630 FYL2X = ST(1)^Log2 ESCAPE 0 0 1 I 1 1 1 1 0 0 0 1 900-1100 IST(0)l FYL2XP1 = ST(1)-Log2 ESCAPE 0 0 1 I 1 1 1 1 1 0 0 1 700-1000 [ST(0)+1) Processor Control FINIT = Initialized 8087 ESCAPE 0 1 1 1 1 1 0 0 0 1 1 2-8 FENI = Enable Interrupts ESCAPE 0 1 i l l 1 1 0 0 0 0 0 2-8 FDISI = Disable Interrupts ESCAPE 0 1 1 | 1 1 1 0 0 0 0 1 2-8 FLDCW = Load Control Word ESCAPE 0 0 1 | MOD 1 0 1 R/M DISP • 7-14 +EA FSTCW = Store Control Word ESCAPE 0 0 1 | MOD 1 1 1 R/M DISP , 12-18 +EA FSTSW = Store Status Word ESPAPE 1 0 1 MOD 1 1 1 R/M DISP • 12-18 +EA FCLEX = Clear Exceptions ESCAPE 0 1 1 j 1 1 1 0 0 0 1 0 2-8 FSTENV = Store Environment ESCAPE 0 0 1 | M O D 1 1 0R/M DISP • 40-50 + EA FLDENV = Load Environment ESCAPE 0 0 1 M O D 1 0 0R/M DISP | 35-45 + EA FSAVE = Save State ESCAPE 1 0 1 | M O D 1 1 0R/M DISP | 197-207 + EA FRSTOR = Restore State ESCAPE 1 0 1 | M O D 1 0 0R / M DISP • 197-207 + EA FINCSTP - Increment Stack Pointer ESCAPE 0 0 1 1 1 1 1 0 1 1 1 6-12 FDECSTP = Decrement Stack ESCAPE 0 0 i | i 1 1 1 0 1 1 0 6-12 Pointer 3-196 205835-003 irrteT 8087/8087-2/8087-1 Table 5.8087 Extensionstothe 86/186 Instructions Sets (cont.) Clock Count Range FFREE = Free ST(i) ESCAPE 1 0 1 | 1 1 0 0 0 ST(i) 9-16 FNOP = No Operation ESCAPE 0 0 i | i 1 0 1 0 0 0 0 10-16 FWAIT = CPU Wait for 8087 1 0 0 1 1 0 1 1 | 3 + 5n* *n = number of times CPU examines TEST line before 8087 lowers BUSY. NOTES: 1. if mod=00 then DISP = 0*, disp-low and disp-high are absent if mod=01 then DISP=disp-low sign-extended to 16-bits, disp-high is absent if mod = 10 then DISP=disp-high; disp-low if mod = 11 then r/m is treated as an ST(i) field 2. if r/m=000 then EA=(BX) + (SI) +DISP if r/m=001 then EA=(BX) + (Dl) +DISP if r/m=010 then EA=(BP) + (SI) +DISP if r/m=011 then EA=(BP) + (Dl) +DISP if r/m = 100then EA=(SI) + DISP if r/m = 101 then EA=(DI) + DISP if r/m = 110then EA=(BP) + DISP if r/m = 111 then EA=(BX) + DISP 'except if mod=000and r/m = 110then EA =disp-high; disp-low. 3. MF= Memory Format 00—32-bit Real 01—32-bit Integer 10—64-bit Real 11—16-bit Integer 4. ST(0)= Current stack top ST(i) i register below stack top 5. d = Destination 0—Destination is ST(0) 1—Destination is ST(i) 6. P= Pop 0—No pop 1—PopST(O) 7. R= Reverse: When d = 1 reverse the sense of R 0—Destination (op) Source 1—Source (op) Destination 8. For FSQRT: - 0 « ST(0) =s + * For FSCALE: - 2 1 5 « ST(1) < + 2 1 5 and ST(1) integer For F2XM1: 0 =s ST(0) =s 2 ~ 1 For FYL2X: 0 < ST(0) < * -*• < ST(1) < + x ForFYL2XP1: 0 =s IST(0)l< (2 -V2)/2 -=c