=== page p-01 Home COMPUTER === page p-02 IMPORTANT NOTICE REGARDING TECHNICAL DATA TEXAS INSTRUMENTS RESERVES THE RIGHT TO CHANGE ANY OF THE TECHNICAL DATA CONTAINED HEREIN WITHOUT NOTICE. TEXAS INSTRUMENTS MAKES NO WARRANTY, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR PARTICULAR PURPOSE, REGARDING THIS LITERATURE OR ANY INFORMATION DERIVED THEREFROM AND MAKES SUCH MATERIALS AVAILABLE SOLELY ON AN "AS-IS" BASIS. |. IN NO EVENT SHALL TEXAS INSTRUMENTS BE LIABLE TO ANYONE FOR SPECIAL, COLLATERAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR ARISING OUT OF THE PURCHASE OR USE OF THIS LITERATURE AND THE SOLE AND EXCLUSIVE LIABILITY TO TEXAS © INSTRUMENTS, REGARDLESS OF THE FORM OF ACTION, SHALL NOT EXCEED THE PURCHASE PRICE OF THIS BOOK. MOREOVER, TEXAS INSTRUMENTS SHALL NOT BE LIABLE FOR ANY CLAIM OF ANY KIND WHATSOEVER AGAINST THE USER OF THIS MATERIAL BY ANY OTHER ARTY. Copyright 1982, Texas Instruments Incorporated === page p-03 SECTION Ir III Iv VI FIGURE OAPI Ow > TABLE OF CONTENTS TETLE General Description I/O Pin Description Memory Allocation CRU Allocation Interrupt Handling Electrical Characteristics Glossary LIST OF ILLUSTRATIONS TITLE 99/4A System Block Diagram I/O Read Timing I/O Write Timing CRU Timing : Connector Pin Identification Diagram 99/4A Logic Board Component Location Diagram 99/4A Schematic Diagram 4 PAGE La COA HOW = PAGE 10 12 14 15 16 === page p-04 GENERAL DESCRIPTION The concept for the Texas Instruments Home Computer 99/4 or 99/4a 1/0 bus is to provide maximum flexibility and good performance with a° constraint of low cost for both mainframe and computer system. This concept is achieved by providing both memory and CRU I/0 buses to the 99/4 or 99/4A peripherals. This brief description will give key details of this interface. Detailed information regarding the g900 CRU is assumed. A source for this information is the 9900 Family Systems Design and Data Book. This manual may be obtained from TI Semiconductor Distributors. The memory bus (with data bus converted to eight bits wide) is used for instruetion feteh from ROM in external peripherals and for data transfer to/from memory mapped portions of these devices. The CRU bus is used for peripheral enable/disable and for device control and data transfer to/from CRU mapped peripherals. A block diagram of the TI-99/4A electronics is shown in Figure A. The TMS 9900 microprocessor accesses each peripheral to obtain instructions from the device service routine (DSR) read only memory (ROM). Since each peripheral contains its own DSR, the 99/4A does not have to be designed to anticipate future peripheral requirements. The dual 1/0 bus capability, along with interrupt handling and external DSR's provide flexibility at low cost. === page p-05 WHOVEU NOOTH WILSAS vo RNoT 1194a3dS ‘NWdXT WOU TULAWINAS dowwtt-——-T — 1 Wwusnaiiga Luod wad JIU HZE NUTS Tr ' JIVIUILN | i INOUYE | sna Off EERE EETT) JtVISGHOs; = TIVE] egw UWE stv OW nua Sd a Oe | wine wou le alt mn { Twnoituuy fj i siv tv Be ae ee Bx Nat reya@xrnt | Isviuu saitavus terete. { _Wwwollday; & | i GUVOSAIN SINILNGU I SLI47398 NIG TA ANOMIN TOBINGI OF 1665 SWE | YOEVUINTD INNES RF TWWOG Ee OB SWwil 8 bivoty, q WALUIANOD sng id FOV SUIING NUD sqa0ud Vivd HOG UL LG 94 TOBIN? sAg UOS . AVdSIG B40TA ssauugy WOILNVHd any svi er nat ZiiEt Avawaw ray) AV TdStE ast Bsnvusoud JIsva vais SWE UESSIIUHIGUIIY LG SF QUG6 SAL bOGEG SWE WOLINOW wo? - WIA HIO79 FIVAUIING HOLLSAOL WIINVHIIA JIVIUZINI FLLASSYI wag [ | ZH 6 === page p-06 I. %/0 DESCRIPTION SIGNATURE . PIN 1/0 DESCRIPTION AO (MSB) 31 Out Al 30 Out ADDRESS BUS A2 20 Out AO through A115 comprise the 10 Out address bus. This bus provides AY 7 Out the 16 bit memory address vector A5 5 Out to the external memory system when A6 29 Out MEMEN is active. Address bit 15 AT 17 Out is also used for CRU DATA OUT on A8 14 Out CRU output instructions. Ag 18 out A10 6 Out Atl 8 Out Al2 11 Out A13 15 Out AI4 16 Out AI5/CRUOUT 19 Out . DO (MSB) 37 I/0 DATA BUS D1 40 T/o DO through D7 comprise the bi- D2 39 I/0 directional data bus. This bus D3 42 I/0 transfers memory data to (when D4 35 . I/0 writing) and from (when reading) DS 38 1/0 the external memory system when D6 36 I/0 MEMEN is active. D7 34 1/0 r BUS CONTROL MEMEN 32 Out — MEMory ENable. MEMEN indicates a memory access. DBIN 9 Out Data Bus IN. When active (high) : the data buffers and 9900 are in the input mode. WE 26 Out Write Enable. WE indicates a memory write. __ MBE 28 Out Memory Block Enable. MBE indicates a memory access in memory block 4000-5FFF. CRUCLK 22 Out CRU CLOCK. Indicates data is available on the CRU OUT line. CRUIN 33 Tn CRU data IN. Input data line to . the Home Computer. READY /HOLD 12 In READY (when MEMEN is active) . Indicates external memory is ready for a memory access, HOLD (when MEMEN is inactive) indicates request to use data buss. === page p-07 ', I/O DESCRIPTION (CONTINUED) SIGNATURE PIN 1/0 HOLD/IAQ 44 Out LOAD 13 In RESET 3 Out EXT INT 4 In a B3 2k Out GND 21,23 25,27 SBE 2 Out AUDIO IN “hy In +5 1 5 43 DESCRIPTION MEMORY CONTROL HOLD Acknowledge goes true when MEMEN is inactive and indicates that the 9900 is in a HOLD state. Instruction AcQuisition indicates (when MEMEN is active) the CPU is acquiring an instruction during a memory cycle. TIMING AND CONTROL When active, LOAD causes the CPU to execute a nonmaskable inter- rupt; memory addresses FFFC and FFFE contain the new workspace and PC vectors respectively. vectors respectively. When active, RESET causes the Home Computer and the peripherals to be reset. RESET will be held active for a minimum of 5 clock cycles. EXTernal INTerrupt. When active, EXT INT causes the CPU to execute an interrupt. CPU clock. Phase 3 of the CPU clock. POWER Ground reference. SPEECH MODULE SIGNALS Speech Block Enable. SBE indicates a memory access in the speech memory. Input for the audio from the speech module. Supply voltage (+5V Nom) for speech module (50ma Max) Supply voltage (-5 Nom} for speech module (50ma Max) === page p-08 Tl. e MEMORY ALLOCATION The memory address space is broken into 8 blocks of 8K bytes of memory. The third block (addresses 4000 - 5FFF) is predecoded and made available at the I/O port for the peripherals. The second, sixth, seventh, and eighth blocks (address 2000~- 3FFF and AQOO-FFFF) are in the memory expansion peripheral. For the speech module, (addresses 9000-97FF), a predecoded line is available at the I/O port. SYSTEM MEMORY MAP HEX ADDRESS O =» 1FFF Console ROM Space 2000 ~ 3FFF Memory Expansion 4000 = SFEF Peripheral Expansion (predecoded to I/0 Connéctor). 6000 + 7FFF Command Module ROM/RAM . (predecoded to GROM Connector. 8000 ~ OFFF Microprocessor RAM, VDP, GROM, SOUND and SFEECH select. AQOO = BFFF Memory Expansion coo00 + DFFF " " E000 + FFFF " " MEMORY MAPPED DEVICES nctaarecnnineanaaapas nimateinetaulentnteneinnrartm ADDRESSES AO Al A2 A3 AM AS A1¥ USE 8000 1 Qo 0 0 0 0 i) Internal RAM (8300- 83FF) 8400 1 o 0 0 0 1 i) Sound 8800 1 0 0 0 4 0 0 VDP Read Data 8802 1 0 Oo O 1 0 1 VDF Read Status 8c00 1 o 0 0 4 4 0 VDP Write Data 8co02 4 0 0 0 1 1 1 VDP Write ADDR. 9000 4 0 0 1 0 0 0 Speech Read 9400 1 0 0 1 0 1 -0 Speech Write 9800 1 .0 90 j 1 0) 0 GROM Read Data 9802 1 Oo 0 4 1 0 1 GROM Read ADDR. 9c00 4 0 0 4 1 4 0 GROM Write Data . 1 0 0 j 1 1 4 GROM Write ADDR. 9c02 Banks 1-7 available at other addresses, with external decode logic. === page p-09 TITs, CRU ALLOCATION Of the available 4K of CRU bits, the first 1K (ad- dresses 0000-O7FE) are used internally in the console. The second 1K (addresses O800-OFFE) are reserved for future use. The last 1.9K (addresses 1000-1FFE) are reserved for the peripherals to be plugged in the 1/0 port. A block of 128 CRU bits is assigned to each peripheral as listed below. CRU ASSIGNMENTS cctanemsertnarmameeastt el CRU ADDRESS A3 “AN AS AG AT USE QO00-OFFE 0 x xX xX X Internal Use 1000-10FE 1 0 0 0 0 Hard Disk Controller 1100-11FE 1 0 0 0 1 Disk Controller 1200-12FE 1 0 0 1 Q Modems 4300-13FE 1 0 0 1 1 RS232 (I) VHOO-1HFE 1 0 1 0 0+ Reserved 1500-15FE 1 0 1 0 4 RS232 (II) 1600-16FE 1 0 1 1 0 Reserved 1700~3 1 0 1 4 1 Reserved 1800~-18FE 1 1 0 0 f°) Thermal Printer 1900"19FE 1 4 0 0 1 Unassigned TAQO-1AFE 4 1 0 1 ce) Reserved 1BOO-1BFE 1 1 0 1 1 Debugger 1COOmI1CFE 1 1 1 0 0 VCR Controller {DO0—1DFE 1 1 1 0 4 JEEZ 488 Bus Controller 1EQO-1YEFE 1 4 1 1 0 Reserved 1FOO-1FFE 1 1 4 1 1 P-Code Iv. INTERRUPT HANDLING The interrupt available on the I/O port is one of the maskable interrupts of the TMS 9901 Programmable System Interface. 9900 INTERRUPTS VECTOR LOC. INTERRUPT (MEMORY ADDR. CPU DEVICE LEVEL IN_HEX) PIN ASSIGNMENT (Highest | 0000-WSP RESET RESET Priority) 0002 —PC 0 FFFC-WSP LOAD LOAD PFFE-=PC 1 0004-WSP fated EX DEV (9901) 0006~PC Lower priority CPU interrupts are not used. The additional interrupts are implemented on the 9901. Interrupt Level 1 is decoded by software to be either (1) VDP vertical syne. (2) 9901 internal timer or (3) I/O bus-generated. === page p-10 DN ADDRESS CRU BIT 0000 0002 0004 0006 0008 OO0A Q000C OO0E 0010 0012 0014 0016 0018 OO1A-1E 13-15 ADDRESS 0020 0022 0024 0026 0028 002A o02c O02E 0030 0032 0034 0036 0038--003E CRU BIT ~ 16 17 18 19 20 21 22 23 ak 25 26 27 28-31 9901 INTERRUPT MAPPING 9903 Control INT INT2 INT3 INTY INTS INT6 INT? (P15) INTS (P14) INT9_ (P13) INTIO (P12) INTI? (P11) INTi2 (P10) INT13-INT15 2 PIN 17 18 8,27 & 23 FUNCTION Control External Interrupt Video Display Processor Vertical Syne 9901 Internal Timer, Keyboard "=" line, Joystick "FIRE" Keyboard "Space" line, Joy- stick "LEFT" Keyboard "RETURN" line, Joy~ stick "RIGHT" Keyboard "0" line, Joystick "DOWN" Keyboard "FCTN" line, Joy- stick "UP" Keyboard "SHIFT" line Keyboard "CTRL" Line Keyboard "Z" line Not Used As Interrupt Reserved Not Used As Interrupt 9901 I/O MAPPING 9901 PT P8 Pg P10 (INTI2) P11 Cintis) CINT14) CINT13) CINT11) Pi2—15 PIN 38 37 26 22 21 20 19 23 27 28 23 30 31-34 FUNCTION Reserved Reserved Bit2 of Keyboard Select Bitl of Keyboard Select Bit (MSB) of Keyboard Select Keyboard (ALPHA LOCK) Cassette Control 1 Cassette Control 2 Audio Gate Mag Tape Out Reserved Mag Tape Input Not Used In I/0 Mapping === page p-11 ry ELECTRICAL CHARACTERISTICS DRIVE CAPABILITY OF I/O SIGNALS SIGNAL NAME : DRIVER BB THLS244 CRUCLE THLS2 44 WE TALS244 AO THLS244 Al THLS244 A2 . TALS244 DBIN : 74LSO4 MBE TYLS244 MEMEN TALS32 A3~A14 74LS367 DO-D7 THLS245 A15/CRUOUT THLS244 SBE ; TYLSO3 . HOLD/TAQ T4LS32 RESET TALSO4 - 1/0 READ A CPU Read cycle for the external device consists of two 8~bit read cycles (Fig.B). The 2 bytes read are assembled as a 16 bit word before they are presented to the 9900. Shown in Fig. B are two 8 bit read cycles with one wait state inserted in each to work with slow memories. MEMEN goes low true at the beginning of clock cycle 1. At the same time DBIN goes high true. WE stays high false during the entire cycle. At the same time that MEMEN goes true, the address bus goes active. In order for the noise and the glitches (associated with crosstalk and simultaneous switching) to go away a minimum of 100nS should be allowed for the address lines to settle. MBE (predecoded from AO, Al, A2 and MEMEN) goes true during the leading edge of #2 of clock cycle 1. Data read from the peripherais , will be valid 750nS after the start of clock cycle 1. The CPU will took at the full 16 bit data bus during the leading edge of #1, of clock cycle 2. Under worse-case conditions, data must be valid 100nS before that time. I/O WRITE Figure C shows a 16 bit I/O write cycle. As described earlier it is composed of two 86-bit writes. A write cycle will always be preceeded by an ALU cycle. MEMEN and DBIN go true at the start of the cycle. A settling time of 100nS (min) is allowed for the address lines to settle. down. WE goes true (low) on the leading edge of #2, during the wait states, and stays true for 660nS (TYP). Both during a Read or a Write the odd byte is accessed first, followed by the even byte. A15/CRU OUT changes its state 900nS (TYP) after the cycle is initiated. The second 8-bit write cycle is identical to the first 8- bit write. MBE stays true (low) during the entire (1.8us) cycle. 8. === page p-12 (XVW) SUngd- GIAVHANIVIN tv ONTMLL OW DE Os] Wo Dib AWE sc VaLva tS VL (NIN) SUg9 -9006 HO HLL anias (f) VO * WOH SO od FIND Sst ~(@) (NERD SHQ0E SSW ONTE C C ACV @ viva 4 Vive, away fan poy ! ' ' ’ H ! La-0d XS pA i X ' ' 1 toa 1 Yi tj ' HY POl~——O———rt_ 1 he @ + \ ue 1 . i —_——__. Yi I / LAOOUO/S fl on ! _ LNODUDISEV tof t t t az 1 wav arivay X biV-ny tof i] t fo 4 : Oe r@O| ry oy ' | aM toi i t = io... r —— Po. t \ ji Nin ar t Af t ‘ t t ’ t t iL ek) Getta) oh ir Co C c C c T C 5 | | TLV ALS J HIQAD id va RH) |_| zoo LIME | yaa Je 790- of OC Sd» OUTS of OM sa-+ f= OOS 7 sania 0 AL, } sugng———-- === page p-13 oO CRU’ TIMING CRU interface timing is shown in figure D. The CRU OUT cycle is composed of 2 elock cycles. The CRU bit address when placed on the address bus AO through A14 is allowed to settle for 100nS (min). CRUCLK is 63nS (max) low true signal which occurs on the trailing edge of 01 of clock cycle 2, CRUOUT data is valid at the state of clock cycle 1, and is latched by CRUCLK in the respective peripheral. CRUIN also consists of 2 clock cycles 660nS (TYP). Again we allow 100nS for the address bus to settle down. The CPU samples the CRUIN line on the leading edge of 01 of clock cycle 2. Data must be valid 40OnS (min) before that. This implies less than 500nS for CRUIN. I/0 BUS LOADING TOTAL SWITCHING MAXIMUM PERIPHERAL SIGNAL LOAD (pf) LOAD (pf) DO-D7 210 90 AO=A2 100 90 AZ~A14 100. 90 AiS/CRUOUT 110 100 3 110 100 RESET 100 90 READY /HOLD 80 70 CRUIN 125 90 CRUCLK 100 30 MBE - 100 . 90 WE_ 100 90 SBE . 35 25 DBIN 100 90 MEMEN 100 90 HOLD/TAQ 80 . 70 === page p-14 ONTWEL fo RINDES (XVA) S0b= NINHO CGEIVA OL UTIVA CaV- © (4A) St22= WOO OL GFIVA COV- (3 (NIW) SugUL SWELL ONPLELAS~ iG: Loo INT nwo ———~\_ ———— LOdL0 BU DCN AVAVAVAVAVAVANVAVAAVAVANVAVANV AVY AAV Hit! AV AVAVAVAVAVAVAV AVA WLLL) 1 +-—@— . 4 ri NMONDI f- xX x VAVO LOdLNO Ds aViIvA LAdLOO Ho x ENONUOISTV ! f t te @ t ror Tt —JTNIN i. | i to i Suge Suge ' i WIOUUD ot | , 1 ! : i ' iit 7 ' ' ! i 7 X sbauaay L1G wal X x Lissitiady LG auoX ma urival X biv-V 1 4 CPIVA aay ; j i ’ { - 1Oi-- H @x i} ' i r 1 LS ~ L$ LJ LJ Li is LS Tet H be rT as ee es Os Os Oe en Oe rel Sa | r LJ LJ ‘ LJ f eo § . 4 ‘ LE t LJ tJ LT LJ LI LT ae Li LI LJ tJ LJ LS LJ LI 1 ZVIOAD IWIDAD tfaqox9 LVIOAD ¢ -~ FOOD + 1IOT- ~ HOOTN- HOO1D —e——— (AL . ~———( J A3) Sung9—— -12- === page p-15 GLOSSARY CPU CRU DSR GROM 1/0 VDP ROM RAM MSB BIT BYTE WORD ALU Central Processing Unit Communication Register Unit (I/0 technique for TMS 9900 Microprocessor) Device Service Routine (TMS 9900 Machine language for Device Interface). Graphics Read Only Memory (TMC 0430). This memory device is a 6144 byte read only memory with on board 13 bit program counter. The program counter can be written or read through an eight bit inter- face and will automatically increment. Input/Output Video Display Processor (TMS 9918A). Read Only Memory. 4 Random Access Memory Most Significant Bit Smallest unit of memory, Blnary digiT 8 Bits of Memory 16 Bits/2 Bytes of Memory Arithmetic Logic Unit === page p-16 LEFT SIDE VIEW JOYSTICK pe | a VIEW CONNECTOR PIN === page p-17 TT99/4A KEYBOARD WIRING. MATRIX PIN 1 IS NEAREST TO JOYSTICK PORT CN THE MOTHERBOARD. PINS-* 6 7 AL {a | | ECTN | — ppd be Titty SHH 1 Tid ENTER | aide ETET | === page p-18 we SNIWEL FED 0/1 “9 3unold AUVAN Xx VALVO CI rm ) VALVE arival xX “Ld 8d OF FOr - i t : / ' i \ __ Hun 1 t | / i \t LQOUTTOISLY . ry L > At ‘4 aay ai way | Gay di ivat _X biveav 401 rox ls OT an . / | | NEC LP — “Le [Jb | Liao " ef OAS de eOU 710m === page p-19 on Q&A a Over the past few months wu have received some questions regarding the Power Up routine and its sequence of events, “he Power Up routine resides in console KOM and console GROM chip 6, with the najority of it in GROM. Listed below ia the’ yuquence of events, as we Know it, that take place from the moment power is applies Lo the console, {. When power is first applied to the 9906 piecroprocessor it executes a level 0 tnterrupt’ which is a reset. When this yappens it knowa to grab its workspace yointer from address >0000 and ita prograr. sounter or instruction pointer from addres: 70002, In the 99/HA these addresses are ourned into the consale ROM. Once it has -hase addresses it begins to execute the rode that 49 poiated to by address >0002, 1, The code pointed to by address >0002 oads R19 with 29800, tha GROM read iddress, RIY with o0100, the status flag ind R15 with >8C02, the VDP write address. |. The balance of the Power Up routine Is nm GROM ahip 0. First it clears out the und list indicator at >83CE and then iv urns off the Speech Synthesizer, 4£ yo ave one, and turns off the sound enerators,. «. Newt it dnitdalizes the Data and wbrourcne GPL atacks in Scratch Pad RAM. » Then it loads the VDP registers with efault values stored in a GROM table. ‘Most of the Scratch Pad RAM ia then leared out by writing zeros to it. the. keyboard interrupts are then disabled and the cassette sudio gate is urned on, this allows you to hear the assette through your monitor speaker. . Next the VDP and external interrupts are nabled, ‘ » The cassette motors ara then enabled, iis sets up the remote jack so thu motors an run. sr i ne ERE AR NEM ARTO ERNE USAR PUWER-UP 16. After the search und exeeution of ROUT LINE + 1 a BEEP sounds oy GO. Mext it generare: Ch routine an GROW chap © Liing the TON1 V1, And then it determines the size of Vor HAM, UE or 16K, and sets vit G in Vor register 1 to 1 for 16K. 1 guess that TI thought they might produce 6 YK console at one point in time. lé. The first 4K of VOR WAM us then cleared Gut and the default volour and character lables are thoved from GHOM to VOR HA, Tnitjalised by »CALL 13. Next the keyboards are scanning them, Je: CALL KEYS... KEY(4 , CALL KEY(3.. ere, 14, Then it moves the datu for the Title Sereen into the screen image table. At this Point the screen can nut be seen because it is turned off. Bit 1 in VOF register 1 is set to zero, . * 15. The ROMS(DSR) and GROMs ure then searched for power up headers and if they have one they are executed, power up headers is complete the Title Sereen is displayed by writing a 1 Co bit™T of vpp register {. This is the first time that you ure able to see the Tile Screen, 17. Next dt initdalizes the Randow Number Generator and then waits for you to 'PRESS- ANY KEY', After you press a key it generates another BEEP sound, 18. And then it searches through the cartridge ROM and GKOM’ for upplication programs and builds a list of their mames. le: Editor/Assembleur, Extended Basie, Basic etc. Note: some consoles, V2.0 (C) 1983, a0 r.t search ROM only GROM, 19, At this point the sereen is once again turned off, VLP register 1, bit 1 ds set to zero and then it sets up the menu sercen with the application programs it found. 20. After the menu {s set up it turns on the screen by writing a 1} Lo bit 1 of WEP register 1, and wuits for you tuo make a selection, 21. If you make an illegal seleetion it generates a HONK sound, otherwise it seta up the starting address for the application program you selected and branches te it, sy 4 === page p-20