GRAPHIC PROCESSORS DATABOOK 1st EDITION MARCH 1989 TABLE OF CONTENTS INTRODUCTION Page 4 GENERAL INDEX 5 PRODUCT GUIDE 7 ALPHANUMERICAL and SEMI-GRAPHIC CRT CONTROLLERS 11 GRAPHICS CONTROLLERS 105 COLOR PALETTE 213 APPLICATION NOTES 247 3 INTRODUCTION The SGS-THOMSON Graphics data book contains comprehensive data on three groups of graphics products: alphanumeric/semigraphics processors, full graphics processors and colour palettes. The optimised price/performance characteristics of the proven HMOS 2 technology, coupled with SGS-THOMSON's six years of suc- cessful participation in the graphics market, makes these products particularly sui- table for low- to mid-range applications such as video games, home computers and CAD workstations. The alphanumeric/semigraphic range is based around the highly successful EF9345 architecture. For applications requiring flexible character display with simple gra- phics support, these devices provide a low-cost, single-chip solution that includes a built-in character generator and attribute controller. For applications requiring direct pixel addressing, with screen resolutions from 256 x 256 up to 2048 x 2048, SGS-THOMSON offers several products based on the established EF9367 and the TS68483 advanced graphics processor. With integral drawing processors and character generators, these products combine high perfor- mance with cost-effectiveness. Colour palette devices are now widely used to increase the number of displayable colours and to provide a direct interface with monitors. SGS-THOMSON is establi- shed in the low-end market with a number of devices that allow 16 of 4096 colours to be selected. ---------------------- L,/~~~~~~9~ 4 GENERAL INDEX Page PRODUCT GUIDE .................................................................................................... 7 SELECTION GUIDE. ........................................................................................................... 9 ALPHANUMERIC and SEMI·GRAPHIC CTR CONTROLLERS ................................................................................ . 11 EF9345 ......................................................................................... 13 TS9347 63 GRAPHICS CONTROLLERS 105 EF9365/EF9366 ..... 107 EF9367 .................................................................. 137 TS68483 .............................................................. 171 COLOR PALETTE ........................................................................................................... 213 EF9369.......................... ............................................................... ........ 215 TS9370 ..................................................................................................................................................................... 231 APPLICATION NOTES..................................................................... ...................... 247 EF9369 COLOR PALETTE ................................ ....................... . ......... 249 EF9345 GENERAL APPLICATION PRINCIPLES .......... 261 ------------------- L,/~~~~~~~~~ ~----------------- 5 PRODUCT GUIDE 7 SELECTION GUIDE ALPHANUMERIC and SEMI-GRAPHIC CRT CONTROLLERS Part Number Description Format Package Page EF9345 Single Chip Color CRT Controller 25/21 Rows DIP40 13 On-Chip Attributes Controller of 40 or 80 PLCC44 On-Chip Character Generator Characters R,G,B,I Video Shift Registers Page Memory up to 16K x 8 Bits TS9347 Single Chip Color or B/W 25/21 Rows DIP40 63 CRT Controller of 40 or 80 PLCC44 On-Chip Attributes Controller Characters On-Chip Character Generator R,G,B,I Video Shift Registers Analog Output: 8 Grey Levels Page Memory up to 32K x 8 Bits GRAPHICS CONTROLLERS Part Number Description Format Package Page EF9365 Graphics Coprocessor 512(256) x 512 DIP40 107 EF9366 DRAMs Interface Pixels On-Chip ASCII Character Generator 50 Hz High-Speed Vector Drawing EF9367 Graphics Coprocessor 512 x 1024 DIP40 137 DRAMs Interface Pixels On-Chip ASCII Character Generator 50 Hz, 60 Hz High-Speed Vector Drawing TS68483 Alphanumeric and Graphic Drawing Capabilities 2048 x 2048 DIP64 171 Upto 256 Colors 8-Bit Pixels Four Video Shift Registers For Video rate Less than 18 Md/s Command Set: Vector, Are, Circle Area Filling, Character COLOR PALETTE Part Number Description Format Package Page EF9369 4-Bit DACs with Gamma Law Correction 16 Colors DIP28 215 Marking Bit Among 4096 PLCC28 Upto 30 Mdots/s TS9370 4-Bit DACs 16 Colors DIP28 231 Marking Bit Among 4096 PLCC28 Upto 45 Mdots/s 9 ALPHANUMERIC and SEMI·GRAPHIC CRT CONTROLLERS 11 EF9345 HMOS2 SINGLE CHIP SEMI-GRAPHIC DISPLAY PROCESSOR • SINGLE CHIP LOW-COST COLOR CRT CON- TROLLER • TV STANDARD COMPATIBLE (50 Hz or 60 Hz) • 2 SCREEN FORMATS: • 25 (or 21) ROWS OF 40 CHARACTERS • 25 (or 21) ROWS OF 80 CHARACTERS • ON-CHIP 128 ALPHANUMERIC AND 128 SE- MI-GRAPHIC CHARACTER GENERATOR THREE STANDARD OPTIONS AVAILABLE FOR ALPHANUMERIC SETS P • EASY EXTENSION OF USER DEFINED AL- DIP40 PHANUMERIC OR SEMI-GRAPHIC SETS (Plastic Package) (> 1 K characters) • 40 CHARACTERS/ROW ATTRIBUTES: foreground and background color, double height, double width, blinking, reverse, underlining, conceal, insert, accentuation of lower case cha- racters • 80 CHARACTERS/ROW ATTRIBUTES: Underlining, blinking, reverse, color select • PROGRAMMABLE ROLL-UP, ROLL DOWN, AND CURSOR DISPLAY FN • ON-CHIP R, G, B, I VIDEO SHIFT REGISTERS PLCC44 • EASY SYNCHRONIZATION WITH EXTERNAL (Plastic Chip Carrier) VIDEO SOURCE: ON-CHIP PHASE COMPA- RATOR • ADDRESS/DATA MULTIPLEXED BUS DI- (Ordering information at the end of the datasheet) RECTL Y COMPATIBLE WITH STANDARD MICROCOMPUTERS SUCH AS 6801, 6301, 8048,8051 • ADDRESSING SPACE: 16 K x 8 OF GENERAL DESCRIPTION PURPOSE PRIVATE MEMORY The EF9345, new advanced color CRT controller, • EASY USE OF ANY LOW COST MEMORY in conjunction with an additional standard memory COMPONENTS: ROM,SRAM, DRAM package allows full implementation of the complete • UPWARD COMPATIBLE WITH EF9340/41 display control unit of a color or monochrome low- CHIPSET cost terminal, thus significantly reducing IC cost and PCB space. December 1988 1/50 13 EF9345 TYPICAL APPLICATION Low cost personal terminal 2Kx81016Kx8 memory 1 / EF9345 MODEM EFG7515 • MCU EF6801 D ..... / IIll.fI###~tns}/J EFB7513 I+- l:>o;$UI EF7910 E88 EF9345-03 PIN CONNECTION DIP40 PLCC44 VSS ADMO 01' ADMl WE ADM2 ASM ADMJ HVS/HS ADM4 pc/vs ADM5 B ADM6 G ADM7 o 39 ADMt R AM8 G • AM9 R •• HP AM10 elK AM11 HP 12 34 AM9 cuc[ 13 :tJ SYNC IN AMl2 AM11 AS AM13 31 DAM12 DS CS os " 3D ~AM13 R/IN AD7 R/W 17 ~ ~ "P'" ADO AD6 ADl AD5 AU:2 AD4 Vee ADJ E88 EF9345-01 E88 EF9345-02 2/50 14 EF9345 BLOCK DIAGRAM ,,,- - - - - - - - -,,, - - ROW BUFFER 120)( 8 ADIO,71 I , '\.-..8:........,.rr'v-~ , ~ 1 os 8 ROM ATTRIBUTE LOGIC '":0 '"... MAT -----1 ~ PAT 1 1 , 1 1 I HP 1 ,, 1 HVS/HS TRANSCODEA ,,1 PC/VS SYNC. IN ADDRESS UNIT ~::'===~RF~S~H~ GE~I:'~:~OR 1 1__ - _ - - - - - - - , H6 AM(8:131 8 ADM(o:7J ~M DE WE CLK E88 EF9345-04 3/50 15 EF9345 ABSOLUTE MAXIMUM RATINGS Symbol Parameter Value Unit Vee * Supply Voltage - 0.3 to 7.0 V Vin * Input Voltage - 0.3 to 7.0 V TA Operating Temperature Range ° to + 70 'C T gIg Storage Temperature 55 to + 150 'C PDm Max Power Dissipation 0.75 W • With respect to v". Stresses above those hereby listed may cause permanent damage to the device. The ratings are stress ones only and functional opera- tion of the device at these or any conditions beyond those indicated in the operational sections of this specification is not implied. Expo- sure to maximum rating conditions for extended periods may affect reliability. Standard MOS circuits handling procedure should be used to avoid possible damage to the device. ELECTRICAL CHARACTERISTICS (Vee = 5.0 V ± 5 %, V ss = 0, TA = 0 to 70 °e) Symbol Parameter Min. Typ. Max. Unit Vee Supply Voltage 4.75 5 5.25 V VIL Input Low Voltage - 0.3 - 0.8 V VIH Input High Voltage CLK 2.2 - Vee V Other Inputs 2 - Vee - lin Input Leakage Current - - 10 f.lA VOH Output High Voltage (lioad = - 500 IlA) 2.4 - - V VOL Output Low Voltage Iload = 4 mA ; AD (0:7), ADM (0:7), AM (8:13) 0.4 - V Iload = 1 mA; Other Outputs 0.4 - PD Power Dissipation - 250 - mW Cin Input Capacitance - - 15 pF ITSI Three State (off state) Input Current - - 10 f.lA 4/50 16 EF9345 MEMORY INTERFACE Vee = 5.0 V ± 5 %, TA = 0° to + 70°C. Clock: fin = 12 MHz; Duty Cycle 40 to 60 % ; t" tf < 5 ns Reference Levels: V 1L = 0.8 V and V1H = 2 V, VOL = 0.4 V and VOH = 2.4 V. Symbol Ident. Parameter Min. Typ. Max. Unit Number tELEL 1 Memory Cycle Time - 500 - ns to 2 Output Delay Time from ClK Rising Edge (ASM, OE, WE) - - 60 ns tEHEL 3 ASM High Pulse Width 120 - - ns tELOV 4 Memory Access Time from ASM low - - 290 ns tOA 5 Output Delay Time from ClK Rising Edge - - 80 ns (ADM (0:7), AM (8:13)) tAvEL 6 Address Setup Time to ASM 30 - - ns tELAX 7 Address Hold Time from ASM 55 - - ns tCLAZ 8 Address Off Time - - 80 ns tGHOX 9 Memory Hold Time 10 - - ns toz 10 Data Off Time from OE - - 60 ns tGLOV 11 Memory OE Access Time - - 150 ns tOVWL 12 Data Setup Time (write cycle) 30 - - ns tWHOX 13 Data Hold Time (write cycle) 30 - - ns tWLWH 14 WE Pulse Width 110 - - ns TEST LOAD VDO Test Symbol AD (0:7), AM (8:13) Other pOint ADM (0:7) Outputs C 100 pF 50 pF MMD7000 1 KQ 3.3 KQ RL or equiv_ R 4.7 KQ 4.7 KQ E88 EF9345·05 5/50 17 EF9345 MEMORY INTERFACE TIMING DIAGRAM eLK ADMIO:71 AMIB.13J DE - - - - - - - _ . WE EBB EF9345-06 MICROPROCESSOR INTERFACE EF9345 is motel compatible. It automatically selects the processor type by using AS input to latch to state EF9345 6801 INTEL Family of the OS input. Timing 1 Timing 2 No external logic is needed to adapt bus control si- AS AS ALE gnals from most of the common multiplexed bus OS OS, E, 2 RO microprocessors. RiW R/W WR 6/50 18 EF9345 MICROPROCESSOR INTERFACE TIMING AD (0:7), AS, DS, RiW, CS Vee = 5.0 ± 5 %, TA = 0" to + 70 DC, C L = 100 pF on AD (0:7) Reference Levels: V IL = 0.8 V and VIH = 2 V on All Inputs ; VOL = 0.4 V and V OH on All Outputs. Symbol Ident. Parameter Min. Typ. Max. Unit Number tCYC 1 Cycle Time 400 - - ns tASO 2 DS Low to ASJ::Iigh (timing 1) 30 - - ns DS High or RIW High to AS High (tming 2) tASEO 3 AS Low to DS High (timiQg 1) 30 - - ns AS Low to DS Low or RIW Low (timing 2) tPWEH 4 Write Pulse Width 200 - - ns tPWASH 5 AS Pulse Width 100 - - ns tRWS 6 RIW to DS Setup Time (timing 1) 100 - - ns tRWH 7 RIW to DS Hold Time (timing 1) 10 - - ns tASL 8 Address and CS Setup Time 20 - - ns tAHL 9 Address and CS Hold Time 20 - - ns tosw 10 Data Setup Time (write cycle) 100 - - ns tOHW 11 Data Hold Time (write cycle) 10 - - ns tOOR 12 Data Access Time from DS (read cycle) - - 150 ns tOHR 13 DS Inactive to High Impedance State Time (read cycle) 10 - 80 ns tACC 14 Address to Data Valid Access Time - - 300 ns MICROPROCESSOR INTERFACE TIMING DIAGRAM 1 (6801 type) os AS RIW WRITE CYCLE AOIO,71-------, READ CYCLE ® AOIO,71--------< tsu tHO ~ '0 '0 I HP ~ to A R.G.B.I. BO char/row X '0 >< 'D HVS/HS PCNS X INPUTCLK ) eLK _ __' : -. ~~ ••=PVVCL-=:( EBB EF9345·1 0 Reference level Vil =0.8 V, VIH =2.0 V 9/50 21 ~ o < m m 0; "II o ::D CO -I Co) 0 .1=0 l> en r HORIZONTAL IV_RO 84 •• -~ .... l> h ~ Z HVS C U __ ~~f~m~~~~ ____I_~~~f~m~1~~I~-.J ~ :J: 0 ::D 32 .. § Z H blanking IMarginl _____ ~~k______ IMo,gi"! H blanking -I R.G.B.I 40 ctwr ./row 10,.. J 6,.11 40,.. -'- 8"'1 2,.1 l> r 8O ....'.I'ow 9.96 .. 16 .. I 40,.. I 6,.. I 2.04 .. en -< z VERTICAL IV_RO 0 ~ NoN INTERLACED :J: ::D 0 !!lin HVS ITGS4 - 11 z I~ TGSg -0 N l> TGSg - 1 -I II (5 2 lin. Z ~. VS (TClS4 - 01 0 c:: INTERLACED -I ---------------------------------~ "tI Event,..,. c:: -I en ----------------------------------~ HVS ITGS4 - 11 OcIdk_" 0r A 312.5 linea (TGSg .01 I E..n lrome I• 2.5 lin.. I •I 262.5 lin.. (TGSg =11 .----~I I\) m g: I s:: m VS CTGS4 - 0) I I !:!- Odd I,.... ~L_ _ _ _-' ~ EF9345 EF 9345 PIN DESCRIPTION All the input/output pins are TTL compatible. MICROPROCESSOR INTERFACE Name Pin N° Function Description Type AD (0:7) I/O 17-19 Multiplexed These 8 bidirectional pins provide'communication with the 21 - 25 Address/Data microprocessor system bus. Bus AS I 14 Address The falling edge of this control signal latches the address on the Strobe AD (0:7l.J!!1es, the state of the Data Strobe (OS) and Chip Select (CS) into the chip. OS I 15 Data Strobe When this input is strobed high by AS, the o!!!put buffers are selected while OS is low for a read cycle (R/W = 1). In write cycle, data present on AD (0:7) lines are strobed by Rm low (see timing diagram 2). _ When this input is strobed low by AS, RIW gives the direction of data transfer on AD (0:7) bus, QS high strobes the data to be written during a write cycle (R/y!!' = 0) or enables the output buffers during a read cycle (RIW = 1). (see timing diagram 1). RIW I 16 Read/Write This ipnut determines whether the internal registers get written or read. A write is active low ("0"). CS I 26 Chip Select The EF9345 is selected when this input is strobed low by AS. MEMORY INTERFACE Name Pin N° Function Description Type ADM(0:7) I/O 40- 43 Multiplexed lower 8 bits of memory address appear on ~us when ASM Address/Data is high, It then becomes the data bus when ASM is low. Bus AM (8:13) 0 32- 27 Memory These 6 pins provide the high order bits of the memory address. Address Bus OE 0 2 Output Enable When low, this output selects the memory data output buffers. WE 0 3 Write Enable This output determines whether the memory gets read or written, A write is active low ("0"). ASM 0 4 Memory This signal cycles continuously. Address can be latched on its Address falling edge. Strobe OTHER PINS Name Pin N° Function Description Type ClK I 12 Clock Input External TTL clock Input. (nominal value: 12 MHz, duty cycle : 50 %), Vss S 1 Power Supply Ground. Vce S 20 Power Supply +5V 11/50 23 EF9345 VIDEO INTERFACE Name Pin N° Function Description Type R 0 7 Red These outputs deliver the video signal. They are low during the G 0 8 Green vertical and horizontal blanking intervals. B 0 9 Blue I 0 10 Insert This active high output allows to insert R: G : B : in an external video signal for captioning purposes, for example. It can also be used as a general purpose attribute or color. HVS/HS 0 5 Sync. Out This output delivers either the composite synchro (bit TGS4 = 1) or the horizontal synchro signal (bit TGS4 = 0). PCNS 0 6 Phase When TGS4 = 1, this signal is the phase comparator output. Comparator / When TGS 4 = 0, this output delivers the vertical synchro signal. Vertical Sync SYNC IN I 13 Synchro In This input allows vertical and/or horizontal synchronizing the EF9345 on an external signal. It must be grounded if not used. HP 0 11 Video Clock This output delivers a 4 MHz clock phased with the R, G, B, I signals GENERAL DESCRIPTION The EF9345 is a low cost, semigraphic, CRT con- • ROR, DOR : Base address of displayed page troller. memory and of used external character gener- It is optimized for use with a low cost, monochrome ators. or color TV type CRT (64 J.IS per line, 50 or 60 Hz • PAT, MAT, TGS : Used to select the page attri- refresh frequency). butes and format, and to program the timing gen- erator option. The EF9345 displays up to 25 rows of 40 charac- ters or 25 rows of 80 characters. PRIVATE MEMORY The on-chip character generator provides a 128 The user may partition the 16 K x 8 private memo- standard, 5 x 7, character set and standard semi- ry addressing space between: graphic sets. • pages of character codes (2 K x 8 or 3 K x 8), More user definable (8 x 10) alphanumeric or semi- • external character generators, graphic sets may be mapped in the 16 K x 8 private • general purpose user area. memory addressing space. Many types of memory components are suitable: These user definable sets are available only in 40 • ROM, DRAM or SRAM, characters per row format. • 2 K x 8,8 K x 8,16 K x 4 organizations, • Modest 500 ns cycle time and 250 ns access time MICROPROCESSOR INTERFACE. is required. The EF9345 provides an 8-bit, address/data multi- 40 CHARACTERS PER ROW: CHARACTER plexed, microprocessor interface. CODE FORMATS AND ATTRIBUTES. It is directly compatible with popular (6801, 8048, Once the 40 characters per row format has been se- 8051, 8035 ... ) microprocessors. lected, one character code format out of three must REGISTERS. be chosen: • 24-bit fixed format: The microprocessor directly accesses 8 registers: All the attributes are provided in parallel. • RO: Command/status register • 8/24-bit compressed format: • R1, R2, R3 : Data registers All the attributes are latched. • R4, R5 } : Each of these register pairs points • 16-bit fixed format: R6, R7 into the private memory. Some parallel attributes, other are latched. Through these registers, the microprocessors indi- The 16-bit fixed fomnat is compatible with rectly accesses the private memory and 5 more re- EF9340/41 CRT controller. gisters: 12/50 24 EF9345 Character attributes provided: MEMORY ORGANIZATION _ Background and foreground color (3 bits LOGICAL AND PHYSICAL ADDRESSING. each), Double height, double width, The physical 16-Kbyte addressing space is logical- Blinking, ly partitioned by EF9345 into 40-byte buffers (figure Reverse, 1). More precisely, a logical address is given by an Underlining, X, Y, Z triplet where: Conceal, o X = (0 to 39) points to a byte inside a buffer, o Y = (0, 1 ; 8 to 31) points to a buffer inside a 1 Insert, Accentuation of lowercase characters Kbyte block, o Z = (0 to 15) points to a block. 3 x 100 user definable character generator in memory Obviously, 1 K = 2 10 = 1024 cannot be exactly divi- 8 x 100 semi-graphic quadrichrome charac- ded by 40. Consequently, any block holds 25 full ters. buffers and a 24-byte remainder. Provided that the physical memory is a multiple of 2 Kbytes, the re- 80 CHARACTERS PER ROW FORMAT: CHA- mainders are paired in such a way as to make avai- RACTER CODE FORMAT AND ATTRIBUTES. lable: Two character code formats are provided: o a full buffer (Y = 1) in each even block, o a partial buffer (Y = 1 ; X = 32 to 39) in each odd o Long (12 bits) with 4 parallel attributes: _ Blinking, block. _ Underlining, _ Reverse, POINTERS. _ Color select. Each X, Y and Z component of a logical address is o Short (8 bits) : no attributes. binary encoded and packed in two 8-bit registers. Such a register pair is a pointer (figure 2). EF9345 TIMING GENERATOR. contains two pointers: The whole timing is derived from a 12 MHz main o R4, R5 : auxiliary pointer, clock input. o R6, R7 : main pointer. The RGB outputs are shifted at 8 MHz for the 40 R5 and R7 have the same format. Each one holds character/row format and at 12 MHz for the 80 cha- an X component and the two LSB's of a Z compo- racter/row. nent. This packing induces a partitioning of Z in 4 dis- tricts of 4 blocks each. Besides, the user may select: o 50 Hz or 60 Hz vertical sync. frequency, R5, R7 points to a block number in a district. R4 and o Interlaced or not, R6 have a slightly different format: Each one holds o Separated or composite vertical and horizontal a Y component and the LSB of the district number. sync. outputs. But R6 holds both district MSB. Furthermore, a composite sync. input allows, when Figure 4 gives the logical to physical address trans- it is required: coding scheme performed on chip. o An on-chip vertical resynchronization, o An on-chip crude horizontal resynchronization, o An off-chip high performance horizontal resyn- chronization by use of a simple external VCXO controlled by the on-chip phase comparator. 13/50 25 EF9345 Figure 1 : Memory Row Buffer. Figure 2: Pointer Auto Incrementation. x X Y '" (0,1 ;8 to 31) D )' l! D J2 l! I DISTRICT 1 I 1 Id'ld"ldOl- 13 I 2 I' 1° I R6 X=Oto39 MAIN POINTER I bO I b' I I- I I I' 1° I 5 3 2 R7 } BLDCKO{ {1 KbyreJ y' =(0,1 ;8t0311 } BLDCK1 { 1-1-l d'01-1 3 I 2 I' 1° R_ AUXILIARY X' =Oto39 POINTER I b'O, b'l I I 5 4 I 3 I 2 I' 1 0 R5 } } BLOCK2{ Z = (0 to 15) } BLOCK 3{ "D r=r r~ISTRICT--t 120-8VTE ROW BUFFER 8O·BYTE ROW BUFFER X incrementation Y incrementation Z incrementationl Modulo 40 Modulo 24 decrementation Modulo 4 on the block number onlv E88 EF9345-12 • Row buffers lay inside a district. • At two or three successive block addresses E88 EF9345-13 (modulo 4). • First block address is even. DATA STRUCTURES IN MEMORY. • with the same block address of first buffer. This block address must be even. A page is a data structu re displayable on the screen • lying at successive (modulo 24) Yaddresses. up to 25 rows of characters. According to the cha- racter code format, each row on the screen is asso- Consequently, a page should not cross a district ciated with 2 (or 3) 40-byte buffers. This set of 2 (or boundary. General purpose memory area may be 3) buffers constitutes a row buffer (figure 1). The used but should respect the buffer or row buffer buffers belonging to a row buffer must meet the fol- structure. See figure 2 for pointer incrementation im- lowing requirements: plied by these data structures. • they have the same Yaddress, • they have the same district number, MEMORY TIME SHARING (see figure 3). • they lie at 2 (or 3) successive (modulo 4) block The memory interface provides a 500 ns cycle time. addresses in their common district. That is to say a 2 Mbyte/s memory bandwidth. This Consequently, a row buffer is defined by its first buff- bandwidth is shared between : er address and its format. • reading a row buffer from memory to load the in- ternal row buffer (up to 120 bytes once each row), A page is a set of successive row buffers: • reading user defined characters slices from me- • with the same format, mory (1 byte each I1s), • with the same district number, 14/50 26 EF9345 • indirect microprocessor read or write operation, 3. The microprocessor may indirectly access the • refresh cycles to allow DRAM use, with no over- memory once every f1S, except during the first head. and the last line of a row, when the internal buff- A fixed allocation scheme implements the sharing. er must be reloaded. Notes on Figure 3. During these lines, no microprocessor access is pro- vided for 104 fIS ; this hold too when no user defi- 1. Dummy cycles are read cycles at dummy ad- ned character slices are addressed. dresses. 2. RFSH cycles are read cycles performed by an 8- bit auto-incrementing counter. Low order ad- dress byte ADM (0:7) cycles through its 256 states in less than 1 ms. Figure 3 : Memory Cycle Allocation . ....f - - - - - - 40 ... - - - ----t----- 24 ... ___ -r----- I 3121262 -,--- "r~~L_L____D_A~_C~_~_:_~ lONE ROW = 10 TV LINES _ _ _ _.L-_ _ _ _ _..J MEMORY CYCLE I INACTIVE LINE DUM I "p RFSH: "p DUM: dummy cycle I I pP : indit'1!lCt aiXeU to memory LAST ROW LINE UDS I LD LO I LO R FSH : refresh cycle I I U OS sl ice read cycle FI RST ROW LINE UDS I LD RFSH I "p I I lD : read cycle to load the intema! I row buffer. OTHER ROW LINE UOS 4-- I "p 1 p.s'-----------" 40J.l,s ----1"._ RFSH: pP E88 EF9345-14 Figure 4: Logical to Physical Address Transcoding Performed On-chip. x (0 to 391 ------ Z (0 to 151 V(0.1 ;Bto311 D B -----~ LOGICAL ADDRESS I 3 I I2 I1 I0 4 3 I 2 I1 I0 I TRANSCODING PHYSICAL ADDRESS ------------------------- E88 EF9345-15 15/50 27 EF9345 X and Y PHYSICAL ADDRESS AM (3:10) Condition 10 9 8 7 6 5 4 3 Y;o,8 X5 =0 bO Y4 Y3 Y2 Y1 YO X4 X3 X5 = 1 ,- bO 0 0 Y2 Y1 YO Y4 Y3 YO = 0 1 bO 0 0 X5 X4 X3 0 0 Y<8 YO = 1 I bO = 0 X3 0 0 I X5 X4 0 0 bO -1 I 0 0 I X5 X4 0 0 SCREEN FORMAT AND ATTRIBUTES The screen format and attributes are programmed BULK: TGSa ; PAT(1:2) ; MAT? through 5 indirectly accessible registers : ROR, It is displayed after the service row for 200 or 240 TGS, PAT, MAT and DOR. IND command allows TV lines according to TGSa. Each row buffer is accessing these registers. TGS is also used to se- usually displayed for 10 TV lines. However, MAT? = lect the timing generator options (see Screen For- 1 doubles this figure. Then every character appears mat Table). in double height (double height characters are qua- ROW AND CHARACTER CODE FORMAT drupled). PAT? ; TGS(6:7). PAT1 = 0 and/or PAT2 = 0 disables respectively the upper 120 lines and/or the lower 80/120 lines of the Two row formats and 5 character code formats are available but cannot be mixed in a given screen. bulk. DOR register interpretation is completely row format When disabled, the corresponding TV lines are dis- dependent and is discussed in the corresponding played as a margin extension. 40 char/row and 80 char/row section. CURSOR MAT(4:6) SCREEN PARTITION - PAGE POINTER ROR To be displayed with the cursor attributes, a charac- (see top of the Screen Format Table). ter must be pointed by the main pointer (R6, R7) and The screen is partition ned into 3 areas: MAT6 must be set. The cursor attributes are given • the margin, by MAT(4:s) : • the service row, • Complementation: the R, G and B of each pixel • the bulk of remaining rows. is logically !:!.e@t~d. R, G, B ~ R, G, B MAT(a:3) declares the color of the margin and the va- • Underline: the underline attribute of this charac- lue 1M of its insert attribute. ter is negated. ROR register points to the page to be displayed and • Flash: the character is periodically displayed gives the 3 MSB's of the Z address: Za = 0 implicit- with, then without, its cursor attributes (50 % / 50 ly ;thepage block address must be even. YOR gives %; = 1 Hz). the first row buffers to be displayed at the top of the bulk area. The next row buffers to be displayed are FLASH ENABLE (PAT6) - CONCEAL ENABLE fetched sequentially by incrementing the Y address (PAT3). (modulo 24). This address never gets out of the ori- Any character flashing attribute is a "don't care" gin block. Incrementation of YOR by the micropro- when PAT6 = o. When PAT6 = 1, a character flashes cessor yields a roll up. if its flashing attribute is set. It is then periodically displayed as a space (50 % / 50 % ; = 0.5 Hz). SERVICE ROW: TGSs - PATa. PAT3 is a "don't care" for 80 char.lrow formats. The service row is displayed for 10 TV lines on top When any 40 char.lrow format is in use: of the screen and does not roll. Following TGSs, it • if PAT3 = 0, the conceal attribute of any charac- is fetched from the origin block at either Y = 0 or Y ter is a don't care. = 1. The Y = 1 is a partial row buffer. It can be used • if PAT3 = 1, the conceal attribute of each charac- only with variable 40 char.lrow and an 8 byte attri- ter is interpreted: a concealed character appears bute file. The service row may be disabled by PATa as a space on the screen. = 0 ; it is then displayed as a margin extension. 16/50 28 EF9345 INSERT MODES: PAT(4:5). • As a character per character marker signal in the character mark mode. During retrace, margin and extended margin pe- • As a video mixing signal in the two remaining riods, the I output pin delivers the value of the insert modes, provided that the EF9345 has been ver- margin attribute. tically and horizontally synchronized with an ex- I = 1M = MAT4. ternal video source: the I pin allows mixing RGB During active line period, the I output state is con- outputs (I = 1) and the external video signal (I = trolled by the Insert Mode and i, the insert attribute 0). This mixing can be achieve by switching or of each character. The I output pin may have seve- ORing. It may occur for the complete character ral uses: (see figure below) : window (Boxing Mode) or only for the foreground • As a margin/active area signal in the active area pixels (Inlay Mode). mark mode. VIDEO OUTPUTS DURING ACTIVE PERIODS Char. Level Outputs NOTES: Insert Mode I Pixels (1) I R, G, B (2) (1) PIXEL TYPE - : Don't care Active Area Mark - - 1 X FOREGND = A foreground pixel is : Character Mark 0 - 0 X 1 - 1 X • Any pixel of a quad rich rome character, • A Pixel of a bichrome character generated from a Boxing 0 - 0 BLACK 1 - 1 X "1" in the character generator cell. 0 - 0 BLACK (2) RGB OUTPUTS Inlay BACKGND 0 BLACK X : Not affected. 1 FOREGND 1 X BLACK : forced to low level. TIMING GENERATOR OPTIONS :TGS (0:4) TGS4 controls the SYNC OUT pins configuration: TGS(o:1) select the number of lines per frame: TGS4 HVS I HS PC / VS TGS1 TGSa LINES 1 Composite Sync PC 0 0 312 0 H Sync Out V Sync Out NON INTERLACED 0 1 262 1 0 312.5 INTERLACED 1 1 262.5 The composite incoming SYNC IN signal is separa- r---------------------------- ted into 2 internal signals: • Vertical Synchronization In (VSI), • Horizontal Synchronization In (HSI). TGS3 enables VSI to reset the internal line count. SYNC IN input is sampled at the beginning of the HVS/HS active area of each line. When the sample transits from 1 to 0, the line count is reset at the end of the current line. TGS2 enables HSI to control an internal digital EBB EF9345·16 phase lock loop. HSI and on-chip generated HS Out are considered as in phase if their leading edges match at ±1 clock period. PC is the output of the on-chip phase comparator. When they are out of phase, the line period is leng- An external VCXO allows a smoother horizontal thened by 1 clock period ( = 80 ns). phase lock than the internal scheme. 17/50 29 EF9345 SCREEN FORMAT TABLE ~ MEMORY - BLOCK ORIGIN TGSs 01 8 0 - - 39 ""-1._1 '. _.. I- - SERVICE ROW Y ORIGIN I I MARGIN YOR ---. YOR .1--' ~ . Y ORIGIN + 1 • 1. BULK 31 i i i - 7 6 5 4 3 o ROR(, =]1 -• -------------- • I L - --. - - - - _ _ _ -------.. ~ Dng.n ,ow_,.. YOR ,18 10311 Block Orl!)1n levenl ._____ I ~~ r-- Service row select IY,1I01 ,+ • r-'- \ 4 o \ \ ,, I TGS (, = 1) J- 1111 " ............ -----" Interlaced Horizontal rosyne; enable CHAR CODE PAT1 TGS1 TGSt; Vertical resync enable 40 CHAR LONG 40 CHAR VAR 40 CHAR SHORT 0 0 , 0 0 0 , l Sync Oul pins configuration 1 : Composite sync + I phase comparator O:Vsvnc+Hsvnc 110 CHAR LONG 0 0 , , 0 110 CHAR SHORT 0 , 0 INSERT MODE PAT5 PAT4 INLAY 0 BOXING 0 , 0 CHARACTER MARK , 0 6 3 2 1 0 ACTIVE AREA MARK , , MAT(, = 21 Margin color Margin insert Cursor display enable CURSOR DISPLAY MODE MAT5 MAT4 Double height FIXED COMPLEMENTEO 0 0 FLASH COMPLEMENTED , FIXED UNDERLINED 0 , 0 FLASH UNDERLINED , , NOTE PROGRAMMING BIT VALUE 1 .- True 0- False EBB EF9345-17 18/50 ~ ".,1 SGS·THOMSON iIIIUlCmJl!J!.lWii'mJlIIlIC$ 30 EF9345 40 CHAR/ROW CHARACTER CODES To display pages in 40 character per row format, 4. Bichrome and quadrichrome characters use two one out of three character code formats must be se- different coloring schemes. lected: For bichrome characters, character code byte A de- • Fixed long (24 bits) code: all parallel attributes. fines a two color set by giving directly two color va- • Fixed short (16 bits) code: mix of parallel and lat- lues (figure 6). The negative attribute exchanges the ched attributes. two values. Each bit of the slice byte selects one co- • Variable (8/24 bits) code: all latched attributes. lor value out of two. Fixed short and variable codes are translated into The "A" byte in a quadrichrome character code de- fixed long codes by EF9345 during the internal row fines an ordered 4 color set (figure 7). When more buffer loading process. The choice of the character than 4 bits are set, higher ranking bits are ignored. code format is obviously a display flexibility/memo- When less than 4 bits are set, the color set is com- ry size trade off, left up to the user. pleted with implicit "white" value. The slice byte is shifted 2 bits at once at half the dot frequency (~4 FIXED LONG CODES. MHz). This is the basic 40 char.lrow code. Each 8 pixels x Each bit pair designates one color out of the 4 color 10 lines character window, on the screen is asso- sets. ciated with a 3-byte code in memory, namely the C, B and A bytes (figure 5). A row on the screen is as- Quadrichrome characters allow displaying up to 4 sociated with a 120 byte row buffer in memory. different colors (instead of 2) in any 8 x 10 window at the penalty of an halved horizontal resolution. 3-BYTE CODE STRUCTURE. By programming the R attribute in byte B, one may 1. C7 is a don't care. Up to 128 characters may be chose to keep the full vertical resolution (1 slice per addressed in each set. Each user definable set line) or to halve it (each slice is repeated twice). In holds only 100 characters: C byte value ranges any case, it is possible to change the color set free- from 00 to 03 and 20 to 7F (hexa). ly from window to window and to mix freely all the 2. B(4:7) give the type and set number of the cha- character types. So, fairly complex pictures may be racter. displayed at low memory cost. 3. All the bichrome characters have the same attri- HANDLING LONG CODES. butes except that alphanumerics may be under- The KRF command allows an easy X, V random ac- lined, semi-graphics cannot. Accentuated alpha- cess or an X sequential access to/from the micro- numerics allow orthogonal accentuating of any processor from/to a memory row buffer (figure 8). one of the 32 lower case ROM characters with any of 8 accents (see figure 19). Figure 5: 40 Char / Row Fixed Long Codes. BICHROME CODE QUADRICHRQME CODE 6 5 4 3 o 765432 0 1-I C BYTE I-I I I Lim IHI, I B BYTE ~l 1~: L~=~~ Double width 1 LI~ 1 '- ~ Low Resolution Subset index (low resolution only) ~ Type and set '---_ _ _ _ _ _ _ Set number 1 N I BI I GI I RI I F A BYTE 4 COLOR PALETTE I I ! I - i t----. Bilckground color Co 1 1 '-- ________ :.. Flash (Blink) ~O,egIUUlld c.;oIur C, '---_ _ _ _ _ _ _ _ - _ Negative (Rewene video) E88 EF9345-18 liii SGS·ntOMSON ~I ~D©Iiil@rnn.rn©'Illiil@IlI8©i!i 19/50 31 EF9345 Figure 5 : (continued). Type and Set Number of Character Set Set Cell Code: B(4:7) Per Set Name Type Location 7 6 5 4 C(0:6) 0 1 0 128 Standard Mosa'ics G 10 SEMI-GR. 1 1 32 Strokes G 11 0 0 0 U 128 Alphanumerics Go. N B 0 I ON-CHIP E C ROM H R Accentuated Lower Case Alpha ALPHA L R 0 G 20 0 1 I 1 G 21 M N E G'o E 0 0 1Q m ." <0 ... W '",(, '" EF9345 USED DEFINED CHARACTER GENERATOR IN MEMORY: DOR REGISTER With 40 char lrow, the elementary window dimen- gure 13). However, 5 bytes of a low resolution qua- sions on the screen are 10 slices x 8 pixels. Thus, drichrome cell are enough to fill up to window. In this a character cell holds 10 bytes in memory and 4 cha- case, 8 character cells can be packed in one 40-byte racter cells are packed in one 40-byte buffer (fi- buffer. Figure 13: Packing UDS Cells in Memory. 1 1 IC61 c51 C41 C31 c21 Ico I Cl and""'" address Character .. t character set numbrr t Z block eddreu ~~------=""I 0 39 g9_ ~ _ j , KOBN;TE 1-4-C-H-AR-A-C""T-E-R-C-E-L-LS~ : y BLOCK ~ _ _ _ _ _--131 Slice number (0 to 9) o I I N,T I I I I MEMORY x ~ --- A CHARACTER SET LAYS IN ONE BLOCK PIXELS (Up to 100 characters per sed o 1 2 345 6 7 Or- 'r- 2r- 6 4 3 o SLICE NUMBER !r- I° (0 t091 5 lr-- '-j'-j---iH-+--l ONE SLICE ----I ..~. NT --l--l--lH-+--l ONE BYTE I- I- SLICES ARE SHIFTED lSB FI RST 91- \ Window on screen Window on screen Character code C byte (0 to 3 ; 32 to 127) 0 IC61 C51 C41 C31 C21±1,~ ° I TWOSLICES ONE BYTE (repeated) 5 SLICE t-----------j ~H21' 01 NUMBER 101041 NT 3 3 -~ +_-. NT" NT 4 4 A SPECIAL CASE. LOW RESOLUTION OUADRICHROME CELL (R "1) (Up to 200 characters per set) NT· =0 5 k + NT k '" subset index E88 EF9345-26 25/50 37 EF9345 The cells of one given character set should be layed each type of set, it gives the MSB(s) of the Z block in one block. address. EF9345 reads the Z LSB(s) in the B byte Up to 100 character cells may be addressed in each of the (equivalent) long code. As usual, the charac- set (or 200 for low resolution quadrichrome only). ter code is read in the C byte. NT is derived from the The location in memory, where to fetch the sets in TV line rank in the row and the double height status. use, are declared by DaR register (figure 14). For Figure 14: UDS Fetch to Display. MEMORY t I Kbyt. r----:-i' - ..L ..L DOR G'O (alpha UDS) • l---=-l 6 5 4 3 0 IZ3! Z3! Z2! Zl !Z3! Z2! Zl !Zo I ! DOR register 1------1 - DOR G'l (Semii/faphic I UDS) G'IO Eve" block DOR Q DOR G'l DOR G'O 2 Kbytes 1 ~------t G'l1 t--------i !Odd block 6 5 4 o CHARACTER ~---___j . - - OOR 0 (Quadrichrome) LONG CODE B t BYTE 8 Kbytes 10 UDS Set Z Address # 87 86 85 Z3 Z2 Z1 Zo G'o 1 0 0 DOR 3 DOR 2 DOR 1 DORo G'11 1 0 1 DOR 6 DOR 5 DOR 4 84 0 0 -0 7 1 1 X DOR 7 85 83 84 l' 'I EBB EF9345·27 LOADING USER DEFINED CHARACTER SET. code in order to display the character. • A pointer to a character slice in memory is then Before loading a character set into RAM, the user manufactured from: must: _ the character number C(0:6) Assign a name to the set: _ the slice number NT(0:3) _ G'o, G'10 or G'11 for bichrome characters. _ From 00 to 07 for quadrichrome characters. _ the block number assigned to the set Z(0:3). Assign a character number to each character be- Figure 15 shows how to proceed with the auxiliary longing to this set, character numbers range from pointer and the OCT command. o to 3 and 32 to 127. Note: The main pointer may be also used. When _ It is binary coded into 7 bits C(0:6) - C(0:6) sequentially accessing slices of a given cha- will be loaded later on into a C byte character racter, auto incrementation is helpless. 26/50 38 EF9345 Figure 15: Accessing a Character Slice in Memory Using OCT Command with Auxiliary Pointer. R1 Shce R2 - I I R3 - R4 I - - I ! z2 C6 I C5 I C4 I C3 I C21 Y ~ I I AS I Zo I Zl I I I NT I I I C1 I CO I x • R6 I -I Z31 - - - - - - I - R7 I - - - - - - - I E88 EF9345·28 ON-CHIP CHARACTER GENERATOR. • Underline or underline cursor: foreground forced • Go set is common to 40 and 80 char./row modes on the last slice (NT = 9). (figure 16 and figure 25). • Flash : background periodically forced on the • GlO is the standard mosaIc set for videotex (fi- whole window ( 0.5 Hz). The phase depends on gure 17). the negative attribute. • G11, G20 and G21 cannot be reached from the 16- • Conceal: background forced permanently on the bit short fixed codes (figure 18 and figure 19). whole window. A concealed character neither blinks nor is underlined. DISPLAYING THE ATIRIBUTES. • Negative: exchange the background and fore- 1. For normal operation, a double height and/or ground color values when set. double width character must be repeated in me- • Coloring. mory in two successive Y and/or X positions. The • Complemented cursor mode. user may otherwise freely mix any character • Insert: black color forced when required. size. 3. Basic pixel shift frequency: !eLK x 2/3 = 8 MHz. 2. The attributes are logically processed in the fol- lowing order: 27/50 39 EF9345 Figure 16: Go Alphanumeric Character Set in 40 Character/Row Mode - EF9345. C& 0 0 0 0 I I I I CS 0 0 I I 0 0 I I C4 0 I 0 I 0 I 0 I C3 (:2 CI CO •• ~~ lliili -II ~IJ ~t•• 0 0 0 0 :, • ~ Co RilHHl . •• m klli • - • htt 1I1I ;, • 0 0 0 I .... ...... .., " . •••••••• • <-, t ~··I 0 0 I 0 0 0 0 I 0 I I 0 •••••••• 11 111 0 0 I I 0 I I 0 •••••••• •••• 111 0 I I 0 I 0 I 0 •••••••• •••••••• I I 0 0 0 I I 0 •••••••• •• 1 I I 0 I I 0 I 0 •••••••• •••••••• I I I I 0 I I 0 •••••••• •••••••• I I I I •••••••• EBB EF9345·29 40 EF9345 Figure 16 bis : Go Alphanumeric Character Set in 40 Character/Row Mode.- EF9345 R003. C8 D D D D 1 1 1 1 C6 D D 1 1 D D 1 1 Cot D 1 D 1 0 1 0 1 C3 C2 Cl CO D D D D 1 ••11.1. D D D 1 1111111. D D 0 D D 1 0 1 1 D 1 0 •••••••• 11.111 •• 11111111. 0 1 0 1 1111111. 0 1 1 0 ••• 111 •• 0 1 1 1 •• 1111.1 1 1 1 D D D 0 D 1 0 1 D •••••••• ••• 11••• •• 1 •• 111 1 D 1 1 IIIIIIII 1 1 D D .1111 •••• 1 1 1 1 1 1 o 1 1 1 0 1 •••••••• 11111 •••• 111111 ••• EBB EF9345-30 - - - - L.'1 OJ< SGS·1HOMSON _ _ _29/50 ~o«:llR@rnl!.Wii'IlB@OOOO:iI! 41 EF9345 Figure 16 ter : Go Alphanumeric Character Set in 40 Character/Row Mode - EF9345 R005. C6 a a a a 1 1 1 1 C5 a a 1 1 a a 1 1 C4 a 1 a 1 a 1 a 1 ••••••• 1• CJ C2 C1 CO a a a 0 a 0 0 1 11 II a 0 a a 1 1 a 1 ••••••• •••••••• • • 0 a 1 1 a a a 1 ••••••• .11 • II a e 1 1 1 1 a 1 1111111 ••• ••••••• ••••• 11 • • 1 0 0 0 II 1 1 0 0 0 1 1 0 ••••••• ••••••• II II 1 1 0 1 1 0 1 a ••••••• ••••••• • • 1 1 1 1 1 1 0 1 1 1 0 1 ••••••• ••••••• •• 11 • •• EB8 EF9345·31 42 EF9345 Figure 17 : GlO Semigraphic Character Set. MOSAIC Semi·graphic SEPARATEO Semi·graphic , , , , 0 0 0 0 C6 C5 0 0 , , 0 0 , , C4 0 , 0 , 0 , 0 , C3 C2 C' CO 0 0 0 0 ••••• 11. 0 0 0 0 0 0 0 , , , , 0 •••••••• •••• 11 •• •••• 111. [iljj mi II'II lu1l'i'jBa .11 ~r",,' IIIlII' rr"'I[J,nTIl~ 1'1 .• " .... I I 0 , 0 0 ~-, ~ t 0 , 0 , IIUI·"~I~. ~:;:.·l';.· iji, !"i t' 0 , , ••••• 11. 0 0 , , , 11.lllla , 0 ••••• 0 11. 0 , 0, 0 B••• II •• , , 0 ••••• , 0 11. , , 0 ••••• 11. , 1 11 ••• 11. 0 0 1 , 1 1 0 1 1 0 •••••••• ••••• 11. , , - - - - L"'II ~~~~~~=:il~~ 1 1 •••••••• ---- E88 EF9345-32 31/50 43 EF9345 Figure 18: G11 Stroke Set. C51 oro I C41 o I 1 I •• C3 C2 Cl CO 0 0 0 0 0 0 0 0 0 1 I 0 •• •• 0 0 0 1 I 0 0 1 •• •• 0 III- '. 1 0 1 0 I 1 0 .~ 0 I I I fl. I I 0 0 0 0 0 I •• •• 1 I 0 0 I I 0 I •• •• I I 0 0 ••I I .1 I I 0 I I I I 0 I I I I II E88 EF9345-33 32/50 44 EF9345 Figure 19 : G20 and G21 Accentued Character Sets for 9345. csl o I a I 1 I 1 I c51 a I 1 I a I 1 I I C4 I o I 1I -85 CJ C2 Cl CO 0 r--- III. 0 0 0 0 .\I~ 1 I ••• 0 0 0 1 I~I~ I- '--- 0 0 1 0 •• E..mpI. : 7 6 5 1 0 4 3 2 0 0 I I I x loll1 0 10lolo111 l- BvteC lolll o lolxlxlxlxl 0 1 0 0 II ••I Byte B Byte A I I I I xl I I I I X X X X X X X 0 1 0 1 0 1 1 0 I •• X = bits deflOed by user. 0 1 1 1 • 1 1 0 0 0 0 0 1 •• •• I I 0 0 I I 0 I ••I I I I I I 0 0 0 I •• •• I I I I I I 0 I •• •• et. E88 EF9345·34 33/50 45 EF9345 Figure 19 bis : G20 and G21 Accentued Character Sets for 9345 - R003. C61 o I o I ' I ,, II csl o I , I o I I C4 I o I ' I •••• ~ C3 C2 C, co 0 0 0 0 0 I • •••• •• f--- • 0 0 0 I '-- 0 0 I 0 I. •• E .....pI.: 7 6 5 4 3 2 , 0 0 0 , I ••I By'eC Ixlol'lolololol'l , Byte B By'. A 10 1, 10 1olxlxlxlxl Ixlxlxlxlxlxlxlxl !- 0 0 , 0 0 0 , I x '* bib defined by user. 0 0 1 I 1 , 0 I •• •• II I I 0 0 0 0 0 I •• ••I I 0 I 0 I I 0 I I II I I I I 0 0 0 I •• II. I I I I I I 0 I •• .1 EBB EF9345-35 34/50 46 Figure 19 ter : G20 and G21 Accentued Character Sets for 9345 - R005. c61 o I o T1 , 1 1 CIII o I 1 I o I 1 I I C4 I o I 1 , ~ C3 C2 Cl CO 0 •• 11 0 0 0 0 I • •• I-- 1 '-- •• 11 0 0 0 1 0 0 1 0 II ••I Exampl. : 7 6 5 4 3 2 1 0 0 0 1 1 I xlol'l ololoI01'1 !~ Byte C Byte B lol'1 010lxlxlxlxl 0 1 0 0 I Byte A Ixlxlxlxlxlxlxlxl X = bits defined by user. 0 0 1 1 0 1 1 0 r:i'. ~ ~I lil hltiilll 0 I 1 1 III n 1 0 0 0 .11 1 I 0 0 0 1 1 0 •• ••I 1 0 I 1 I I 1 I 1 0 0 0 I •• •• I I I 1 I 1 0 1 •• .1 ESS EF9345·36 35/50 47 EF9345 80 CHAR/ROW CHARACTER CODES To display pages in 80 character per row format, • Alphanumeric set: C7 = o. one of two character code formats must be selec- C(0:6) designates one out of 128 alphanumeric ted: characters in the Go on-chip set. This set is com- • Long (12 bits) code : 4 parallel attributes and mon to the 40 char/row format, with the 2 right large on-chip 1024 semigraphic character set, most columns truncated (see figure 25). • Short (8 bits) code: no attribute, no semigraphic A(0:3) gives 4 parallel attributes. set. • Mosa"ic set: C7 = 1. Both formats address the on-chip Go set (128 cha- A(1 :3) and C(0:6) address a dedicated mosa·le racters 6 x 10). None allows UDS addressing. character. Each ofthese address bits controls the foreground/background status of a 3 pixels x 2 LONG CODES. lines sub-window: foreground when the bit is set. Each 6 pixels x 10 lines character window on the AO provides a color select attribute. screen is associated with a 12-bit code in memory, namely a C byte and an attribute nibble A (figure 10). C7 bit designates the set. Figure 20 : 80 Char/Row Character Code. 76543210 3 2 1 0 76543210 3 2 1 0 ALPHANUMERIC CHAR CODE MOSAIC CHAR CODE N = Negative F = Flash U .'" Underline .. .,.. .. !3pel'!3pel'! 0= CoJorset co Cl 1 DEDICATED 2 MOSAIC 128 ALPHANUMERICS C2 C3 3 4 SET In GO set. 5 C4 C5 6 C6 Al A2 A3 EBB EF9345·37 SHORT CODES. ACCESS TO THE CODES IN MEMORY. They are derived from the long code by giving a 0 KRL command transfers 12 bits from/to the R1 and implicit value to each bit of the A nibble: positive, R3 registers to/from memory. The read modify write not underlined, not flashing. operation, necessary to write the A nibble in memo- ry, is automatically performed provided that the A PACKING THE CODES IN MEMORY. nibble is repeated in the R3 register (figure 22). De- dicated auto-incrementation is also performed when Long codes are paired. A pair is packed in a 3-byte required. word. Therefore, the 80 codes of a row fill a 120- byte row buffer (figure 21). The left most position on KRC command does a similar job forthe short codes the screen is even. Its corresponding C byte is at (figure 23). the beginning of the first buffer. The next position on A very simple scheme allows the microprocessor to the screen is odd. Its corresponding C byte is at the transcode an horizontal screen location into a poin- beginning of the second buffer. Both nibbles are ter (figure 24). The joint use of this scheme with the packed in the third buffer. With short codes, the dedicated command alleviates all the packing/un- same scheme yields 80-byte row buffers. packing troubles. 36/50 48 EF9345 Figure 21 : 80 Char/Row Code Packing. 6 5 4 3 o 6 5 4 o r---------------~ C I I B (eyp.n) I L_~_~_~_J_~_J_J_J PACKING 1 CODES r------------ IN:I BYTES I , ~ --I--I~ B + , L_J_~_~_~_~_~_~_~ IN MEMORY ------..., ---------- I B .2 A I ~_.J._J_J ~ EVEN POSITION ODD POSITION E88 E F9345·38 Figure 22 : KRL Command: Sequential Access to Long Codes. ....- 0 district number -- ~'1'~-- , , / \ '.I Beven ..... __ even position KRL COMMAND , , , Rl C \ , ,, R2 R3 R4 - A - y - ....... r·t / B -t- 1 odd ............. odd position R5 - R6 D, Y R7 B. X ~ IAI B +1 x 7 6 5 4 3 2 o R3 N F u o N F u o The A nibble should be respected. E88 EF9345-39 37/50 49 EF9345 Figure 23 : KRC Command: Sequential Access to Short Codes. 4------ 0 distr let number KRC COMMAND J-I- B (evenl / / .\ Rl C I \ R2 - I \ I R3 - , , R4 - \ I R5 - \ , , / R6 D. Y R7 B.X 1;t B + 1 (oddl x E88 EF9345-40 Figure 24 : Transcoding an Horizontal Screen Location into a R7 Pointer. 6 5 4 3 2 o 6 5 4 3 o I I bl x51 x41 X3 1 X2 1 Xl I XO I bO I Rotate right 11>0 I bl I X5 1 X4 I X3 1 X7 I Xl 1 3 ~ Character pOSition (0 to 19) X 0 (010391 J Block parity E88 EF9345·41 DISPLAYING THE ATTRIBUTES - DOR REGIS- • Color select: a "positive" character is displayed TER. with a background color same as the margin co- lor. The foreground color is selected in DOR re- Short code and mosaIc characters are not flashing, gister by the D attribute. not underlined and "positive". • Negative: when the character is negative, ba- The attributes are processed in the following order: ckground and foreground colors are exchanged. In complemented CURSOR position, these co- • Underline or underlined cursor: foreground is for- lors are complemented. ced on the last slice (NT = 9). • Insert: the D attribute selects one insert value in • Flash : background is periodically (0.5 Hz DOR register. This attribute is then processed up - 50 %) forced on all the window. The phase de- to the current insertion mode (see screen format pends on the negative attribute. and attribute insert section). 76543210 DOR I i, I I I 61 G, R,! iO ISo I I I Go AO D N BACKGND FOREGND i c, I Co I COLOR COLOR I I ~D=l--'l~ D=O__. 0 0 CM Co iO I 0 1 Co CM iO MAT I - - x x! - [B~ 1 0 CM C1 il eM 1 1 C1 CM il The pixel shift frequency is fClK (12MHz). E88 EF9345·42 38/50 50 EF9345 Figure 25 : Go Alphanumeric Character Set in 80 Character/Row Mode - EF9345. C7 0 0 0 0 0 0 0 0 C6 0 0 0 0 1 1 1 1 C5 0 0 1 1 0 0 1 1 C4 0 1 0 1 0 1 0 1 C3 C2 C1 co 0 0 0 0 IIIIIIII 0 0 0 1 III1IIII 0 0 1 0 IIIIIIII 0 0 1 1 IIIIIIII 0 1 0 0 IIIIIIII 0 1 0 1 III1IIII 0 1 1 0 IIIIIIII 0 1 1 1 IIIIIIII 1 0 0 0 IIIIIIII 1 0 0 1 IIIIIIII 1 0 1 0 IIIIIIII 1 0 1 1 IIIIIIII 1 1 0 0 IIII IIII 1 1 0 1 IIII IIII 1 1 1 0 11111 1III 1 1 1 1 IIII IIII E88 EF9345·43 51 EF9345 Figure 25 bis : Go Alphanumeric Character Set in 40 Character/Row Mode - EF9345 R003. C7 0 0 0 0 0 0 0 0 C6 0 0 0 0 1 1 1 1 C5 0 0 1 1 0 0 1 1 C4 0 1 0 1 0 1 0 1 C3 C2 Cl co 0 0 0 0 IIIIIIII 0 0 0 1 IIIIIIII 0 0 1 0 IIIIIIII 0 0 1 1 IIIIIIII 0 1 0 0 IIIIIIII 0 1 0 1 III1IIII 0 1 1 0 IIIIIIII 0 1 1 1 IIIIIIII 1 0 0 0 III1IIII 1 0 0 1 IIIIIIII 1 0 1 0 IIIIIIII 1 0 1 1 IIIIIIII 1 1 0 0 IIIIIIII 1 1 0 1 IIIIIIII 1 1 1 0 IIIIIIII 1 1 1 1 !ml~11111 . : :: ... : . : ., •. ~ I. ·t .. ,,~. ;; I ::~:::: t!"1t ~. : ~ . :!::::: E88 EF9345·44 40/50 ~ SCS.THOMSON _ __ - - - """'I ~~Il:L'J@rn~rn©1rL'J@IIl~Il:~ . 52 EF9345 Figure 25 ter : Go Alphanumeric Character Set in 40 Character/Row Mode - EF9345 R005. C7 0 0 0 0 0 0 0 0 C6 0 0 0 0 1 1 1 1 C5 0 0 1 1 0 0 1 1 C4 0 1 0 1 0 1 0 1 C3 C2 Cl CO 0 0 o 0 IIIIIIII 0 0 o 1 III1IIII 0 0 1 0 IIIIIIII 0 0 1 1 III1IIII 0 1 0 0 IIIIIIII 0 1 0 1 1111111111 0 1 1 0 III1IIII 0 1 1 1 IIIIIIII 1 0 0 0 IIIIIIII 1 0 0 1 IIIIIIII 1 0 1 0 IIIIIIII 1 0 1 1 IIIIIIII 1 1 0 0 IIIIIIII 1 1 0 1 IIIIIIII 1 1 1 0 IIIIIII I 1 1 1 1 IIIIIII I EBB EF9345-45 53 EF9345 MICROPROCESSOR ACCESS COMMANDS A microprocessor bus cycle may transfer one byte o A8 = LCS from/to the microprocessor to/from a directly ad- This is the latched value of CS input pin. dressable register. These registers provide an indi- EF9345 is selected when the following condition is rect access : met: ASN = 2 (Hexa) and LCS = O. o to/from 5 on-chip indirect registers: ROR, DOR, MAT, PAT and TGS. Therefore, EF9345 is mapped in the hexadecimal o to/from the private memory. microprocessor addressing space from XX20 to XX2F, where XX is up to the user. When EF9345 is Due to address/data multiplexing, a bus cycle is a 2 not selected, its AD bus pins float and no register phase process (see Timing diagram 1 or Timing dia- can be modified. gram 2). ADDRESS PHASE. 876543210 The falling edge of AS latches to AD(O:7) bus state and CS signal into the temporary A address regis- I I I I I 1 I 1'1 IADOOEg ter (figure 26). o A(O:2) = i This register index designates one out of 8 direct access registers Ri. ~I -,- L ~I~~I:':'~~~, L ._ _ _ _ _ _ . - . Execution request (XQR) Auto select nibble o A3 = XQR (compared 1000101 L -_ _ _ _ _ _ _ _ _ lCS (Latched CS) This is the execution request bit. o A(4:7) = ASN EBB EF9345·46 This is the Auto-Selection Nibble. Figure 26 : Direct Access Registers. 6 5 4 2 0 ..-~ Rl 6 4 2 0 COMMAND DATA REGISTER R2 I REGISTERS I C~DE I I PAR I ) IwritHullly) RO R3 I 6 3 2 0 STATUS R4 , D', I Y'I It AUXILIARY l 11 RS B' I X' I I POINTER II~ RS ' - -_ _ _ _ _ _ _ _.... Alarm 10 1 IY MAIN ' - - -_ _ _ _ _ _ _ _ _ BusV RI POINTER B X I I EBB EF9345-47 42/50 54 EF9345 DATA PHASE - REGISTERS. o : without auto-incrementation. When EF9345 is selected and while AS input is low, p: Pointer select the Ri register is accessed. 1 : auxiliary pointer RO designates a write-only COMMAND register or o: main pointer a read-only STATUS register. s, s : Source, destination select 01 : source: MP ; destination: AP R1 to R7 hold the arguments of a command. They 10 : source: AP ; destination: MP are read/write registers. a, a : Stop condition R1, R2, R3 are used to transfer the data. 01 : stop at end of buffer R4, R5 hold the Auxiliary Pointer (AP). 10: no stop. R6, R7 hold the Main Pointer (MP). STATUS REGISTER (see memory organization; pointer section for poin- ter structure). This is a read-only, direct access register. S7 : BUSY BUSY is set at the beginning of any COMMAND REGISTER. J command execution. It is reset at com- This register holds a 4-bit command type and 4 bits pletion. of orthogonal parameters (see command table). LXm or LXa is set when respectively S6 :AI the main pointer or the auxiliary poin- Type S5:LX m ter holds X = 39 before a possible in- There are 4 groups of command: crementation. • The IND command which gives access to on-chip S4: LXa The alarm bit S6 is set when LXm or resources, LXa is set and an incrementation • The fixed format character code transfer com- is performed after access. mands, • The variable character code handling com- S3: Gives the MSB value of R1. mands, S2 : Gives the vertical synchronization signal • The general purpose commands. state. Parameters. This is maskable by the VRM command. R/W : Direction S1 = SO = 0 Not used. 1 : to DATA registers (R1, R2, R3) S3 to S6 are reset at the beginning of any command. o: from DATA registers. The COMMAND TABLE shows every command r: Internal resource index (see figure 27). able to set, each of these status bits, after comple- I: Auto-incrementation tion. 1 : with post auto-incrementation Figure 27: Indirect On-chip Resource Access. 16543210 I, I I !:o::EJwL:--L.J 0 0 INDCOMMAND Rl x L , Register R1 a ROM,,) 1 TGS R3 1 MAT R' 3 PAT A5 , DOA , R6 5 I iI R) - 6 - ) ROR • Note" A stice In 40C only can be read from the Internal character generalor The slice address muST be Initial lied In Rfi. R7 R1 E88 EF9345-48 43/50 55 EF9345 NOTES ON COMMAND EXECUTION. This holds too for internal resource access because 1. The execution of any command starts at the trai- on-chip data transfer uses intemal data memory ling edge of DS when (and only when) : bus. _ EF9345 has been selected, IND COMMAND (see figure 27). _ XOR has been set, This command transfers one byte between R1 and at the previous AS falling edge. an internal resource. The r parameter designates This scheme allows loading a command and its ar- one on-chip indirect register. gument in any order. For instance, a command, once loaded, may be re-executed with new or part- FIXED FORMAT CHARACTER CODE ACCESS: ly new arguments. KRF, KRG, KRL KRC 2. At power on, the busy state is undeterminated. Each of these commands is dedicated to transfer It is recommanded to load first a dummy com- one complete character code between DATA regis- mand with XOR = 1 before any effective com- ters and memory. MP is exclusively used. mand. KRF transfers 24 bits. 3. While Busy is set, the current command is under KRG transfers 16 bits. execution. Register access is then restricted. KRL transfers 12 bits. KRE transfers 8 bits. Register access with XQR = 0 Code packing, pointer and data structures are ex- _ Read STATUS is effective. plained in the corresponding character code sec- _ Write COMMAND or any other register ac- tion. cess are ineffective. When auto-incrementation is enabled, MP is auto- That is to say, the microprocessor reads undetermi- matically updated after access so as to point to the ned values and may not modify a register. next location. This location corresponds to the next Register access with XQR = 1 right position on screen. When last position (X = 39) _ Read STATUS or write COMMAND are effec- is accessed, LXm is set. When last position is acces- tive, sed with auto-incrementation, alarm is also set. MP is then pointing back at the beginning of the row : _ Access to other registers is ineffective. there is no automatic Y incrementation. However, the previous command is aborted and the new command execution launched (with an initial VARIABLE CODE HANDLING COMMANDS: state undetermined for registers and memory loca- KRV EXP, CMP, KRE tions handled by the aborted command). An overview on these commands is given in "han- 4. Execution suspension. dling the variable codes" (40 char./row section). The execution of any com mand (except VRM, VSM) KRV uses R5 to point the attribute file. LXa is set is suspended during the last and first TV line of an when this file is full (the last attribute pair has been active row. This is because the memory bus cannot accessed). be allocated for microprocessor access during 'this 104 !lS period. 44/50 56 EF9345 EXP and CMP use MP and R5 in the same way as MOVE BUFFER COMMANDS: MVB, MVD, MVT. KRV. Furthermore, R4 points to a working double These are memory to memory commands which buffer. These two commands process a whole row use R1 as working register. buffer and stop either at the end of the row buffer or when the file overflows. In the last case, the alarm MVB transfers a byte from source to destination, bit is set. post-increments the 2 pointers and iterates until the stop condition is met. MVD and MVT are similar but KRE uses MP to point to a buffer and R4 to point to work respectively with 2 byte word and 3 byte word. a working double buffer. R5 is unused. In other res- That is to say, MVB works on buffers, MVD on dou- pects, KRE is identical to KRL. ble buffers and MVT on triple buffers. If the parame- For these commands, R4(5:7) hold the LSB's block ter a = 1, the process stops when either source or dress of the working buffer W. destination buffer end is reached. If the parameter a = 0, the process never stops until aborted. In this case, main pointer overflow yields to a Y incremen- 765432 0 tation in MP. So, a whole block or page may be ini- tialized. C:?1~zT I-I~Y-I-I J R4 MISCELLANEOUS COMMANDS: INY, VRM and VSM. ------~ zw YW INY command increments Y in MP. ZW3 is given by bit 6 of R6 VRM and VSM respectively reset and set a vertical synchronization status mask. When the mask is set, GENERAL PURPOSE ACCESS TO A BYTE- status bit S2 remains at o. When the mask is reset, OCT. status S2 follows the vertical sync. state : it is reset for 2 TV lines per frame and stays at 1 during the re- This command uses either MP or AP pointer. maining period. It becomes readable by the micro- When MP is in use, an overflow yields to a Y incre- processor from the status register. After power on, mentation. the mask state is undetermined. 45/50 57 (}l OJ "" 0) (); m COMMAND TABLE "T1 o CD (,) Code Parameter Status Arguments Execution Ti me (1) Type Memo 7 6 S 4 3 2 1 0 AI LX m LX. R17 R1 R2 R3 R4 RS R6 R7 Write Read "'" (JI Indirect INO 1 0 0 0 RfIN r 0 0 0 0 0 - - - - MP 2 3.5 40 Characters - 24 Bits KRF 0 0 0 0 RfIN 0 0 I X X 0 0 C B A - - MP 4 7.5 40 Characters - 16 Bits KRG 0 0 0 0 RfIN 0 1 I X X 0 0 A· B· W - - MP 5.5 7.5 80 Characters - 8 Bits KRC 0 1 0 0 RfIN 0 0 I X X 0 0 C - - - - MP 9 9.5 80 Characters - 12 Bits KRL 0 1 0 1 RfIN 0 0 I X X 0 0 C - A - - MP 12.5 11.5 40 Characters Variable KRV 0 0 1 0 RfIN 0 0 I X X X X C B A - XF MP (2) 3 + 3 + j 3.5 + 6 • j Expansion EXP 0 1 1 0 0 0 0 0 X 0 X 0 C B A PW XF MP (3) < 247 - Compression CMP 0 1 1 1 0 0 0 0 X 0 X 0 C B A PWXF MP (3) < 402 - Expanded Characters KRE 0 0 0 1 RfIN 0 0 I X X 0 0 C B A PW - MP 4 7.5 Byte OCT 0 0 1 1 RfIN P 0 I X X X 0 D - - AP MP 4 4.5 ~ i!5cn Move Buffer Move Double Buffer MVB MVD 1 1 1 1 0 1 1 0 s s s s a a a a 0 0 0 0 0 0 0 0 W W - - - - AP AP MP MP (2) 2 + 4. n (2) 2 + 8. n - - ~~ @. Move Triple Buffer MVT 1 1 1 1 s s a a 0 0 0 0 W - - AP MP (2) 2 + 12. n - i!li;! Clear Page (4) - 24 Bits ClF 0 0 0 0 0 1 0 1 X X 0 0 C B A - - MP < 4700 (1 K code) - i'lo ~I: Clear Page (4) - 16 Bits ClG 0 0 0 0 0 1 1 1 X X 0 0 A· B· W - - MP < 5800 (1 K code) - @cn ~O Vertical Sync Mask Set VSM 1 0 a 1 1 0 a 1 0 a 0 0 - - - - - - - 1 - :&liz Vertical Sync Mask Reset VRM 1 a 0 1 0 1 0 1 - - - - - - - - - - - 1 - Increment Y INY 1 a 1 1 a a 0 0 a 0 0 0 - - - - - Y - 2 - ~ Operation NOP 1 0 a 1 a 0 a 1_ - - - - - - - - - - - - 1 - P Pointer select Not affected (1) Unit 12 clock periods (= 1 ~) without possible suspension. t : auxiliary pointer W : Used as working register (2) n : total number of words,; 40 ; j = 1 for long codes, j = 0 for short a : main pointer. PW (Z, YW) : Working buffer codes. X : Set or Reset (3) : Worst case (20 long codes + 20 short codes). S, s Source. destination 01 : source = MP ; destination = AP XF : X File I Pointer incrementation (4) : These commands repeat KRF or KRG with Y incrementation when X 10 : source - AP ; destination = MP D Data overflows. When the last position is reached in a row. Y is a, a: Stop condition MP Main pointer incremented and the process starts again on the next row 01 : stop at end of buffer AP : Auxiliary pointer 10 : no stop Indirect register number EF9345 INTERFACE WITH EF6801 PORTe ('- ....., ~ ADIO:71 EF6801 EF9345 SCI AS E 05 SC2 R/W lOS cs E88EF9345-49 MINIMUM APPLICATION WITH 2K X 8 MEMORY One page memory terminal in 16-bit fixed format or 24-bit compressed format. .l'\. 00-D7 V - ADM 10:71 VL- L-1\ 74LS .. t-.. " V 373 -V AO-A7 RAM EF9345 ASM 1 - cs 2K x 8 ET2128 AM (8:101 ~ ABA10 V OE DE WE WE E88EF9345-50 47/50 59 EF9345 TYPICAL APPLICATION WITH 8 K X 8 DYNAMIC OR PSEUDO-STATIC RAM Multipage terminal with possibility of multiple user definable character sets. A "- 00-07 ADM 10:71 ... ..... ~ AO-A7 RAM EF9345 8Kx8 AsM CE Oe OE We M AM 18:121 .l\ A8-A12 ..... E88EF9345·51 MAXIMUM APPLICATION WITH 16 K X 8 MEMORY Multipage terminal with user definable character sets and buffer areas. ADM (0,7) Vt-- II " -;- y ::>~ :i~ n 1!7 00-03 04·07 '" !2~ w ... a:~ -" AO-Al )\.. Ox AM (8,,31 ON V « ASM .- D Q r- D Q CAS ;! ~ DRAM· ~N EF9345 ~ N 16K .4 CK CK '-' AAS WE W , c- - DE ClK -{)o- I T 12MHz CLOCK E88EF9345·52 48/50 60 EF9345 ORDERING INFORMATION Part Number Package Character Generator EF9345PRYYY DIP40 RYYY EF9345FNRYYY PLCC44 RYYY PACKAGE MECHANICAL DATA 40 PINS - PLASTIC DIP , Lll 3.9 0.38 0.508 ~ 15~ (1 t Nominal dimension - I (21 True geometrical position 14 (1) 40 PINS W SCS·THOMSON ':IfI ~nli::llJ@~~I!Ii::'U'IlJ@lIlnli::i!l 49/50 61 - ----~----~---~-~- EF9345 PACKAGE MECHANICAL DATA (continued) 44 PINS - PLASTIC CHIP CARRIER Pin 1 . t fication 16510 I¥62l 1740 17,65 44 pins ~ min. 50150 62 TS9347 SINGLE CHIP SEMI-GRAPHIC DISPLAY PROCESSOR • SINGLE CHIP LOW-COST CRT CONTROLLER • UP TO 60 Hz SCREEN REFRESH RATE • 32 KBYTE DEDICATED MEMORY ADDRES- SING SPACE • 2 SCREEN FORMATS: 25 ROWS OF 40 CHARACTERS 25 ROWS OF 80 CHARACTERS • ON-CHIP 154 ALPHANUMERIC AND 128 SE- MIGRAPHIC CHARACTER GENERATOR • EASY EXTENSION OF USER DEFINED AL- PHANUMERIC OR SEMI-GRAPHIC SETS (> 1K characters) P • 40 CHARACTERSIROW ATTRIBUTES: DIP40 FOREGROUND AND BACKGROUND COLOR, (Plastic package) DOUBLE HEIGHT, DOUBLE WIDTH, BLIN- KING, CONCEAL, INSERT • 80 CHARACTERS/ROW ATTRIBUTES: UNDERLINING, BLINKING, REVERSE, CO- LOR SELECT • PROGRAMMABLE ROLL-UP, ROLL-DOWN, UPPER OR LOWER SERVICE ROW • ON-CHIP R, G, B SHIFT REGISTERS • ANALOG COMPOSITE LUMINANCE SIGNAL OUTPUT • VERSATILE 1/0 CONFIGURATION: VIDEO AND SYNC OR GENERAL PURPOSE 1/0 PORTS FN • ADDRESS/DATA MULTIPLEXED BUS DI- PLCC44 RECTL Y COMPATIBLE WITH STANDARD (Plastic Chip Carrier) MICROCOMPUTERS SUCH A 6801, 6301, 8048,8051 DESCRIPTION A complete display control unit may be implemen- ted with TS9347 and a single standard memory package. This new advanced CRT controller drasti- cally reduces IC cost and PCB area for low-end co- lor or monochrome terminal. January 1989 1/42 63 TS9347 TYPICAL APPLICATION 2Kx8to32Kx8 memory * L to TS9347 ; -- /hgm MODEM MCU j j #t/J TSG7515 ~ EF6801 TSG7514 E88TS9347-01 PIN CONNECTIONS TS9347 TS9347 TS9347 CP/lROO CP/2ROO CFN/ROO v ss ADMO V ss 40 ADMO ADM1 V sse 39 ADM1 ADM2 6E 3 38 ADM2 '-' >81i I~ ~~ >~ >~ ~ ~ ~ ~ ADM3 WE 4 37 ADM3 >'5 ADM4 ADM5 ASM V DD 5 6 36 35 ADM4 ADM5 <.0 1(1 o:t M N - ~ ~ ~ :;; ,. Y 7 39~ADM4 ADM6 Y 7 34 ADM6 B 8 3SPADM5 B ADM7 B 33 ADM7 R 9 37PADM6 G 10 36PADM7 AM8 R 9 32 AM8 CLKOUT 11 35PAM8 AM9 G 10 31 AM9 XTAL 12 34PAM9 ClKOUT AM10 XTAl 11 30 AM10 ,. eLK 13 33pAM10 XTAl AM11 ClK 12 29 AM11 SYNC IN 32PAM11 ClK AM12 SYNC IN 13 28 AM12 AS 31PAM12 "16 SYNC IN AM13 AS ,. 27 PAM13 OS Rm 17 30PAM13 29PAM14 AS AD7 DS 15 26 PAM14 ~ ~ ~ N ~ ~ ~ l(l !Il ~ re DS AD6 R!W 16 25 PAD7 § ~ ~ ~ 1l ~ ~ ~ 1l i!i [:; R!W AD5 ADO 17 24 PAD6 " " " ADO AD4 AD1 18 23 PAD5 AD1 AD3 AD2 [ 19 22 PAD4 AD2 CS CS[ 20 21 PAD3 2/42 Gi ':fI SGS·THOMSON "'DO::lIR@m~I<©'ii'Ill@~DI:lI 64 TS9347 BLOCK DIAGRAM ROW BUFFER 40.24 BITS DATA BUS AS os T--~- ROM CHARACTER cs GENERATOR R,G.R ATTRIBVTE LOGIC DOR VDOC [ TRANSOODER PAT MAT OAC vssc XTAl ClJ( CLKOII E88TS9347-02 Gi SCiS-THOMSON ~/IililUICIII@I--- 241lS - - - - I 312 SCAN LINES t lONE ROW = 10 SCAN LINES ACTIVE AC2T%E DISPLAY 1 SCAN LINES TIME .___ L___ L----~----'--_-----' MEMORY CYCLE I INACTIVE LINE DUM I "p RFSH: "p DUM: dummy cycle I I liP : indirect access to memory LAST ROW LINE UDS I LD LD I LD RFSH : refresh cycle I I UDS : slice read cycle FIRST ROW LINE UDS I LD RFSH I ~P LD : read cycle to load the internal I I row buffer. OTHER ROW LINE UDS: "p RFSH: "p ~lIlS-- --lp..s________. - - - - - - 4 0 p.s • . . - - 24 J.lS -----.. E88TS9347-05 8/42 70 1~9::S4f Figure 4 : Logical to Physical Address Transcoding Performed on-chip. z (0 to 31) Y (0. B to 31) x (0 to 39) --------- --_ ..._----- D B LOGICAL ADDRESS 4 I3 2I II1 I0 4 I3 I 2 I I I0 I I I I I I I I 5 4 3 2 I 0 TRANSCODING ----------~------------~ PHYSICAL ADDRESS 1'41'3 1'2 1" 1'0 I 9 IB I 7 I6 5 I4 I3 XandY PHYSICAL ADDRESS AM (3 :10) CONDITION 4 10 9 8 7 6 5 3 X5 =0 bO Y4 Y3 Y2 YI YO X4 X3 Y;;'B 0 Y2 YI YO Y4 Y3 X5 = I bO 0 YO =0 bO 0 0 X5 X4 X3 0 0 E88TS9347 -06 SCREEN FORMAT AND ATTRIBUTES OUTPUTS CONFIGURATION The screen format and attributes are programmed TGS3 = 1 enables VSI to reset the internal line through 5 indirectly accessible registers : ROR, count: SYNC IN input is sampled at the beginning TGS, PAT, MAT, and DOR. IND command allows of the active area of each line. When the sample accessing to these registers. TGS is also used to a transits from to 1, the line count is reset at the end select the timing generator options (see Screen For- of the current line. mat Table). = = TGS3 TGS2 1 enables HSI to control an inter- ROW AND CHARACTER CODE FORMAT: TGS nal digital PLL : HSI and on-chip generated H. SYNC (6:7) OUT are considered as in phase if their leading edges match at plus or minus 1 clock period. When Two row formats and 4 character code formats are they are out of phase, the line period is lenghtened available but cannot be mixed in a given screen. by 1 clock period (80 ns at 12 MHz). TIMING GENERATOR AND CONFIGURATION Screen Format Table resumes the different combi- OPTIONS: TGS (1 :5) nations. TGS1 = 0: noninterlaced mode, 312 lines/frame. TGS (4,5) : output configuration TGS1 = 1 : interlaced mode, 312.5Iineslframe. Three output pins may be configured to output ei- TGS (2,3) : input synchronization configuration. ther video signals or general purpose output ports. The Screen Format Table summarizes the possible The SYNC input may be interpreted as a synchro- configurations, with the following definitions: nization signal or as a general purpose input port, which state can be read by the microprocessor in R, V, B : Red, Green and Blue Video components the status register (bit 2). Alternatively, the vertical I : Insert signal synchronization output from the timing generator HVS : Composite H and V synchro output can be read in the same register. P1, P2 : General purpose output ports The composite incoming SYNC IN signal is separa- ted into two internal signals: PAT2 gives the value of P1, PAT7 gives the value • Vertical Synchronization In (VSI) of P2 : a logical "1" will cause a "high" on the corre- • Horizontal Synchronization In (HSI) sponding output, while a "0" results in a "low" . L..'1 SGS·THOMSON •h rnilUil::IlIl@mI!.IO©"ii"Ii!©Il'lU@$ 9/42 71 TS9347 SCREEN PARTITION, PAGE POINTER ROR PAT1 =0 disables the bulk. When disabled, the cor- (see top of the Screen Format Table) responding scan lines are displayed as a margin ex- The screen is partitioned in three areas: tension. • The margin CURSOR: MAT (4:6) The service row To be displayed with the cursor attribute, a charac- The bulk or remaining rows ter must be pointed by the main pointer (R6, R?) and MAT (0:3) declares the color of the margin and the MAT6 must be set. The cursor attributes are given value 1M of its insert attribute. by MAT (4,5) : • Complementation : DOR? and ROR register point to the page to be dis- The R, G, B or each pixel is logically negated: played : DOR? gives the MSB of the Z address, ROR (?:5) three next bits, the LSB is implicitly ZO R,G,B~ A,G,B = 0 (the page block address must be even). YOR • Underline: (= ROR (4:0)) gives the first row to be displayed at The underline attribute is negated the top of the bulk area. The next row buffers to be • Flash: displayed are fetched sequentially by incrementing the Y address (modulo 24). This address never gets The character is periodically displayed with, then wi- out of the origin block. Incrementation of YOR by the thout the cursor attribute (50%/50% ~ 1 Hz). microprocessor yields a roll up. FLASH ENABLE (PAT 6) - CONCEAL ENABLE SERVICE ROW: TGSO ; PATO (PAT3) The 10 scan line service row can be displayed at the Any character flashing attribute is a "don't care" top or the bottom of the screen, depending on the when PAT6 = o. When PAT6 = 1, a character flashes value of TGSO. The service row is fetched from the if its flashing attributes is set. It is then periodically origin block at Y = 0 ; it does not roll ; it may be di- displayed as a space (50%/50% ~ 0.5 Hz). sabled by PATO = 0 ; it is then displayed as a mar- PAT3 is a 'don't care" for 80 char./row formats. gin extension. When any 40 char./row format is in use: BULK: PAT1 ; MAT? * if PAT3 = 0, the conceal attribute of any character is a "don't care" The bulk is displayed for 240 scan lines. Each row buffer is usually displayed for 10 scan lines. Howe- * if PAT3 = 1, the conceal attribute of each charac- ver, MAT? = 1 doubles this figure: then every cha- ter is interpreted : a concealed character appears racter appears in double height (double height as a space on the screen. characters are quadrupled). 10142 72 TS9347 INSERT MODES: PAT (4:5) As a margin/active area signal in the Active Area Mark mode These modes make sense only if the insert signal I is available on the G pin, that is to say when As a character per character marker signal in the TGS4 = 1. Character Mark mode As a video mixing signal in the other modes, pro- During retrace, margin and extended margin pe- vided that the TS9347 has been vertically and hori- riods, the I signal outputs the value of the insert mar- zontally synchronized with an external video gin attribute: I = 1M = MAT3. source: the I output allows mixing TS9347 video During active line period, the I output is controlled output (I = 1) and external video signal (I = 0). This by the insert mode, and 11 and 12, the insert attri- mixing may occur for the complete character win- butes of each characters. The I output may have se- dow (Boxing mode) or only for the foreground pixels veral uses: (See figure below). (Inlay mode). VIDEO OUTPUT DURING ACTIVE PERIODS Insert Mode 11 12 Char. Level Pixels I Video Output Comments Active Area Mark - - - 1 Unchanged Character Mark 0 - - 0 Unchanged 1 - - 1 Unchanged Inlay 0 - - 0 Black Non Insert 1 - Background 0 Black 1 - Foreground 1 Unchanged Inlaid Boxing and Inlay 0 - - 0 Black Non Inserted 1 0 - 1 Unchanged Boxed 1 1 Background 0 Black 1 1 Foreground 1 Unchanged Inlaid SCREEN FORMAT TABLE ~ MEMORY 0 Y ORIGIN ><",1 SERVICE ROW ,/ Y ORIGIN -. 8 y 9RIGIN + 1 , Y ORIGIN + 1 , , ~ , i I 31 I SERVICE ROW i UPPER SERVICE ROW LOWER SERVICE ROW 765 3 2 o .I . ~ I ROR (r = 7) .. Ortgm row address YO~ " 108 w 31) L ________ .. Block origin leven) Z4" 00R7 E88TS9347 ·07 11/42 73 TS9347 SCREEN FORMAT TABLE (continued) STATUS REG. SYNC. IN PIN FUNCTION SYNCHRONIZATION TSG2 TSG3 (BIT 21 INPUT PORT INPUT PORT NO SYNC. 0 0 V.SYNC. OUT NOSYNC. 1 0 V.SYNC. SYNC. IN V.SYNC. 0 1 COMPOSITE SYNC. IN V.SYNC. OUT H.ANDV.SYNC. 1 1 -1 OUTPUT PINS TGS4 TG85 B G R -------- B G R 0 0 8 I R 1 0 P2 PI HVS 0 1 7 6 5 4 3 2 P2 I HVS 1 1 TGS Ir ~ 1) Service row low Interlaced I CHAR CODE ! 40 CHAR LONG CHARSHORT ~ 7 6 5 4 3 2 BO CHAR LONG PAT Ir = 3) 80 CHAR SHORT ·IITl ~ --------~ - - - - - - ' - - - ' - - - - - ' Service row enable Bulk enable PUll 1 Conceal enable fla5h enable INLAY ~ .. Port 2 BOXING AND INLAY CHARACTER MARK 76543210 R~ MAT (r ACTIVE AREA MARK 1 1 -~--------,----- -- ~ I 'M 1 8 M! GM I c 2) CU RSOR DISPlAY MODE FIXED COMPLEMENTED FLASH COMPLEMENTED ~llTI Margin color Margin insert Cursor displav enable Double heighl FIXED UNDERLINED ~ NOTE; PROGRAMMING BIT VALUE FLASH UNDERLINED 1;;;: True ~-------- 0:= False E88TS9347-07/1 40 CHAR/ROW CHARACTER CODES and A bytes (Figure 5). A rowan the screen is as- To display pages in 40 character per row format, sociated with a 120 byte row buffer in memory. one out of two character code formats must be se- 3-byte code structure lected: 1. C7 is a don't care. Up to 128 characters may be Long (24 bits) code: all parallel attributes. addressed in each set. Each user definable set Short (16 bits) code: mix of parallel and latched holds only 100 characters : C-byte value ranges attributes. from 00 to 03 and 20 to 7F (hexa). Short codes are translated into long codes by the 2. B (3:7) give the type and the set number of the TS9347 during the internal row buffer loading pro- character. cess. The chaise of the character code format is ob- 3. When 12, U, L are not programmable, the default viously adisplay flexibility/memory size trade off, left value of these attributes is O. up to the user. 4. Character code byte A defines a two color set gi- LONG CODES ving directly (Figure 6) the two values (B1, G1, R1) This is the basic 40 char/row code. Each 8 pixel x and (BO, GO, RO) respectively affected to the 1 's and 10 lines character window on the screen is associa- the O's of the character pattern. The negative attri- ted with a 3-byte code in memory, namely the C, B, bute, when set, exchanges the two values. 12142 74 TS9347 Figure 5 : 40 Character Long Codes. 7 6 5 4 J 2 0 C BYTE L I I lit I m H B BYTE ~'m." 1 : :== type and set I N I B1 I G1 I R1 F IBO IGo IRo I A BYTE 1 l ~ Background color 1 : Flash (Blinkl Foreground color Negative (Rewrse videol E88TS9347-08 Type and Set Number of Character B (3:7) Per Set Set Set Cell B7 BS B5 B4 B3 C (O:S) Name Type Location 0 12 1 0 L 128 STANDARD MOSAIC G10 SEMI 12 1 1 L 32 COMPLEMENT. CELLS GOE GRAPH ON CHIP 12 0 U L 128 ALPHANUMERICS GO ROM ALPHA 1 0 0 U L 100 ALPHA UDS G'O 0 L 100 SEMI-GRAPHIC UDS G'10 0 1 SEMI 1 L 100 SEMI-GRAPHIC UDS G'11 EXTERNAL GRAPH RAM 1 X X X 800 SEMI-GRAPHIC UDS aO:7 L = Double width U = Underlined Nole 1 : Double height, double width: a correct operation assumes that the same character code had been repeated in the pege memory (Twice for double height or double width, four times for double size). 2 : Double height: each slice of the character is repeated: twice to get a 8 x 20 pattern. However for the alphanumeric characters, these scheme is slightly d~ferent : the upper slice (SN = 0) is tripled, the next (SN = 1 to 8) are doubled, and the last (SN = 9) is displayed on- Iyonce. 13/42 75 TS9347 Figure 6 : Coloring a Character. Figure 7 : Shifting a Slice. B G R Color Value 7 6 543 2 ° °° °°1 °1 BLACK RED 1°111°111°1° ° GREEN °°1 1 °1 YELLOW BLUE ------------~ 11 °°1 °1 MAGENTA CYAN Shift Direction: LSB First 1 = Foreground 1 1 1° WHITE o = Background· E88TS9347-09 SHORT CODES They are fully compatible with EF9345 (binary code These 16-bit codes achieve memory saving whith and display interpretation) if the 12 attribute is given some penalties: the value O. '. • 00 to 07 and GOE cannot be reached. Figure 10 gives the short to long translation process which occurs for each row - while loading the inter- • Some attributes are latched and can be changed nal row buffer - before display. only while displaying a space (delimitor code). HANDLING SHORT AND LONG CODES The TLM, TLA, TSM, and TSA, commands allow an easy X, Y random or an X sequential access to/from the microprocessor from/to a memory row buffer. Figure 8 : Long Codes in Memory Triple Row Buffer. X ~ TLMCOMMAND 0 39 Rl C r--------,.....- D district number R2 B RJ A R4 1C 1 B leven) R5 R6 D,Y R7 B.X Y 101 B +1 TLACOMMAND Rl C R2 B RJ A R4 D,Y IAI B +2 R5 B,X R6 R7 E88TS9347-11 14/42 Gi SGS·11I0MSON ~I IlllDI!:II@IiIl.Ii©'ll'IiWIDI!:III 76 TS9347 Figure 9 : Short Codes in Memory Double Row Buffer. TSMCOMMAND Rl A- x R2 B- R3 W p.O_ _ _ ~.____3-,9 .....- DISTRICT R4 - RS - R6 D.Y JA"I B (even) R7 B.X Y TSACOMMAND Rl A- 18·1 B +1 R2 s- R3 W R4 D.Y RS B.X R6 R7 E88TS9347-12 15/42 77 ..... -I a:> '"l>; I\) " ca' c en CO Co) Cii 01=0 ..... 0 -n x' CD FIXED SHORT CODE FIXED LONG CODE c. Alpha --------- ------ 7 I I 0 6 5 4 S' 3 2 1 X I X I X I X IX I X I X a 5 4 I I I NIL I I I , 0 7 6 H A' 3 F 2 1 c, , 0 I- I c X , X I X I X , X , X I X I I lli"a 0 0 ~L a ".FIIi' [ij] I I H N I C, I A I U~F seT Go (J) :::r g () 0 IF~~ !~ ~ p_ 'Il F2J:h j Semi- 101 ,C'I c. CD graphic GIO 101 ,C', IF~ 8" Alpha I N I , c, , I F Ut;:LJ G'o ~ I -n x' CD I j~ c. ~ I I I I Semi· graphic 0 c, F ,Co, G'IO r 0 ~(I) DEL I I 1 I C, ! Ia I Co j 'Negative ::J co nm ! 5pace () ~. ~i! m Don't care Conceal N U Negative Undtrlina L H DOLble width OOl.ble height II Latched attribute 0 c. !o ",iii F : 111 Flash' 'Soxingl X DE L Character code Delimitor Co Cl Background color Foreground color CD -I 121 = Inlay: @(I) til 0 iU ::J ~Z NOTES l' (J) Translation process iii The translation process operates throu~h 3 elementary operations: o· ;:> • Field·to·field: a character code or an attribute value (i.e: CO, flashing) is directly loaded from short to long code. • Field.to.constant the decoding of a short code forces the value of the equivalent long code attribute. For .xam~ Ie, semigraphic short characters forces normal size (H = 0, l = 0) attributes. • latched attributes: at the beginning of each row, these attributes are reset (no underline, not concealed, no insert, black background). Then, they keep their current va ue until modified by either a field to field or field to constant operation. 2/1 n.ert attribute 12 is interpreted both in G'O and G',O, contrary to long code mode. TS9347 USER DEFINED CHARACTER GERATOR IN a character cell holds 10 bytes in memory and 4 cha- MEMORY: DOR REGISTER racter cells are packed in one 40-byte buffer (Fi- With 40 char./row, the elementary window dimen- gure 11). sions on the screen are 10 slices x 8 pixels. Thus, Figure 11 : Packing Uds Cells in Memory. 1 1 ~ Character set base address 0 39 ~~ cha,acte:~~ numb., ~ Z block add,." .... F-------'~i 1 KOBN';TE 4 CHARACTER CELLS: Y BLOCI< r------~31 Slice number CO to 9) 4 3 o 1 MEMORY r x ! I ~ SN I I I I --------------- A CHARACTER SET LAYS IN ONE BLOCK PIXELS !Up to 100 characters per sell 01234567 o _ 2 -_ SN SLICE 3 6 432 o 4 - NUMBER (0 t09) 5 - 6 - - 8 -- SLICES ARE SHIFTEO LSB FIRST 9 - Window on screen E88TS9347·13 17/42 79 TS9347 The cells of one given character set should be layed For each type of set, it gives the MSB(s) of the Z in one block. block address. TS9347 reads the Z LSB(s) in the B Up to 100 character cells may be addressed in each byte of the (equivalent) long code. As usual, the cha- set. racter code is read in the C byte. SN is derived from The location in memory, where to fetch the sets in the scan line rank in the row and the double height use, are declared by DOR register (Figure 12). status. Figure 12 : Uds Fetch to Display. MEMORY ,.L .1., ~_ OOR G'O (alpha UDS) t • ~ 1 Kbyte 654 3 a ! DOR register _DORG'1 (Semi-graphic I UDS) G'w Even block T~ DOR G'O 2 Kbyte, 1 G'" !Odd block Page and set MSB 65430 CHARACTER LONG CODE B BYTE Go 1 B Kbyte, Ql Uds Set Z Address lo r # 87 86 85 Z4 Z3 Z2 Z1 ZO G'o 1 a a DOR? DOR3 DOR2 DOR 1 DORa G'1X 1 a 1 DOR? DOR s DOR 5 DOR 4 84 00 - a? 1 1 X DOR? 1 85 83 84 l' l' PAGE DOR? ROR? ROR 5 ROR s a E88TS9347·14 18/42 80 TS9347 LOADING USER DEFINED CHARACTER SET _ the character number C (0.6) Before loading a character set into RAM, the user _ the slice number SN (0.3) must _ the bloc number assigned to the set Z (0.4) • Assign a name to the set: Note : Different sets may be mixed in the same G'o, G'lO, G'11, or QO-7 block, as long as the character have different code • Assign a character number to each character be- numbers. longing to this set. Character numbers range from 0 to 3 and 32 to 127. Figure 13 shows how to proceed with the auxiliary It is binary coded into 7 bits C (0.6) - C (0.6) will pointer and the TBM and TBA commands. be loaded later into a C byte character code in Note : The main pointer may be also used. When order to display the character. sequentielly accessing slices of a given character, • A pointer to a character slice in memory is then auto incrementation is helpless. manufactured from Figure 13: Accessing a Character Slice in Memory using TBA Command. Rl Slice R2 - R3 - R4 I Z4 I Z31 Z21 C6 I C5 I C4 I C3 I C21 Y ~ I I R5 I I Zo I Zl I SN I I I Cl I CO I X + R6 I -I 1- - - - - - I ~ R7 I -- - - - - - - - I E88TS9347-15 ON-CHIP CHARACTER GENERATOR • Underline or underline cursor: foreground forced • GO and GOE are common to 40 and 80 char./row on the last slice (SN = 9). modes (Figure 14 and Figure 23). • Flash : background periodically forced on the • G10 is the standard mosa"ic set for videotex (Fi- whole window (= 0.5 Hz). The phase depends on gure 15). the negative attribute. • GOE cannot be reached from the 16 bit short • Conceal: background forced permanently on the codes (Figure 16). whole window. A concealed character neither blinks nor is underlined. DISPLAYING THE ATTRIBUTES • Negative : exchange the background and fore- 1. For normal operation, a double height and/ordou- ground color values when set. ble width character must be repeated in memory in • Coloring. two successive Y and/or X positions. The user may • Complemented cursor mode. otherwise freely mix any character size. • Insert: black color forced when required. 2. The attributes are logically processed in the follo- 3. Basic pixel shift frequency : fCLK x 2/3 = 8 to wing order: 10 MHz 19/42 81 TS9347 Figure 14 : Go Alphanumeric Character Set in 40 Character/Row Mode-TS9347. C6 0 0 0 0 1 1 1 1 C5 0 0 1 1 0 0 1 , C4 0 1 0 1 0 1 0 1 C3 C2 Cl CO o 0 a a ••••• 1111 a a a 1 1111 •• 1111 a a 1 a •• 111 •••• a a 1 1 .111111 •••• a 1 a 0 • • 1111 •••• o 1 a 1 . • 1111 ••••• a 1 1 a .111111 •••• a 1 1 1 • • • • B ••• 1 a a a ••• 11 •••• 1 a a 1 • • • • • • • • 1 a 1 a •••••••• 1 a 1 1 • • IIIIIIIIIB 1 1 0 a •••••• B. 1101 ill •• III1 •• 1 1 1 a •••••••• 1 1 1 1 • II II II II • II • E88TS~47.'6 82 TS9347 Figure 15 : Gl0 Semigraphic Character Set. MOSAIC Semi-graphic SEPARATED Semi-graphic C6 1 1 1 1 a a a a C5 a a 1 1 a a 1 1 C4 a 1 a 1 a 1 a 1 C3 C2 Cl co a a a a I. ....• •• ~II.I •...... ._. 1iIi· .... . • •. a a a a a 1 1 a •••••••• III1~a.I •••••••• b::±ttiri .~_ . a a 1 1 a a a 1 1 1 a a 1 a 1 a •••••••• II I.B I ••••••• a 1 1 a 1 a 1 0 •••••••• •••••••• 1 1 1 a 0 0 a 1 1 1 0 1 •••••••• I I III •••••• 1 1 1 1 1 1 0 0 1 0 1 0 •••••••• •••••••• ••••• 11. 1 1 1 1 •••••••• E88TS9347-17 83 TS9347 Figure 16 : GOE Extension Character Set. csJ 0 I 0 I C4 I 0 I ' J o 0 I0 0 o 0 0 I' o 0 , 1 0 o 0 I' I' o 1 0 I 0 E88TS9347-18 84 TS9347 80 CHAR / ROW CHARACTER CODES To display pages in 80 character per row format, • Short (8 bits) code: no attribute. one of two character code formats must be selec- Both formats address the on-Chip Go and GOE sets ted: (154 characters 6 x 10) sets. None allows UDS ad- • Long (12 bits) code: 4 parallel attributes dressing. Figure 17 : 80 Char/Row Character Code. Code 7 6 5 4 3 2 1 0 3 2 1 0 Set Name Location C7C6 C5 -------------- -------- !>. I\.) :0;: COMMAND TABLE (J) I\.) co Code Parameter Status Arguments W Execution Time (1 ) .Ilo Type Memo ..... 7 , 6 5 4 3 2 1 0 - AI LX m LX. R1 R2 R3 R4 RS R6 R7 - - - - Write Read Indirect IND 0 0 0 RlW - RlW 0 r , X X 0 0 0 D B A - - MP 2 3.5 40 Characters - 24 Bits 40 Characters - 24 Bits TlM TlA 0 0 0 0 , 0 0 0 RIW 0 0 1 1 X 0 0 X C C B A AP MP - 4 4 7.5 7.5 40 Characters - 16 Bits TSM 0 1 1 0 RlW 0 0 1 X X 0 A' B'- - - MP 3 5.5 40 Characters - 16 Bits TSA 0 1 1 1 RlW 0 0 1 X 0 X A' B' - AP - 3 5.5 80 Characters - 8 Bits KRS 0 1 0 0 RlW 0 0 1 X X 0 C - - - - MP 9 9.5 80 Characters - 12 Bits KRl 0 1 0 1 RIW 0 0 0 X X 0 C - A - - MP 12.5 11.5 RIW X X - - - - Byte Byte TBM TBA 0 0 0 0 , 1 1 1 RIW 0 1 -s 0 0 1 1 X 0 0 X D D - - AP MP - 4 4 4.5 4.5 Move Buffer MVB 1 1 0 1 s a a 0 0 0 W - - AP MP (2) 2 + 4.n - ~ Move Double Buffer Move Triple Buffer MVD MVT 1 1 1 1 1 1 0 1 s s s S- a a a a 0 0 0 0 0 0 W W - - - - AP AP MP MP (2) 2 + 8.n (2) 2 + 12.n - - fil~ ~UI @. Clear Page (4) - 24 Bits Cll 0 0 0 0 0 1 0 1 X X 0 C B A - - MP < 4700 (1 K code) - ~;! Clear Page (4) - 16 Bits ClS 0 1 1 0 0 1 0 1 X X 0 A' B' - - - MP < 3500 (1 K code) - ~O Vertical Sync Mask Set VSM 1 0 0 1 1 0 0 1 0 0 - - - 0 - - - - 1 - !!J1 i~O Vertical Sync Mask Reset VRM 1 0 0 1 0 1 0 1 0 0 0 - - - - - - - 1 - ~Z Increment Y INY 1 0 1 1 0 0 0 0 0 0 0 - - - - - Y - 2 - No Operation NOP 1 0 0 1 0 0 0 1 - - - - - - - - - - 1 ~ - - s, s : Source, Destination Not Affected (1) Unit: 12 clock periods (= 1 I1s) without possible suspension. 01 : Source = MP ; Destination = AP W Used as Working Register (2) n: Total Number of Words S 40 10 : Source =AP : Destination = MP X Set or Reset Buffer (3) These commands repeat TlM or KRO with Y incrementation a,a : Stop Condition I Pointer Incrementation When X overflows. When the last position is reached in a row 01 : Stop at End of Buffer D Data Y is incremented and the progress starts again on the next 10: No Stop MP Main Pointer row these command stop only. They can also be used to : Indirect Register Number AP Auxil iary Pointer initialize the page 80 char/row by writing character pairs TS9347 ABSOLUTE MAXIMUM RATINGS Symbol Parameter Value Unit Vcc' Supply Voltage 0.3 to 7.0 V Vin' Input Voltage 0.3 to 7.0 V TA Operating Temperature Range a to 70 °C T s1g Storage Temperature Range - 55 to 150 °C Max Power Dissipation . PO m With respect to Vss. 0.75 W Stresses above those hereby listed may cause per- is not implied. Exposure to maximum rating condi- manent damage to the device. The ratings are tions for extended periods may affect device relia- stress ones only and functional operation of the de- bility. Standard MOS circuits handling procedure vice at these or any conditions beyond those indica- should be used to avoid possible damage to the de- ted in the operations (sections of this specification vice. ELECTRICAL OPERATING CHARACTERISTICS Vee = 5.0 V ± 5 %, Vss = 0, Tamb = 0 to 70 'C (unless otherwise specified) Symbol Parameter Min. Typ. Max. Unit Vcc Supply Voltage 4.75 5 5.25 V V,L Input low Voltage - 0.3 - 0.8 V V,H Input High Voltage ClK (external ClK) 2.2 Vee V Other Inputs 2 Vee lin Input leakage Current - - 10 IlA VO H Output High Voltage (I'oad = 500 1lA) 2.4 V VOL Output low Voltage I'oad = 4 mA : AD (0:7), ADM (0:7) - 0.4 V I'oad = 1 mA : Other Outputs Except Y Po Power Dissipation 350 500 mW Cin I nput Capacitance 15 pF ITSI Three State (off state) Input Current - 10 IlA tstart Crystal Oscillator Start Time - - 1 ms ON CHIP OSCILLATOR TYPICAL CRYSTAL PARAMETERS • Parallel resonance fundamental mode AT CUT f = 12 to 15 MHz c, rs = 30 Q Cs = O,001pF ~ ....- - -...- - - - 0 eLK CL:S; 7pF Ct = C2 = 30 pF • XTAL E88TS9347·30 E88TS9347-31 33/42 95 TS9347 MEMORY INTERFACE Vee = 5.0 V ± 5 % Tamb = 0° to + 70 'C Clock: Duty Cycle 40 to 60 % ; t r , t f < 5 ns V 1H = 2.2 V Reference Levels: V 1L = 0.8 V and V1H = 2 V, VOL = 0.4 V and V OH = 2.4 V Ident. Fin =12MHz F = 1fT Symbol Parameter Unit Number Min. Max. Min. Max. 1 tELEL Memory Cycle Time 500 6T ns 2 to Output...QgLay Tim~om ClK Rising 60 60 ns Edge (ASM ; OE, WE) 3 tEHEL ASM High Pulse Width 120 2 T - 33 ns 4 tELOV Memory Access Time from ASM low 250 4 T - 43 ns 5 tOA Output Delay Time from elK Rising 80 80 ns Edge ADM (0, 7), AM (8,14) 6 tAVEL Address Setup Time to ASM 30 T - 49 ns 7 tELAX Address Hold Time from ASM 55 T - 21 - ns 8 tCLAZ Address off Time 80 80 ns 9 tGHOX Memory Hold Time 10 10 ns 10 toz Data off Time from OE 60 T - 19 ns 11 tGLDV Memory OE Access Time 150 2 T - 16 ns 12 tOVWL Data Setup Time (write cycle) 30 T - 49 ns 13 tWHOX Data Hold Time (write cycle) 30 T - 49 ns 14 tWLWH WE Pulse Width 110 2 T - 48 ns TEST LOAD ADM (0.7) Other AD (0.7) Outputs Except Y C 100 pF 50 pF Test RL 1 kQ 3.3 kQ point R 4.7 kQ 4.7 kQ MMD7000 or equlv. E88TS9347 -32 34142 96 TS9347 MEMORY INTERFACE TIMING DIAGRAM T elK ADMIO:71 DOUT AM18:141 DE ------------~ I LCD 0TI 1 I WE _ _ _ _ _ _ _ _ _ _ _ _ _ _-=®~2i---j~' I I~® . F, ~'---.----';I I ® I E88TS9347-33 35/42 97 TS9347 MICROPROCESSOR INTERFACE TS9347 is MOTEL compatible. It automatically se- TS9347 6801 INTEL Family lects the processor type by using AS input to latch to state of the OS input. Timing 1 Timing 2 AS AS ALE No external logic is needed to adapt bus control si- gnals from most of the common multiplexed bus O~ .c OS, E",. 2 RO RIW R/W WR microprocessors. MICROPROCESSOR INTERFACE TIMING AD (0:7), AS, OS, RiW, CS Vcc = 5.0 ± 5 %, TA = 0° to 70°C, C L = 100 pF on AD (0 : 7) Reference Levels: V 1L = 0.8 V and V 1H = 2 V on All Inputs; VOL = 0.4 V and V OH = 2.4 Von All Outputs. Ident. Number Symbol Parameter Min. Typ. Max. Unit 1 tCYC Cycle Time 400 ns 2 tASD DS Low to ASJ::iigh (timing 1) 26 - ns DS High or RIW High 10 AS High (timing 2) 3 tASED AS Low to DS High (timi!}g 1) 30 - - ns AS low to DS LOw or RIW Low (timing 2) 4 tPWEH Write Pulse Width 200 - ns 5 tPWASH AS Pulse Width 93 - - ns 6 tRWS RIW to DS Setup Time (timing 1) 100 ns 7 tRWH RIW to OS Hold Time (timing 1) 10 ns 8 tASL Address and CS Setup Time 20 ns 9 tAHL Address and CS Hold Time 20 ns 10 tosw Data Setup Time (write cycle) 100 ns 11 tOHW Data Hold Time (write cycle) 10 - - ns 12 tOOR Data Access Time from DS (read cycle) - 150 ns 13 tOHR DS Inactive to high Impedance State Time 10 - 63 ns (read cycle) 14 tACC Address to Data Valid Access Time 300 ns 36142 98 TS9347 MICROPROCESSOR INTERFACE TIMING DIAGRAM 1 (6801) DS AS R/W WRITE CYCLE AD 1 0 : 7 ) - - - - - - - - - - < INPUT DATA @ READ CYCLE DUTPUT AD ( 0 : 7 ) - - - - - - - - - < DATA 1"----->1" ® E88TS9347 -34 MICROPROCESSOR INTERFACE TIMING DIAGRAM 2 (INTEL type) READ CYCLE READ CYCLE AO(O:7)--------------{ 'ACC E88TS9347 -35 37/42 ~ SGS·nlOMSON ~"I fl:jJn©Ii\I@~~~IiI@llln©@ 99 T59347 WRITE CYCLE ADIO:1) --------------< E88TS9347-36 VIDEO INTERFACE R.G.B.I. Vee 5.0 V ± 5 % Tamb 0 0 to + 70 'C ClK Duty Cycle 50 %. C l 50 pF Reference levels: Vil = 0.8 V and V 1H = 2.2 Von ClK Input VOL - 0.4 V and VOH - 2.4 V All Outputs Parameter Output Delay from elK Edge ~ eLK to to R.G.B,I, 40 char/row X 0: to R,G,B,I. 80 char/row to X X to HVS >< E88TS9347 -37 38142 100 TS9347 INPUT ClK (case of external ClK generation) tpWCH elK Reference level VIL = 0.8 v, VIH = 2.2 V E88TS9347 -37 INPUT ClK (case of internal oscillator - fin = 12M Hz) tWCOH CLKOUT L ~ I ~c0f-- tleo L tWCOL J Refmence level VOL:;:- 0.4 V, VOH ':;: 2.4 V E88TS9347-37/1 Symbol Parameter Min. Max. Unit tPWCH ClK High Pulse Width 25 ns tpWCl ClK low Pulse Width 25 ns tre, tfc ClK Rise and Fall Time 10 ns tWCOH ClKOUT High Pulse Width 20 ns tWCOl ClKOUT low Pulse Width 20 ns t reo , tfco ClKOUT Rise and Fall Time 20 ns Y OUTPUT: Composite luminance. REFERENCE lEVEL Vooc = Voo = 5 V; Vssc = Vss = 0 V G R B Signal level 0 0 0 SYNC 0.06 V 0 0 0 BLACK 0.50 V 0 0 1 BLUE 0.80 V 0 1 0 RED 0.92 V 0 1 1 MAGENTA 1.03 V 1 0 0 GREEN 1.15 V 1 0 1 CYAN 1.26 V 1 1 0 YEllOW 1.38 V 1 1 1 WHITE 1.50 V 39/42 101 TS9347 ELECTRICAL SPECIFICATION Over Full Temperature Range: V DDC = V DD = 5 V (see note 1) Vssc = Vss = OV; C L = 20 pF, RL > 100 Kto Vss or Voo Parameter Min. Typ. Max. Unit Monotonicity Guaranteed Output Level Dispersion 10 50 mV Propagation Delay (clock edge to 50 % output) 60 ns Rise and Fall Time (10 - 90 %) 30 ns Output Static Impedance 600 Q Note: 1.The DAC is a 9 output potentiometric divider: therefore, each voltage variation on Vooc is repercuted on the output with the same relative value with respect to Vssc. TYPICAL APPLICATION TEST CONDITION +5V Y 0--.------, CL = '10 ,,1- 68 !2 HL=1001<..U TS9347 vQ--+-I vss (VSSC) E88TS9347-38 E88TS9347 -39 40/42 102 < m =I ('; l> r- l> HORIZONTAL SYNCHRO 168T Z C 54T ::J: HVS __________________~ o ___;_~ye~f~~l!!.~I~J N XI o ~ J84T r- R,G,a,1 Bulk H blanking en 40 char Jrow 480T -< z 80 char .trow 480T o ::J: XI ~ o y Z !!:CII I~ VERTICAL SVNCHRO NQNINTERLACED ~ oz ~:i! 312 lines Ii HVS, Y g -I ~IS "tJ !2z c: ul INTERLACED Evenfl'1lJlle I -I ~ ~I- HVS,Y I Qddframe ----------------------------------~ VS (IN STATUS) ~ 312.51i~ J m 00 00 .... ffl w -I (J) :!:l ...... .j>. ... ID to) I~ 0 ~ 0 W ..... TS9347 PACKAGE MECHANICAL DATA 40 PINS - PLASTIC DIP mm 15.24 (2) .. (1) Nominal dimension (2) True geomet!"ical pO"iition Or 20 I 53 max. 40 pms 44 PINS - PLASTIC LEADED CHIP-CARRIER 16 10 16,662 ~ 17,65 0661 0.812 44 Outputs --M.L 0331 min. 0.533 42142 Gi SGS·THOMSON ~I Ii1Aln©[ffi@~~rn©'U'[ffi@llIn©® 104 GRAPHICS CONTROLLERS 105 EF9365 EF9366 MOS GRAPHIC DISPLAY PROCESSOR (GDP) • SELECTABLE RESOLUTIONS IN BLACK AND WH ITE OR COLOR: EF9365: 512 x 512 (interlaced scan) 256 x 256,128 x 128, 64 x 64 (non interlaced scan) EF9366 : 512 x 256 (non interlaced scan) • HIGH SPEED VECTOR PLOT WELL SUITED TO ANIMATION (up to 1 500000 dots/so and an average value of 900 000 dots/s.) 4 TYPES OF LINES. • MULTIPLEXED ADDRESS AND REFRESH FOR 16 K OR 64 K DYNAMIC RAMs • NO LIMITATION ON THE NUMBER OF SELEC- P TABLE MEMORY PLANES (colors, grey levels DIP 40 or any other attributes) (Plastic Package) • MULTIPAGE APPLICATION CAPABILITY • ON-CHIP FULL ASCII CHARACTER GENER- ATOR (96) MAXIMUM ALPHANUMERIC ORDER CODE: EF9365P SCREEN DENSITY: 85 x 57 - PROGRAMMA- EF9366P BLE SIZES AND ORIENTATIONS • DIRECT INTERFACING WITH THE MONITOR THROUGH THE COMPOSITE SYNCHRO AND BLANKING SIGNALS • AUTOMATIC ALLOCATION OF DISPLAY ME- MORY IN REFRESH, WRITE, DUMP, AND DIS- PIN CONNECTIONS PLAY CYCLES • LIGHT PEN REGISTERS AND CONTROL SI- GNALS • THREE TYPES OF INTERRUPT REQUESTS • FULLY STATIC DESIGN CK vee OAD5 DAD1 • TTL COMPATIBLE I/O OA04 DAD2 • SINGLE + 5 VOLT SUPPLY. OA03 DADO OAD6 MSLl MSLO MSL3 MSL2 SYNC FMAT R DO AO 01 A1 02 A2 03 A3 04 DESCRIPTION IRO 05 The GOP is a true high resolution graphic display ow 06 DIN 07 processor, which contains all the functions required VB BLK to process vector generation at a very high speed E WHITE and to generate all the timing signals required for in- RtW WO MFREE ALL terfacing interlaced or non interlaced video data on vss LPCK a raster scan CRT display compatible with the CCIR 625 line 50 Hz standard. The GOP flexibility results from its direct interfaCing E88 EF9365-01 with any 8 bit MPU bus and its 11 internal registers. December 1988 1/29 107 EF9365·EF9366 TYPICAL APPLICATION ADDRESS BUS IA.81. _ _ _- - - - - DATA BUS 10.81 4 8 , I I I I J i ----h, L----'=::;:~;¥=FF", ,.; . . . nL - - - -.. , I I ~~~L-~~ I I I I I ----I, VIDEO I _!:'! G> ::c » s: !Tvl MSLO to Address MSL3 controller DO to 07 and buffers ~ DADO ~~ ~'" @. [ei! ~o iiill: <,,'" ~O ~z .. E RIW AOto A3 Decoding rr'" and control ALL m VB '"'"m "T1 '"'" m '" 8'" "T1 <0 W 0'1 If m "T1 <0 W 0'1 o 0'1 CD EF9365-EF9366 GENERAL DESCRIPTION Developed using NMOS technology, the GDP is an Nevertheless, where direct exchange between the intelligent raster scan video display controller, fully microprocessor and the memory is necessary, the programmable via an eight-bit microprocessor bus. on-chip allocation controller will allow this exchange Besides all the timing logic functions required to ge- without display interference. nerate the video, sync and blanking signals, the The GDP is programmable using 11 intemal regis- GDP includes two hardwired display processors: a ters occupying 16 consecutive addresses. These vector and a character generator. registers can also be modified by the GDP's hard- This unique feature allows an ultrafast screen wri- wired processors while a command is being execu- ting speed (the 512 dot diagonal may be written in ted. less than 700 ~) at almost no microprocessor pro- Note: A summary of data codes and registers is gi- cessing cost. ven in the Register address table. Hexadecimal va- The GDP is particularly well-suited to all applications lues are subscripted 16 and the register bits are in which the display memory is not directly addres- numbered as follows: sed by the MPU. This feature allows a total asyn- chronism between the MPU and the GDP memory cycles and preserves the whole MPU memory ad- dressing space. ABSOLUTE MAXIMUM RATINGS Symbol Parameter Value Unit Vee Supply Voltage - 0.3 to + 7.0 V Vin Input Voltage - 0.3 to + 7.0 V TA Operating Temperature o to + 70 cC T stg Storage Temperature - 55 to + 150 cC The GDP inputs are protected against high static voltages and electric fields; nevertheless, normal precautions should be taken to avoid voltages above the limit values on this high impedance circuit. STATIC ELECTRICAL PARAMETERS 01ee = 5 V ± 5 %, Vss = 0, TA = 0 to 70 'C unless otherwise noted) Symbol Parameter Min. Typ. Max. Unit VIH Input Hgih Voltage Except CK Vss + 2.2 Vec V VIHCK Input High Voltage CK Vss + 3.5 Vcc V VIL Input Low Voltage Vss - 0.3 Vss + 0.8 V lin Input Leakage Current (V in = 0 to 5.25 V, Vcc = max) 1.0 2.5 f,lA V OH Output High Voltage (iload = - 100 ~A, Vce = min) Vss + 2.4 V VOL Output Low Voltage (iload = 1.6 mA, Vec = min) - Vss + 0.4 V Ice Supply Current t 80 mA Cin Capacitance (V in = 0, T A = + 25 cC, f = 1.0 MHz) 12 pF C out 12 pF 4/29 110 EF9365-EF93titi DYNAMIC OPERATING CONDITIONS (VDD = 5.0 V ± 5 % ; TA = 0 to + 70 "C unless otherwise noted) Symbol Time (n5) Min. Max. tCK Clock Period 560 tCLK CK Pulse Width, Low 330 tCKH CK Pulse Width, High 190 CKLDAD CK Low to Valid DAD 320 CKHDAD CK High to Valid DAD 180 CKLSYNC CK Low to Valid SYNC 300 CKLBLK CK Low to Valid BLK 310 CKLVB CK Low to Valid VB 500 CKLALL CK Low to Valid ALL 300 CKLMSL CK Low to Valid MSL 300 CKLDW CK Low to Valid OW 310 CKLMFR CK Low to Valid MFREE 500 CKLDIN CK Low to Valid DIN 310 CKLlRQ CK Low to Valid IRQ 1500 CKLWHI CK Low to Valid WHITE 530 tEL E Pulse Width, Low 450 tEH E Pulse Width, High 430 tAS Address Pre-Setup Time 160 tAH Address Hold Time 10 tDSW Data Pre-Setup Time (write) 260 tDDR Data Setup Time (read) 320 tDHR Data Hold Time (read) 10 tlR IRQ Release Time 1600 LPHW LPCK High to WHITE High (if command 0816) 1600 LPHIRQ LPCK High to IRQ Low 1600 tPCKH LPCK High Hold Time 150 t, CK and E Rise Times 20 tf CK and E Fall Times 20 5/29 111 EF9365-EF9366 CLOCK AND OUTPUT CHARACTERISTICS , CK 3.5V CK 3.5V 1 2.2V ~_ _ _~ ~2V CK E I ~0.8 V I I 0.8 VA I I \ L -_ __ 4-+- If +t-o Outputs \'------ EBB EF9365·05 IRQ RELEASE TIME 2.211 E I tlR I I·~·~----~·~~------------- IRQ I ------------------~I--------~ J24V I EBB EF9365·06 MICROPROCESSOR BUS, WRITE ACCES tEL ___________ ~ i••- - -'EH - - - - -__ . I I I ~ ~ tAH AO ... A3 R/W I K '05W 00 ... 07 EBB EF9365·07 6/29 112 EF9365-EF9366 MICROPROCESSOR BUS, READ ACCESS tEL AO. A3 R/W tOOR DO ... D7 E88 EF9365-08 SYNCHRONOUS SIGNALS WITH CK INPUT 'eK eK DAD SYNC BLK VB ALL MSL OW MFREE ~ IRO WHITE E88 EF9365-09 LIGHT PEN SIGNALS tLPCKH LPCK --f lPHW I \'----- I~_ ~"'"O ~'- WHITE I IRQ _____________ E88 EF9365-1 0 7/29 113 EF9365-EF9366 PIN DESCRIPTION Power supplies Vee Display memory controL I ~ -----j MF'REE __- - - j DO, .07 AO, .A3 M.croprocessor bu, MSLO R/W to MSL3 EF9365 ____ E Display memory EF9366 iRa addreSliing DADO to OAD6 AIL ~LPCK Synchromzing SYNC Light pen "d BLK control blanking VB JJL Clock Operating parameters E88 EF9365-11 • FMAT should be connected to Vee in the EF9366. POWER SUPPl V, CLOCK AND OPERATING PARAMETERS Name Pin N° Function Description Type Vss S 20 Power Supply Ground Vee S 40 Power Supply +5V CK I 1 Clock Master Clock. All internal processor states are modified on the falling edge of this signal. The whole circuit logic is static and the cycle of this clock needs only to be ajusted according to the shape and accuracy the synchronizing signals should feature. DAD Memory Address Multiplexing Signal. If CK is low, low addresses (or row addresses for the memory) are those that are output on DAD. For SYNC to be in compliance with the applicable CCIR standards (FMA T high) the input frequency on CK should be 1.750 MHz. If FMAT is low or for the EF9366, the frame frequency equals 50 Hz provided that the input frequency on CK is 1.7472 MHz. FMAT I 8 Format EF9365 should be connected to Vcc for a 512 line vertical resolution (interlaced scan) and to Vss for 256 lines or less (non-interlaced scan). The shape of the synchronizing signals, the address distribution on DAD and the MSL output functions are changed by this input. EF9366 : not used (should be connected to Vcc). WO I 23 Write Only When WO is high, memory refresh nor display no longer exist. The hard wired write proccessors may operate without being interrupted. The ALL signals is always high. 8/29 114 EF9365-EF9366 SYNCHRONIZING AND BLANKING SIGNALS Sync 0 34 Video Monitor Video Monitor Line and Frame Sync Signal. Synchronizing The SYNC signal complies with CCIR 625-line 50 Hz standard provided the CK frequency is 1.750 MHz and FMAT is high. If FMAT is low or for the EF9366, the frames are no longer interlaced and all comprise 312 lines. This output is not affected by the WO input and CTRL 1 register. BLK 0 25 Blanking This signal is high apart the display window (writing or refresh). It is always high if bit 2 in register CTRL 1 is high, but it is not affected by the WO input. VB 0 16 Vertical Blanking This signal is not affected by WO and register CTRL 1. High during vertical blanking. DISPLAY MEMORY ADDRESSING SIGNALS DADO 0 37,39, Display Address Addresses that are multiplexed by the CK signal. Provided for the to 38, 4 Automatic Refresh of the 16 K or 64 K Dynamic Memories. DAD6 3, 2, 5 MSLO 0 6, 36 Memory Select Pixel write select signals to (see section: display memory configuration). MSL3 7, 35 ALL 0 22 Access to all This signal makes it possible to discriminate between the collective Memory Units memory accesses to all chips (display, refresh or erease), and the memory accesses to a single pixel for a vector or character writing purposes. This signal is low for collective access. DISPLAY MEMORY CONTROL SIGNALS DIN 0 15 Display In Selection of the memory data code corresponding to the display screen in the 'off' condition (active when high). For a black-and-white display (1 bit per pixel), DIN may directly be the storage entry data. DW 0 14 Display Write Display memory write signal. Active when Low MFREE 0 19 Memory Free Signal low during the next memory idle period following the OF 16 command. This signal allows exchanges between the microprocessor and the X and the Y flagged memory segment without affecting the display. MICROPROCESSOR BUS SIGNALS DO-D7 I/O 33 Data Bus I/O buffers..Qpening is controlled through E, and the related direction to through R/W. 26 AO/A3 I 9 Address Bus Address of the register involved in microprocessor access. to 12 RIW I 18 Read/Write Read/Write Signal. Write when Low. Signal E I 17 Enable Bus exchange synchronizing and enabling signal. IRQ 0 13 Interrupt Interrupt request towards the microprocessor, programmable through Request register CTRL 1. Open Drain Output 9/29 115 EF9365·EF9366 LIGHT PEN OPERATING SIGNALS WHITE 0 24 Forcing to White Forces white level on video signal, for use of the light pen. Level Active when Low. LPCK I 21 Light Pen Light Pen Input. When the mechanism is set, a rising edge loads into Strobe registers XLP and YLP the current display address and sets the XLP register's LSB high. REGISTER DESCRIPTION X AND Y REGISTERS (Addresses: 816, 916, A16, B16) MSB P Q LSB The X and Y registers are 12-bit read-write regis- ters. They indicate the position of the next dot to be Each symbol can be increased by a factor P(X) or written into the display memory. They have no Q(Y). These factors are independent integers which connection at all with the video signal generating may each vary from 1 to 16 and which are defined scan, but they point the write address, in the same by the CSIZE register. The symbol generation se- way as the pen address on a plotter. quence is started after writing the ASCII code of the These 2 registers are incremented or decremented, symbol to be represented in the CMD register. prior to each write operation into the display memo- CTRL 1 REGISTER (Address: 116). ry, by the internal vector and character generators, or they may be directly positioned by the micropro- The CTRL1 register is a 7-bit read-write register, cessor. through which the general circuit operation may be This 2 x 12 bit write address covers a 4096 x 4096 fed with the required parameters. point addressing space. Only the LSBs are used Bit 0 : When low, this bit inhibits writing in display here, since the maximum definition of the picture ac- memory (equivalent to pen or eraser up). tually stored is 512 x 512 pixels (picture elements). When high, this bit enables writing in display The MSBs are either ignored or used to inhibit wri- memory (pen or eraser down). ting where the actual screen is regarded as being a This bit controls the OW output. window within a 4096 x 4096 space. Bit 1 : When low, this bit selects the eraser. The above features along with the relative mode When high, this bit selects the pen. description of all picture component elements make This bit controls the DIN output. it possible to automatically solve the great majority Bit 2 : When low, this bit selects normal writing mode of edge cut-off problems. (writing apart from the display and refresh pe- riods, which are a requirement for the dyna- DELTAX AND DELTAY REGISTERS (Addres- mic storages) in display memory. ses : 516,716). When high, this bit selects the high speed wri- The DELTAX and DELTAY registers are 8-bit read- ting mode: the display periods are deleted. write registers. They indicate to the vector generator Only the dynamic storage refresh periods are the projections of the next vector to be plotted, on retained. the X and Yaxes respectively. Such values are un- Bit 3 : When low, this bit indicates that the 4096 x signed integers. The plotting of a vector is initiated 4096 space is being used (the 12 X and Y bits by a write operation in the command register (CMD). are significant). When high, this bit selects the cyclic screen CSIZE REGISTER (Address: 316) operating mode. The CSIZE register is an 8-bit read-write register. It Bit 4 : When low, this bit inhibits the interrupt trigge- indicates the scaling factors of X and Y registers for red by the light pen sequence completion. the symbols and characters. 98 characters are ge- When high, this bit enables the interrupt. nerated from a 5 x 8 pixel matrix defined by an in- ternal ROM. In the standard version, it contains the Bit 5 : When low, this bit inhibits the interrupt release alphanumeric characters in the ASCII code which by vertical blanking. may be printed, together with a number of special When high, this bit enables the interrupt. symbols. 10/29 116 EF9365-EF9366 Bit 6 : When low, this bit inhibits the interrupt indica- When high, this bit indicates that the circuit is ting that the system is ready for a new com- ready for a new command. mand. Bit 3 : When low, this bit indicates that the X and Y When high, this bit enables the interrupt. registers point within the display window. Bit 7 : Not used. Always low in read mode. When high, this bit indicates that the X and Y registers are pointing outside the memory dis- CTRL2 REGISTER (Address: 216) play. The CTRL2 register is a 4-bit read/write register, This bit is the logic OR of the unused MSBs through which the plotting of vectors and characters of the X and Y registers. may be denoted by parameters. Bit 4 : When high, this bit indicates that an interrupt Bit 0, 1 : These 2 bits define 4 types of lines (conti- has been initiated by the completion of a light nuous, dotted, dashed, dash-dotted). pen running sequence. Such an interrupt is enabled by bit 4 in CTRL 1 register. Bit 2 : When low, this bit defines straight writing. When high, it defines tilted characters. Bit 5 : When high, this bit indicates that an interrupt has been initiated by vertical blanking. Such Bit 3 : When low, this bit defines writing along an ho- an interrupt is enabled by bit 5 in CTRL 1 re- rizontal line. gister. When high, this bit defines writing along a ver- tical line. Bit 6 : When high, this bit indicates that an interrupt has been initiated by the completion of exe- Bit 4, 5, 6, 7 : Not used. Always low in read mode. cution of a command. Such an interrupt is en- CMD COMMAND REGISTER (Address: 016) abled by bit 6 in CTRL1 register. The CMD register is an 8-bit write-only register. Bit 7 : When high, this bit indicates that an interrupt Each write operation in this register causes a com- has been initiated. It is the logic OR of bits 4, mand to be executed, upon completion of the time 5 and 6 in STATUS register. The IRQ output necessary for synchronizing the microprocessor ac- state is always the opposite of the status of cess and the GDP's CK clock. this bit. Several types of command are available: Note: Bits 4, 5, 6 and 7 are reset low by a read _ vector plotting of the STATUS register. character plotting XLP AND YLP REGISTERS (Addresses C16 and screen erase D16) light pen circuitry setting access to the display memory through an exter- The XLP and YLP registers are read-only registers, nal circuitry. with 7 and 8 bits respectively. Upon completion of a indirect modification of the other registers (com- light pen running sequence, they contain the display mands that make it possible for the X, Y, DEL- address sampled by the first edge appearing rising TAX, DELTAY, CTRL 1, CTRL2 and CSIZE re- on the LPCK input. The use of such registers is dis- gisters to be amended or scratched). cussed in section: Use of light pen circuitry. Notes : 1. All internal registers may be read or STATUS REGISTER (Address 016) written at any time by the microproces- The STATUS register is an 8-bit read-only register. sor. However, the precautions outlined It is used to monitor the status of the executing sta- below should be observed: tements entered into the circuit, and more specifi- _ Do not write into the CMD register if cally to avoid the need for modifying a register that execution of the previous command is already used for the command currently execu- is not completed (bit 2 of STATUS ting. register). Bit 0 : When low, this bit indicates that a light pen se- _ Do not alter any register if it is used quence is currently executing. as an input parameter for the inter- When high, it indicates that no light pen se- nal hardwired systems (e. g. : modi- quence is currently executing. fying the DEL TAX register while a vector plotting sequence is in pro- Bit 1 : This bit is high during vertical blanking. It is gress). the VB signal recopy. _ Do not read a register that is being Bit 2 : When low, this bit indicates that a command asynchronously modified by the in- is currently executing. ternal hardwired systems (e. g. : rea- 11/29 117 E F9365-E F9366 ding the X register while a vector command for the first time, it is neces- plotting sequence is in progress may sary to wait until all functions cu rrently be erroneous if CK and E are asyn- underway are completed, which infor- chronous). mation can be derived from the STA- Note: 2. On powering up, the writing devices TUS register. may have any status. Before entering a SYSTEM OPERATING PRINCIPLE DISPLAY MEMORY CONFIGURATION Assume a V x H pixel picture. Assume that each b planes pixel is able to adopt 2b different states. A V x H x b bit display memory is thus required. In those applications where H features a high value, the video signal frequency exceeds the maximum 1 pixel frequency of memory read access. denoted by Example: H = 512 with a television line frequency: v ( b bits the pixel succession period on the video signal is 70 X ns. X X It is mandatory that a line of H dots be cut into h ad- bbits joining segments of n bits each, read at the same time in the display memory, and thereafter conver- ted to serial form to produce the video signal. h me- mory accesses per line are necessary. Each access loads b n-bit shift registers. The memory contains V .. H E88 EF9365·12 x h x b n-bit words. ,. b memory planes 1 through V x h address GOP 1 memory plane = V x h "-bit words -- Dot frequency clock Video signal b n·bit on b bits shift registers E88 EF9365·13 12/29 118 EF9365-EF9366 EF9365 SIGNALS OUTPUT THROUGH THE DAD AND The EF9365 circuit is designed to accomodate the MSL PINS following picture formats: The internal counters which address the display me- _ 1.V=H=5120ralowerof2 mory are made up of : _ 2. h = 64 _ 6 horizontal address bits (h = 64) _ 3. n = 8, 4, 2 or 1 ho, h1, h2, h3, h4, h5 _ 4. Any value for b (the addressing is similar for all _ 9 vertical address bits (V S; 512) memory planes. These planes are managed out- t, Va, V1, V2, V3, V4, V5, V6, V7 side the actual ci rcuit). t is here the LSB. It denotes the line parity and Circuit operation in the various formats outlined changes every frame because of interlaced scan. above occurs as described below: Within a same frame, Va denotes the LSB. = = 512 x 512 pixel format (V 512, h 64, n 8). = The write address is made up of the 9 LSBs of the The FMAT input should be high. The memory is X and Y internal registers. made up of V x h bytes = 32 K bytes per memory Xo, X1, X2, X3, X4, X5, X6, X7, Xs plane. Yo, Y1, Y2, Y3, Y4, Y5, Y6, Y7, Ys The byte address is made up of 15 bits: The display address and write address are cross- _ 14 are output in 2 runs on the DAD pins for the referenced as follows: purpose of using 16 K x 1 bit dynamic RAMs, _ the 15th one is output on pin MSL3. The 3 MSLO, 1 and 2 outputs allow to select one EF9365 pixel out of the 8 featuring the same address, for pixel-to-pixel write applications. They issue the FMAT = 1 number of the involved pixel, encoded on 3 bits. = = 256 x 256 pixel format (V 256, h 64, n 4). = The FMAT input should be low. The memory is made up of V x h x n bits, i. e. 16 K 4-bit words. The address of a 4-bit word is made up of 14 bits, which are output in 2 runs on the DAD pins. FMAT = ° Each of the 4 MSL pins is used to select one pixel in a 4-bit word for writing purposes. The 2 LSBs in the horizontal writing address are decoded before being output on the MSL pins. Such outputs are ac- EF9366 tive when low. Format less than 256 x 256 pixels (V = 128 or 64, h = = 64, n 2 or 1). Such formats are achieved in the same way as for the 256 x 256 pixel format discussed above. Unre- quired address bits are output on DAD? DAD AND MSL OUTPUT STATUS TABLES EF9366 EF9365 The EF9366 circuit is designed to accomodate a FMAT = 1 = (512 x 256) picture format: V 256, H 512, h= = 64, n = 8, b = any value. MSL DAD The memory is made up of 16 K bytes per memory ALL CK 0 1 2 3 0 1 2 3 4 5 6 plane. The byte address is made up of 14 bits which 0 0 h5 h4 h3 h2 h1 ho Vo are output in two runs on the DAD pins. The 3 MSLO, Xo X1 X2 V1 MSL 1, MSL2 outputs are used to select one pixel 0 1 V7 V6 Vs V4 V3 V2 t out of the 8 featuring the same address. They issue 1 0 Xa X7 X6 Xs X4 X3 Y1 the number of the pixel, encoded on 3 bits. MSL3 is Xo X1 X2 Y2 1 1 Ya Y7 Y6 Ys Y4 Y3 Yo high, and is not used. 13/29 119 EF9365-EF9366 EF9365 EF9366 FMAT = 0 MSL DAD MSL DAD ALL CK 0 1 2 3 0 1 234 5 6 ALL CK 0 1 2 3 0 1 234 5 6 0 0 1 hs h4 h3 h2 h1 ho Vo 0 0 hs h4 h3 h2 h1 ho Vo 0 1 1 V7 V6 Vs V4 V3 V2 V1 0 0 0 0 XiJ X1 X2 0 1 V7 V6 Vs V4 V3 V2 V1 1 0 1 Xs X7 X6 Xs X4 X3 Yo 1 0 Xo and X1 X7 X6 Xs X4 X3 X2 Yo 1 1 1 Y7 Y6 Ys Y4 Y3 Y2 Y1 1 1 decoded Y7 Y6 Ys Y4 Y3 Y2 Y1 (active low) If FMAT is high, the 128 refresh accesses are exe- During vertical blanking, such a refresh is achieved cuted at 2 line intervals, for only one half of the me- using 4 lines at 16 line intervals. mory, the 32 K-bytes being split into two 16 K-byte If FMAT is low or for the EF9366 : the 128 refresh blocks. The V1 output on MSL3 is used to switch accesses are executed at 2 display line intervals. over from one block to the other at 2 line intervals. MEMORY OPERATION SEQUENCE ALONG ONE FRAME Apart from the window where the memory is used for display purposes exclusively, write operations may be performed, except during 3 refresh periods. R Vertical blanking R D : display Display w period D W : write R : refresh Vertical blanking R EBB EF9365·14 The three period types, D, Wand R, respectively, refresh cycles of 4 lines each are executed du- are indicated outside the circuit through the BLK and ring one frame. ALL signals: _ As long as the WO input is high, the circuit is set to write mode, and BLK retains the same outline BLK ALL as it has under normal operating conditions. D 0 0 Inthese two cases, executing codes 0416,0616,0716 W 1 1 and OC16 triggers a complete D sequence for a R 1 0 highs peed scan of all addresses. This lasts two frames if FMAT is high or one frame if FMAT is low Exceptions: and for the EF9366 version. _ If bit 2 in register CTRL 1 is high (high speed write), the display period is suppressed and 19 14/29 a...,I SCS-THOMSON ~ [lIj)U©IiI@rn~reii"Iiil@I!lU©® 120 -n JJ » ~ m (fJ ~ c m z () m FMATO Y register value, prior to the plotting operation. Projections into the axes are defined as absolute va- lues by the DELTAX and DELTAY registers, with the Llo 1 DELTAXignored,DELTAY>O sign in the command byte that initiates the vector lODELTAXignored,DELTAYO Y = 7510 CTRL 1 = 0316 Pen down. DELTAX= 1710 CTRL2 = 116 Dotted vector: 2 dots on, Projection: { 2 dots off. DELTAY = 1310 Plotting cycle sequence: (it is assumed that the vector generator is not interrupted by the display or re- fresh cycle). u I II I I I I I I I I I I I I I I I I I I I I I I I I I CK x y II I I I I I I I I I I I I I IIJIIJ I I I I I I I I I ~~~~~~U~"~~~~D.V.~~Dnn~~~~~ ",. 15"" 15 1& n n "B 19 .. au 81 82 B4 I 85 Bol .. B1 BBIB' BB B8" I I I I ------.1 Bit 2 of STATUS IIIII IIIIIIIIIIII IIIIII IIII IRa if bit6 ofCTAL=l IIIIIIIIIIIIIIIIIIIII I I I" Actual plot Sym;: Initialization EBB EF9365-19 18/29 124 EF9365-EF9366 y ~ End """{IIIII~~!f.--",.,~~:~,.M:~~. '"_. • o unmodified dOl dot on ____~~LU~LULU~LU~-----------X E88 EF9365-20 Nole: Plotting a vector with DELTAX = DELTAY = 0 writes the dot X, Y in memory. It occupies the vector generator for synchronization, initia- lization and one write cycle. CHARACTER AND SYMBOL GENERATOR Scaling factors The character generator operates in the same way Each individual dot in the 5 x 8 basic matrix may be as the vector generator, i. e. through incrementing replaced by a P x Q size block. or decrementing the X, Y registers, in conjunction P : X co-ordinate scaling factor with a DW output control. Q : Y co-ordinate scaling factor It receives parameters from the CSIZE, CTRL2 and The character size becomes 5 P x 8 Q. Upon com- CMD registers. The characters plotted are selected, pletion of the writing process, X is incremented by 6 according to the CMD value, out of 98 matrices (97 P. The CK clock cycle count required is 6 P x 8 Q. 8-dot high x 5-dot wide rectangular matrices, and one 4 dot x 4 dot matrix) defined in an internal ROM. P and Q may each take values from 1 through 16. Two scaling factors may be applied to the charac- They are defined by the CSIZE register. Each value ters plotted using X and Y defined by the CSIZE re- is encoded on 4 bits, value 16 being encoded as 016. gister. The characters may be tilted, according to In register CSIZE, P is encoded on the 4 MSBs and the content of register CTRL2. Q on the 4 LSBs. Among the 97 rectangular matrices available in the Basic matrix standard ROM, 96 correspond to CMD values ran- Upon completion of a character writing process, the ging from 2016 to 7F16, and the 97th matrix to OA16. X and Y registers are positioned for writing a further In the standard version, these values correspond to character next to the previous one, with a 1 dot spa- the 96 printable characters in the ASCII set. The cing, i. e. Y is restored to its original value and X is 97th character is a 5 P x 8 Q block which may be incremented by 6. used for deleting the other characters. The 98th code (OB16) is used to plot a 4 P x 4 Q gra- phic block. It locates X, Y, without spacing for the next symbol. Such a block makes it possible to pad uniform areas on the screen. ~ o Modified dots Origin I ' \ End x Computed dot not defined in o • Unchanged Altered dots } jf CMD ~ 41 16 (in the ROM ROM (not modifiable) standard version) x Computed dots. not defined into the ROM (not modifi- Origin End able). E88 EF9365-21 E88 EF9365-22 19/29 125 EF9365-EF9366 Tilted characters a status signal which is reset to the low state by rea- ding register XLP or YLP. All characters may be modified to produce tilted cha- racters or to mark the vertical co-ordinate with The rising edge first received (LPCK or VB) sets bit straight or tilted type symbols. Such changes may oin STATUS register high. An interrupt is initiated if be achieved using bits 2 and 3 in register CTRL2. bit 4 bin CTRL 1 is high. Note: Scaling factors P and Q are always applied When commands 0816 or 0916 have been decoded, within the co-ordinates of the character be- bit 2 of the status register goes high (circuit ready fore conversion. for any further command) and bit 0 goes low (light pen operating sequence underway). Character deletion SCREEN BLANKING COMMANDS A character may be deleted using either the same command code or command code OA16. In either Three commands (0416, 0616, 0716) will set the case, bit 1 in register CTRL 1 should be inverted, the whole display memory to a status corresponding to origin should be the same as prior to a character a "black display screen" condition. Another com- plotting operation, as should the scaling factors. mand (OC16) may be used to set the whole memo- ry to a status other than black (this condition being Note: Vector generator and character generator determined by bit 1 in register CTRL 1). operate in similar ways: The 4 commands outlined above use the planned Vector Character scanning of the memory addresses achieved by the Dimensions DELTAX, DELTAY CSIZE, tilting display stage. The X and Y registers are not affec- ted by commands 0416 and OC16. Hence, the time DW Modulation Type of Line Character Code required is that corresponding to one frame (EF9366 or FMAT low) or two frames (FMAT high). USE OF LIGHT PEN CIRCUITRY The time corresponding to the completion of the A rising edge on the LPCK input is used to sample frame currently executing when the CMD register is the current display address in the XLP and YLP re- loaded, should be added to the above time. gisters, provided that this edge is present in the For the screen blanking process, the frame origin is frame immediately following loading of the 0816 or counted starting with the VB falling edge. 0916 code into the CMD register. The only signals affected here are the OW output, Here, the frame origin is counted starting with the which remains low when VB is low, and the DIN out- VB falling edge. With code 0816, the WHITE output put which is forced high where the 0416, 0616 and recopies the BLK signal from the frame origin up to 0716 commands are entered. the rising edge on the LPCK input, orwhen VB starts Such commands are activated without requiring ac- rising again, if the LPCK input remains low for the tion by WO input or bit 2 in register CTRL 1. While entire frame. With code 0916, the WHITE output is these commands are executing, bit 2 in STATUS re- not activated. gister remains low. The YLP address is 8-bit coded since there are 256 EXTERNAL REQUEST FOR DISPLAY MEMORY display lines in each frame. The XLP address is 6- ACCESS (MFREE OUTPUT) bit coded since there are 64 display cycles in each line. On writing code OF16 into the CMD register, the MFREE output is set low by the circuitry, during the These 6 bits are left justified in the XLP register. XLP next free memory cycle. and YLP register contents match the write address if FMAT is low (or for the EF9366), but should be Apart from the display and refresh periods, this cy- multiplied by 2 if FMAT is high, so as to be able to cle is the first complete cycle that occurs after input match the write address. E is reset high. The address sampled into XLP corresponds to the During this cycle, those addresses output on DAD current memory cycle. Dots detected by the light and MSL~respond~ the X and Y register pen were addressed in the memory during the pre- contents: OW is high, ALL is high. vious cycle. Hence, 1 should be subtracted from bit Should the memory be engaged in a di~y or re- 2 in XLP register where the light pen electronic cir- fresh operation, (which is the case when ALL is I~ cuitry does not produce any additional delay. then this cycle is postponed to be executed after ALL If the rising edge on input LPCK occurs while VB is is reset high. The maximum waiting time is thus 64 low, then the LSB in XLP is set high. This bit acts as cycles. 20/29 126 EF9365-EF9366 The MFREE signal may be used e. g. for performing The outputs from these three flip-flop circuits appear a read or write operation into a register located be- in the STATUS register (bits 4, 5, 6). If one flip-flop tween the display memory and the microprocessor circuit isJ:!!9.h, bit 7 in the STATUS register is high, bus. and pin IRQ is forced low. A read operation in the STATUS register resets its INTERRUPTS OPERATION 4 MSBs low, after input E is reset high. An interrupt may be initiated by three situations de- The three interrupt control flip-flops are duplicated noted by internal signals: to prevent the loss of an interrupt coming during a • Circuit ready for a further command read cycle of the status register. • Vertical blanking signal • Light pen sequence completed. The status of bits 4, 5 and 6 corresponds to the in- terrupt control flip-flop circuit output, before input E These three signals appear in real time in the STA- goes low. TUS register (bits 0, 1, 2). Each signal is cross-re- ferenced to a mask bit in the register CTRL 1 (bits 4, An interrupt coming during a read cycle of the STA- 5,6). TUS register does not appear in bits 4, 5 and 6 du- ring this read sequence, but during the following If the mask bit is high, the first rising edge that oc- one. However, it may appear in bits 0, 1, 2 or on pin curs on the interrupt initiating signal sets the related IRQ. interrupt flip-flop circuit high. Table 1 : Register Address. Address Register Register Functions Number Binary of ~ad Write Bits A3 A2 A1 AD Hexa RIW =1 RIW =D 0 0 0 0 0 STATUS CMD 8 0 0 0 1 1 CTRL 1 (write Control and Interrupt Control) 7 0 0 1 0 2 CTRL 2 (Vector and Symbol Type ContrOl) 4 0 0 1 1 3 CSIZE (Character Size) 8 0 1 0 0 4 Reserved - 0 1 0 1 5 DELTAX 8 0 1 1 0 6 Reserved - 0 1 1 1 7 DELTAY 8 1 0 0 0 8 X MSBs 4 1 0 0 1 9 X LSBs 8 1 0 1 0 A Y MSBs 4 1 0 1 1 B Y LSBs 8 1 1 0 0 C XLP (light-pen) Reserved 7 1 1 0 1 D YLP (light-pen) Reserved 8 1 1 1 0 E Reserved - 1 1 1 1 F Reserved - Reserved: These addresses are reserved for future versions of the circuit. In read mode, output buffers DO-D7 force a high state on the data bus. 21/29 127 EF9365-EF9366 Table 2 : Command Register. b7 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 b6 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 b5 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b4 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b3 b2 b1 bO 0 1 2 3 4 5 6 7 8 9 A B C D E F Vector Generation (for b2, b1 , bO see small vector definition) 0 0 0 0 0 Set Bit 1 of CTRL 1 : Space! 0 @ P P Pen Selection 0 0 0 1 1 Clear Bit 1 of CTRL 1 : ! 1 A Q a q Eraser selection Small Vector 0 0 1 0 2 Set Bit 0 of CTRL 1 : " 2 B R b r Definition Pen/Eraser Down Selection b2 b6 b4 0 0 1 1 3 Clear Bit 0 of CTRL 1 : # 3 C S C s b7 bl bS b3 Pen/Eraser up Selection bO 0 1 0 0 4 Clear screen $ 4 D T d t 1 I~XI I~YI Direction 0 1 0 1 5 X and Y Registers Reset to 0 % 5 E U e u 0 1 1 0 6 X and Y Reset to 0 and Clear & 6 F V f v Screen Dimension 0 1 1 1 7 Clear Screen, set CSIZE to 7 G W g w code "minsize". ~X Vector All other registers reset to O. or Length (except XLP, YLP) ~Y Special Direction Vectors (for b2, b1, bO see small vector definition) 0 0 , 0 o Step , Step 1 0 0 0 8 L~n initialization ( 8 H X h x 1 , , 0 2 Steps 3 Steps (WHITE forced low) 1 1 0 0 0 1 1 0 9 A Lignt-Pen initialization 5 x 8 Block Drawing .) 9 : I J Y Z i j Y z (size according to CSIZE) 1 0 1 1 B 4 x 4 Block Drawing + K [ k { (size according to CSIZE) 1 1 0 0 C Screen Scanning: < L \ I I Direction Pen or Eraser as defined by I 010 '::(-BOO~ CTRL1 1 1 0 1 D X Register Reset to 0 - = M 1 m } 1 1 1 E Y Register Reset to 0 N l' 11'~~'0' 0 > n ~ 1 1 1 1 F Direct Image Memory access / ? 0 +- 0 I request for the next free 100 cycle. EBB EF9365-23 22/29 128 EF9365-EF9366 OTHER REGISTERS STATUS REGISTER (read only) [7[6[5[4[3[2[1[O[ I I 1- I I-'~:•• HIGH ~ light-pen sequences ended. } These 3 bits are not latched HIGH ~ vertical blanking (Idem on pin VB) and not masked HIGH ~ ready for a new command; LOW ~ busy HIGH ~ pen out of display window (logical OR of the 6 MSBs of the X and Y registers) HIGH ~ light-pen sequence ended IRQ (if enabled) } These 3 bits are reset after a read HIGH ~ vertical blanking IRQ (if enabled) cycle of the status register at , - - - - - - - - - - - - . HIGH ~ ready for a new command IRQ (if enabled) 1 - - - - - - - - - - - - - + . IRQ: logical OR of bits 4, 5, 6 ; HIGH when IRQ output is low. CONTROL REGISTER 1 (read/write) HIGH ~ pen down: LOW ~ pen up (control DW output) HIGH ~ pen ; LOW ~ eraser (control DIN output) 1-----+. HIGH ~ high speed write: no video (BLK output is high, mini. of memory refresh cycles) ' - - - - - - - . . HIGH ~ cyclic screen (memory display write even if bit 3 of the status register is high) HIGH ~ enable end of the light pen sequences IRQ } HIGH ~ enable VB IRQ Interrupt masks ' - - - - - - - - - -__ • HIGH ~ enable ready for a new command IRQ , - - - - - - - - - - - - - + . Not used (Of or reading) CONTROL REGISTER 2 (read/write) [ [ [ [ [3 [2 [1 [0 [ b1 bO Type of Vectors a a --- Continuous 1 [1_ ~ Type of vectors a 1 ---._------ 1 a --- Dotted 2 dots on, 2 dots off Dashed 4 dots on, 4 dots off Not used - - - - + . HIGH ~ tilted character 1 1 ---- Dotted- 10 dots on, 2 dots off (always read as 0) Dashed 2 dots on, 2 dots off '--------+. HIGH ~ character on vertical axis Types of character orientations ,n",.,. X,V Final regisl.er ~ X. ~ register poslIIon pOSitIOn b3 ~ 0, b2 - 0 b3 ~ 0, b2 ~ 1 CSIZE = 11 16 E88 EF9365-24 CS!ZE = 11 16 E88 EF9365-25 b3 - 1, b2 = a CSIZE = 11 16 E88 EF9365-26 I b3= l,b2= 1 CSIZE = 11 16 E88 EF9365-27 23/29 129 EF9365-EF9366 I. l _ _ -----.-l b3 .~ 0, b2 ~ 0 CSIZE = 22" E88 EF9365-28 b3 ~ 0, b2 ~ 1 CSIZE ~ 22" E88 EF9365-29 C-SIZE REGISTER (read/write) P : Scaling factor on X axis a :Scaling factor on Y axis P a P and Q may take any value between 1 and 16. This value is given by the leftmost or rightmost 4 bits for P and Q respectively. Binary value (0) means 16. X AND Y REGISTERS (read/write) 1XIXIXIXl31211EJ MSBs 1716 1514131211 10 I LSBs The 4 leftmost MSBs are always O. XLP AND YLP REGISTERS l I Status bit indicating if a rising edge has been applied on LPCK during the first complete frame following light-pen initialization. This bit is reset by a read on XLP or YLP. 8 bit YLP value always 0 ' - - - - _ ti bit XLP value 24/29 130 EF9365-EF9366 ASCII CHARACTER GENERATOR (5 x 8 matrix) b1 0 0 0 0 0 0 b6 a a 1 1 1 1 b5 1 1 a a 1 1 a 1 a 1 a 1 Lb:l b bl bO 0000 IIIIII 0001 IIIIII 0010 IIIIII 0011 IIIIII 0100 IIIIII 0101 1111111 0110 IIIIII 0111 IIIIII 1000 IIIIII 1001 IIIIII 1010 IIIIII 1011 1111111 1100 IIIIII 1101 IIIIII 1110 IIIIII 1111 IIIIII E88 EF9365-30 25/29 - - - - lifi~~~~n':r~:9lt - - - - 131 EF9365-EF9366 EXAMPLE OF AN APPLICATION OF THE EF9365 : 256 x 256 BLACK AND WHITE I ~ ¥ RAS ~ MSLOto3 Microprocessor bus ONE MEMORY PLANE A6 DAD6 07 A • to Data to to DO 256 )( 256 bits AD V 4 x 16 K bit chips DADO A3 ! (ET4116) to AO • I Address GDP RM R/W ow IRQ Control DIN DIN ~ DOUT CAS E BLK CK SYNC 11 1- I 4-bit shift register G_W of 1.75 MHz clocks ~ 14 MHz crystal y .;- 2 high-speed clock Com posite video output I Video mixer ~ Note: FMAT = Vss E88 EF9365-31 26/29 Gi SCiS-niOMSON ~I ~U©iiI@~~~ll:1fiil@IIlU©® 132 EF9365-EF9366 EXAMPLE OF AN APPLICATION OF THE EF 9365 : 512 x 512 BLACK AND WHITE I 3 to 8 decoder -I EI 1 llllllllJ !'.!~'!~'k:~ I----- CAS. l- I----- 1 ALL - MSL3 MSLO to 2 Microprocessor bus Mf~~- 07 to Data DO ONE MEMORY PLANE DADS 1+-;: A3 512 x 512 bits 2 x 8 (16-K bit chips) to AD I+- 01 to DADO to AD I Address I+- GOP 1+- __ R/W IRQ Control --------- OW DOUT DIN E BLK CK SYNC I L- l 8-bit shift register Generator of 1.75 MHz clocks 1 14 MHz crvstal high-speed clock Q Com posite video output 1 Video mixer ~ Note; FMAT = VCC E88 EF9365-32 27/29 ~ SGS-THOMSON "." IiliIOlClI!@OOLmIC'il'li@1lI01:$ 133 EF9365-EF9366 EXAMPLE OF AN APPLICATION OF THE EF9366: 256 x 512 COLOUR. Eight colours may be obtained from the three basic colours red (R), green (G), blue (8). I 3 to 8 decoder -E·I~--------------------~ r I II Ll ..L.l..l..lJ T T TTl IJ 3Iut:NI'l.;AL;1 MEMORY PLANES V /8 ALL MSLO to 2 Microprocessor bus II ~ V -J 07 '000 I"r-- 7 ~;; DAD6 '0 RAS CAS • DADO A3 1---1 - MEMORY PLANE 256:1e 512 bits R A6~ '0 '0 AO"r-- - AO B x I 16 K bi1 chips) GOP iRci __ R/W4-.- CK DIN f-r-- 8 ,------jH-+-I-+-++-iBlK ,_ DIN OW SYNC .iW DOUT 8 8 I ~ 3 IDENTICAL REGISTERS I I I / I B-bit shift I- J J Gen.rator • '-----~'-i of 1.75 MHz clocks~ h g register II r 14 MHze'V".' hlgh-$p8ed c,cx:k R G ~ Svnchro E88 EF9365-33 Note: FMAT = Vee. 28129 134 EF9365-EF9366 PACKAGE MECHANICAL DATA 40 PINS - PLASTIC DIP 4.57fT1ox mm LI'ftOK , 0.2 0.3 ~ 15~ 15.24 ~-----';12:2C"j-~ 21 Datum (1) Nominal dimension - I (2) True geometrical position 1111 -----J ~_ _ _ _--=53,-,m""a""x,,--. 14 111 40 PINS ORDERING INFORMATION Part Number Temperature Range Package EF9365P o to 70°C DIP 40 EF9366P o to 70°C DIP 40 29/29 135 EF9367 MOS GRAPHIC DISPLAY PROCESSOR (GOP) • SELECTABLE RESOLUTIONS IN BLACK AND WHITE OR COLOR: VERTICAL RESOLUTION : 525 LINE MONI- TOR (208 OR 416). 625 LINE MONITOR (256 or 512) HORIZONTAL RESOLUTION: 256, 320*,384*, 512, 640*, 768*, 1024, FULL SCREEN.(*) with external PROM • HIGH SPEED VECTOR PLOT WELL SUITED TO ANIMATION - 4 TYPES OF LINES • MULTIPLEXED ADDRESS AND REFRESH FOR 16 K OR 64 K DYNAMIC RAMs • NO LIMITATION ON THE NUMBER OF SELEC- P TABLE MEMORY PLANES (colors, grey levels DIP 40 or any other attributes) (Plastic Package) • MUL TIPAGE APPLICATION CAPABILITY • ON-CHIP FULL ASCII CHARACTER GENERA- TOR (96) - MAXIMUM ALPHANUMERIC ORDER CODE: EF9367P SCREEN DENSITY: 170 x 57 - PROGRAMMA- BLE SIZES AND ORIENTATIONS • DIRECT INTERFACING WITH THE MONITOR THROUGH THE COMPOSITE SYNCHRO AND BLANKING SIGNALS • AUTOMATIC ALLOCATION OF DISPLAY ME- MORY IN REFRESH, WRITE, DUMP, AND DIS- PIN CONNECTIONS PLAY CYCLES • LIGHT PEN REGISTERS AND CONTROL SI- GNALS • THREE TYPES OF INTERRUPT REQUESTS CK vce • FULLY STATIC DESIGN DAD5 DAD1 • TTL COMPATIBLE I/O DAD4 DAD2 • SINGLE + 5 V SUPPLY DAD3 DADO DAD6 MSL1 MSLO MSL3 MSL2 SYNC FMAT DO AO D1 A1 D2 A2 A3 IRO DW DIN DESCRIPTION BLK VB This GDP is a true high resolution graphic display E MW processor, which contains all the functions required R/IN WO X9 ALL to process vector generation at a very high speed LPCK vss and to generate all the timing signals required for in- terfacing interlaced or non interlaced video data on a raster scan CRT display compatible with 525 line E88 EF9367·01 or the CCIR 625 line standards. December 1988 1/33 137 EF9367 TYPICAL APPLICATION ADDRESS BUS (A,BI DATA BUS (D,B 4 8 ____l...., VIDEO I _.!oQ.~~J /VIDEO f*----~ \ OUTPUTS EBB EF9367-02 TEST LOADS iRQ ALL OTHER OUTPUTS 4.75 V 4.75 V Test point :~ C =:: J 24K ::~ lN916 or Equiv. lN4148 ~ or Equiv. :~ C·40pF C=-130 pF for DO~D7 EBB EF9367 -04 2/33 138 o-x- I MSLD to MSL3 DO to 07 X9 ~ ~~ Ii ~. Ii E RIW AD to A3 8-., Decoding STATUS~ Bnd contral CTRL1 VB m 00 '"m ." !2 ~ 8 WD LPCK ... t5 15 '" EF9367 GENERAL DESCRIPTION Developed using NMOS technology, the GOP is an Nevertheless, where direct exchange between the intelligent raster scan video display controller, fully microprocessor and the memory is necessary, the programmable via an eight-bit microprocessor bus. on-ch ip allocation controller wi II allow th is exchange Besides all the timing logic functions required to ge- without display interference. nerate the video, sync and blanking signals, the The GOP is programmable using 11 internal regis- GOP includes two hardwired display processors: a ters occupying 16 consecutive addresses. These vector and a character generator. registers can also be modified by the GOP's hard- This unique feature allows an ultrafast screen wri- wired processors while a command is being execu- ting speed (the 1024 dot diagonal may be written in ted. less than 1.4 ms) at almost no microprocessor pro- Note: A summary of data codes and registers is gi- cessing cost. ven in the Register address table. Hexadecimal The GOP is particu larly well-su ited to all applications values are subscripted 16 and the register bits are in which the display memory is not directly addres- numbered as follows: sed by the MPU. This feature allows a total asyn- chronism between the MPU and the GOP memory cycles and preserves the whole MPU memory ad- MSBLI _7-L_6~L-5-L_4~L-3-L_2~__-L_o~ILSB dressing space. ABSOLUTE MAXIMUM RATINGS Symbol Parameter Value Unit Vee Supply Voltage - 0.3 to + 7.0 V Vin Input Voltage - 0.3 to + 7.0 V TA Operating Temperature o to + 70 °C T stg Storage Temperature - 55 to + 150 °C The GOP inputs are protected against high static voltages and electric fields; nevertheless. normal precautions should be taken to avoid voltages above the limit values on this high impedance circuit. STATIC ELECTRICAL CHARACTERISTICS (Vee = 5 V ± 5 %, Vss = 0, TA = 0 to 70 'C unless otherwise specified) Symbol Parameter Min. Typ. Max. Unit VrH Input High Voltage Except CK Vss + 2.2 - Vee V VrHeK Input High Voltage CK Vss + 3.5 - Vee V VrL Input Low Voltage Vss - 0.3 - Vss+0.8 V lin Input Leakage Current (Vin = 0 to 5.25 V, Vee = max) - 1.0 2.5 !!A VOH Output High Voltage (iload =- 100 ~A, Vee = min) Vss + 2.4 - - V VOL Output Low Voltage (I road = 1.6 mA, Vee = min) - - Vss+O.4 V Icc Supply Current - 80 - mA Cin, Cout Capacitance (V in = 0, T A = 25°C, f = 1.0 MHz) - - 12 pF 4/33 140 EF9367 DYNAMIC OPERATING CONDITIONS = 5.0 V ± 5 %, Vss = 0 V; TA = 0 to + 70 'C unless otherwise noted) (VDD Symbol Time (ns) Min. Max. ICK Clock Period 560 ICKL CK Pulse Widlh, Low 330 ICKH CK Pulse Widlh, High 190 CKLDAD CK Low 10 Valid DAD 320 CKHDAD CK High 10 Valid DAD 180 CKLSYNC CK Low 10 Valid SYNC 300 CKLBLK CK Low 10 Valid BLK 310 CKLVB CK Low 10 Valid VB 500 CKLALL CK Low 10 Valid ALL 300 CKLMSL CK Low 10 Valid MSL 300 CKLDW CK Low 10 Valid DW 310 CKLMFRL CK Low 10 Valid MFREE Low 330 CKLMFRH CK Low 10 Valid MFREE High 500 CKLDIN CK Low 10 Valid DIN 310 CKLlRQ CK Low 10 Valid IRQ 1500 CKLWHI CK Low 10 Valid WHITE 530 IEL E Pulse Width, Low 450 IEH E Pulse Widlh, High 430 lAS Address Pre-Selup Time 160 IAH Address Hold Time 10 IDSW Dala Pre-Selup Time (wrile) 195 IDDR Dala Selup Time (read) 320 IDHR Dala Hold Time (read) 10 IrR IRQ Release Time 1600 LPHW LPCK High 10 WHITE High (if command 0816) 1600 LPHIRQ LPCK High 10 IRQ Low 1600 ILPCKH LPCK High Hold Time 150 Ir CK and E Rise Times 20 If CK and E Fall Times 20 5/33 141 EF9367 CLOCK AND OUTPUT CHARACTERISTICS CK 3.5V CK 3.5V; CK-------- E ~V I 1_08 V 0.8 V 2:i I \ I I I I ++- If ..f-.t. I, Outputs \0.4V 24; \ EBB EF9365-05 IRO RELEASE TIME 227: I 'IR I 1.....- - - -..... - - - - - - - - I /2.4V IRQ ---------~I-----~· I EBB EF9365-06 MICROPROCESSOR BUS. WRITE ACCESS IEL IEH I-- \ j{ 1\ lAS IAH AO ... A3 ~ ,.:-:::- R/W ---A K tDSW DO ... D7 X EBB EF9365-07 6/33 142 EF9367 MICROPROCESSOR BUS, READ ACCESS AO ... A3 R/W 00 ... 07 E88 EF9365-08 SYNCHRONOUS SIGNALS WITH CK INPUT tCKL CK CKLDAD DAD SYNC BlK CKl... VB AU MSl OW MFREE DIN iRa WHITE E88 EF9365-09 LIGHT PEN SIGNALS tLPCKH LPCK / LPHW I - -______- r____~fi LPHIRQ IRQ '\l1'----_____ E88 EF9367-04 7/33 143 EF9367 PIN DESCRIPTION Power supplies VCCl r~ DIN /'- Display memory DW ) 00, .. 07 control MW' AD, .. A3 Mlcroprtx.-e:;:,ul bus MSlO A/W Display memory to MSL3 X9 EF9367 .. E addressing DADO IRa to DAD6 Synchronizing ill SYNC .. LPCK Light pen and BLK control blanking VB Clock Operating parameters E88 EF9367-05 • This pin outputs two items of data multiplexed by signal ALL, POWER SUPPLY, CLOCK AND OPERATING PARAMETERS Pin Name Type N° Function Description Vss S 20 Power Supply Ground Vcc S 40 Power Supply +5V CK I 1 Clock Master Clock, All internal processor states are modified on the falling edge of this signal. The whole circuit logic is static and the cycle of this clock needs only to be adjusted according to the shape and accuracy the synchronizing signals should feature, DAD Memory Address Multiplexing Signal. If CK is low, low addresses (or row addresses for the memory) are those that are output on DAD, The frequency of CK is a multiple of the image refresh frequency: - Interlaced scanning: f (CK) = f (112 frame) x (625 or 525) x 96 - Non-interlaced scanning: f (CK) = f (frame) x (312 or 262) x 96, FMAT I 8 Format This pin is connected to Vcc, Vss, CK or CK and sets the number of monitor and image lines: Vcc : 625 line monitor, interlaced synchronization, 512 lines displayed CK : 525 line monitor, interlaced synchronization, 416 lines displayed CK : 525 line monitor, non-interlaced synchro, 208 lines displayed Vss : 625 line monitor, non-interlaced synchro, 256 lines displayed WO I 23 Write Only When WO is high, memory refresh nor display no longer exist TheMd wired write processors may operate without being interrupted, The ALL signal is always high, 8/33 144 EF9367 SYNCHRONIZING AND BLANKING SIGNALS Name Pin N° Function Description Type SYNC 0 34 Video Monitor Video Monitor Line and Frame Synchronization Signal. For example, if CK Synchronizing is at 1.5 MHz and FMAT is high, signal SYNC is to CCIR 625 line 50 Hz standard. This output is independent of input WO and of register CTRL1. BLK 0 25 Blanking This signal is high apart from the display window (writing or refresh). It is always high if bit 2 in register CTRL 1 is high, but it is not affected by the WO input. VB 0 16 Vertical This signal is not affected by WO and register CTRL 1. High during vertical Blanking blanking. DISPLAY MEMORY ADDRESSING SIGNALS Name Pin N° Function Description Type DADO 0 37,39 Display Adresses that are multiplexed by the CK signal. Provided for the automatic to 38,4 Address refresh of the 16 K or 64 K dynamic memories. DAD6 3,2,5 X9 0 19 Memory Horizontal pointer extension bit for write operations (horizontal resolution Address greater than 512). MSLO 6, 36 Memory Select Pixel write select signals (see section: display memory configuration). to 2 MSL3 7, 35 ALL 0 22 Access to all The signal makes it possible to discriminate between the collective memory Memory Units access to all chips (display, refresh or erase), and the memory accesses to a single pixe for vector or character writing purposes. The signal is low for collective access. DISPLAY MEMORY CONTROL SIGNALS Name Pin N° Function Description Type DIN 0 15 Display In Selection of the memory data code corresponding to the display screen in the "off" condition (active when high). For a black-and-white display (1 bit per pixel), DIN may directly be the storage entry data. DW 0 14 Display Write Display memory write signal. Active when Low. MW 0 24 Memory This pin outputs MFREE and WHITE signals which are externally Available demult~xed by signal ALL: MFREE = MW + ALL; WHITE = MW + ALL --- Memory Free (MFREE) : Signal low during the next memory idle period following the OF16 command. This signal allows exchanges between the microprocessor and the X and the Y flagged memory segment without affecting the display. ForCing to White Level (WHITE) : Forces white level on video Signal, for use of the light pen. Active when Low. 9/33 145 EF9367 MICROPROCESSOR BUS SIGNALS Name Pin N° Function Description Type DO-D7 I/O 33 Data Bus 1/0 buffers..QPening is controlled through E, and the related direction to through RIW. 26 AO - A3 I 9 Address Bus Address of the register involved in microprocessor access. to 12 RIW I 18 ReadlWrite ReadlWrite Signal. Write when Low. Signal E I 17 Enable Bus exchange synchronizing and enabling signal. IRQ 0 13 Interrupt Interrupt request towards the microprocessor, programmable through Request register CTRL 1. Open drain output. LIGHT PEN OPERATING SIGNALS Name Pin N° Function Description Type LPCK I 21 Light Pen Light Pen Input. When the Mechanism is set, a rising edge loads into Strobe registers XLP and YLP the current display address and sets the XLP register's LSB high. REGISTER DESCRIPTION X AND Y REGISTERS (addresses: 816, 916, A16, DELTAX AND DEL TAY REGISTERS (addresses B16) 516,716) The X and Y registers are 12-bit read-write regis- The DEL TAX and DELTAY registers are 8-bit read- ters. They indicate the position of the next dot to be write registers. They indicate to the vector generator written into the display memory. They have no the projections of the next vector to be plotted, on connection at all with the video signal generating the X and Y axes respectively. Such values are un- scan, but they point the write address, in the same signed integers. The plotting of a vector is initiated way as the pen address on a plotter. by a write operation in the command register (CMD) These 2 registers are incremented or decremented, CSIZE REGISTER (address: 316) prior to each write operation into the display memo- ry, by the internal vector and character generators, The CSIZE register is an 8-bit read-write register. It or they may be directly positioned by the micropro- indicates the scaling factors of X and Y registers for cessor. the symbols and characters. 98 characters are ge- nerated from a 5 x 8 pixel matrix defined by an in- This 2 x 12 bit write address covers a 4096 x 4096 temal ROM. In the standard version, it contains the point addressing space. Only the LSBs are used alphanumeric character in the ASCII code which here, since the maximum definition of the picture ac- may be printed, together with a number of special tually stored is 512 x 1024 pixels (picture elements). symbols. In practice, the GOP assumes that it has a memory ~L_ ~i space of 1024 x 512 (fMAT = Vee or CK) or 1024 x 256 (FMAT = Vss or CK) and disables writing out- MSBiL _ _ _ _ _P____ ____ Q____ LSB side this space, unless bit 3 of CTRL 1 is set. The above features along with the relative mode Each symbol can be increased by a factor P(X) or description of all picture component elements make Q(Y). These factors are independent integers which it possible to automatically solve the great majority may each vary from 1 to 16 and which are defined of edge cut-off problems. by the CSIZE register. The symbol generation se- 10133 146 EF9367 quence is started after writing the ASCII code of the Bit 4,5,6,7: Not used. Always low in read mode. symbol to be represented in the CMD register. CMD COMMAND REGISTER (address: 016) CTRL 1 REGISTER (address: 116) The CMD register is an 8-bit write-only register. The CTRL 1 register is a 7-bit read-write register, Each write operation in this register causes a com- through which the general circuit operation may be mand to be executed, upon completion of the time fed with the required parameters. necessary for synchronizing the microprocessor ac- cess and the GOP's CK clock. Bit 0 : When low, this bit inhibits writing in display memory (equivalent to pen or eraser up). Several types of command are available: When high, this bit enables writing in display _ vector plotting memory (pen or eraser down). _ character plotting This bit control the OW output. _ screen erase _ light pen circuitry setting Bit 1 : When low, this bit selects the eraser. _ access to the display memory through an exter- When high, this bit selects the pen. nal circuitry This bit controls the DIN output. _ indirect modification of the other registers (com- Bit 2: When low, this bit selects the normal writing mands that make it possible for the X, Y, DEL- mode (writing apart from the display and re- TAX, DELTAY, CTRL1, CTRL2, and CSIZE re- fresh periods, which are a requirement forthe gisters to be amended or scratched). dynamic storages) in display memory. When high, this bit selects the high speed wri- STATUS REGISTER (address 016, F16) ting mode: the display periods are deleted. The STATUS register is an 8-bit read-only register. Only the dynamic storage refresh periods are It is used to monitor the status of the executing sta- retained. tements entered into the circuit, and more specifi- Bit 3 : When low, this bit indicates that the 4096 x cally to avoid the need for modifying a register that 4096 space is being used (the 12 X and Y bits is already used for the command currently execu- are significant). ting. When high, this bit selects the cyclic screen Bit 0 : When low, this bit indicates that a light pen se- operating mode. quence is currently executing. Bit 4 : When low, this bit inhibits the interrupt trigge- When high, it indicates that no light pen se- red by the light per sequence completion. quence is currently executing. When high, this bit enables the interrupt. Bit 1 :This bit is high during vertical blanking. It is Bit 5 : When low, this bit inhibits the interrupt release the VB signal recopy. by vertical blanking. Bit 2 : When low, this bit indicates that a command When high, this bit enables the interrupt. is currently executing. Bit 6 : When low, this bit inhibits the interrupt indica- When high, this bbit indicates that the circuit ting that the system is ready for a new com- is ready for a new command. mand. Bit 3 :This bit when low indicates that registers X When high, this bit enables the interrupt. and Yare pointing within the assumed memo- Bit 7 : Not used. Always low in read mode. ry space. This bit is obtained by applying the logical OR CTRL2 REGISTER (address: 216) function to the unused must significant bits of registers X and Y. The CTRL2 register is a 4-bit read-write register, If FMAT = Vce or CK, the assumed memory through which the plotting of vectors and characters may be denoted by parameters. space is 1024 x 5~ If FMAT = Vss or CK, the assumed memory Bit 0,1 : These 2 bits define 4 types of lines (conti- space is 1024 x 256. nuous, dotted, dashed, dash-dotted). Bit 4 : When high, this bit indicates that an interrupt Bit 2 : When low, this bit defines straight writing. has been initiated by the completion of a light When high, it defines tilted characters. pen running sequence and that this interrupt Bit 3 : When low, this bit defines writing along an ho- has been enabled by bit 4 in CTRL 1 register. rizontal line. Bit 5 : When high, this bit indicates that an interrupt When high, this bit defines writing along a ver- has been initiated by vertical blanking and that tical line. 11/33 147 EF9367 this interrupt has been enabled by bit 5 in Notes :1. All internal registers may be read or writ- CTRL 1 register. ten at any time by the microprocessor. Bit 6 : When high, this bit indicates that an interrupt However, the precautions outlined be- has been initiated by the completion of exe- low should be observed: cution of a command and that this interrupt _ Do not write into the CMD register if has been enabled by bit 6 in CTRL 1 register. execution of the previous command is not completed (bit 2 of STATUS regis- Bit 7 : When high, this bit indicates that an interrupt ter). has been initiated. It is the logic OR of bits 4, _ Do not alter any register if it is used as 5 and 6 in STATUS register. The IRQ output an input parameter for the internal state is always the opposite of the status of hardwired systems (e.g. : modifying this bit. the DEL TAX register while a vector Notes: Bits 4, 5, 6 and 7 are reset low by reading plotting sequence is in progress). the STATUS register at address 016. Rea- _ Do not read a register that is being ding at address F16 does not modify their asynchronously modified by the inter- state. nal hardwired systems (e.g. : reading the X register while a vector plotting XLP AN YLP REGISTERS (addresses C16 and sequence is in p.!:..ogress may be erro- 016) neous if CK and E are asynchronous). The XLP and YLP registers are read-only registers, 2. On powering up, the writing devices may with 7 and 8 bits respectively. Upon completion of a have any status. Before entering a com- high pen running sequence, they contain the display mand for the first time, it is necessary to address sampled by the first edge appearing rising wait until all functions currently underway on the LPCK input. The use.of such registers is dis- are completed, which information can be cussed in section: Use of light pen circuitry. derived from the STATUS register. SYSTEM OPERATING PRINCIPLE DISPLAY MEMORY CONFIGURATION Assume a V x H pixel picture. Assume that each b planes pixel is able to adopt 2b different states. A V x H x b bit display memory is thus required. In those applications where H features a high value, the video signal frequency exceeds the maximum .--1--------- 1 pixel frequency of memory read access. denoted bV ( bbits Example: H = 512 with a television line frequency: the pixel succession period on the video v, V· X signal is 83 ns. X X It is mandatory that a line of H dots be cut into h ad- bbits joining segments of n bits each, read at the same time in the display memory, and thereafter conver- ted to serial form to produce the video signal, h me- mory accesses per line are necessary. Each access loads b n-bit shift registers. The memory contains E88 EF9367-06 V x h x b n-bit words. 12/33 148 EF9367 The EF9367 is designed for the following stored circuit assumes that it still has the maximum memo- image formats: ry space for X (1024) . The test for Y is effected in V = 512 or 256 (50 Hz) the folowing memory spaces: V' = 416 or 208 (60 Hz) 512 if FMAT = Vee or CK H = h xn 256 if FMAT = Vss or CK H = 1024 or lower multiples of 64 512 or 256 vertical resolution: the displayed space h = 64 is identical to the space in memory (unless a grea- n = 16,8,4,2,1 (or any value below 16 using ex ter memory capacity is deliberately selected). ternal PROM encoding) 416 or 208 vertical resolution: the displayed space b = any value (addressing is same for all memory is smaller than the memory space. planes, management of these planes is exter- Lines not displayed are displayable using an exter- nal to the GDP). nal adder to dejustify the display addresses (this ar- In so far as the overflow tests are concerned, the rangement may be used for smooth roll-up/roll down. " b memory planes 1 thr-ough V x h address GDP 1 memory plane == V x h n-bit words Dot frequency clock Video signal b n-bit on b bits shift registers EBB EF936S-13 DAD AND MSL STATUS TABLE The internal cou nters which address the display me- The write address is made up of the LSBs of the X mory are made up of : and Y internal registers. _ 6 horizontal address bits (h = 64) Xc, X1, X2, X3, X4, X5, X6, X7, XB,X9 ho, h1, h2, h3, h4, hs, (ho = LSB) Yo, Y1, Y2, Y3, Y4, Y5, Y6, Y7, YB _ 9 vertical address bits (V ,,; 512) The GDP produces addressing signals in the se- t, Va, V1, V2, V3, V4, V5, V6, V7 quences shown in the following tables: t is here the LSB. It denotes the line parity and changes every frame because of interlaced scan- Within a same frame, Vo denotes the LSB. FMAT = Vee or CK FMAT = Vss or CK MSL Xg DAD MSL Xg DAD ALL CK a 1 2 3 a 1 234 5 6 ALL CK a 1 2 3 a 1 234 5 6 a a Xo X1 X2 V1 Xg h5 h4 h3 h2 h1 ho Vo a a Xg h5 h4 h3 h2 h1 ho Vo Xo X1 X2 1 a 1 V7 V6 V5 V4 V3 V2 t a 1 V7 V6 V5 V4 V3 V2 V1 1 a Xo X1 X2 Y2 Xg Xa X7 X6 X5 X4 X3 Y1 1 a Xg Xa X7 X6 X5 X4 X3 Yo Xo X1 X2 1 1 1 Ya Y7 Y6 Y5 Y4 Y3 Yo 1 1 Y7 Y6 Y5 Y4 Y3 Y2 Y1 13/33 149 EF9367 DESCRIPTION OF DISPLAYABLE FORMATS Interlaced Scanning Non Interlacing Scanning 512 x 1024 or 416 x 1024 pixel formats (H = 1024, 256 x 512 or 208 x 512 pixel formats (H = 51~n n = 16).lnput FMAT must be connected to Vcc or = 8). Input FMAT must be low or connected to CK. CK The memory is made up of 16 K bytes per memory The memory comprises 32 K words x 16 bits, orga- plane. The byte address is made up of 14 bits which nized in two blocks of 16 K words each. are output on two runs on the DAD pins. The three The signals produced by the circuit in the sequence MSLO, MSL 1,MSL2 outputs are used to select one indicated for the 512 x 512 format are combined ex- pixel out of the eight featuring the same address. ternally as shown at the end of the data sheet. They issue the number of the pixel, encoded on three = 512 x 768 or 416 x 768 pixel formats (H 768, n bits. MSL3 is high, and is not used. = 12). Input FMAT must be connected to Vce or CK. 256 x 384 or 208 x 384 pixel formats (H = 38~n The memory comprises 32 K words x 12 bits, orga- = 6). Input FMAT must be low or connected to CK. nized in two blocks of 16 K words each. The memory is organized as 16 K words x 6 bits. The signals produced by the chip in the sequence The signals produced by the chip in the sequence indicated for the 512 x 512 format are transcoded indicated for the 256 x 512 format are transcoded externally as shown in the diagram below. externally as shown in the opposite diagram. 512 x 640 or 416 x 640 pixel formats (H = 640, n 256 x 320 or 208 x 320 pixel formats (H = 320, n =10). The same schematic as below should be used = 5). The same schematic as for 384 horizontal re- with a memory organized in 10 bit words. solution should be used with a memory organized in 5 bit words. 512 x 512 or 416 x 512 pixel formats (H = 512, n 256 x 256 or 208 x 256 pixel formats (H = 25~n = 8). The FMAT input should be tied to Vee or CK. The memory is made up of V x h bytes = 32 K bytes = 4). Input FMAT must be low or connected to CK. per memory plane. The memory is made up of 16 K words x 4 bits. The word address up of 14 bits which are output in two The byte address is made up of 15 bits: runs on the DAD pins. One of the four chips is se- _ 14 are output in 2 runs on the DAD pins for the lected by decoding pins MSL 1 and MSL2 (that leads purpose of using 16 K x 1 bit dynamic RAMs. to ignore Xo : the X computation space is changed _ the 15th one is output on pin MLS3. to 2048 pixels horizontal overflow detected at 512 The MLSO, 1 and 2 outputs allow to select one pixel pixels). out of the 8 featuring the same address, for pixel-to- pixel write applications. They issue the number of the involved pixel, encoded on 3 bits. Xo Bit address PROM 256 x 8 Word address VI/YO Y1/YO EBB EF9367-07 EBB EF9367-0B 14/33 150 EF9367 MEMORY OPERATION SEQUENCE ALONG ONE FRAME Apart from the window where the memory is used for display purposes exclusively, write operations may be performed, except during 3 refresh periods. R Vertical blanking R D : display Display w o W : write period R : refresh Vertical blanking R E88 EF9365-13 The three period types, D, Wand R, respectively, Exceptions: are indicated outside the circuit through the BLK and _ If bit 2 in register CTRL 1 is high (high speed ALL sig nals : write), the display period is suppressed and 19 refresh cycles of 4 lines each are executed du- BLK ALL ring one frame. D 0 0 _ As long as the WO input is high, the circuit is set 1 1 to write mode, and BLK retains the same outline W as it has under normal operating conditions. R 1 0 In these two cases, executing codes 0416, 0616, 0716 The refresh of dynamic RAMs is automatically per- and OC16 triggers a complete D sequence for a formed by the GDP. During display, the memory is high-speed scan of all addresses. This last two entirely refreshed each 4 lines (256 accesses). frames if FMAT is high (or tied toCK) and one frame During vertical blanking, 3 refresh cycles of 4 lines if FMAT is low (or tied to CK). each are executed. 15/33 151 ~ I en "11 m I\) W :II "11 w l> <0 s: m (,J Ol en m "'" "z c m 0 m en N 1~I,JJ,I I lui en FMAT = CK - ",,---,---,--,----,!TTl I 'r 1(u..(I-L-,-1...... I I I L((I I' I I I(fl ,. 1,,1 ,I It r r Z SYNC odd frame I I Ir m ~~_I~)I Inl Iii I I I I 1:;1 YJlr,fL' --'--~.... en -< FMAT - CK even frame z ~ LLLUTTlLL.L.LL.)1 I I I If;1 I i I I I Irll I I I I I I I I I I I IJII I I I lUi I I I IIII I I I ! 0 ::I: ~en TV line number 1,1'1+1,1.1'11++1"1 11++1"1 111++H++H++III,,,I,..I,,,1 :'"1' '1",1",11",1, ,1, ,1' '1 :II 0 u: @. VB - - - - - - - - - 1 ," " ;f J/.\------,\ (~,----f5 Ii Z N l> ~;! -I !o " 0 ~I: ",en B,LKlif bit 2m 11 JJ ) (~:n-uu-" ) /1 Z CTRL1- 01 !;Ii ALL (If '~r---u-u-u-u-'~~>--uvLnP')~' -- bit 2 in CTRL1=OI ~ i----J I. ..I 1-------1 Refresh R.fresh Display Refresh ~,~~:~ rh~"",~rl~~~"",,..........(~) Jh....,n~rlif---- CTRL1=ll 'UUUU' UUUU . . UUUU' --I i---I I..----..j i------l Refresh Refresh Refresh Refr.esh Note AIl signal high denotes write period5. m CP CP m W" <0 en 6" <0 EF9367 FRAME SEQUENCE - 625 LINE SYNCHRONIZATION ~ g ! > > § u • I: Gl <5 !( ~ ~:> ~.~ ;..!:~ :=£ -----~ "~ z ~ ~ ",00 aL~ [...INa: ~:Et 1...100 eta EBB EF9367-10 - - - - - - 1t."'!1 ~~~;~~'t:9:£ _ _ _ _ _1_7/33 153 -----~-= EF9367 COMPOSITE SYNC AROUND FRAME SYNC T : CK input period (667 ns in typical application where TV line duration is 64 ,us) Vertical sync pulses SYNC J End of odd ' ..me Beginning of even frame r; SYNC End of even frame Beginning of odd frame Note: If FMAT is low or tied to CR, the pattern of the second line is repeated for each frame. E88 EF9367-11 DETAILED LINE DIAGRAM 96T Line sync ----f-J SYNC Vertical VB ALL BLK WHITE 23T -I- 64T ow MFREE _ _ _ _ _ _ _ _ _ _ _ _ _ ~ E88 EF9367-12 18133 154 EF9367 HARDWIRED WRITE PROCESSOR OPERA- DW sequencing during the plotting process is al- TION IN DISPLAY MEMORY ways the same, irrespective of vector origin and of the nature of previous plots. This feature guarantees The hardwired write processors are sequenced by that a specified vector can be deleted by plotting it the master clock CK. They receive their parameters again after moving X and Y to the starting point, and from the microprocessor bus. Th~ntroL.!.IJ..g X, Y complementing bit 1 in register CTRL 1. write address, and the DIN, DW, MW and IRQ out- puts. Since the vector plotting initiation command defines the sign of the projections onto the axes, all vectors These hardwired processors operate in continuous may be plotted using 4 different commands. mode. In the event of conflicting access to the dis- play memory, the display and refresh processors For increased programming flexibility, the system in- have priority. corporates 16 different commands, supplemented by a set of 128 commands which make it possible Since command decoding is synchronous with the to plot small size vectors by ignoring the DELTAX CK master clock, any write operation into the (CM D) and DELTAY registers. command register triggers a synchronizing mecha- nism which engages-.Jhe circuit for a maximum of 2 Such commands are as follows: CK cycles when the E input returns high. The circuit • Basic commands remains engaged throughout command execution. No further command should be entered as long as lololol'lolxlxl'l bit 2 in STATUS register is low. I l. DEL TAX sign I a if positive VECTOR PLOTTING ~ DE L TA Y sign \ , if negative The internal vector generator makes it possible to • commands which allow ignoring the DEL TAX or modify, within the display memory, all the dots which DELTAY registers by considering them as of ze- form the approximation of a straight line segment. ro value All vectors plotted are described by the origin dot and the projections on the axes. 9 The starting point co-ordinates are defined by the X, ~ Y register value, prior to the plotting operation. Projections onto the axes are defined as absolute :0 a DELTAY ignored, DEL TAX> a values by the DELTAX and DELTAY registers, with 0 ' DELTAXignored, DELTAY >0 the sign in the command byte that initiates the vec- , a DELTAXignored,DELTAYO Y = 7510 CTRL 1 = 0316 Pen down, DELTAX= 1710 CTRL2 = 116 Dotted vector: Projection: { 2 dots on, 2 dots off. DELTAY = 1310 Plotting cycle sequence: (it is assumed that the vector generator is not interrupted by the display or re- fresh cycle). u I I I I I I I I I I I I I I I I I I I I I I I I I I I I CK 1 ~1~1~1~1~1~IUI~I"I~I~I~I~I~I.IDI~IHI~lnlul~lwlmlmlmlml x y 15 75 1!t 15 1!t 15 16 11 71 78 19 10 80 B1 82 8J BJ 14 85 86 iii 87 SB II 88 88 88 I I I I ------.1 Bit 2 of STATUS IIIII III II IIIIIII I IIIII IIII IRQ it bit 6 of CTRL= 1 I II III II III IIII III III I I / '- Actual plot Sync Initialization E88 EF9365·19 20/33 156 EF9367 y ~ End l',·.~ Dots "origin" and "end" are modified DElTAY Display shows : • unmodified dot ~ _______ 0';9;n o dolan 41 ~ DEL TAX E88 EF9365-20 Note: Plotting a vector with DELTAX = DEL TAY = 0 writes the dot X, Y in memory. It occupies the vector generator for synchroni zation, initialization and one write cycle. CHARACTER AND SYMBOL GENERATOR SCALING FACTORS The character generator operates in the same way Each individual dot in the 5 x 8 basic matrix may be as the vector generator, i.e. through incrementing or replaced by a P x Q size block. decrementing the X, Y registers, in conjunction with P : X co-ordinate scaling factor a DW output control. Q : Y co-ordinate scaling factor It receives parameters from the CSIZE, CTRL2 and CMD registers. The characters plotted are selected, The character size becomes 5 P x 8 Q. Upon com- according to the CMD value, out of 98 matrices pletion of the writing process, X is incremented by (97 8-dot high X 5-dot wide rectangular matrices, 6P. The CK clock cycle count required is 6 P x 8 Q. and one 4 dot X 4 dot matrix) defined in an internal P and Q may each take values from 1 through 16. ROM. Two scaling factors may be applied to the They are defined by the CSIZE register. Each value characters plotted using X and Y defined by the is encoded on 4 bits, value 16 being encoded as 016. CSIZE register. The characters may be tilted, accor- In register CSIZE, P is encoded on the 4 MSBs and ding to the content of register CTRL2. Q on the 4 LSBs. BASIC MATRIX Among the 97 rectangular matrices available in the Upon completion of a character writing process, the standard ROM, 96 correspond to CMD values ran- X and Y registers are positioned for writing a further ging from 2016 to 7F16, and the 97th matrix to OAI6. character next to the previous one, with a 1 dot spa- In the standard version, these values correspond to cing, i.e. Y is restored to its original value and X is the 96 printable characters in the ASCII set. The incremented by 6. 97th character is a 5 P x 8 Q block which may be used for deleting the other characters. The 98th code (OBI6) is used to plot a 4 P x 4 Q gra- phic block. It locates X, Y, without spacing for the next symbol. Such a block makes it possible to pad uniform areas on the screen. • Origin Unchanged (~ Altered dots x Computed dOIS, not defined into the ROM (not modifi- able). I ~ ' \ End } if CMD - 41 J6 (in the ROM standard version) ;It( Origin End @ Modified dots x Computed dot not detlned In ROM (not modifiable) E88 EF9365-22 E88 EF9365-21 21/33 157 EF9367 TILTED CHARACTERS The rising edge first received (LPCK or VB) sets bit 0 in STATUS register high. An interrupt is initiated if All characters may be modified to produce tilted cha- bit 4 in CTRL 1 is high. racters or to mark the vertical co-ordinate with straight or tilted type symbols. Such changes may When commands 0816 or 0916 have been decoded, be achieved using bits 2 and 3 in register CTRL2. bit 2 of the status register goes high (circuit ready for any further command) and bit 0 goes low (light Note: Scaling factors P and Q are always applied pen operating sequence underway). within the co-ordinates of the character before conversion. SCREEN BLANKING COMMANDS CHARACTER DELETION Three commands (0416, 0616, 0716) will set the whole display memory to a status corresponding to A character may be deleted using either the same a "black display screen", condition. Another com- command code or command code OA16. In either mand (OC16) may be used to set the whole memo- case, bit 1 in register CTRL 1 should be inverted, the ry to a status other than black (this condition being origin should be the same as prior to a character determined by bit 1 in register CTRL 1). plotting operation, as should the scaling factors. The 4 commands outlined above use the planned Note: Vector generator and character generator scanning of the memory addresses achieved by the operate in similar ways: display stage. The X and Y registers are not affec- ted by commands 0416 and OC16. Hence, the time Vector Character required is that corresponding to one frame (FMAT Dimensions DELTAX, DELTAY CSIZE, tilting = 0 or CK) or two frames (FMAT = 1 or CK). The DW Modulation Type of Line Character Code time corresponding to the completion of the frame currently executing when the CMD register is loa- USE OF LIGHT PEN CIRCUITRY ded, should be added to the above time. A rising edge on the LPCK input is used to sample For the screen blanking process, the frame origin is the current display address in the XLP and YLP re- counted starting with the VB falling edg~ gisters, provided, that this edge is present in the The only signals affected here are the OW output, frame immediately following loading of the 0816 or which remains low when VB is low, and the DIN out- 0916 code into the CMD register. put which is forced high where the 0416, 0616 and Here, the frame origin is counted starting with the 0716 commands are entered. VB falling edge. With code 0816, the MW output re- Such commands are activated without requiring ac- copies the BLK signal from the frame origin up to tion by WO input or bit 2 in register CTRL 1. While the rising edge on the LPCK input, orwhen VB starts these commands are executing, bit2 in STATUS re- rising again, if the LPCK input remains low for the gister remains low. entire frame. With code 0916, the MW output is not activated. EXTERNAL REQUEST FOR DISPLAY MEMORY ACCESS (MW output) The YLP address is 8-bit coded since there are 256 display lines in each frame. The XLP address is 6- One writing code OF16 into the CMD register, the bit coded since there are 64 display cycles in each MW output is set low by the circuitry, during the next line. free memory cycle. These 6 bits left-justified in register XLP indicate the Apart from the display and refresh periods, this cy- number of the segment (h = 0 to 63) to which the Q]e is the first complete cycle that occurs after input point indicated by the light pen belongs. E is reset high. The address sampled into XLP corresponds to the During this cycle, those addresses output on DAD current memory cycle. Dots detected by the light and MSL ~respond-.JQ.. the X and Y register pen were addressed in the memory during the pre- contents: OW is high, ALL is high. vious cycle. Hence, 1 should be subtracted from bit Should the memory be engaged in a di~y or re- 2 in XLP register where the light pen electronic cir- fresh operation, (which is the case when ALL is IQW,. cuitry does not produce any additional delay. then this cycle is postponed to be executed after ALL If the rising edge on input LPCK occurs while VB is is reset high. The maximum waiting time is thus 64 low, then the LSB in XLP is set high is set high. This cycles. bit acts as a status signal which is reset to the low The MW signal may be used e.g. for performing a state by reading register XLP or YLP. read or write operation into a register located be- 22/33 158 EF9367 tween the display memory and the microprocessor in the STATUS register (bits 4, 5, 6). If one flip-flop bus. circuit is.lli.9.h, bit 7 in the STATUS register is high, and pin IRQ is forced low. INTERRUPTS OPERATION A read operation in the STATUS reg is.1e r at address An interrupt may be initiated by three situations de- 016 resets its 4 MSBs low, after input E is reset high noted by internal signals: (a read at address F16 maintains their value). o Circuit ready for a further command. The three interrupt control flip-flops are duplicated o Vertical blanking signal. to prevent of an interrupt coming during a read cy- o Light pen sequence completed. cle of the STATUS register. These three signals appear in real time in the STA- The status of bits 4, 5 and 6 corresponds to the iQ.: TUS register (bits 0, 1, 2). Each signal is cross-re- terrupt control flip-flop circuit output, before input E ferenced to a mask bit in the register CTRL 1 (bits 4, goes low. 5,6). An interrupt coming during a read cycle of the STA- If the mask bit is high, the first rising edge that oc- TUS register does not appear in bits 4, 5 and 6 du- curs on the interrupt initiating signal sets the related ring this read sequence, but during the following interrupt flip-flop circuit high. one. However, it may appear in bits 0, 1, 2 or on pin The outputs from these three flip-flop circuits appear IRQ. Table 1 : Register Address. Address Register Register Functions Number Binary of Hexa liead Write Bits A3 A2 A1 AO R/W = 1 R/W = 0 a a a a a STATUS CMD 8 a a a 1 1 CTRL 1 (Write Control and Interrupt Control) 7 a a 1 a 2 CTRL 2 (Vector and Symbol Type Control) 4 a a 1 1 3 CSIZE (Character Size) 8 a 1 a a 4 Reserved - a 1 a 1 5 DELTAX 8 a 1 1 a 6 Reserved - a 1 1 1 7 DELTAY 8 1 a a a 8 x MSBs 4 1 a a 1 9 X LSBs 8 1 a 1 a A Y MSBs 4 1 a 1 1 B Y LSBs 8 1 1 a a C XLP (light-pen) Reserved 7 1 1 a 1 D YLP (light-pen) Reserved 8 1 1 1 a E Reserved - 1 1 1 1 F STATUS Reserved 8 Reserved: These addresses are reserved for future versions of the circuit. In read mode, output buffers 00-07 force a high state on the data bus. 23/33 159 EF9367 Table 2 : Command Register. b7 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 b6 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 b5 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b4 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b3 b2 b1 bO 0 1 2 3 4 5 6 7 8 9 A B C D E F Vector Generation (for b2, b1 , bO see small vector definition) 0 0 0 0 0 Set Bit 1 of CTRL 1 : Space 0 @ P P Pen Selection ! 1 A Q a q 0 0 0 1 1 Clear Bit 1 of CTRL 1 Eraser selection " 2 B R b r SMALL VECTOR 0 0 1 0 2 Set Bit 0 of CTRL 1 : DEFINITION Pen/Eraser Down Selection # 3 C S c s b2 b7 b6 b4 0 0 1 1 3 Clear Bit 0 of CTRL 1 : bl bS b3 Pen/Eraser up Selection bO $ 4 D T d t 0 1 0 0 4 Clear screen 1 lilXI lilYI Direction % 5 E U e u 0 1 0 1 5 X and Y Registers Reset to 0 6 F V f v & 0 1 1 0 6 X and Y Reset to 0 and Clear Screen 7 G W g w DIMENSION 0 1 1 1 7 Clear Screen, set CSIZE to code "minsize". ilX Vector All other registers reset to O. or Length (except XLP, YLP) ilY Special Direction Vectors 0 0 o Step (for b2, b1, bO see small vector definition) 0 1 1 Step 1 0 2 Steps 1 0 0 0 8 Lignt-pen initialization ( 8 H X h x 1 1 3 Steps (WHITE forced low) 1 1 0 0 0 1 0 1 9 A Lignt-Pen initialization 5 x 8 Block Drawing .) 9 : I J Y Z i j Y z (size according to CSIZE) 1 0 1 1 B 4 x 4 Block Drawing + ; K [ k { DIRECTION (size according to CSIZE) 1 1 0 0 C Screen Scanning: < L \ I I Pen or Eraser as defined by I 010 ':{f"jOO~ CTRL1 1 1 0 1 D X Register Reset to 0 = M 1 m } 1 1 1 1 1 1 0 1 E F Y Register Reset to 0 Direct Image Memory access / > ? N 0 t f- n 0 ~ ~ 111~tJl0l request for the next free 100 cycle. E88 EF9365-23 24/33 160 EF9367 OTHER REGISTERS STATUS REGISTER (read only) • HIGH = light-pen sequences ended. } These 3 bits are not latched HIGH = vertical blanking (Idem on pin VB) and not masked ,-----+. HIGH = leady for a new command: LOW = busy ' - - - - _ _ + . HIGH = pen out of display window (logical OR of the 6 MSBs of the X and V registers) HIGH = light-pen sequence ended IRQ (if enabled) } These 3 bits are reset after a read HIGH = vertical blanking IRQ (if enabled) cycle of the status register at , - - - - - - - - - - - - - . . HIGH = ready for a new command IRQ (if enabled) address 0,6. , - - - - - - - - - - - - - + . IRQ : logical OR of bits 4, 5, 6, ; HIGH when IRQ output is low. CONTROL REGISTER 1 (read/write) • HIGH = pen down; LOW = pen up (control OW output) HIGH = pen ; LOW = eraser (control DIN output) ,-----+. HIGH = high speed write: no video (BLK output is high, mini. of memory refresh cycles) ,------+. HIGH = cyclic screen (memory display write even if bit 3 of the status register is high) HIGH = enable end of the light pen sequences IRQ HIGH = enable VB IRQ } Interrupt masks '-----~--------.. HIGH = enable ready for a new command IRQ , - - - - - - - - - - - - - + . Not used (0 for reading) CONTROL REGISTER 2 (read/write) b1 bO Type of Vectors 0 0 --- Continuous Type of vectors 0 1 ----------- Dotted 2 dots on, 2 dots off 1 0 ---- Dashed 4 dots on, 4 dots off Not used , - - - - . . HIGH = tiltedcharacter 1 1 Dotted- 10 dots on, 2 dots off --- (always read as 0) Dashed 2 dots on, 2 dots off , - - - - - - . . HIGH = character on vertical axis Types of character orientations Initial X,V II Final regj~t.er ~ X. V. .register position pOSItion b3 = 0, b2 ~ 0 b3 = 0, b2 = 1 CSIZE = 11 16 CSIZE = 11 16 E88 EF9365-24 E88 EF9365-25 25/33 161 EF9367 Types of character orientations b3 =1, b2 CSIZE = 11 16 = 0 EBB EF9365-26 I b3 = 1, b2 = 1 CSIZE = 11'6 E88 EF9365-27 b3~O b2~ 1 b3 ~ 0, b2 ~ 0 EB8 EF9365-28 CSIZE'~ 22'6 E88 EF9365-2S CSIZE ~ 22'6 C-SIZE REGISTER (read/write) P : Scaling factor on X axis o : Scaling factor on Yaxis P 0 P and Q may take any value between 1 and 16. This value is given by the leftmost or rightmost 4 bits for P and Q respectively. Binary value (0) means 16. X AND Y REGISTERS (read/write) 1X1XMXJ 1 1 1 1 3 2 1 0 MSBs 17161514131211101 LSBs The 4 leftmost MSBs are always O. XLP and YLP REGISTERS l Status bit indicating if a rising j edge has been applied on LPCK duri ng the first complete frame following light-pen initialization. This bit is reset by a read on XLP or YLP. 8 bit Y LP value always 0 ' - - - - - - - - j... 6 bit XLP value 26/33 162 EF9367 ASCII CHARACTER GENERATOR (5 x 8 matrix) b7 0 0 0 0 0 0 b6 0 0 1 1 1 1 b5 1 1 0 0 1 1 b401 0101 ib:;b2blbO 0000 IIIIII 0001 IIIIII 0010 IIIIII 0011 IIIIII 0100 IIIIII 0101 IIIIII 0110 IIIIII 0111 1111111 1000 IIIIII 1001 IIIIII 1 0.1 0 IIIIII 1011 1111111 1100 IIIIII 1101 1111111 1110 IIIIII 1111 IIIIII E88 EF9365-30 163 -------- ----~-----" _._-- ---------..- .""'.--~-----,,---------~--- - ---~-~---- .~-, --"~--- ----=~-----=-= EF9367 EXAMPLE OF A MONOCHROME APPLICATION: 512 x 512 or416 x 512 1 r 3 to a decoder E I 1 ~ ~~'~ c-J ~ ALL- --- CAS, a or 16 bit r-- MS L3 MSLO to 2 microprocessor bus I----- ) Mf~~ 01 to Data DO ONE MEMORY PLANE DAD6 A3 ~ ~ 512 x 512 bits 10 AO I-- ~ to DADO to AU I Address 2 x a {16-K bit chips} I- GDP I--L- R/W -ow - IRQ Control DOUT DIN E ~ BLK CK SYNC ~ I ~ a-bit shift Generator register '-J of 1.5 MHz clocks 12 MHz crystal high·speed clock (:J Com posite .. Video .~ video output mixer EBB EF9367·13 Notes: FMAT = Vee: 512 x 512 resolution· 50 Hz 625 line non inlerlaced scanning. FMAT = CK : 416 x 512 resolution· 60 Hz 525 line non interlaced scanning. 28/33 164 EF9367 EXAMPLE OF A COLOR APPLICATION: 208 x 512 or 256 x 512 Eight colours may be obtained from the three basic colours red (R), green (G), blue (8). -- l I 3 to 8 decoder EJ I 11) T T TT T A IV H 8 ./t ~ J IDENTICAL ; MEMORY PLANES / 8or16bn 8 L microprocessor bus '7 ALL MSLO to 2 ~ 07 I{ (. 10 DO IV-- 7/ 7 RAS CAS 7 I DAD6 '0 OADO A3 1f - - I----- MEMORY PLANE 256 x 512 b;ts R AO to A6 I-Y - GOP ~Ol\ - I----- 8 x 116 K-bit chipsl DIN ~- 8 CK BLK DIN RIW -- IRa r-~ OW SYNC E. - Rfw ~l~ °OUT 8 8 I tz 3 IDENTICAL REGISTERS ~ ~j .:.-J I I I / L--- J I J-- ~ J I B-bil shift Generator g register of 1.5 MHz clocks 4 12MH"->->-Z DO Yl _r.::J.....I:LC: r::L.J::L1:I .. "--1::I.Il i_.t:1 .. r'1 noM M n n 01 YO ~." -w~g~~~w~ 04 [ 10 a OJ AOM15 02 03 .1005 .1004 05 [ 11 AOMI4 06 [ 12 04 .1003 ADM13 05 Al>Il2 07 [ 13 AOM12 D6 .1001 - 08 [ 14 ADM!! 09 [ 15 '" 55 ADM10 07 08 .1000 AlO6 010 [ 16 ADM9 Dl1 ( 17 53 ADM8 D9 012 [ 18 52 010 'IOC Vss [ 19 NC NC 20 21 ,. 51 49 ADM7 AOM6 ADM5 011 012 V55 ..... ADCI AllIfi 013 22 48 ADM4 013 Al>I4 014 23 47 AOM3 015 CS 24 25 46 AOM2 ADM! 014 ...., APe .100 55 26 44 ADMO os AlJI) ~ UK At P3 A7 P2 E88TS68483-0 1 A6 PI AS PO A4 iiii A3 AD A2 Al E88TS68483-02 Figure 1.1 Typical Application. 1"--- --------, r---~~--~S~Y~NC~~ ~~Sy-N~c~I---__~ I MONITOR I I I I I I L _____________ J I E88TS68483-03 2/41 172 TS68483 TABLE OF CONTENTS 1. GENERAL OPERATION 2. COMMANDS 3. MICROPROCESSOR INTERFACE 4. THE VIDEO TIMING GENERATOR RAM REFRESH AND DISPLAY PROCESS 5. MEMORY ORGANIZATION 6. TIMING DIAGRAM 7. REGISTER MAP AND COMMAND TABLE 8. ORDERING INFORMATION AND PACKAGE MECHANICAL DATA 3/41 ~ SGS-THOMSON ..." iIIlUl!:lIII@rnl!K'li'lII©OOUI:$ 173 TS68483 1. GENERAL OPERATION 1.1. INTRODUCTION The TS68483 is an advanced color graphics con- On-chip video shift registers and fully programma- troller chip. It is directly compatible with most popu- ble Video Timing Generator allow the TS68483 to lar 8 or 16-bit microprocessors. be used in a wide range of terminals or computer Its display memory, containing the frame buffer and design. the character generators, may be assembled from Additional informations on applications can be standard dynamic RAM components. found in the TS68483 User's Manual. 4/41 174 TS68483 BLOCK DIAGRAM MICROPROCE:.SSOR INTERFACE / r-~~--------~.~------------~,' AE, OS Rfji f.S 0(015) AIO 7) ~4 ~8 A , 16 t g RO R4 elK R1 I R2 I I BlK R3 I I R12 I PC/HS I Rl0 I I HVS/IIS vee ---+ I I VIDEO R23 INTERFACE VIDEO -;::::= ~ TIMING SYNC IN VSS GENERATOR DRAWING *'" 0 0 ~ AND ACCFSS PROCESSOR VIDEO ...> 10- 21 SHiFf REGISTERS .... ~ DATA .J.I 32 DATA 32 " 7 DISPLAY MEMORY LOGIC 2 2 3 16 7 7 V V ' V7 V eys y 102) ADMIO.15) ~~----------------."r----------------'/ DISPLAY MEMORY INTERFACE E88TS68483-04 5/41 175 TS68483 PIN DESCRIPTION MICROPROCESSOR INTERFACE Name Pin Type Function Description 0(0: 15) I/O Data Bus These sixteen bidirectional pins provide communication with either an 8 or 16-bit host microprocessor data bus. A (0: 7) I Address Bus These eigth pins select the internal register to be accessed. The address can be latched by AE for direct connection to address/data multiplexed microprocessor busses. AE I Address Enable When TS68483 is connected to a non-multiplexed microprocessor bus, this input must be wired to VCC. For direct connection to a multiplexed microprocessor bus, the fallin.9...§dge of AE latches the address on A (0 : 7) pins and the CS input. With an Intel type microprocessor, AE is connected to the processor Address Latch Enable (ALE) signal. OS I Data Strobe Active Low - - In non-multiplexed bus mode, OS low enables the bidirectionnal data buffers and latches the A (0 : 7) lines on its high to low transition. Data to be written are latched on the rising edge of this signal. - In multiplexed bus mode, this signal low enables the output data buffers during a read cycle. With intel microprocessors, this pin is connected to the RD signal. R/W I Read/Write - In non-multiplexed bus mode, this signal controls the. direction of data flow through the bidirectional data bufiers. - In multiplexed bus mode, this signal low enables the input data buffers. The entering data are latched on its rising edg~ith Intel microprocessors, this pin is connected to the WR signal. CS I Chip Select This input selects the TS68483 registers for the current bus cycle. A low level corresponds to an asserted chip select. In multiplexed mode, this input is strobed by AE. IRQ 0 Interrupt Request This active-low open drain output acts to interrupt the microprocessor. MEMORY INTERFACE Name Pin Type Function Description ADM (0: 15) I/O Address/Data Memory These multiplexed pins act as address and data bus for display memory interface. CYS 0 Memory Cycle Start The falling edge of this output indicates the beginning of a memory cycle. Y (0: 2) 0 Memory Address These outputs provide the least significant bits of the Y logical address. B (0: 1) 0 Bank Number These outputs provide the number of the memory bank to be accessed during the current memory cycle. CYF (0: 1) 0 Memory Cycle Status These outputs indicate the nature of the current memory cycle (Read, Write, Refresh, Display). 6/41 176 TS68483 VIDEO INTERFACE Name Pin Type Function Description P (0: 3) 0 Video Shift Register These four pins correspond to the outputs of the internal Outputs video shift registers. PC/HS 0 Phase Comparator/ This output can be programmed to provide either the phase Horizontal Sync. comparator output or the horizontal sync. signal. HVSNS 0 Composite or Vertical This output can be programmed to provide either the Sync. composite sync. signal or the vertical sync. signal. SYNC IN I External Sync Input This input receives an external composite sync. signal to synchronize TS68483. This input must be grounded if not used. BlK 0 Blanking This output provides the blanking interval information. OTHER PINS Name Pin Type Function Description VCC S Power Supply + 5 V Supply VSS S Ground Ground ClK I Clock Clock Input 1.2. TYPICAL APPLICATION BUILDING BLOCKS any popular horizontal scanning period from 20 !1S In a typical using TS68483, a host processor drives to 64 !1S may be freely combined with any number a display unit which drives in turn a color CRT mo- of lines per field (up to 1024). The address of the nitor. display viewport (this part of the display memory to be actually displayed on the screen) is fully program- The display unit consists of four hardware building mable. The display processor provides the display blocks: dynamic RAM refresh (see video timing generator _ an TS68483 advanced graphics controller, section for details). _ a display memory (dynamic RAM), _ a display memory interface, comprising a few 2. Drawing and access commands (RO to R3, R12 TTL parts, to R23). _ a CRT interface of CRT drivers. The 16 remaining registers are used to specify a For enhanced graphics, the CRT interface may in- comprehensive set of commands. The highly ortho- clude a color look-up table circuit such as EF9369. gonal drawing command set allows the user to For high pixel rate (over 18 Mpixels/s), the CRT in- "draw" in the display memory such basic pattems terface must include high speed video shift regis- as lines, arcs, polylines, polyarcs, rectangles and ters. characters. Efficient procedures are available for ei- The display memory interface and organization are ther area filling and tiling or line drawing and textu- discussed in full details in the User's Manual. ring. Lines may be drawn with a PEN in orderto get thick strokes. Any drawing is specified in a 213 X 2 13 1.3. TS68483 FUNCTIONS. drawing coordinate system. All the TS68483 functions are under the control of To access the display memory, the host micropro- the host microprocessor via 24 directly accessible cessor has an indirect, sequential access to any 16-bit registers. These registers are referred to by "window". Access commands can be used to load their decimal index (RO-R23). See figure 1.2. the character generators as well as to load or save 1. Video timing and display processor (R4 to R10). arbitrary windows stored in the frame buffer. The video timing generator is fully programmable: 7/41 177 TS68483 Figure 1.2. : Register Map. 15 8 7 D RD COMMAND MODE Rl R2 Sx I Sy CO Cl COMMAND, DRAWING ATTRIBUTES R3 I TEXLIN I R4 XOR I MARGIN COLOR R5 R6 H YOR I 8PY RI DWX FPY VIDEO TIMING R8 FPX 8KX 8KY GENFRATOR R9 DWY I RIO CONF - Rll - - R12 STATUS I - R13 I c1y I c1x SHORT RELATIVE REGISTER R14 R15 I Yd Xd I DESTINATION POINTFR R16 DYd R17 I DXc1 I R18 RAD RIg I STOP I AUXILIARY GFOMFTRIC ARGUMENTS R20 Ys R21 Rn I Xs DYs I SOURO POINTER R23 I DXs I E88TS68483-05 8/41 178 TS68483 1.4. DATA TYPE DEFINITIONS. VIEWPORT: PIXEL: this is the smallest color spot displayable on This is any rectangular array of pels located in the the CRT. display memory. PEL: a Picture Element is the coding of a PIXEL in FRAME BUFFER: the display memory. The TS68483 can handle 4 dif- This is the biggest viewport which can be held in the ferent PEL formats: display memory. The frame buffer maps a window _ 4 color bits - short at the origin of the drawing coordinates. A short pel _ 4 color bits + 1 mask bit - short masked frame buffer may be located in any bank. A long pel _ 8 color bits - long frame buffer must be located in the "bank 0, bank 1" _ 8 color bits + 1 mask bit - long masked pair. DRAWING COORDINATES: (see figure 1.3). DISPLAY VIEWPORT: The drawing commands are specified and compu- This is the viewport which is displayed on screen. ted in a2 13 x 213 cyclical coordinate system. The dra- MASK BIT PLANE: wing coordinates are clipped and mapped into the When masked pels are used, a mask bit plane must 211 x 211 display memory addressing space. Further be associated to a frame buffer. Mask bit planes may clipping to the actual frame buffer size may be per- be located in any plane of bank 3. formed by the user designed memory interface. CELL: DISPLAY MEMORY: A CELL is any pattern stored in the display memo- This is the private memory dedicated to the display ry as a rectangular array of bit mapped elements. unit. This memory is addressed as four banks of 4- The drawing of any CELL may be specified with a bit plane each. scaling factor. BIT PLANE: CHARACTER: Each bit plane has a maximu m capacity of 211 x 211 This is a one bit per element CELL. It may be stored bits. A byte wide organization of each bit plane is re- in any bit plane, then colored and drawn in a frame quired. buffer by use of PRINT CHARACTER command. MEMORY ADDRESS: (see figure 1.4). OBJECT: In order to address one bit in the display memory, This is a one short pel per element CELL. It may be the user must specify: drawn or loaded in a frame buffer. A source mask _ A bank number (2 bits) B = 0 to 3 bit may be associated to each element. An OBJECT _ A bit plane number (2 bits) Z = 0 to 3 may then be printed in another location by use of a _ A Y address (11 bits) Y = 0 to 2047 PRINT OBJECT command. _ An X address (11 bits) X = 0 to 2047 PEN: MEMORY WORD: (see figure 1.4). This is the pattern which is repeatedly drawn along A 32-bit memory word can be either read or written the coordinates defined by either a LINE or an ARC during each memory cycle (8 CLK periods), one byte command. at a time in each bit plane in the addressed bank. The PEN may be a DOT (single pel), a CHARAC- The memory bandwidth is in the 6 to 8 Mbytes/s TER or an OBJECT. range. 9/41 179 TS68483 Figure 1.3. : Cyclical Drawing Coordinates to Display Memory Mapping. Y 2" t - - r - - - - - - - - - - - , \ M r~~SSK 2"r-----, , . 7 .,. ..- " \, ~ 4 5 LONG PELS \ 2'3 ,, , \ L-_ _ _ ..:;.L._.2~ ~ 3 SHORT PELS \ E88TS68483·06 Figure 1.4. : The Display Memory Addressing Space. BANK 0 BANK 1 BI\NK / 8J\r\K :~ THE MFMORY WORD " BANKS Of " I:3lf PI ANlS J-J\CH E88TS68483-07 10/41 180 TS68483 ~. COMMANDS 2.1. INTRODUCTION The command set is strongly organized in five sub- These arguments are: 5et or command types. _ the geometric arguments given in the drawing co- DRAWING COMMANDS: ordinate system for every drawing command. _ LINEAR (line, arc) They are automatically mapped into the destina- _ AREA (rectangle, trapezium, polygon, polyarc) tion frame buffer; _ PRINT CELL (print character, print object) _ the parametric values are the values required by the selected parameters ; ACCESS COMMANDS _ the attribute values are the other values required CONTROL COMMANDS (move cursor, abort). by a drawing command; colors or scaling factors The commands are parametered; this means that for example ; any command can be executed with options freely _ the display memory addresses. selected out of a given option set. This option set is The command code is specified in register RO. Be- common for any command of a given type. For fore initiating a command execution, each argument example, any drawing command may be parame- must be specified in its dedicated register: - an Xd, tered for destination mask bit use. Yd drawing coordinate pair for example, is always The command code also defines the command type located in registers R14, R15. and its parameters. A command is completely defi- The monitoring of a command execution is done by ned when a value has been set for each of its argu- reading the status register R12 or using the IRQ si- ments. gnal. Figure 2. 1. : Command Set Structure. Command Drawing Mode Type Group Line Up to the Pen Linear Arc Rectangle Monochrome Area Trapezium Drawing Polygon Polyarc Print Char Bichrome Cell Print Object Polychrome Load Viewport Access Save Viewport Modify Viewport Management Move Cursor Abort Control 2.2. POINTERS AND GEOMETRIC ARGU- mension (DXd, DYd) of either a line or a window in MENTS. the drawing coordinate system. These drawing co- Pointers are used to specify main geometric argu- ordinates are easily mapped into a PEL DISPLAY ments and display memory addresses. MEMORY address. 2.2.1. Display Memory Address. A bit in the dis- (X, Y) coordinates are clipped to 11 bits in order to play memory is addressed by : get the Xd, Yd destination pel addresses. _ a bank number B = 0 to 3 A bank number Bd must be explicitly provided to ad- _ a plane number Z = 0 to 3 dress a destination frame buffer. When long pels are _ an X address X = 0 to 2047 used, Bd must be even. _ a Y address Y = 0 to 2047 When masked pels are used, the destination mask 2.2.2. Destination Pointer: Registers R14 to R17. plane number Zd (implicitly in bank 3) must also be This pointer gives the coordinate (Xd, Yd) and di- provided. 11/41 181 TS68483 Figure 2.2. Pointers. 15 14 13 12 11 10 R14 ~ '\ Yd '-y---I ~------------------~vr------------------~/ tlank number 1 3-bll posllive vahJP Pel iHicjrr'SS R15 '\~---------------------,V / Df-STJNATIO\l Plane number POINTER 13 bit positiVe v;)lur: R1B DYd / I V Absulute value R17~ J DXd ~L,::::::~~::::::~:::::::::~:::::::::~:::::::::~_....L.._-'-_"-_.L-_'-....J V Absolute vulue R20 R21 '~'~----~---v---------_J For TRA~IUM cOrnMnd SOURer POINTeR R22 Absolute value R23 NOTE Sign value. S ~ a POSitive • S ~ 1 negative + absolute VilhH'! E88TS68483-08 12/41 182 TS68483 2.2.3. Source Pointer: Registers R20 to R23. A 2.3. DESTINATION MASK AND SOURCE MASK. :,ource cell such as a character, a pen or an object, A mask bit may be associated to any pel stored in IS addressed by the source pointer in the display me- the display memory. mory. 2.3.1. Destination Mask Use (DMU). Any drawing A source pointer specifies: command may be parametered for destination _ a bank number Bs = 0 to 3 mask use. In this case, any destination pel cannot _ a Ys address Ys = 0 to 2047 be modified when its mask bit is reset. _ an Xs address; this address is a byte address so that the 3 LSBs are not specified Xs = 0 to 255 In other words: _ a cell dimension DXs, DYs When the destination mask use (DMU) parameter _ a bit plane address Zs. is set: When a character is addressed, Zs gives the plane _ a pel may be modified when its mask bit is set number Into the bank Bs. When an object is addres- _ a pel cannot be modified when its mask bit is re- sed Zs gives the source mask plane number in the set. bank B3. When the destination mask use (DMU) parameter 2.2.4. Notes : is cleared: _ a pel may be modified, independently of its mask 1. The TRAPEZIUM command makes a special use bit value. of R21. In this case, R21 holds an X1 drawing co- ordinate which has the same format as Xd. This provides a very flexible clipping mechanism not restricted to rectangular windows. (See destination 2. The ARC and POLYARC commands require two pointer section for destination mask bit addressing). extra geometric parameters (RAD and STOP). They are specified in the drawing coordinates 2.3.2. Source Mask Use (SMU), A PRINT OBJECT system and stored in registers R18, R19. command may be parametered for source mask use. In this case, the source mask bit associated 3. Any drawing command may be parametered to with any source pel is read first. When its mask bit use short incremental dimensions, DXY in regis- is cleared, a source pel is considered as transpa- ter R13 instead of the standard DXd, DYd in the rent. (See source pointer section for source mask "R16, R17" register pair (see figure 2.3). bit addressing). 4. The access commands use the destination poin- In other words: ter location as a data buffer. The memory ad- dresses and dimension of the access viewport When the SMU parameter is set, the color of a des- are then specified in the source pointer, inde- tination pel, mapped by a given source pel, may take pendently of the data transfer. this source color value only when this source bit mask is set. The destination pel keeps its own color 5. DXd, DYd and DYs may specify a negative va- value when the source bit mask is cleared. lue. In this case, they must be coded by a sign (0 = positive, 1 = negative) and an 11-bit abso- When the SMU parameter is cleared, a source pel lute value. color may be mapped into destination pel color in- dependently of the source bit mask value. Figure 2.3. : Short Dimension Register R13. The source bit mask acts as a TRANSPAREN- CY/OPACITY flag which is enabled by SMU. A PRINT OBJECT command may be independently parametered by both SMU and DMU. This provides 4 3 o a very powerful tiling, print object or move mecha- R131 s I I I IsI I I I nism. ~~ 2.4. DRAWING ATTRIBUTES. dy dx The general drawing attributes are the colors, the drawing mode, and the scaling factor. dx, dy ~ - 7 to + 7 (sign + absolute value) 2.4.1. Colors : Registers R1 and R2 (see figu- re 2 .4.). Two a-bit color values, CO and C1, may be E88TS68483-09 specified in registers R1 and R2. The low order 4- 13/41 183 TS68483 bit nibble of a color value is drawn in an even bank. COLOR TRANSFORM: The high order color nibble is drawn in an odd bank. The color value C of each active pel is modified ac- When long pels are used, banks 0 and 1 are gene- cording to one color transform selected out of four: rally addressed as the frame buffer. When short pels _ 00 - printed in CO : C ~ CO are used, any bank may hold a frame buffer. In this _ 01 - printed in C1 : C ~ C1 case, the bank parity selects the color nibble used. _ 10 - printed in "transparent" : C~ C (See destination pointer section for bank addres- _ 11 - complemented : C~ C sing). This yields to a reversible marker mode. Figure 2.4. : Color Register. MASK BIT TRANSFORM: The destination mask bit of each active pel is modi- fied according to one mask transform selected out I I I' I I I I I I I 6 4 3 2 1 0 RI R2 of four : _ 00 - reset bit mask: M ~ 0 _ 01 - set bit mask: M ~ 1 _ 10 - no modification: M ~ M _ 11 - complement bit mask: M ~ M E88TS68483-10 This scheme allows the color bits and the mask bit 2.4.2. Drawing Mode: Register RO. The drawing of any pel belonging to the active set to be modified mode defines the transforms to be applied to the independently. The color transform is performed pels designated by the drawing commands. There first. are three drawing modes. 2.4.4. Bichrome Mode. A PRINT CHARACTER 2.4.3. Monochrome Mode. Any AREA drawing command is more complex because it involves two command, RECTANGLE for instance, defines different active sets: FOREGROUND and BACK through its geometric arguments an active set of GROUND. destination pels, that is to say a set of pels to be mo- The FOREGROUND is that set of destination pels dified. printed from set elements in the character cell. The When DMU = 1, this active set is further reduced by BACKGROUND is made of all the remaining pels the masking mechanism to only these destination belonging to the destination window. pels with a bit mask set. When DMU = 1, the FOREGROUND and BACK The active destination pels are then modified accor- GROUND are further reduced by the destination ding to two elementary transforms coded in RO. masking mechanism. (see figure 2.6). A bichrome drawing mode is defined by 4 elementary and independent transforms: (see figure 2.5) _ a color transform For the FOREGROUND PELS _ a mask transform _ a color transform For the BACKGROUND PELS _ a mask transform Figure 2.5. : Drawing Mode RegisterRO. BACKGROUND FOREGROUND ~ BACKGROUND rOREGROlJND ~~ f I I I REGISTER RO 6 o TTI{ooc.co I co~ HEr x I - x x I - x x x I x x x x I x X Monochrome {~~: ~: t - - - - ~---"'M::::AS"'-K- 1 0 1 0 Polychrome L -_ _ _ _ __ 11.M---r:;J E88TS68483-11 14/41 184 TS68483 Figure 2.6. : Print Character Command. DESTINATION WINDOW CHARACTER CELL (Xd. Yd) [)xd > a Sf-T f-I FMFNT 1 (Xs. Ys! DYs < 0 _.,..-~lLLMLNr ~ () MASK IllT -= 1 MASK Hil = () E88TS68483·12 E88TS68483·13 MAPPED CHARACTER WINDOW MAPPED CHARACTER WINDOW -~ __ (Xd. Yd) / -.-. Xd I __ ~J I I I ~ I I I I I _J _J ~--- FOREGROUND BACKGROUND DMU -" 0 E88TS68483·14 2.4.5. Polychrome Mode. A print object command 2.4.6. The Linear Drawing Command Case. A defines a source window through the source poin- LINE or ARC drawing command may be executed ter : in any drawing mode depending on the PEN. When SMU = 0, any pel of this window is active, When the pen is a DOT, this pel is printed at each mapped and clipped to the destination window di- active coordinate according to monochrome mode. mension. When the pen is a CELL, this cell is printed at each When SMU = 1, only pels which have a source mask active coordinate. In the bichrome mode when the bit set are active, mapped and clipped to the desti- cell is a character, and in the polychrome mode nation window dimension. when the cell is an object. In both cases, when DMU = 1, the active source pels For each active coordinates, the active destination are further reduced by the destination masking me- set is defined by the cell dimensions (DXs, DYs). chanism. Note : when the cell is an object, SMU is not pro- Both mask transforms must be programmed at "NO grammable and is implicitly set. A calculated coor- MODIFICATION" for correct operations. (see fi- dinate is active when the rotated LSB linear texture gure 2.5). bit in (R3) is set. 15/41 185 TS68483 2.4.7. Scaling Factor and Cell Mapping: (see fi- CESS or LINEAR (DOT) commands are never sca- gure 2.7 and 2.8). Any cell may be printed with a led. scaling factor. The LINEAR (PEN) command should be used with a scaling factor of 1 because the pen is clipped at This scaling factor is an integer pair Sx, Sy = 1 to DXs, DYs. 16. The scaling factor is first applied to the source cell This scaling factor is interpreted with the PRINT before mapping and drawing. The drawing and CHARACTER, PRINT OBJECT and LINEAR com- mapping is processed with sign bit of DYd and DYs mands when the pen is a cell. The AREA or AC- values. (see figure 2.8). Figure 2.7. : Scaling Factor. 15 14 13 12 11 10 R1LI__ ~_s~:__~~__~~S~Y~~~ SX or SY S 0001 1 0010 2 I I I I I I 1111 1 :) 0000 16 E88TS68483-15 Figure 2.8. : Cell Mapping Versus DYd, DYs SIGN. r Xd Yd DXd > 0 I DYd > a -'L--~~ I DYd0 Xd. Yd DXd > 0 Xs, Ys ox::, > 0 - - - - -...... x --, I DYd< 0 I I I Xd. Yd DXd > 0 E88TS68483-16 16/41 186 TS68483 Note: When dXd, dYd is much larger than DXs, DYs the _ DXs is always positive command may be parametered for repeat drawing. _ The DYs sign mirrors the cell _ DXd must be positive with a PRINT CELL com- These commands may also be parametered for mand destination mask use. _ DXd and DYd may get any sign with a LINEAR Further more the PRINT OBJECT command may DRAWING command. If a pen is used, these be parametered for source mask use. signs are then irrelevant to the pen drawing. The pen is mapped with positive increment values. These commands have a wide range of appli- cations: text drawing, area tiling, print or move ob- jects, scale and move viewports. Note: an underlined cell is drawn when the MSB of R23 is set. 2.5.4. Access Commands. _ LOAD VIEWPORT (Xs, Ys, DXs, DYs) _ SAVE VIEWPORT (Xs, Ys, DXs, DYs) _ MODIFY VIEWPORT (Xs, Ys, DXs, DYs) E88TS68483-17 These commands provide sequential access to a 2.5. COMMAND SET OVERWIEW viewport in a frame buffer from the microprocessor 2.5.1. Linear Drawing. LINE (Xd, Yd, DXd, DYd). data base. ARC (Xd, Yd, DXd, DYd, RAD, STOP). Data are transferred to/from the display memory, word sequentially. The curve may be drawn with any pen and with any linear texture (register R3). For each set of compu- The R14 to R17 registers are used as a two memo- ted coordinates, R3 is right rotated and the pen is ry word FIFO (memory word is 8 short pels, i.e. 4 printed when the shifted bit is set. bytes). 2.5.2. Area Drawing. _ RECT (Xd, Yd, DXd, DYd) The source pointer (R20-R23) is used to address _ TRAPEZIUM (Xd, Yd, DXd, DYd, X1) the viewport for all access commands. _ POLYGON (Xd, Yd, DXd, DYd) When long pels are used, the command must be _ POL YARC (Xd, Yd, DXd, DYd, RAD, STOP) executed once more when the bank number in R20 Either RECT or TRAPEZIUM allows to draw direct- has been updated. ly all the pels inside the boundary. 2.5.5. Command Execution. Each on-chip 16-bit Any other closed boundaries may be filled by a 3- register has four addresses. One address is used step process: for plain read or write. The other addresses are used 1. The mask bits inside a boundary box must be re- to initiate command execution automatically on set by a RECT command. completion of the register access. 2. A sequence of mixed POLYGON and POLYARC This scheme allows the command code and its ar- commands describing the closed boundary sets the guments to be loaded or modified in any other. An mask bits of the pels inside this boundary. incremental line drawing command, for example, may be executed again and again with successive 3. This area may then be painted by a RECTANGLE command defined for a bounding box, with destina- incremental dimensions and whithout need to re- load the command code itself. tion masking. It may also be tiled by use of a PRINT CELL command. As soon as a command execution is started, the Note: the mask bit of any pel lying on the bound- FREE bit is cleared in the STATUS register. This bit ary itself is not guaranteed to be set by step 2. is automatically set when the execution is comple- ted. 2.5.3. Print Cell Commands. PRINT CELL (Xd, Yd, DXd, DYd ; Xs, Ys, DXs, DYs). The commands are generally executed only during The cell addressed by Xs, Ys, DXs, DYs is scaled retrace intervals. However full time execution is pos- then printed at location Xd, Yd and clipped at the sible when either the display is disabled or video dXd, dYd dimensions. RAM components are used. 17/41 187 TS68483 2.5.6. Status Register (see figure 2.9). This regis- ring a viewport transfer ter holds four read-only status bits: _ NSEM : this status bit is set when the FIFO me- _ FREE: this status bit is set when no execution is mory word is accessible to the microprocessor pending during a viewport transfer. _ VS : vertical synchronization state Each of these status bits is maskable. The masked _ SEM : this status bit is set when the FIFO memo- status bits are NORed to the IRQ output pin. ry word is inacessible to the microprocessor du- Figure 2.9. : Status Register. STATUS REGISTER H12 L - _....~ MASK NSEM L.-----li~ NSE M L - - - - - - - t - . MASKSEM L -_ _ _ _ _ _ _ ---I~ SEM L -_ _ _ _ _ _ _ _ _ ~~ MASKVS READ ONLY L -_ _ _ _ _ _ _ _ _ _ _ _ _ _ ~~ VS L -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ~ MASK FREE L -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _.... ~ FREE R12 E88TS68483-18 18/41 188 T568483 3. MICROPROCESSOR INTERFACE 3.1. INTRODUCTION The TS68483 is directly compatible with any popu- _ A(l :5) select one out of 24 registers. lar 8 or 16-bit host microprocessor; either Motoro- _ AO selects the low order by1e (AO ; 1) or the high la type (6809, 68008, 68000) or Intel type (8088, order byte (AO =0) of the selected register. 8086). _ A(6 :7) provide the command execution condition. The host microprocessor has direct access to any The host microprocessor bus may be either 8 or 16- of the twenty four 16-bit on-chip registers through bits wide and may be address/data multiplexed or the microprocessor interface pins : not. _ 0(0:15) : 16 bidirectional data pins. The two flags MB and BW in the CONFIGURATION - ~:ZL 8 aI O{O:7IK:=========~>I TS68000 . A{1:71l==========::::::>1 TS68483 E88TS68483-20 20/41 190 TS68483 Figure 3.4. : Interface with TS68000/68008 MPU (continued). AIO 7) t============!":>1 TS68008 . TS68483 E88TS68483-21 Figure 3.5. : Interface with 8086/8088 MPU. 8 8086 TS68483 E88TS68483-22 21/41 191 TS68483 Figure 3.5. : Interface with 8086/8088 MPU (continued). 8 IIlf cs flS flD H/W WR 8088 TS68483 E88TS68483-23 4. THE VIDEO TIMING GENERATOR RAM REFRESH AND DISPLAY PROCESS 4.1. INTRODUCTION These two parameters are internally programmed: The Video Timing Generator is completely synchro- _ Horizontal sync pulse duration = 7 cycles nous with the ClK input, which provides a pixel shift _ Vertical sync pulse duration = 2.5 lines. frequency (up to 18 MHz). The Video Timing Gene- 4.2.2 Blanking Interval. The blanking interval rator: starts: _ delivers the blanking signal (BlK), the horizontal _ at the leading edge of the vertical sync pulse. Ver- (HS) and vertical (VS) synchronization signals on tical blanking interval actual duration is 2.5 lines respective output pins, more than the programmed value. _ schedules the memory time allocated to the dis- _ two cycles before the leading edge of the horizon- play process, dynamic RAM refresh and com- tal sync pulse. The actual horizontal blanking in- mand execution, terval duration is 3 cycles more than the program- _ is fully programmable med value. _ can be synchronized with an external composite video sync signal connected to the SYNC IN in- Note: During the programmed blanking interval, the put: video output pins P(0:3) are forced low. 4.2. SCAN PARAMETERS (see table 1 and ti- 4.2.3. Porch and Margin Color. During the porch ming diagram 5) interval, the programmable margin color is dis- 4.2.1. Timing Units. The time unit of any vertical played on the P(0:3) outputs. parameter is the scan line. The display process may be disabled by setting The time unit of any horizontal parameter is the me- DPD flag. This will be interpreted as a porch exten- mory cycle, which is 8 periods of the ClK input si- sion. gnal. 22/41 192 "T1 cOo I: iiJ i-IQRIZOr-.TAl +F1 TL I 7T 2H "I I" ~ ~i r-- < -+- 't -1 .j2T ---l: L 0.: 0> oJ ~ ~ en en Iii w (Xl I\) -1:10 <0 rg ...'" (Xl Co) W TS68483 4.2.4. Memory Time Sharing (see figure 4.1). The initialized with YOR at the first displayable line then Video Timing Generator allocates memory cycles to decremented by 1 at each scan line. The Display either the display process, RAM refresh or com- Viewport is thus DWY pel high. mand execution. In this respect, the scan lines per When INE = 1, the fields are interlaced. The Y Dis- field are split between : play Viewport address is initialized as shown in the _ the DWY displayable lines. table below. It is then decremented by two at each When VRE = 0, Video RAMs are not used. scan line. The viewport is thus 2 x DWY pel high. The DWY x DWX cycles in the display interval are allocated to the display process when it is enabled Even Field Odd Field (DPD = 0). When the display process is disabled, Vor Even Vor Vor + 1 these cycles are allocated as for non displayable Vor Odd Vor - 1 Vor lines. Y Display Viewport address initialization when INE = 1. When VRE = 1, one cycle per display line is alloca- ted to the display process. Other cycles are alloca- 4.3.2. X Addresses and MODX Flags. The X Dis- ted as for non displayable lines. The last period of play Viewport address is initialized with XOR at the the BLKX signal may be used to load the internal vi- first displayable cycle of each displayable line. It is deo RAM shift register. then incremented at each subsequent cycle accor- _ the non displayable lines. In one out of nine non ding to MODX flags.(see table 4.3.2) displayable lines, DWX cycles are allocated to the _ In internal mode, the Display Viewport is 8. DWX refresh process when it is enabled (RFD = 0). pel wide. The on-chip video shift register are _ In Float cycle, an external X address must be pro- used. vided. The Y address is still provided on ADM(0:7) _ In Dummy read, the memory is read but the on- and Y(0:2), while ADM(8:15) are in high impe- chip video shift registers are not loaded, instead dance state. they retain their margin color. External video shift registers are presumed to be loaded by either 8 4.2.5. Command Access Ratio. This allocation pels or 16 pels per cycle according to the pro- scheme leaves about 50 % of the memory band- grammed increment value. width for command access when programming a _ In Float cycle, an external X address must be pro- standard TV scan. This ratio drops to the 30 % range vided. The Y address is still provided on ADM(0:7) when a better monitor is in use (32 !JS out of 43 !!s and Y(0:2), while ADM(8:15) are in high impe- displayable per line, 360 lines out of 390 for a 60 Hz dance state. field rate). The higher resolution means more me- mory accesses in order to edit a given percentage Note : See Memory Organization and Memory Ti- of the screen area. In this case Video RAMs are ve- ming for further details on the memory cycles. ry helpful to keep 90 % of the memory bandwidth 4.3.3. The Video RAM Case (VRE = 1). In this case, available for command access. the last cycle of the horizontal blanking interval is systematically allocated to the display process for 4.3. DISPLAY PROCESS DWY scan lines per field. The Video Timing Generator allocates memory cy- This cycle bears the scan line address, the bank cles to the Display Processor in order to read the number and the X address which is always XOR. Display Viewport from memory. The Display View- port upper left corner address is programmable MODX must be programmed to use external shift through DIB, YOR and XOR. The display viewport register (Dummy read). dimensions are related to the display interval of 4.3.4. PAN and TILT. The host can tilt or pan the DWY lines by DWX cycles per field. Display Viewport through the frame buffer by modi- 4.3.1. Y Addresses. When INE = 0, the fields are fying YOR or XOR arguments. Panning is perfor- not interlaced. The Y Display Viewport address is med on 8 pel boundaries. Table: 4.3.2. MODX1 MODXO XINCR Video Shift Register Memory Cycle Type 0 0 + 1 Internal Read 0 1 + 1 External Dummy Read 1 0 +2 External Dummy Read 1 1 External Float 24/41 194 TS68483 4.4. DYNAMIC RAM REFRESH _ NPC, NHVS, NBlK : these three flags invert the No memory cycles are explicity allocated to the RAM PC/HS, HVS/vS and BlK outputs respectively. refresh when RFD = 1. (Ex. : When NBlK = 1 blanking is active high). When VRE = 0 and DPD = 0, the Display Process The SYNC IN input pin provides an extemal com- is supposed to be able to over-refresh dynamic com- posite synchronization signal input from which a ponents. This can be done by careful logical to com- Vertical Sync In (VSI) signal is extracted. The SYNC ponent address mapping. During the remaining non IN signal is sampled on-chip at ClK frequency. Its displayable lines, the Display Viewport address rising sampled edge is compared to the leading continues to be incremented : Y address on each edge of HS. A PC comparison signal is externally line according to INE, X address initialized by XOR available (see SSP and NPC flags). then incremented according to MODX. This Display VSIE : this flag enables VSI to reset the internal line viewport address is allowed to address the memo- count. ry for DWX cycles in only one line out of nine for re- HSIE : this flag enables the rising edge of SYNC IN fresh purposes. to act directly on the Video Timing Generator. When When VRE = 1 or DPD = 1, any line is processed the leading edge of HS does not match at 1 clock as a non displayable line with respect to the refresh period a rising edge of SYNC IN, one extended cy- process. cle is performed (nine clock periods instead of eight). 4.5. CONFIGURATION AND EXTERNAL SYN- CHRONIZATION The R10 register holds eight configuration flags. Six Output Pins Flag of these flags are dedicated to the Video Timing Ge- PC/HS HVSIVS nerator. SSP = 1 HS VS _ SSP: this flag selects the synchronization output SSP =0 PC HVS pin configuration: Table 1. Name Number Mininmum Register Description Function of Bits Values DWY 10 1 R9 Number of Display lines per Field INE 1 R8 Interlace Enable when INE = 1 BKY 5 1 R8 Number of Lines in Vertical Blanking - 2.5 Vertical Scan FPY 5 1 R7 Number of Lines in Vertical Front Porch BPY 8 3 R6 Number of Lines in Vertical Back Porch + 2.5 H 6 19 R6 Number of Double Cycles per Line FPX 4 3 R8 Number of Cycles in Horizontal Front Porch Horizontal BKX 4 4 R8 Number of Cycles in Horizontal Blanking - 3 Scan DWX 7 3 R7 Number of Cycles of the Display Window XOR 8 R4 X, Y, and bank logical address in the display YOR 11 R5 memory of the display viewport upper left corner Display DIB 2 R4 Process MODX 2 R9 Selection of the X Addressing Mode MC 4 R4 Margin Color RFD 1 R7 RAM Refresh Disable when RFD = 1 Memory Time DPD 1 R7 Display Process Disable when DPD = 1 Sharing VRE 1 R8 Video RAM Enable When VRE = 1 Note: one cycle = 8 periods of ClK Clock. 25/41 195 TS68483 5. MEMORY ORGANIZATION 5.1. INTRODUCTION 5.3. DISPLAY MEMORY DESING OVERVIEW The display memory is logically organized as four The display memory implementation is application banks of 4-bit planes. Thus a bit address in the dis- dependant. The basic parameters are: play memory is given by the quadruplet: _ the number of pixels to be displayed Nx.Ny _ B = bank number, from 0 to 3 _ the number of bits per pel _ Z = plane number, from 0 to 3 _ the vertical scanning frequency, which must be _ X = bit address into the plane, from 0 to 2047 picked in the 40 Hz to 80 Hz range (non interla- _ Y = bit address into the plane, from 0 to 2047. ced) or in the 60 Hz to 80 Hz range (interlaced). In one memory cycle (8 ClK periods), the control- This yields a rough estimate of the pixel frequency. ler can access a memory word. This 32-bit memo- When the pixel frequency is in the 15 to 18 MHz ry word holds one byte from each plane in a given range and 4 bits per pixel or least are required, the bank. In order to address this memory word, the on-chip video registers and standard dynamic RAM controller supplies: components may be used. When higher pixel rates _ B(0:1) : binary value of the bank number or up to 8 bits per pixel are required, the designer _ X(3:1 0) : binary value of the word address must provide external shift registers. Video RAM _ Y(0:1 0) : binary value of the word address. components may also be considered. Z and X(0:2) are not supplied. They give only a bit In either case, the user must design: address in a memory word. _ A memory block. This is the hardware memory building block. It includes the video shift registers 5.2. MEMORY CYCLES if on-chip VSR cannot be used. It implies a RAM 24 pins are dedicated to the memory interface. component choice. _ ADM(0:15) : these 16 bidirectional pins are mUl- _ An Address Mapper, which maps the logical ad- tiplexed three times during a memory cycle (see dress into hardware address : block selection, Timing Diagram 3) : Row Address (RAD), Column Address (CAD). TA : address period. Output of the X(3:11) and _ A memory cycle controller. This controller moni- Y(3:11) address tors the CYF and CYS output pins from TS68483 and block address from the Mapper. It provides: TO : even data period. The even Z bytes are either • The ClK signal to the TS68483 and a shift clock input or output. SClK when external video shift registers are T1 : odd data period. The odd Z bytes are either in- used put or output. • RAS, CAS, OE, RI W signals to the memory _ Y(0:2) : three lSB Y address output pins (non- blocks multiplexed) • RAD and CAD Enable signals to the Mapper. _ B(0:1) : two bank address output pins (non-mul- 5.3.1. Frame Buffer (see figure 5.1.). A byte wide tiplexed) organization of each bit plane is required. Obvious- _ CYS : Cycle start strobe output (non-multiplexed). ly a bit plane must contain the Display Viewport size. CYS is at ClK/8 frequency. A CYS pulse is delive- A straight organization implements only one bit red only when a command, display or refresh cycle plane per block. is performed. It may be cost effective to implement several bit _ CYF(0:1) : Two cycle status outputs (non-multi- planes per block. Two basic schemes may be used: plexed). Four cycle types are defined: _ One block, one Z : several bit planes, belonging Command read to different banks, but addressed by the same Z, Command write share a given block. There is little time constraint if any. RAM refresh _ One block, two Z : two bit planes, belonging to the Display access. same bank share a given block. In this case, this Because several options may be selected for RAM block must be accessed twice during a memory refresh and display access by the MODX and VRE cycle. This can be solved by two successive page flags (see Video Timing Section), there are more mode accesses. than four memory cycle types (see Timing Dia- 5.3.2. Masking Planes. Masking planes are very gram 3 and table 2). useful for general purpose area filling or clipping. It 26/41 196 TS68483 ONE BLOCK-ONE Z ADMIS1"1 ADMIO Ii 81TOI !!(101 BO---. B2---. 13 17 11 10 E88TS68483-25 ONE BLOCK-TWO Z ADM (8 15) ADM (0 71 8 8 (TO T1) - Page rnode l3 Z2 Il IO E88TS684B3-26 27/41 197 TS68483 Figure 5.1. : Frame Buffer Organization. Typical Block Size 16 k x 8 32 k x 8 64 k x 8 256 k x 8 One Block-one Bit Planes 512 x 256 512 x 512 1024x512 2048 x 1024 One Block-two Bit Planes 256 x 256 512 x 256 512 x 512 COMPONENTS: 64K BITS: 16K x 4 or 64K x 1 256K BITS: 32K x 8. 64K x 4. 256K x 1 VIDEO RAM: 64K x 1. 64K x 4 Table 2 : Memory Cycle Types. Output Pins Modx Multiplexed ADM Function Flags Cycle Type CYF1 CYFO 1 0 TA TO T1 1 0 Command Read V,X ZO,Z2 ZI,Z3 Read 1 1 Command Write V,X ZO,Z2 Zl,Z3 Write 0 1 Display 0 0 V,X ZO,Z2 Z1,Z3 Read 0 1 V,X Dummy Read + 1 0 0 Refresh 1 0 V,X Dummy Read + 2 1 1 V,Hi-Z Float X Refresh: dummy read cycle IS performed. A MFMOAY WORO / X'D 21 E88TS68483-27 Figure 5.2. : The Multiplexing Scheme. HIGHER BYTES ADMS Multiplexed Pins 15 I 14 I 13 I 12 I 11 I 10 I 9 I 8 TA : Address Period 10 X 3 TO : Even Z Byte Period 7 Z =2 0 Tl : Odd Z Byte Period 7 Z =3 0 LOWER BYTES ADMS Multiplexed Pins 7 I 6 I 5 J 4 1 3 I 2 I 1 I 0 TA : Address Period 10 V 3 TO : Even Z Byte Period 7 Z =0 0 T1 : Odd Z Byte Period 7 Z=1 0 28/41 198 TS68483 may be practical to use one or two planes smaller 5.4. EXAMPLES than the color bit plane if they cyclically cover a Figure 5.3. gives the schematic for a 512 x 384 non frame buffer. interlaced application. A ClK signal in the 15 to 18 The masking planes must be in bank 3. MHz range should produce a 50 to 60 Hz refresh 5.3.3. Objects and Characters. Objects may be lo- rate. The on-chip video shift registers may be used cated in unused parts of the frame buffer. if no more than four bits per pixel are required. One 64 K x 8 memory block may be implemented using Character generators can be implemented in any either eight 64 K x 1 or two 64 K x 4 components. plane of any bank. They can also be implemented One memory block holds two 512 x 384 color bit in ROM. In this case, plane Z = 1 or 3 offer relaxed planes. access time requirements. Figure 5.3. : Memory Organization for 512 x 384 Application. ADM(S 151 BIO 1) Y(O 2} AOMIO l) r~'l~ I I I I x I III ..., ~ ~ ! LATCH BANK !:NABLE I CADO 0-.::... ALlSlL ::L I: L ___ ____ J MUX . CYCLE CONTROLLER 1 ~ OATA DATA Zl/Z3 8 lOil7 64K x 8 Ie-"==: ===='" MEMORY 64K x 8 ADDRESS HAS CAS tt 1 tj DE WE E88TS68483·28 "~'" 1' 71 + 2 1 384 64K x 8 ME MORY BLOCK 2 BI T MAP PLANE ____ ONE BLOCK THROUGH PAGE MODE } BANK 3 { '28 SPARED ARFA . !4----512 E88TS68483-29 29/41 199 TS68483 6. TIMING DIAGRAM 6.1. MICROPROCESSOR INTERFACE Vee = 5.0 V ± 5 %, TA = TL to TH, CL = 100 pF on TS68483 has an eight bit address bus and a sixteen 0(0:15) bit data bus. Little external logic is needed to adapt Reference levels: VIL = 0.8 V and VIH = 2 V on all bus control signals from most of the common multi- inputs plexed or non-multiplexed bus microprocessors. VOL = 0.4 V and VOH = 2.4 V on all outputs MicrQQl:ocessor J!)terface timing : A(0:7), 0(0:15), AE, OS, CS, R! W UNMUX MODE Id. Parameter Min. Max. Unit Numb. 1 Address Set up Time from CS 0 ns 2 Data Strobe Width (high) 65 ns 3 AS Set up Time from CS 0 ns 4 Data Strobe Width-low (read cycle) 160 ns 5 Address Hold Time from DS 0 ns 6 Data Access time from CS (read cycle) 130 ns 7 DS Inactive to High Impedance State (read cycle) 10 80 ns 8 R/W Set up Time from DS 20 ns 9 DS Width-low (write cycle) 80 ns 10 CS Set up Time from DS Active (write Cycle) 0 ns 11 Data in Set up Time from DS active (write cycle) 10 ns 12 Data in Hold Time from DS Inactive (write cycle) 15 ns 30141 200 TS68483 UNMUX MODE READ CYCLE AID I) AS IMPU) eli ------~f-...... us ~-+--CD------~ R(VII ------I DATA OUT 01015) E88TS68483-30 WRITE CYCLE AIDI) - - - ( I AS IMPU) E -------------_ os '~------,CD------~~~--~ R~ ---------~ DATA IN 01015) E88TS68483-31 31/41 201 - - - - --- -- ------- TS68483 MUX MODE Microprocessor Interface Timing: A (0: 7), 0 (0: 15), AE, OS, CS, RiW Vee = 5.0 V ± 5 %, TA = T l to T H, C l = 100 pF on 0 (0 : 15) Reference levels: V 1l = 0.8 V and V 1H = 2 V on All Inputs Val = 0.4 V and VOH = 2.4 V on All Outputs Id. Parameter Min. Max. Unit Numb. 1 AE Width High 90 ns 2 Address Set up Time to AE Inactive 55 ns 3 Address and CS Hold Time to AE Inactive 55 ns 4 CS Set up Time to AE Inactive 40 ns 5 DS and RfW High 150 ns 6 DS Width-low (read) 240 ns 7 R/W Width-low (write) 110 ns 8 Data Access Time From DS (read) 210 ns 9 Data in Set up time from R/W Inactive (write) 150 ns 10 DS Inactive to High Impedance State (read) 10 100 ns 11 Data in Hold Time from RfW Inactive (write) 30 ns 12 AE Inactive to DS Active 20 ns 13 AE Inactive to R/W Active 20 ns 14 DS Inactive to AE Active 10 ns 15 RfW Inactive to AE Active 10 ns 16 R/W Inactive to Next Address Valid 100 ns 17 DS Inactive to Next Address Active 100 ns 18 Data in Set up Time from RfW Active (fast write cycle) 10 ns 6.2. MEMORY INTERFACE ADM (0 : 15), B (0: 1), CYF (0: 1), Y (0: 2), CYS Vec = 5.0 V±5%, TA = Tl to TH ClK Duty Cycle = 50 %, Period T Reference levels: V 1l = 0.8 V and V 1H = 2 V, Val = 0.4 V and VOH = 2.4 V Indent TS68483·15 TS68483·18 Number Parameter Unit Min. Max. Min. Max. 1 TClK Clock Period 66 166 55 166 ns 2 Memory Cycle Time (T = 8 X TClK) ns 3 Output Delay Time from ClK 40 35 ns 4 Output Data HI-Z Time from ClK 40 35 ns 5 Output Hold Time from ClK 10 10 ns 6 Input Data Hold Time from ClK (read cycle) 10 6 ns 7 Input Data Set up Time from ClK (read cycle) 20 10 ns 8 Input Data HI-Z Time from ClK TClK TClK ns Note: All timing is referenced to the rising edge of elK (see timing diagram 3). 32/41 202 TS68483 MUX MODE READ CYCLE AE cs 6s CD RtW @ AID E88TS68483-32 WRITE CYCLE AE _ _ _ _oJ ~ -------~ os A/W -+---------+----~ 11.14--- AiD -------< FAST WRITE E88TS68483-33 33/41 ~ SGS·1HOMSON At.., I !il,j]D©IRI@~~IWii'IiI©IllD©® 203 I\) o I "' W s: m -I (IJ ~ --1fL]--Lr----LrU~rL"LJ~ rL .J:lo. s: Ol o ::D (Xl .j:> (Xl ClK -< W ~ 0~ . 1f5'r- r-- ----- r.\ Z -I m CYS ~ / \ ::D "T1 l> o B(O ~ 0'" m CYF 11 J 'x' /\ I ~1-0 ~ ~ Y(O ./ 'I " / ~ 0 fc ~0 r- ~ 0 .~ AD (015) ""0 @. WR CyCLE ~ A(XY) D(EVEN ZI I) D(ODD Z) Ei! ~O ~ ill!: • CDi-C 1--(7)-- bfc 1'-"-- ~(7)- ~IS >-< AD (0151 Ilz REA CYCLE ./ A(XYI I"- ./ D(EVEN Z) D(ODD Z) I"- V ~ It' '" ..10. . "0~ Du I.DMfO 15) 1Y READ CYCLE ./ A(XY) I\. "I-®~ . .. ®f.o 'I 1/ ~ 0- foe " ADVIO 7) ./ 'I A(Y) D DI FLO C AY I~G _E ---- ADM,9 ·51 ---- -...J ,, ; TS68483 6.3. VIDEO INTERFACE PO, P1, P2, P3, BlK, HVS/vS, PC/HS Vee = 5.0 V ± 5 %, TA = TL to TH, ClK duty cycle = 50 % Reference levels: VIL = 0.8 V and VIH = 2 V, VOL = 0.4 V and VOH = 2.4 V, CL = 50 pF TIMING DIAGRAM 4. 14------8----~ /14--- (2) - ___-t\ 0-~1 ClK PI031 _ _ -+_______"'" BLK HVS/VS PC/HS ..---0)----.t E88TS68483·35 Indent TS68483·15 TS68483·18 Parameter Unit Number Min. Max. Min. Max. 1 TClK : ClK Period 66 166 55 166 ns 2 elK High Pulse Width 28 23 ns 3 Output Delay from ClK Rising Edge 40 30 ns 4 ClK low Pulse Width 28 23 ns 5 Output Hold Time 10 10 ns 35/41 205 . o N 0 :II co 0 w z ~ ---------------~~ en 2f~1T't- ~~ (NPe _ 1) HS 2HT ~ SYNC » --I I 0 Z BLKX r I r I CJ) i5 z p:o 31 r MARG,N I I MAFG\ I » .... ~8KIFP)( .. 1. DWX ..I 0 C --I vS r 25~l r--'-SL,MS -1 ~ON,\TERlACED "tI ~ C --I CJ) ______ _ ___ ~ EXAMPLE O!:en BICY+FPY-OWY+BPY • S25 ifijn ,.en ~:i! BKY+FPY+DWY+BPY l I f > . i E S E V b F.ELD !O ,.iiI @en ~o -I-- ----- DWY =:f:---IU 8Py-----1 ~z vs ~~ , - 2 5 _'NES r.;-ERlA(f0 EXAMPLE: ------- ------~8KY+,:PY-tDWY+8PY .. 3'2 FOR 6;;5 liNES : I. ODD f",ELJ BKY+FPY-DWY-6pv+1 2 L,\ES .,L !:vE~ ~IElO F:JY- ~~------ CW' .r.= 3,,_1 LJL m '"'" Ul 0) '" ~ w 0) TS68483 ABSOLUTE MAXIMUM RATINGS Symbol Parameter Value Unit Vcc ' Supply Voltage - 0.3 to 7.0 V V in , Input Voltage - 0.3 to 7.0 V TA Operating Temperature Range T L to T H °c o to 70 T slg Storage Temperature Range - 55 to 150 °c PDm Max Power Dissipation 1.5 W , With respect to Vss. Stresses above those hereby listed may cause permanent damage to the device. The ratings are stress ones only and functional ope- ration of the device at these or any conditions beyond those indicated in the operational sections of this specifications is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. Standard MOS circuits handling procedure should be used to avoid possible damage to the device. ELECTRICAL CHARACTERISTICS (Vee = 5.0 V ± 5 %, V S5 = 0, T A = T L to T H) (unless otherwise specified) Symbol Parameter Min, Typ. Max. Unit Vcc Supply Voltage 4.75 5 5.25 V VIL Input Low Voltage - 0.3 0.8 V VIH Input High Voltage 2 Vec V lin Input Leakage Current 10 IlA VOH Output High Voltage (lioad = - 500 IlA) 2.4 V VOL Output Low Voltage V Iload = 4 mA ; ADM (0 : 15) 0.4 Iload = 1 mA ; other Outputs PD Power Dissipation 700 mW Gin Input Capacitance 15 pF ITSI Three State (off state) Input Current 10 !lA 37/41 207 TS68483 SECTION 7 7.1. REGISTER MAP AND COMMAND TABLE 15 14 13 12 11 10 9 8 7 6 5 4 2 o RO COMMAND MODE R1 sx Sy Odd bank Even bank R2 Odd bank Even bank R3 TEXLIN ~ z ~ w u no .J o Don't care Used or not. accordmg to the command E88TS68483·37 38/41 208 7.2. COMMAND TABLE CODE PARAMETERS ARGUMENTS POINTERS END COMMAND EXECUTION TIME TYPE MNEM 765 4 3 2 1 0 RO Rl R2 R3 R13 Rla R1S R14 R15 R1B R17 R20 R21 R22 R23 CURSOR POSITION INIT LOOP Per L DOT LINE DLI 000 0 0 DMU SP SRU X X X X X X X X X Xd+DXd Yd+DYd 5T 4T DOT I N PEN LINE PLI 000 POL PEN DMU SP SRU X X X X X X X X X X X X X Xd+DXd Yd+DYd 5T CEll+4T CELL E DOT ARC DAR o 0 1 0 0 DMU SP SRU X X X X X X X X X X X XF YF 15T lOT DOT A D R PEN ARC PAR o 0 1 POL PEN DMU SP SRU X X X X X X X X X X X X X X X XF YF 15T CEll+IOT CELL R A RECTANGLE REC 1 1 1 1 0 DMU SP SRU X X X X X X X X Xd Yd+DYd lOT 4T W A R TRAPEZIUM TRA 0 1 0 1 0 DMU SP SRU X X X X X X X X X Xd+DXd Yd+DYd lOT AREA I E 4T MEMORY N POLYGON FLL 0 1 0 0 BEG DMU SP SRU X X X X X X X X Xd+DXd Yd+DYd lOT G A (NOTE 11 WORD S POLYARC FLA 0 1 1 0 BEG DMU SP SRU X X X X X X X X X X XF YF 15T C PRINT CHARACTER PCA 1 o 1 1 REP DMU SP SRU X X X X X X X X X X X X Xd+DXd Yd I E MEMORY PVS 1 o O'SMU X X X X X X Xd+DXd Yd L PRINT OBJECT REP DMU 1 SRU X X X X X 4T I 6T WORD L 1 o 1 X X ~ PVF 0 REP DMU 1 SRU X X X X X X X X X Xd+DXd Yd LOAD VIEWPORT LDV 1 1 1 0 XFT 0 0 INC X X X X X X X X Xs , Ys 2T 5T MEMORY, 11:cn ACCESS SAVE VIEWPORT SAV 1 1 1 0 XFT 0 1 INC X X X X , X X X X Xs , Xs' , Ys Ys 2T 4T WORD I ifin MODIFY VIEWPORT RMV 1 1 1 0 XFT 1 0 INC X X X X X X X X 2T lOT I ~C(» UP-DOWN MOVE 0 OWN SRU X X X Xd Yd+DYd 3T ~;! UDM 1 1 0 0 1 X !il0 CURSOR LEFT -RIGHT MOVE LRM 1 1 0 1 LEF 0 0 SRU X X X X , Xd+DXd Yd 3T ,.:!I i @cn DIAGONAL MOVE COM 1 1 0 1 LEF 1 OWN SRU X X X X X Xd+DXd Yd+DYd 4T ~O NO OPERATION NOP 1 1 0 0 0 0 0 0 TT ~Z CONTROL , ABORT BRT 1 '1'1 1 1 1 1 I 1 I I I I I TTl DMU= 1 Destination mask use NOTE' With PVF command. any pel with color different trom 0 has Its source mask Implicitly set and SP= 1 Short pel: long pel when SP=O used In other words. pels with color value 0 are transparent SRU = 1 . Short relative register use (A13). - OXd. DYd. and DYs are signed values PEN = 0 : The pen IS a single pel - DXs IS always pOSItive PEN = 1 POL=O. the pen IS the character cell addressed by the source pOinter - T = memory cycle:::: 8 elK clock periods. POL = 1· the pen is the oblect associated with a source mask addressed - For execution time. add to the short pel loop In the table: by the source pOinter - 1T 'f DMU=l BEG= 1 Initiate a polygon or polyarc filling - 1T ,f SMU=l This parameter should be reset only when the second draWing IS not Identical . 2T If long pen are used to the first one (Ex: first polygon. then polyarc) 2T If mask printing IS required INC= 0 The source pOinter is not autO-Incremented Command execution IS performed only out of the display periods INC~ 1 XFT= 1: the source pOinter is auto-incremented. X direction first NOTE 1 for FlL and FLA commands. add 4T and 8T respectively per pel belonging to the boundary. XFT = O· The source pOinter is auto-incremented or auto-decremented. Y direction first REP = 1 The cell IS stepped and repeated through the destination Window When REP=O. only one cell IS pnnted -I SMU= 1 DWN=l The source mask IS used The cursor IS moved down (up If DWN=O). en en LEF= 1 The cursor is moved left (fight If LEF=O) CO w .j:>. ~ I\) o CO (,) <.0 TS68483 8. ORDERING INFORMATION AND MECHANICAL DATA 8.1. ORDERING INFORMATION Part Number Temperature Range Package Clock TS68483CP15 15 MHz TS68483CP18 o DC to + 70 DC DIP 64 18 MHz TS68483CFN15 15 MHz TS68483CFN18 o DC to + 70 DC PLCC 68 18 MHz 8.2 PACKAGE MECHANICAL DATA 68 PINS - PLASTIC LEADED CHIP CARRIER 60 0.812 - 68,'Jutputs -Qm~~ . . 0331 , "el\lon~ AI a 40/41 210 TS68483 64 PINS - PLASTIC DIP i 2,54 4,19 0,38 0,53 0,76 1,40 ~II-----'-"---""'''''-i''''''' 33 Datum 32 81.28 22.479 22 .987 41/41 211 I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I ~I COLOR PALETTE 213 EF9369 HMOS2 - SINGLE CHIP COLOR PALETTE • ON CHIP COLOR LOOK-UP TABLE • 4096 COLOR PALETTE (16 colors selected from 4096) • ON-CHIP THREE 4-BIT RESOLUTION VIDEO DACs WITH YLAW CORRECTION • DOT RATE UP to 30 MEGADOTS PER SE- COND • MARKING BIT FOR INLAY PURPOSE P • VERSATILE MICROPROCESSOR DIP28 INTERFACE: (Plastic Package) _ DIRECTLY COMPATIBLE WITH AD- DRESS/DATA MULTIPLEXED 8-BIT MICROPROCESSOR BUS SUCH AS 6801, 8051 ... _ DIRECTLY COMPATIBLE WITH NON-MUL- TIPLEXED 8 OR 16-BIT MICROPROCES- FN PLCC28 SOR BUS (6809, 6502, 68008 ... ). (Plastic leaded chip carrier) • SINGLE 5 V SUPPLY • HMOS 2 TECHNOLOGY (see the ordering information at the end of the datasheet) DESCRIPTION The EF9369 single chip palette provides a low cost, freely selected out of 4096 preset values. EF9369 yet remarkable enhancement for any low to mid- contains a 16 register color look-up table, three 4- range color graphics application. It allows displaying bit D/A converters and a microprocessor interface up to 16 different colors, each of these colors being for color loading. PIN CONNECTIONS DIP28 PLCC28 u Vss HP 0 0 i0 >gj ... :I: ~ ...'" . PJ 0 Vooe P2 M ... - 1'1 ... 1II ~ P' 0 PI PO PO BLK BLK AS AS RM 21 RM os RESET 05 cso cso AD' a !! ~ ~ !!! !!! :: !! AD7 ...0 ...0 ~ 0"' 8 0 rJ ~ Ace c c c c « « A05 E88-EF9369·02 E88·EF9369·01 November 1988 1/15 215 EF9369 TYPICAL APPLICATION IMICROf'ROCESliOR J DIGITAL ~ ANALOG VIDEO VIDEO EJ R DOT CLOCK EF9369 G CRT COLOR CONTROLLER PALETTE BLANKING B SYNC t E88-EF9369-03 ABSOLUTE MAXIMUM RATINGS Symbol Vee . Supply Voltage Parameter Value - 0.3 to 7.0 Unit V Vin* Input Voltage - 0.3 to 7.0 V TA Operating Temperature Range o to 70 °C TOl9 Storage Temperature Range -55t0150 OC PO m Max Power Dissipation 0.45 W Stresses above those hereby listed may cause permanent damage to the device. The ratings are stress ones only and functional ope- ration of the device at these or any conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. Standard MOS circuits handing procedure should be used to avoid possible damage to the device. • With respect to Vss. ELECTRICAL OPERATING CHARACTERISTICS 0/cc = 5.0 ± 5 %, Vss = 0, TA = 0 to 70°C) Symbol Parameter Min. Typ. Max. Unit Vec Supply Voltage 4.75 5 5.25 V Vooe Analog Supply Voltage - Vee TSD V loDe Analog Supply Current - 20 - mA VIL Input Low Voltage -0.3 - 0.8 V VIH Input High Voltage RESET 3 - Vce V All Other Inputs 2 - Vee lin Input Leakage Current - - 20 ~ VOH Output High Voltage (iload = - 500 I1A) 2.4 - - V VOL Output Low Voltage (iload = 1.6 mA) - - 0.4 V Po Power Dissipation - 250 - mW Cin Input Capacitance - - 15 pF IrSI Three State (off state) Input Current - - 10 ~ 2/15 216 EF9369 Test Load for Digital Output Test Load for Analog Output Tel1 potnt AD (0 :7) M C 100 pF 50 pF RL 1 kO 3,3 kO R 4,7 kO 4,7 kO MICROPROCESSOR INTERFACE TIMING AD (0 : 7), AS, DS, RiW, CS, CSO Vcc = 5,0 ± 5 %, T A = 0 'C to + 70 DC, C L = 100 pF on AD (0 : 7) TTL inputs are 0 to 3 volts, with input riselfall time ~ 3 ns, measured between 10 % and 90 % points, Timing reference at 50 % for inputs and outputs, Indent. Symbol Parameter Min. Typ. Max. Unit Number 1 tCYC Cycle Time 400 - - ns 1b tpEWX OS Pulse Width High Time 200 - - ns 1c tPEWL OS Pulse Width Low Time (timing 3) 100 - 10000 ns 2 tASO DS Low to AS High (timing 1) 30 - - ns OS High or R/w high to AS high (timing 2) 3 tASEO AS Low to DS High (timiQ.g 1) 30 - - ns AS Low to OS Low or R/W Low (timing 2) 4 tpwEH Write Pulse Width 200 - - ns 5 tPAWSH AS Pulse Width 100 - - ns 6 tRWS R/W to OS Setup Time (timing 1) 100 - - ns 6b R/W, AS, CS, CSO to OS Setup Time 100 - - ns (timing 3) 7 tRwH R/W to OS Hold Time (timing 1) 10 - - ns 8 tASL Address and CS, CSO Set Up Time 20 - - ns 9 tAHL Address and CS, CSO Hold Time 20 - - ns 10 tosw Data Setup Time (write cycle) 100 - - ns 11 tOHW Data Hold Time (write cycle) 10 - - ns 12 tOOR Data Access Time from OS (read cycle) - - 150 ns 13 tOHR OS Inactive to High Impedance State Time 10 - 80 ns (read cycle) 14 tACC Address to Data Valid Access Time - - 300 ns 3/15 217 EF9369 TIMING DIAGRAM 1 - MULTIPLEXED MODE - MOTOROLA TYPE (SMI = Vss) CD os --', ..1-1-0 1\ 0 -- I 'Pwl:x ® r\ ~ f-@ / (i) :\ V AS • . ~0 RIW } K ,...- ~~< ) '-- r-LI 0 .....- 1-- --0 ® . -@ WRITE CYCLE ADID:7 I I ADDjEj» Xj (XI) INPUT DATA READe YCLl (i) d -UT \ AOIO:7I '\ DATA I ® E88-EF9369-06 4/15 218 EF9369 TIMING DIAGRAM 2 - MULTIPLEXED MODE - INTEL TYPE (8MI = Vss) READ CYCLE iW (Pin OSI -L~~.L.LLI.J WR IPm R/WI ® 'DDR A D I O : 7 1 - - - - - - - - - - - - { 1 ADDRESS ® 'ACC E88-EF9369-07 WRITE CYCLE ALE IPi_n_A.;.:SI_ _ _ _ _ _--:~.JJ Q) RO IPin 051 'ASD 'PWEH cs COO 'osw ADIO:71------------< Din E88-EF9369-08 5/15 219 EF9369 TIMING DIAGRAM 3 - NON-MULTIPLEXED MODE (SMI = Vee) 'PWEX 'DSW WRITE CYCLE INPUT DATA ADIO,7) 'DDR 2 READ CYCLE ADIO,7) E88-EF9369-09 DIGITAL VIDEO SIGNALS - HP, P(O : 3), BLK, M, RESET Vee = 5,0 ± 5 %, TA = 0 'C to + 70°C, C L = 50 pF on M, TTL inputs are 0 to 3 volts, with input rise/fall time :0; 3 ns, measured between 10 % and 90 % points, Timing reference at 50 % for inputs and outputs, EF9369 EF9369-30 Symbol Parameter Unit Min. Max. Min. Max. tp HP Clock Period 58 1000 33 1000 ns tPEWH HP High Pulse Width 25 - 13 - ns tPEWL HP Low Pulse Width 25 - 13 - ns tsu BLK and P(O : 3) Set Up Time to HP 5 - 5 - ns tHO BLK and P(O : 3) Hold Time from HP 10 - 10 - ns tD M Output Delay from HP - 45 - 45 ns tPWRL RESET High Pulse Width 400 - 400 - ns 6/15 220 EF9369 TIMING DIAGRAM 4 tPWEH HP BLK PO P3 tD M E88-EF9369-10 ANALOG VIDEO OUTPUTS - CA, CB, CC Vocc > 5 V, TA =O°C to + 70°C, CL = 20 pF, RL = 100 kQ Table 1. Analog Output (V) Binary Input Min. Typ. Max. Low Level 0000 - 0_8 - 0001 - 1.18 - 0010 - 1.28 - 0011 - 1.36 - 0100 - 1.42 - 0101 - 1.47 - 0110 - 1.52 - 0111 - 1.56 - 1000 - 1.60 - 1001 - 1.63 - 1010 - 1.66 - 1011 - 1.69 - 1100 - 1.72 - 1101 - 1.75 - 1110 - 1.78 - High Level 1111 - 1.80 - Nole: The internal AID converters deliver on CA, CB and CC outputs 16 levels with y law correction (y = 2.8). The typical transfer cha- racteristic is given by : 1 N - VDDC V= ( - ) 2.8 . - - +O.16VDCC 15 5 Where N is the binary input value. The typical analog video output impedanoe is 300 Q for EF9369-30 and 400 Q for EF9369. 7/15 221 EF9369 Parameter CA, CB, CC Outputs from HP TIMING DIAGRAM 5 HP J / PIO:31 ~ :xxxxx; tDA I CA,CB. CC '!Y;i E88-EF9369-11 BLOCK DIAGRAM ADDRESSICONTROL BUS FROM DATA/ADDRESS BUS MICROPROCESSOR SUI BUS CONTROL Vee Vss DIGITAL VIDEO INPUTS HP 16 0- BlK m CA CB cc COLOR INDEX "it Z OECOOER FJELD FIELD FIELD . a: ::Ii '--_-+~U RESET ~o---_-+. Vooc CA CB cc E88-EF9369-12 8/15 222 )IN DESCRIPTION vllCROPROCESSOR INTERFACE !l,1I the input/output pins are TIL compatible. Name Pin N° Function Description Type AD(0:7) 1/0 8·11-14 Multiplexed These 8 bidirectional pins are to be connected to the 15-17 Address/data Bus microprocessor system bus. SMI I 3 Interface Mode When this input is connected to Vcc, the EF9369 is in the non Select multiplexed mode. When this input is connected to Vss (ground), the EF9369 is in a multiplexed mode to provide a direct interface with either Motorola or Intel Type Microprocessor. AS I 22 Address Strobe In non-multiplexed mode, this input selects either the address register (AS = 1) or the data register (AS = 0) to be accessed. In multiplexed mode, the falling edge of this control signal latches on the AD(O:ZL!ines, the state of the Data Strobe (DS) and Chip Select lines (CS, CSO). When using Intel type microprocessor, this input must be connected to the ALE control line. DS I 20 Data Strobe In non multiplexed mode, this active high control signal enables the AD(0:7) input/output buffers and strobes data to/from the EF9369. This signal is usually derived from the processor E (02) clock. In multiplexed mode, the input is strobed by the falling edge of AS. The strobe value selects either Motorola or Intel type. When usin.\l..2n Intel type microprocessor, DS must be connected to the RD control line. With a Motorola type microprocessor, DS must be connected to E(02) clock. RIW I 21 Read/write Thi.§..control signal deter[!!!nes whether the EF9369 is read (R/W = 1 ) or written (RIW = 0). When using Intel tYPL microprocessor, this input must be connected to the WR control line. CS I 18 Chip Select CS must be low and CSO must be high to select the EF9369. In CSO 19 non multiplexed mode, the EF9369 remains selected as long as the selection condition is met. In multiplexed mode, the selection condition is latched when AS is low. OTHER PINS Name Pin N° Function Description Type Vcc S 9 Power Supply +5V Vooc S 2 Analog Power Power supply for the internal DACs. This input can be connected Supply to Vcc. Vss S 1 Power Supply Ground 9/15 223 EF9369 VIDEO INTERFACE Name Pin N° Function Description Type P(0:3) I 24-27 Pixel Inputs These four TTL compatible inputs are strobed by HP into the color index register to address the color look-up table. HP I 28 Dot Clock The rising edge of this input latches the P(0:3) and BlK inputs into the EF9369 and the data out of color look-up table into the output registers. M 0 7 Marking This output is synchronised by HP and delivers the marking bit value from the color look-up table. CA 0 5 Color Outputs These three analog high impedance outputs deliver the color CB 6 signal levels from the internal DIA converters (DAC). The delay CC 4 between CA, CB, CC outputs and the latched value P(0:3) is one HP clock period plus tDA (see timing diagram 5). BlK I 23 Blanking A high level on this input forces the CA, CB, CC and M outputs to low level. RESET I 10 Reset This active high input forces the CA, CB, CC, outputs to low level until the next microprocessor access to the device. FUNCTIONAL DESCRIPTION EF9369 contains a 16 register Color-Look Up Table • Multiplexed mode for address/data multiplexed (CLUT). Each of these 13-bit register holds three 4- 8 bit microprocessor bus. bit color fields CA (0:3), CB (0:3) and CC (0:3) and • Non-multiplexed mode for non-multiplexed 8 or a marking bit M. 16-bit microprocessor bus. These registers can be accessed (read or write) by MULTIPLEXED MODE (SMI connected to Vss). the microprocessor through the microprocessor in- terface. These registers are also read by the video In this mode, EF9369 can be directly connected to process: a 4-bit pixel value and a clock must be pro- popular address/data multiplexed microproces- vided at pixel rate to the P (0:3) and HP input pins. sor, either Motorola type (6801...) or Intel type These signals may be delivered either by 4 video (8048,8051,8088 ... ). In this last case the EF9369 shift registers and the shifting clock of a bit map CRT AS, DS and RIW inputs must be connected res- controller or by an alphanumeric or semigraphic pectively to the ALE, RD and WR microprocessor CRT controller. The pixel value, after clock resyn- control lines. chronization, is used as a color index: it selects one In this mode, EF9369 maps into the microprocessor out of the 16 CLUT registers. Each color field of the addressing space as 32 CLUT byte address. Ran- selected register is converted to an analog signal dom access to one byte takes one cycle: on the fai- and delivered to one of the CA, CB or CC output. ling edge of the AS input, EF9369 latches AD (0:7) The marking bit is directly routed to the M output. into the on-chip address register, the DS and chip When the CA, CB and CC outputs are used as RGB select lines into dedicated flip,flops. The strobed analog signals, one color out of 4096 is associated value of DS allows recognition of Intel or Motorola to each pixel value. In short this process freely maps type for further processing. (See pin description sec- a 16 color index set into a 4096 color set. tion and microprocessor timing diagrams for de- tails). When the EF9369 chip select lines enable se- MICROPROCESSOR INTERFACE. lection, the addressed byte is accessed during the The 8-bit microprocessor interface gives access data phase of the cycle. (read or write) to the CLUT which is addressed as NON MULTIPLEXED MODE (SMI connected to a 32 byte table. The 13-bit color register # N (N = 0 Vcc). to 15) is accessed at address 2N and 2N + 1. Even In this mode EF9369 can be directly connected to address holds CA (0:3) and CB (0:3), odd address any 8 or 16-bit, non multiplexed, microprocessor bus holds CO (0:3) and M (see fig. 1). (6800, 6809, 6502, 68008 ... ). EF9369 provides two bus modes through the SMI This mode provides an indirect, auto-incremented programming pin: addressing scheme. EF9369 maps into the micro- 10/15 ~ SGS·THOMSON . .. , / Ii\lJO©Ii@llI!.rnlC'li'li@Il'lO©iII 224 EF9369 Figure 1 : Clut Adressing Color Look-up Table (CLUT) CLUT Byte Adress Register Index 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 # CB3 CB2 CB1 CBO CA3 CA2 CA1 CAO X X X 0 0 0 0 0 0 X X X M CC3 CC2 CC1 CCO X X X 0 0 0 0 1 CB3 CB2 CB1 CBO CA3 CA2 CA1 CAO X X X 0 0 0 1 0 1 X X X M CC3 CC2 CC1 CCO X X X 0 0 0 1 1 CB3 CB2 CB1 CBO CA3 CA2 CA1 CAO X X X 1 1 1 1 0 15 X X X M CC3 CC2 CC1 CCO X X X 1 1 1 1 1 x ~ Don't Care. processor addressing space as 2 byte address on- The blanking input forces the analog outputs and ly. AS is used to select one out of 2 registers: the M output to low level thus allowing the beam to • the write only address (5 bits) addressed when be switched off during retrace intervals . AS = 1. Notes: 1. Each 4 bit-D/A converter is ycorrected in • the read/write data register (8 bits) addressed order to linearize the luminance driven on when AS = O. the screen versus the digital value. The Random access to a CLUT byte takes two bus cy- typical digital to voltage conversion law is cles: given table 1. The output voltages are pro- 1/ Load the CLUT address into the address regis- portionnal to the analog supply voltage ter. Vooc. When required, setting Vocc allows 2/ Access (read or write) the value in the data regis- a gain adjustment. But in most applica- ter. tions, Vooc and Voo can be derived from After each access to the data reg ister, the add ress the same supply through independent de- register is automatically incremented modulo 32. coupling. This scheme allows sequential addressing to the 2. CA, CB and CC are high impedance out- CLUT without address reloading, the complete puts (500 Q typical) which require proper CLUT can so be reloaded in 33 bus cycles. adaptation in most applications. SGS- THOMSON TEA5114 provides such a VIDEO PROCESS. 1 V - 75 Q low cost adaptation (See fig. The CRT controller sends to EF9369 a pixel value on 2). pins P (0:3), a pixel rate clock on HP input and a blan- 3. As the CLUT is shared between micro- king signal on pin BLK. The pixel value is latched in- processor access and video access, a to the color index register by the rising edge of HP. low level is forced on the CA, CB, CC and The color index register selects one register in the M outputs during any chip select periods. CLUT. The color fields of the selected register are To avoid to spoil the screen with black routed to 3 DACs and M is directly routed to the M di- strokes it is recommended to access the gital output. CLUT from the microprocessor only du- After impedance matching, the CA, CB, and CC out- ring the retrace periods. puts can be used to drive a RGB analog color mo- 4. RESET - This input forces CA, CB, CC nitor. Alternatively one of these outputs can be used and M outputs to a low level until the next to drive a monochrome monitor thus providing up to microprocessor access. At power on or at t 6 grey levels. The marking digital output can be the beginning of a session RESET allows used to drive analog video switches, thus providing to keep a clean black screen proper initia- video overlay facility on a color per color basis. lization. 11/15 225 EF9369 NON-MULTIPLEXED BUS INTERFACE v CC SMI D(O:7) K ) AD(O:15) AO AS MPU EF9369 ADDRESS - A(O:15) "- CS / DECODER E DS - R/W R/W E88-EF9369-13 MULTIPLEXED BUS INTERFACE v S8 8MI PORTC AD(O:7) ADDRESS I CSO MPU A(8:1S) - EF9369 DECODER CS ALE AS RD DS WR RrW E88-EF9369-14 12/15 226 EF9369 Figure 2 : Typical 1 V - 75 n Video Interface BLK~-------------- __ HPii--------------__ FROM CRT CONTROlLE R ~ia--------------. p,~----------------. P2~--------------4 P3~--------------4 EF9369 68n 68n TO _'TOR 680 E88-EF9369-15 Note: Each digital or analog ground must be separately connected to EF9369 pin 1. 13115 227 EF9369 ORDERING INFORMATION Part Number Temperature Package EF9369P o to 70°C DIP28 EF9369P30 o to 70°C DIP28 EF9369FN o to 70°C PLCC28 PACKAGE MECHANICAL DATA 28 PINS - PLASTIC DIP mm e.2.54 4.57max. 16.1 max. 0.51 min. r--"'-""'--' ~ 15.24 (2) ... Datum (1) Nominal dimension (2) True geometrical position 14 6 28 PINS 14/15 a...,Irnii~ICII@~II@IlIJ~lCiII ~ SGS·1HOMSON 228 EF9369 28 PINS - PLASTIC LEADED CHIP CARRIER Pin 1 identification 11430 ~ 25 0661 0,812 28 Outputs ~ 0331 min. 0,533 15/15 229 TS9370 HMOS2 - SINGLE CHIP COLOR PALETTE • ON CHIP COLOR LOOK-UP TABLE • 4096 COLOR PALETTE (16 colors selected from 4096) • ON-CHIP THREE 4-BIT RESOLUTION VIDEO DACs • DOT RATE UP TO 45 MEGADOTS PER SE- COND • MARKING BIT FOR INLAY PURPOSE P • VERSATILE MICROPROCESSOR INTER- DIP28 FACE: (Plastic Package) _ DIRECTLY COMPATIBLE WITH AD- DRESS/DATA MULTIPLEXED 8-BIT MICROPROCESSOR BUS SUCH AS 6801, 8051 ... _ DIRECTLY COMPATIBLE WITH NON-MUL- FN TIPLEXED 8 OR 16-BIT MICROPROCES- PLCC28 SOR BUS (6809, 6502, 68008 ... ) (Plastic leaded chip carrier) • SINGLE 5 V SUPPLY • LOW POWER DISSIPATION (see the ordering information at the end of the datasheet) • 28 PINS DIP AND PLCC PACKAGE up to 16 different colors, each of three colors being DESCRIPTION freely selected out of 4096 preset values. TS9370 The TS9370 single chip palette provides a low cost, contains a 16 register color look-up table, three 4- yet remarkable enhancement for any low to mid- bit D/A converters and a microprocessor interface range color graphics application. It allows displaying for color loading. PIN CONNECTIONS DIP28 PLCC28 .i 8 .. .. HI' u 0 II .. N 1'3 U > > % " 1'2 1" N - P:I ... P:IN PO 0 PI PO BU: BLK AS AS .. oW ..J9iI os RESET D5 aD CSD a ~ ~ :: :! ~ ~ ~ N 0 00( " 0 . 00( 8 ... ~ 00( 0 00( 00( 0 00( rl E88·TS9370·01 E88· TS9370·02 November 1988 1/16 231 TS9370 TYPICAL APPLICATION HOST MICROPROCESSOR I J U H GRAPHICS VIDEO INTERFACE ~ PROCESSOR ~. ~~ VIDEO MEMORY PIXEL DATA TS9370 COLOR PALETTE ANALOG VIDEO SYNC. EJ J E88-T89370-03 2/16 232 TS9370 BLOCK DIAGRAM AOORESSICONTROL BUS ) FROM DATA/ADDRESS BUS MICROPROCESSOR < ) « rl ~ a: ~ § III r ~DIO'11I ) 3/ J .....,0-- I ADDRESS REGISTER DATA REGIS:ER r BUS CONTROL >-'SMI f- Vce PO<; P3.o! r--"Xw a ~ ./J t1 "...8 f- / '" a: MUX J DIGITAL 0 /' VIDEO INPUTS -' 0 u t)4 H~_ r-- . . r- BLK_ I- COLOR INDEX ~ CA CB ce iii "::::: DECODER FIELD FIELD FIELD " a: ':;" 4 • 4 J r-M6 OUTPUT REGISTERS M ~ I M RESET J CONTROLLER 4 4 4 eA CB ee E88-TS9369-12 3/16 233 TS9370 PIN DESCRIPTION MICROPROCESSOR INTERFACE All the input/output pins are TTL compatible. Pin Name N° Function Description Type AD(0:7) I/O 8-11-14 Multiplexed These 8 bidirectional pins are to be connected to the 15-17 Address/data Bus microprocessor system bus. SMI I 3 Microprocessor When this input is connected to Vcc, the TS9370 is in the non Interface Mode multiplexed mode. Select When this input is connected to Vss (ground), the EF9370 is in a multiplexed mode to provide a direct interface with either Motorola or Intel Type Microprocessor. AS I 22 Address Strobe In non-multiplexed mode, this input selects either the address register (AS = 1) or the data register (AS = 0) to be accessed. In multiplexed mode, the falling edge of this control signal latches the address on the AD(0:7) lines, the state of the Data Strobe (OS) and Chip Select lines (CS, CSO). When using Intel type microprocessor, this input must be connected to the ALE control line. OS I 20 Data Strobe In non multiplexed mode, this active high control signal enables the AD(0:7) input/output buffers and strobes data to/from the TS9370. This signal is usually derived from the processor E (02) clock. In multiplexed mode, the input is strobed by the falling edge of AS. The strobe value selects either Motorola or Intel type. When uSin.9.J!n Intel type microprocessor, OS must be connected to the RD control line. With a Motorola type microprocessor, OS must be connected to E(02) clock. RIW I 21 Read/write Thi~control signal deter[1JJnes whether the TS9370 is read (RIW = 1 ) or written (RIW = 0). When using Intel type microprocessor, this input must be connected to the WR control line. CS I 18 Chip Select CS must be low and CSO must be high to select the TS9370. In CSO 19 non multiplexed mode, the TS9370 remains selected as long as the selection condition is met. In multiplexed mode, the selection condition is latched when AS is low. 4116 234 TS9370 VIDEO INTERFACE Name Pin N° Function Description Type P(0:3) I 24-27 Pixel Inputs These four TTL compatible inputs are strobed by HP into the color index register to address the color look-up table. HP I 28 Dot Clock The rising edge of this input latches the P(0:3) and BLK inputs into the TS9370 and the data out of color look-up table into the output registers. M 0 7 Marking This output is synchronised by HP and delivers the marking bit value from the color look-up table. The logical delay between M output and the latched value P(0:3) is one HP clock period. CA 0 5 Color Outputs These three analog outputs deliver the color signal levels from CB 6 the internal D/A converters (DAC). The delay between CA, CB, CC 4 CC outputs and the latched value P(0:3) is one HP clock period (see timing diagram 5). BLK I 23 Blanking A high level on this input forces the CA, CB, CC and M outputs to low level. RESET I 10 Reset This active high input forces the CA, CB, CC, outputs to low level until the next microprocessor access to the device. OTHER PINS Name Pin N° Function Description Type Vcc S 9 Power Supply +5V Vooc S 2 Analog Power Power supply for the internal DACs. This input can be connected Supply to Vce. Vss S 1 Power Supply Ground FUNCTIONAL DESCRIPTION TS9370 contains a 16 register Color-Look Up Table MICROPROCESSOR INTERFACE (CLUT). Each of these 13-bit register holds three The 8-bit microprocessor interlace gives access 4-bit color fields CA (0:3), CB (0:3) and CC (0:3) and (read or write) to the CLUT which is addressed as a a marking bit M. 32 by1e table. The 13-bit color register # N These registers can be accessed (read or write) by (N = 0 to 15) is accessed,at address 2N and 2N + the microprocessor through the microprocessor 1. Even address holds CA (0:3) and CB (0:3), odd interlace. These registers are also read by the video address holds CC (0:3) and M (see fig. 1). process: a 4-bit pixel data and a clock must be provided at pixel rate to the P(0:3) and HP input pins. TS9370 provides two bus modes through the SMI These signals may be delivered either by 4 video programming pin: shift registers and the shifting clock of a bit map CRT • Multiplexed mode for address/data multiplexed 8- controller or by an alphanumeric or semi-graphic bit microprocessor bus. CRT controller. The pixel value, after clock resyn- • Non-multiplexed mode for non-multiplexed 8 or chronisation, is used as a color index: it selects one 16 bit microprocessor bus. out of the 16 CLUT registers. Each color field of the selected register is converted to an analog signal MULTIPLEXED MODE (SMI connected to Vss) and delivered to one of the CA, CB or CC output. In this mode, TS9370 can be directly connected to The marking bit is directly routed to the M output. popular address/data multiplexed microprocessor, When the CA, CB and CC outputs are used as RGB either Motorola type (6801) or Intel type (8048, analog signals, one color out of 4096 is associated 8051, fill88 ... ). In this last case the TS9370 AS, DS to each pixel value. In short this process freely maps and R/W loQuts must be connected respectively to a 16 color index set into a 4096 color set. the ALE, RD and WR microprocessor control lines. 5/16 235 ------------ - - - - - - - - - - - - - - - - - - TS9370 Figure 1 : Clut Adressing. Color Look-up Table (CLUT) CLUT Byte Adress Register Index 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 # CB3 CB2 CB1 CBO CA3 CA2 CA1 CAO X X X 0 0 0 0 0 0 X X X M CC3 CC2 CC1 CCO X X X 0 0 0 0 1 CB3 CB2 CB1 CBO CA3 CA2 CA1 CAO X X X 0 0 0 1 0 1 X X X M CC3 CC2 CC1 CCO X X X 0 0 0 1 1 CB3 CB2 CB1 CBO CA3 CA2 CA1 CAO X X X 1 1 1 1 0 15 X X X M CC3 CC2 CC1 CCO X X X 1 1 1 1 1 x = Don't Care. In this mode, TS9370 maps into the microprocessor on pins P (0:3), a pixel rate clock on HP input and a addressing space as 32 CLUT byte address. Ran- blanking signal on pin BLK. The pixel value is lat- dom access to one byte takes one cycle: on the faI- ched into the color index register by the rising edge ling edge of the AS input, TS9370 latches AD (0:7) of HP. The color index register selects one register into the on-chip address register, the DS and chip in the CLUT. The color fields of the selected regis- select lines into dedicated flip-flops. The strobed va- ter are routed to 3 DACs and M is directly routed to lue of DS allows recognition of Intel or Motorola type the M digital output. After impedance matching, the for further processing. (See pin description section CA, CB, and CC outputs can be used to drive a RGB and microprocessor timing diagrams for details). analog color monitor. Alternatively one of these out- When TS9370 chip select lines enable selection, the puts can be used to drive a monochrome monitor addressed byte is accessed during the data phase thus providing up to 16 grey levels. The marking di- of the cycle. gital output can be used to drive analog video switches, thus providing video overlay facility on a NON MULTIPLEXED MODE color per color basis. (SMI connected to Vcc) The blanking input forces the analog outputs and In this mode TS9370 can be directly connected to the M output to low level thus allowing the beam to any 8 or 16-bit, non-multiplexed, microprocessor be switched off during retrace intervals. bus (6800, 6809, 6502, 68008 ... ). Notes: 1.The output voltages are proportionnal This mode provides an indirect, auto-incremented to the analog supply voltage VDDC. addressing scheme. TS9370 maps into the micro- When required, setting VDCC allows a processor addressing space as 2 byte address on- gain adjustment. But in most applica- ly. AS is used to select one out of 2 registers: tions, VDDC and VDD can be derived • the write only address register (5 bits) addressed from the same supply through inde- when AS = 1. pendent decoupling. • the read/write data register (8 bits) addressed 2.As the CLUT is shared between micro- when AS = O. processor access and video access, a low level is forced on the CA, CB, CC Random access to a CLUT byte takes two bus cycles: and M outputs during any chip select 1/ Load the CLUT address into the address register. periods. To avoid to spoil the screen 2/ Access (read or write) the value in the data register. with black strokes it is recommended After each access to the data register, the address to access the CLUT from the micropro- register is automatically incremented modulo 32. cessor only during the retrace periods. This scheme allows sequential addressing to the 3.RESET - This input forces CA, CB, CC CLUT without address reloading, the complete and M outputs to a low level until the CLUT can so be reloaded in 33 bus cycles. next microprocessor access. At power on or at the beginning of a session RE- VIDEO PROCESS SET allows to keep a clean black The CRT controller sends to TS9370 a pixel value screen until proper initialization. 6/16 236 TS9370 NON MULTIPLEXED MODE VCC - SMI 0(0:7) AD(0:7) AS 1 ADDRESS I - MPU A(0:1S) CS TS9370 DECODER , E OS - RNV RNV MULTIPLEXED MODE - INTEL TYPE VSS - SMI AD(0:7) AD(0:7) MPU A(B:1S) ADDRESS I CSO - TS9370 DECODER CS ALE AS - RD OS - WR R/W E88-EF9369-12 7/16 237 TS9370 ABSOLUTE MAXIMUM RATINGS Symbol Parameter Value Unit Vee * Digital Power Supply - 0.3 to 7.0 V Vin* Input Voltage - 0.3 to 7.0 V TA Operating Temperature Range o to 70 °C T stg Storage Temperature Range - 55 to 150 °C Vooe * Analog Power Supply - 0.3 to 9.0 V Stresses above those hereby listed may cause permanent damage to the device. The ratings are stress ones only and functional ope- ration of the device at these or any conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. Standard MOS circuits handing procedure should be used to avoid possible damage to the device. * With respect to Vss. ELECTRICAL OPERATING CHARACTERISTICS (Vee = 5.0 ±5%, Vss = 0, TA =-25 OC to + 85 °C) Symbol Parameter Min. Typ. Max. Unit Vee Supply Voltage 4.75 5 5.25 V Vooc Analog Supply Voltage - Vee 7 V loDe Analog Supply Current - 20 - mA V,L Input Low Voltage -0.3 - 0.8 V V,H Input High Voltage RESET 3 - Vee V All Other Inputs 2 - Vee lin Input Leakage Current - - 20 ~ VOH Output High Voltage (I'oad = - 500 !-LA) 2.4 - - V VOL Output Low Voltage (I'oad = 1.6 mAl - - 0.4 V Po Power Dissipation - 300 500 mW Cin Input Capacitance - - 15 pF ITSI Th ree State (off state) Input Cu rrent - - 10 ~ Test Load for Digital Output Test Load for Analog Output Tn, point 1 ..... ' or equiv. E88·TS9370-06 E8B-TS9370·05 AD (0 :7) M CL 100 pF 50 pF RL 1 kQ 3.3 kQ R 4.7 kQ 4.7 kQ 8/16 238 TS9370 MICROPROCESSOR INTERFACE TIMING AD (0 : 7), AS, OS, RiW, CS, csa Vee = 5.0 ± 5 %, T A = - 25 'C to + 85°C, C L = 100 pF on AD (0 : 7) TTL input values are 0 to 3 volts, with input rise/fall time :s; 3 ns, measured between 10 % and 90 % points. Timing reference at 50 % for inputs and outputs. Indent. Symbol Parameter Min. Typ. Max. Unit Number 1 tCYC Cycle Time 400 - - ns 1b tpEWX DS Pulse Width High Time 200 - - ns 1c tPEWL DS Pulse Width Low Time (timing 3) 120 - - ns 2 tAso DS Low to ASJ::Iigh (timing 1 and 3) 20 - - ns DS High or RIW high to AS high (timing 2) 3 tASEO AS Low to DS High (timilJ.!l 1) 20 - - ns AS Low to DS Low or RIW Low (timing 2) 4 tPWEH Write Pulse Width 200 - - ns 5 tpWASH AS Pulse Width 100 - - ns 6 tRWS RIW to DS Setup Time (timing 1) 20 - - ns 6b RIW, AS, CS, CSO to DS Setup Time 20 - - ns (timing 3) 7 tRWH RIW to DS Hold Time (timing 1) 10 - - ns 8 tASL Address and CS, CSO Set Up Time 20 - - ns 9 tAHL Address and CS, CSO Hold Time 20 - - ns 10 tosw Data Setup Time (write cycle) 50 - - ns 11 tOHW Data Hold Time (write cycle) 10 - - ns 12 to OR Data Access Time from DS (read cycle) - - 150 ns 13 tOHR DS Inactive to High Impedance State Time 10 - 80 ns (read cycle) 14 tACC Address to Data Valid Access Time - - 300 ns 9/16 239 TS9370 TIMING DIAGRAM 1 - MULTIPLEXED MODE - MOTOROLA TYPE (8MI = Vss) (i) os --\- t-~ r - ~0 0 I--- \ / 'PwEx ® '\ I V[ 0 r-... V AS I !)- .. -0 RNi } X I- ) ' - ~K (!) - K) ,. r--0 @ . r-@) WRITE CYCL.E .0.010,1 I J '\ ADDjEj 000 INPUT DATA READe YClE (!)~~ < @ - OVTl'UT \ r--@ -- ADDRESS "'DIO:7I ® DATA J E88-TS9369-06 10/16 240 TS9370 TIMING DIAGRAM 2 . MULTIPLEXED MODE· INTEL TYPE (SMI = Vss) READCYCLI o 'eYC Ill) IPin DIll ViRCPinRIW ® 'DDR AO(0.71-------------{ ADDRESS ® 'ACC EBB·TS9369·07 1m IPin OSI ES CSD AOIOo7l------------{ EBB· TS9369·0B 11/16 241 T59370 TIMING DIAGRAM 3 - NON-MULTIPLEXED MODE (SMI = Vee) 'PwEx os Rlii - - - - - - ' " cs CSIl _ _ _ _ _ _J 'OSW WRITE CYCLE INPUT OATA AOIO:71 'DDR 2 'OHR 1 READ CYCLE ADID:71 OUTPUT DATA E88·TS9369-09 DIGITAL VIDEO SIGNALS - HP, P(O:3), BlK, M, RESET vee = 5.0 ± 5 %, TA = - 25 'C to + 85 ae. TS9370-20 and TS9370-30 TA = 0 'C to 70 ae. TS9370-45 TTL input values are 0 to 3 volts, with inputs rise/fall time S; 3 ns, measured between 10 % and 90 % points. Timing reference at 50 % for inputs and outputs. TS9370-20 TS9370-30 TS9370-45 Symbol Parameter Unit Min. Max. Min. Max. Min. Max. \p HP Clock Period 50 1000 33 1000 22.5 1000 ns tPEWH HP High Pulse Width 20 - 11 - 6 - ns tPEWL HP Low Pulse Width 20 - 11 - 6 - ns tsu BLK and P(0:3) Set Up Time to HP 5 - 5 - 5 - ns tHO BLK and P(0:3) Hold Time from HP 10 - 10 - 5 - ns tD M Output Delay from HP - 30 - 30 - 22.5 ns tPWRL RESET High Pulse Width 400 - 400 - 400 - ns 12/16 242 TS9370 TIMING DIAGRAM 4 HP BLK PO P3 '0 M EBB· TS9369·1 0 ANALOG VIDEO OUTPUTS CA, ca, CC Vooc = 5V, C L = 20 pF, RL = 100 kO T A =- 25 'C to + =85 cC, TS9370-20, TS9370-30 o 'C to + 70 cC, TS9370-45 189370-20 189370-30 189370-45 8ymbol Parameter Unit Min. Max. Min. Max. Min. Max. Analog Outputs V White 2.10 2.16 2.10 2.16 2.10 2.16 V V Black 0.76 0.82 0.76 0.82 0.76 0.82 V Output Impedance - 440 - 290 - 230 g Differential non linearity - 1/2 + 1/2 - 1/2 + 1/2 - 1/2 + 1/2 LSB Monotonicity Guaranted tpd Propagation Delay - 30 - 30 - 20 ns CA, CB, CC Outputs from HP tR 10 to 90 % Rise Time - 16 - 12 - 8 ns ts Output Setting Time to 1/2 LSB - 20 - 15 - 10 ns 13116 243 159370 TIMING DIAGRAM 5 CA,.C8.CC EBB-TS9370-07 VIDEO INTERFACE A lot of care is needed when linking the TS9370 co- lors outputs to video amplifier. The function of the video amplifier is to match up the output impedance of TS9370 with a 75 Q Monitor Currently: 3.4 RC < 0.7 tp input. With the example of video amplifier shown in R = output impedance of TS9370 DAC figure 2, the output video signal is compatible with C = input capacitance of video amplifier the RS170 video standard. tp = video clock period Figure 2 : Typical Low Cost Video Interface TSII370 ct---H 750 __ EBB. TS9370-0B TSII370 c t - - -.... 75fl-...-"lm EBB-TS9370-09 14116 244 TS9370 ORDER INFORMATION Part Number Temperature Package TS9370lP20 - 25 OC to + 85 OC DIP28 TS9370lFN20 - 25°C to + 85 OC PLCC28 TS9370lP30 - 25 OC to + 85°C DIP28 TS9370lFN30 - 25 OC to + 85°C PLCC28 TS9370CP45 o °C to 70°C DIP28 PACKAGE MECHANICAL DATA 28 PINS - PLASTIC DIP mm e:2,54 4.57mox. Datum (1) Nominal dimension (2) True geometrical position 14 6 28 PINS 15116 245 TS9370 28 PINS - PLASTIC LEADED CHIP CARRIER mm 11430 ~ 25 0661 0,812 28 Outputs ~ 0331 min. 0,533 16/16 ~ SGS·THOMSON 4"/ IJliJU©~l@m~Iil@IlJU©iI! 246 APPLICATION NOTES 247 APPLICATION NOTE EF9369 COLOR PALETTE By J.F. FEVRE DISPLAY UNIT AND MEMORY PLANE sociated to a gun. So we get a red plane, a green plane and a blue plane which give eight fixed colors On a monitor, the screen is partitioned into X dots on the screen. and Y lines. This number of dots and lines gives the definition. For example 256 x 256, 640 x 480, etc. If more colors are needed on the screen at the same time, more memory planes must be used. Each dot or pixel is associated with a bit in a memo- ry plane. On a monochrome monitor, each pixel will With n planes it will be possible to get 2n colors on be on or off according to its value in the memory the screen at the same time. But in this case, the plane. That kind of monitor has got only one gun to problem is to deal with the three red, green and blue drive the screen. inputs of a color monitor. A color monitor owns three guns (a red, a green and Another problem is that all these sets of colors are a blue) since it is known that all the colors are avai- fixed, and most of the time, in a graphic application lable with these three primary colors. much more colors are needed. To drive these three guns, at least three memory All these problems can be solved by using the planes are needed. Each memory plane can be as- EF9369 single chip color palette. r-------::1 1 1 n,I 1 I I ~L-_ _ _..,2 I T--..J I 1 L--,-----.....,.-,-...J ___ 1_. ,n I ~ t-----, .....-1H---X---::~:-) 1 ____ J, VIDEO I ~Q A ADOAD7 ADI071 ~ ADDRESS A8·A16 ~ DECODER CS EF9345 AL~ AS AD OS - R/W WR E88-AN44T-02 3/38 263 APPLICATION NOTE Figure 3 : Interface with EF6800/6809 by Multiplexing Address and Data Bus. A8 A9 Al0 All ADDRESS 12 MHZ CLOCK A12 DECODER A13 A14 A15 74 LS D2 2 01 CK~ 1 ~~D2 Q2 ~ 04~ 6 9 I 10 > ~ 6 D3"l 13 5 & u:i:03 ;t D5 74lS00 1104 ~ ~~122~1 E R/Vii E RIW ~ 2 & 9 & 12 & G 14 1I 19 DS AS 18 2 ADO / DO B1 A1 16 01 17 B2 16 B3 A2 4 3 AD1 AD2 / A/iN ClK -12 D2 A3 26 5 AD3 / CS ~ 15 B4 A4 D3 D4 14 B5 ~ A5 6 AD4 / 13 B6 ;t A6 7 ADS / D5 12 B7 8 AD6 / D6 A7 11 B8 9 AD7 / D7 A8 EF9345 EF 68OO/faJ9 AD 2 18 / 17 1A1 1Yl ADO Al 4 1A2 1Y2 16 / 18 AD1 A2 6 1A3 ~ 1Y3 14 / 19 AD2 A3 8 12 / 21 1A4 N 1Y4 AD3 11 9 / 2A1 ~ 2Y1 A4 22 AD4 AS 13 2A2 .... 2Y2 7 / 23 ADS A6 15 2A3 2Y3 5 / 24 AD6 A7 17 3 25 2A4 2Y4 AD7 TI TI 11 119 E88-AN44T-03 4/38 264 APPLICATION NOTE Figure 4: Timing Diagram Associated with Figure 3. --- - --- ..------ ,--- ..--- - - - '---- - --- -- 7-- /- v-- ~ ~ - / ../ ...- .., II~ w ~ " 0 C'i E88-AN44T-04 5138 265 APPLICATION NOTE Figure 5 : Interface with EF6800/6809 without Multiplexing Address and Data Bus. ~ A8-A15 J (}1 5 9 CSl 15 IORO E2 Y6 DS CLK 12 MHz OJ A7 6 13 16 m E3 Y2 ~/W ::::j, ~ 15 14 CD CSO .-- AS s:~- YO ~J> RD 4 WI1 T G 3 El A2 74LS138 26 CS ~ N A6 2 A1 .1 eX> 0 OV ~- s: ~ 1 A5 AD 0 s. !lien s: "n ~C(J Z-80A RESET EF9345 c ;:+ -6- ~i! CLK II HPI4 MHz) ro x !li0 S- ~!I <0 ",en -0 » a. ~z a. 17 m (fl DO ADO (fl 18 ~ D1 AD1 OJ a. 19 0 D2 AD2 El- 21 ~ D3 AD3 OJ D4 22 AD4 c ~ I~ 'tI 23 r m D5 24 AD5 n ~ 00 06 AD6 'f -I 25 » z 07 AD7 0 Z "" I\) m -..j I::::J '" ex> " o --J Z 0 -I m APPLICATION NOTE MEMORY INTERFACE As previously, refresh operation is performed by the The EF9345 can be used with a wide variety of EF9345. standard memories and manages up to 16 kbytes of private memory. PROGRAMMING THE EF9345 - GENERAL PRINCIPLES The memory interfaces is made by : DIRECT ACCESS REGISTERS an S-bit address/data multiplexed bus ADM(0:7) a 6-bit high order address bus AM(S:13) As described in the microprocessor interface chapter, the EF9345 is accessed by the micropro- three control signals: OEJQutput Enable), ASM cessor at 16 consecutive locations from address (Address Strobe Memory), WE (Write Enable). XX20 to XX2F (hexadecimal), where XX is determi- During each memory cycle, the EF9345 outputs to ned by the user's address decoding. These 16 ad- ADM(0:7) low order address byte while ASM is high. dresses correspond to S internal registers RO to R7 The high order address bits are provided on (see figure 10). Each register can be accessed at AM(S:13) during the whole memory cycle. When two addresses: a lower address (bit 3 = 0) and an ASM goes low, the ADM(0:7) lines become the me- upper address (bit3 = 1). Forexample, if the EF9345 mory data bus. For a read operation, the OE signal is mapped in the microprocessor addressing space is active low to enable the memQfY. output buffers. from F420 to F42F, register R1 can be read or writ- A write operation is made when WE is low. ten at both addresses F421 and F429. However, a command present in register RO is exe- INTERFACE WITH 2K*S STATIC MEMORY cuted only after an access to a register at an upper As the address lines are generally not latched by address. This scheme allows re-executing a same static RAMs, an externalS-bit latch (74LS373) must command by loading only one argument into an up- be used to store the low order address bits per address register. ADM(0:7) on the falling edge of ASM signal. COMMAND EXECUTION INTERFACE WITH SK* S PSEUDO-STATIC RAM RO is a write command register and a read status The EF9345 can be directly connected to an SK*S register. A command present in RO is executed with pseudo-static RAM (NEC fLPD 416S, INTELl1S7, the arguments in the other direct access registers INMOS 2630 ... ). The ASM signal is fed to the CE in- after any access to a register at an upper address put which latches the address lines. As the EF9345 (from XX2S to XX2F). performs DRAM refresh, the memory internal re- Before any access to a register, the Busy status in fresh circuitry is not use. the Status register bit 7 must be tested to check a The schematic diagram of figure S gives a design command is not currently executing. However, after example which allows interfacing the EF9345 to power-up a NOP command should be executed 2K*S or SK*S memory. With static memory, the S without testing the Busy state to set the circuit into jumpers of SS are connected to provide the low or- a determined state before further operation. A move der address lines from the S-bit latch 74LS373. With command with no stop condition can also be abor- pseudo-static memory, the 74LS373 is useless and ted by executing a NOP command. the S jumpers of S7 are connected. Jumpers S1 to S6 are set in position 2 for 2K*S RAMs, and in posi- INDIRECT ACCESS REGISTER (figure 11) tion 1 for SK*S RAMs. The EF9345 has 5 indirect access registers which define the various operating modes of the circuit: INTERFACE WITH 16K*S DRAM (see figure 9) TGS, MAT, PAT, DOR, ROR. Each of these regis- When using 16K*4 dynamic RAMs, the address pro- ters is assigned an index r and is indirectly acces- vided by the EF9345 must be multiplexed to obtain sed through register R1 . Data is transfered between the Rowand Column address. ASM can be used di- R1 and an indirect access register with the INDcom- rectly as the RAS (Row Address Strobe) signal, but mand, which specifies the transfer direction (bit the CAS signal must be externally generated. Figure R/W) and the register index r (bits 0 to 2). 9 shows an example of generating CAS and the mul- Flowchart of figure 12 gives an example of indirect tiplexer command signals from ASM. access register loading. 8/38 268 APPLICATION NOTE Figure 8: EF9345 Interface with 2K x 8 and 8K x 8 Memory. ·5· CAPO. ".m as c. .. ••- -Cf . IJ" c-- Ie, .. --- ""Ea"'" ... . Ie< es 7 ,. a?... '" : Ie. lCO 2. c. eB .. 7 - -= .." rt coo IC7 2. 1 c. ..... .. ..~. s- .. +.4.7...... ... . AU . .. . .._.... R' .. Ie", ao< ~t- .. G 50 U""'vW "' • ;j ~ . to ---..1: - rE,lc;~ "C$fv«. -~ I: " .:!. I rt .. ~ 59 n, ~a· CL ~i~ slot-' 11'8/11$:- ~I!' ! L---~~~--~~_r_r~~ ~ i. . ---+ ~ ~ fz~r~ ... ':. 5. 6 ""1 .n,F pq,..~ ~ '150... ..."' ... - (1' '" 5.3 t. _ i ES8-AN44T-OS 9/38 269 APPLICATION NOTE Figure 9: Interface with 16 x 4 Dram. 15 .Y ~ 3 2 AOMO AOMO 18 lV~ AO 001 Al ~ 002 3 AOMI ADM 1 13 S 28 2V~ AOM2 AOMJ 10 38 13 9 A2 3v ~ ~ A2 ~ OQ3 15 AOM2 17 AOM3 48 4V 112 A3 ri- A3" OQ4 1 ~ 3A 2A 74LS157 r4 A4 ~ ~ - - AMID 14 4A 1 SEL I-- r-i r1o' A5 CD W AS-AilS 5 4 - ovr-l lA r-= AI CAS 16 ov 81 16 5V 1 ov 18 1 19 5V OV 15 ADM4 3 14 12 MHz CLOCK lB f4.- AD f-f- ~ ~ lY AOM5 6 2 AOWl 28 2V Al :;; DOl AOM6 10 12 A2 00114A 104A B7 F428 A STA R0+8 LOAD AND EXECUTE COMMAND. 00116 00117 ** CLEAR PAGE MEMORY WITH ALPHANUMERIC SPACES 00118 * FOREGROUND AND BACKGROUND COLORS = BLACK 00119 00120A 104D 86 20 A * LDA 1/$20 00121A 104F 8E 0000 A LDX I/S0000 CHAR CODE BYTES B & A 00122A 1052 BD lOEl A JSR MPFILL 00124 * STORE SLICES FOR THE 4 CHARACTERS OF THE THOMSON LOGO. 00125 * CHARACTER CODE C BYTES ARE: $OO,SOl,S02,S03 00127A 1055 86 03 A LOA I/S03 BLOCK NUMBER ZC3:0> 00128A 1057 C6 00 A LOB I/S00 INITIAL CHA R CODE C BYTE 00129A 1059 ED C3 A S10 ,--U SAVE ACC. A &B INTO U STACK 00130A 105B 8E 1167 A LOX /lCAR1 SLICE BUFFER ADDRESS 00132A 105E EC C4 A Ell LDO O,U GET ARGUMENTS FOR WR SLAL 00133A 1060 C1 04 A CMPB II SO 4 SLICES LOADED FOR 4 CHAR? 00134A 1062 27 07 1068 BEQ ET2 YES, BRANCH 00135A 1064 BD 1149 A JSR WRSLAL NO, LOAD TEN SLICES 00136A 1067 6C 41 A INC 1,U INCREMENT CHAR CODE C BYTE 00137A 1069 20 F3 lOSE BRA ETl 00139A 1068 33 42 A ET2 LEAU 2,U UPDATE U POINTER 00141 * WRITE THE 4 UDS CHAR CODES INTO PAGE MEMORY. 00142 * BACKGROUND = BLACK, FOREGROUND = WHITE: A BYTE = $70 00144A 106D BD lODB A JSR BUSY 00145A 1070 86 01 A LDA IlS01 LOAD "KRF" COMMAND WITH CURSOR INCREM. 00146A 1072 B7 F420 A STA RO NO EXECUTI ON ! 00148A 1075 86 26 A LDA 1138 INIT MAIN POINTER TO [OLI..J'II:N 38". ON THE Fl 00149A 1077 B7 F427 A STA R7 ROW AFTER SERVICE ROW 00150A 107A 86 08 A LDA 118 00151A 107C B7 F426 A STA R6 22/38 Gi SGS·THOMSON ~I ilim©DiI@rn~rn©1i'DiI@1Il0©$ 282 APPLICATION NOTE PAGE 004 EF40 .SA:O 00153A 107F 86 80 A LOA #S80 STnRE CHAR CODE B BYTE INTO R2 00154A 1081 87 F422 A STA R2 00155A 1084 86 70 A LOA #S70 CHAR CODE A BYTE INTO R3 00156A 1086 87 F423 A STA R3 00158A 1089 86 00 A LOA #SOO WRITE THE UPPER LEFT CHAR 00159A 1088 87 F429 A STA Rl+8 00160A 108E BD 1008 A JSR BUSY 00161 A 1091 4C INCA WRITE THE UPPER RIGHT CHAR 00162A 1092 B7 F429 A STA Rl+8 00163A 1095 BO 10DB A JSR BUSY 0016~A 1098 86 26 A LOA 11311 INIT MAIN POINTER FOR THE 2 LOWER CHAR 00166A 109A B7 F427 A STA R7 00167A 1091> 86 09 A LOA #9 00168A 109F B7 F426 A STA R6 Y=9 00170A 10A2 86 02 A LOA #S02 WRITE THE 2 LOWER CHAR 00171 A 10A4 B7 F429 A STA Rl+8 00172A 10A7 BO 1008 A JSR BUSY 00173A 10AA 4C INCA 00174A HlAB B7 F429 A STA Rl+8 00176 * LOAD THE 10 SLICES FOR THE QUAORICHROME CHARACTER 00178A 10AE 86 03 A LOA IlS03 BLOCK NUMBER Z<3:Ol 00179A 1080 C6 4B A LOB IIS4B CHAR CODE C BYTE 00180A 10B2 8E 118F A LOX #QUADRI SLICE BUFFER ADDRESS 00181A 10B5 BO 1149 A JSR WRSLAL 00183 * WRITE THE QUADRICHROME CHAR COOE INTO PAGE MEMORY 00184 * PALETTE = RED-BLUE-CYAN-WHITE : A BYTE = S02 00185 * QUAORICHROME SET Q3, HIGH RESOLUTION (R=O) : B BYTE S08 00186 * C BYTE = S4B 00188A 10B8 Bo 100B A JSR BUSY 00189A 10BB 86 14 A LOA 1120 INIT MAIN POINTER X=20 00190A lOBO B7 F427 A STA R7 00191 A lOCO 86 14 A LOA 1120 Y=20 00192A 10C2 B7 F426 A STA R6 00194A 10C5 86 01 A LOA #SOl 00195A 10C7 B7 F420 A STA RO LOAD "KRF" COMMAND 00196A 10CA 86 4B A LOA #S4B LOAD CHAR CODE C 8YTE INTO Rl 00197A 10CC B7 F421 A STA Rl 00198A 10CF 86 08 A LOA #SDII CHAI/ CODE B iHI~ INIO 1/2 00199A 1001 B7 F422 A STA R2 00200A 1004 86 02 A LOA 11502 CHAR CODE A BYTE INTO R3 AND 00201 A 1006 87 F42B A STA R3+8 EXECUTE TRANSFER COMMAND 00203A 1009 20 FE 1009 HERE BRA HERE 23/38 283 APPLICATION NOTE PAGE 005 EF40 .SA:O 00205 ** BUSY: TEST BUSY STATE IN STATUS REGISTER BIT 7. 00206 00207 * 00209 10DB A BUSY EQU *RO 00210A 10DB 7D F420 A TST 00211A 10DE 2B FB 10DB Bill BUSY lOOP IF BIT 7 =1 00212A 10EO 39 RTS 00214 * 00215 • IIPFIll FIll THE 3-BlOCK PAGE IIEIIORY STARTING FROII BLOCK 0 00216 WITH THE SAllE lONG CHARACTER CODE 00217 * ENTRY : THE 1RST BLOCK IS FILLED WITH ACC. A CONTENTS 00218 * THE 2ND BLOCK WITH X REG. (IISB) CONTENTS 00219 * THE 3RD BLOCK WITH X REG. (lSB) CONTENTS. 00220 * * 00222 10E1 A MPFIll EQU * 00224A 10E1 BD 10DB A JSR BUSY TEST BUSY STATUS 00225A 10E4 B7 f421 A STA R1 STORE CHAR CODE INTO R1,R2,R3 00226A 10E7 BF F422 A STX R2 00228A 10EA 4F ClRA INIT llAIN POINTER TO THE BEGINNING 00229A 10EB B7 F426 A STA R6 OF THE SERVICE ROW : R6 = R7 = O. 00230A 10EE B7 F427 A STA R7 00232A 10F1 86 05 A lDA II SO 5 lOAD AND EXECUTE "ClF" COllllAND 00233A 10F3 B7 F428 A STA R0+8 o0235A 10F6 8E 0700 A lDX 112000 00236A 10F9 30 1F II FIlL30 lEA X -1,X WAIT ABOUT 15 IIIlLISECONDS 00237A 10FB 26 FC 10F9 IlNE FllL30 00239A 10FD 86 91 A lDA IIS91 EXECUT E II "NOP" COl'lllAND 00240A 10F F B7 F428 A STA R0+8 TO ABORT "ClF" 00242A 1102 39 RTS 24/38 284 APPLICATION NOTE PAGE 006 EF40 .SA:O 00244 * 00245 * AXPNT AUXILIARY POINTER SET SUBROUTINE 00246 * ENTRY ACC.A = o-o--O-0-Z3-Z2-l1-z0 00247 ACC.B = o-C6-C5-C4-C3-C2-C1-CO, WHERE C(0:6) * IS BYTE C OF CHAR. CODE 00248 * 00249 * EXIT : R4 = YA = G-O-Z2-C6-C5-C4-C3-C2 00250 R5 = XA" = Zo-Z1-o--0-0-0-C1-CO * 00251 ** OPERATIONR6(6)=YPC6)=z3 TEMPORARY STORAGE ~ 00252 00253 I'ICO,S) = zo--Z1-o--o--0·-o--0-0 * 1m,S) - o-o--Z2-o--o--0-o--0 00254 * 00255 I'IC2,S) = 0-0-0-0-z3-Z2-Z1-Z0 * M(3,S) = o-C6-C5-C4-C3-C2-C1-CO 00256 * 00257 * 00258 1103 A AXPNT EQU * 00260A 1103 32 7C A LEAS -4,S RESERVE 4 BYTE TEMPORARY STORAGE 00261 A 1105 ED 62 A STO 2,S SAVE ARGUMENT A & B. 00263A 1107 5F CLRB 00264A 1108 46 RORA 00265A 1109 46 RORA 00266A 110A 46 RORA CY=Z2,A7=Z1,A6=ZO. 00267A 110B 56 RORB B7=Z2 o 026 SA 110C 49 ROLA 00269A 1100 56 RORB B7=Z1,B6=Z2 00270A 110E 49 ROLA 00271 A 110F 56 RORB B7=ZO,B6=Z1,B5=l2 00272A 1110 1F 98 A TFR B,A DUPLICATE RESULT INTO ACC.A 00274A 1112 C4 20 A ANOB "120 B = 0-0-Z2-0-0-0-0-0 00275A 1114 84 co A ANOA lISCO A = zo--Z1-o--0-0-0-0-0 00276A 1116 ED E4 A STO O,S SAVE A & B 00278A 1118 BO 100B A JSR BUSY 00279A 111B E6 63 A LOB 3,S RESTORE INITIAL ARGUMENT 00280A 1110 c4 03 A ANOB "$(]3 KEEP ONLY THE 2 LSB 00281A 111F EA E4 A ORB O,S B = zo--Z1-o--0-o--0-C1-CO 00282A 1121 F7 F425 A STB R5 STORE INTO R5=XA 00283A 1124 E6 63 A LOB 3,S 00284A 1126 54 LSRB 00285A 1127 54 LSRB B = 0-0-0-C6-C5-C4-C3-C2 00286A 1128 EA 61 A ORB 1,S B = 0-0-Z2-C6-C5-C4-C3-C2 00287A 1i2A F7 F424 A STB R4 STORE INTO R4 = YA 25/38 285 APPLICATION NOTE PAGE 007 EF40 .SA:O 00289A 1120 A6 62 A LOA 2,S RESTORE Z3-Z0 ARGIJt1ENT 00290A 112F 84 08 A ANDA 11$08 TEST Z3 00291A 1131 27 DB 113E BEQ AXPNT5 00292A 1133 B6 F426 A LDA YP Z3=1 : YP( 6)=1. 00293A 1136 SA 40 A ORA 11$40 00294A 1138 B7 F426 A STA YP 00296A 113B 32 64 A LEAS 4,S UPDATE STACIC POINTER 00297A 1130 39 RTS 00299A 113E B6 F426 A AXPNT5 LOA YP Z3=0 : YP(6)=0. 0030DA 1141 84 BF A ANDA IISBF 00301A 1143 B7 F426 A STA YP 00303A 1146 32 64 A LEAS 4,S UPDATE STACIC POINTER 00304A 1148 39 RTS 00305 00306 ** WRSLAL : WRITE 10 UDS SLICES. 00307 * ENTRY ACC.A = 0-0-O-o-Z3-Z2-Z1-Z0, WHERE z(3:0) IS 00308 BASE ADDRESS FOR UDS SLICES. 00309 * ACC.B = o-C6-C5-C4-C3-C2-C1-CO, WHERE C(0:6) IS 00310 * BYTE C OF CHAR CODE 00311 * X POINTS TO THE SLICE BUFFER. 00312 ** EXIT A & B DESTROYED 00313 X = X + 10. 00314 * 00315 * AUXILIARY POINTER IS USED : BIT 2 = p OF 00316 * "BYTE LOAD" COMMAND =1 * 00318A 1149 BD 1103 A WRSLAL JSR AXPNT SET AUXILIARY POINTER. 00320A 114C 86 34 A LDA 11$34 "BYTE WRITE COMMAND " 00321A 114E B7 F420 A STA RO STORE COMMAND WITHOUT EXEC. 00322A 1151 C6 OA A LDB 1110 INIT LOa> COUNTER FOR 10 SLICES. 00324A 1153 A6 80 A WRSLA1 LDA O,X+ STORE A SLICE AND EXECUTE 00325A 1155 B7 F429 A STA R1+8 TRANSFER INTO MEMORY 00326A 1158 BD 10DB A JSR BUSY 00328A 115B 86 04 A LDA 11504 INC. SLICE CNTER = R5(5:2) 00329A 1150 BB F425 A ADDA R5 00330A 1160 B7 F425 A STA R5 00332A 1163 5A DECB DEC. LOa> COUNTER 00333A 1164 26 ED 1153 BNE WRSLA1 00335A 1166 39 RTS 26/38 286 APPLICATION NOTE PAGE 008 EF40 .SA:O 00337 ** SlICE VAlUES FOR UOS CHARACTERS OF FIGlRE 15 00338 00339 * 00340A 1167 20 A CAR1 FCB S20,S38,S3C,S3E,S3F,S3F,S1F,S1F,SOF,SOF 00341A 1171 04 A CAR2 FCB S04,S1C,S3C,S7C,SFC,SFC,SF8,SF8,SFO,SFO 00342A 117B 07 A CAR3 FCB S07,SC7,SE3,SF3,SF9,SFC,SFC,SF8,SEO,S80 00343A 1185 EO A CAR4 FCB SEO,SE3,SC7,SCF,S9F,S3F,S3F,S1F,S07,S01 00344 00345 ** SLICE VALUES FOR QUADRICHROME CHARACTER (FIGlRE 16) 00346 * 00347A 118F 9r A QUADRI FCB S9C,S5A,SA3,S6A,SA9,SBE,S92,SEB,S29,SB6 00349 END TOTAL ERRORS 00000--00000 TOTAL WARNINGS OOOPO--oOOOO PROGRAMMING THE EF9345 IN 80 PAGE MEMORY CHAR/ROW MODE With long character code format, a page memory consists of three 1 Kbyte blocks. The same rules as CHARACTER CODE (figures 20 and 21) in 40 char/row mode apply to page memory selection. In 80 char/row mode, the screen is made of 25 or The first (resp. second) block holds the C bytes of the 21 rows of 80 characters. characters in even (resp. odd) position on the rows. Every two consecutive characters have their A nibble Each character is displayed in a 6 pixels by 10 lines concatened to make a byte stored in the third block. window, which is associated with a character code in a page memory. Short character codes are similarly packed in two consecutive blocks which hold only C bytes. For a page, one of two character code formats must be selected: ACCESS TO CHARACTER CODE • Long codes (12 bits), which consist of a C byte KRL command performs long character code trans- and an attribute A nibble. fer between registers R1-R3 and the memory. R1 is • Short codes (8 bits), which consist of only a C byte used for C byte transfer and R3 for A nibble trans- (see figure 20). fer. When loading a character code, the A nibble With short codes, the C byte selects one of the 128 must be repeated in R3. intemal alphanumeric characters (Go set), and cha- KRC command is similarly used for short character racters are displayed without attributes. code access between R1 and the memory. Long code format provides an additional 1024 mo- Both KRL and KRC commands use the Main Poin- saic character set and four attributes: D (color se- ter (R6, R7) for memory addressing. With a page lect), N (negative), U (underline) and F (flash). For memory starting from block number Z(0:3), R6 holds each character, the foreground/background colors the Y row number and Z3-Z2. As the character po- and the insert attribute are selected by bits D and N sition on a row is given by X(0:5) and ZO, it must be from the values programmed in DOR and MAT transcoded to obtain the R7 value with ZO-Z1 in the registers. most significant bits (see figure 22). 27/38 287 APPLICATION NOTE Figure 20 : 80 Char/Row Character Code. 6 4 3 o 3 o 6 5 4 o 3 2 o --------------- C ALPHANUMERIC CHAR CODE ~ C MOSAIC CHAR CODE A N = Negative F = Flash I... 3 pels ....I 3 pels ... I U ~ Underline i D = Color set o I co CI DEDICATED 2 MOSAIC 128 ALPHANUMERICS C2 C3 3 SET In GO set. 4 C4 C5 5 6 C6 Al 7 8 A2 A3 9 E88-AN44 T-21 Figure 21 : Color Selection. 65432 0 DaR i, I I I I I I I I B, G, R, io So Go RO 0 N BACKGNO COLOR FOREGNO COLOR i --------I Cl I ~ Co 0 0 CM Co iO I I 0 1 Co CM ,0 _0=' __1 I _0=0_ , 0 CM Cl il I I , 1 C, CM il The pixel shift frequency is fClK (12 MHz). E88-AN44T-22 28/38 288 APPLICATION NOTE Figure 22 : Transcoding an Horizontal Screen Location into a R7 Pointer. 7 6 543 2 o 7 6 5 4 3 2 o I I I Rotate right I I I I ------- bl X5 , X41 X3, X2 1 XI I XO I bO ... bO bl X5, X4 I X3 1 X2 I XI I XO Character position (0 to 79) ! Block parity X.~'o'" E88-AN44 T-23 29/38 289 APPLICATION NOTE PROGRAMMING THE EF9345 IN 80 CHAR/ROW MODE PAGE 001 EF80 .SA:O 00001 OPT LLE=110 00003 ,. 00004 ,. EF9345 PROGRAMMING EXAMA...E IN 80 CHAR/ROW 00005 * THIS PROGRAM IS WRITTEN IN 6809 ASS8'lBlER LANGtMGE. 00006 * AFTER INDIRECT REGISTERS INITIALIZATION, TWO 00007 * CHARACTER STRINGS ARE DISPLAYED AND A ROLL-UP 00008 * OPERATION IS MADE. 00009 * 00011 * EF9345 REGISTER ADDRESS 00013 F420 A RO EQU SF420 COMMAND/STATUS REGISTER 00014 F421 A R1 EQU R[)fo1 DATA REGISTERS 00015 F422 A R2 EQU R[)fo2 00016 F423 AR3 EQU R[)fo3 00017 F424 A R4 EQU R[)fo4 AUXILIARY POINTER (Y) 00018 F425 A R5 EQU R[)fo5 AUXILIARY POINTER (X) 00019 F426 A R6 EQU R[)fo6 MAIN POINTER (Y) 00020 F427 A R7 EQU R[)fo7 MAIN POINTER (X) 00022 F425 A XA EQU R5 00023 F424 A YA EQU R4 00024 F427 A XP EQU R7 00025 F426 A YP EQU R6 00027 4000 A STACK EQU $4000 00028 3F80 A STACKU EQU STACK-128 0OO3OA 1000 ORG $1000 00032 1000 A MAIN EQU ,. 00034A 1000 10CE 4000 A LDS 'STACK STACK INITIALIZATION 00035A 1004 CE 3F80 A LDU .STACKU 00037A 1007 86 91 A LDA .S91 LOAD AND EXECUTE A "NOP" COMMAND 0OO38A 1009 B7 F428 A STA R[)fo8 WITHOUT TESTING BUSY 00040 00041 ** TGS REGISTER INITIALIZATION : 00042 ,. TGSO = 0 625.LINES (50 HZ) 00043 * TGS1 = 0 NOT INTERLACED 00044 ,. TGS2 = 0 HORIZONTAL RESYNC. DISABLED 00045 * TGS3 = 0 VERTICAL RESYNC. DISABLED 00046 * TGS4 = 0 HORIZONTAL SYNC. ON HVS/HS PIN AND 00047 * VERTICAL SYNC. ON PC/VS PIN 00048 ,. TGS5 = 0 : SE~ICE ROW Y = 0 00049 00050 ,.* TGS(7:6) = 11 : 80 CHAR/ROW MODE, LONG CHAR CODE (12 BITS) 00052A 100t BD 10D2 A JSR BUSY 00053A 100F 86 cO A LDA .seD LOAD VALUE INTO R1 00054A 1011 B7 F421 A STA R1 00055A 1014 86 81 A LDA .$81 "IND" COMMAND TO LOAD TGS (r=1) 00056A 1016 B7 F428 A STA R[)fo8 LOAD AND EXECUTE COMMAND. 30/38 L'W'I OJ, SGS·THOMSON IiiIOcmmn.IiC'II!j@ll!]OC3 290 APPLICATION NOTE PAGE 002 EF80 .SA:O 00058 00059 ** MAT REGISTER INITIALIZATION : 00060 * MAT(2:0) = 100 : MARGIN COLOR = BLUE 00061 * MAT3 = 1 : I SIGNAL IS HIGH DURING MARGIN PERIOD 00062 * MAT(5:4) = 00 : FIXED COMPLEMENTED CURSOR 00063 * MAT6 = 1 : CURSOR DISPLAY ENABLED 00064 * MAT7 ~ 0 : NO ZOOM MODE 00065 * 00067A 1019 BD 10D2 A JSR BUSY 00068A 101 C 86 4C A LDA IISitC LOAD VALUE INTO R1 00069A 101 E B7 F421 A STA R1 00070A 1021 86 82 A LDA . IIS82 "IND" COMMAND TO LOAD MAT (r=2) 00071A 1023 B7 F428 A STA R0+8 LOAD AND EXECUTE COMMAND. 00073 00074 ** PAT REGISTER INITIALIZATION : 00075 * PATO = 1 SERVICE ROW ENABLED 00076 * PAT1 = 1 : UPPER BULK ENABLE' 00077 * PATZ = 1 : LOWER BULK ENABLED 00078 * PAT3 = 1 : CONCEAL ENABLED 00079 * PAT(5:4) = 11 : I SIGNAL IS HIGH DliUNG THE 00080 ACTIVE DISPLAYED AREA. 00081 ** PAT6 = 1 FLASHING ENABLED 00082 * PAT7 = a 80 CHAR/ROW MODE, LONG CODE 00083 * 00085A 1026 BD 10D2 A JSR BUSY 00086A 1029 86 7F A LDA IIS7F LOAD VALUE INTO R1 00087A 102B B7 F421 A STA R1 00088A 102E 86 83 A LDA 11$83 "IND" COMMAND TO LOAD PAT (r=3) 00089A 1030 B7 F428 A STA R0+8 LOAD AND EXECUTE COMMAND. 00091 00092 ** DOR REGISTER INITIALIZATION : 00093 * DOR(3:0) = 1111 : COLOR co = WHITE 00094 * DOR(7:4) = 1000 : COLOR C1 = BLACK 00095 * INSERT ATTRIBUTE ; IS SET FOR ANY CHARACTER. 00096 * 00098A 1033 BD 10D2 A JSR BUSY 00099A 1036 86 8F A LDA IIS8F LOAD VALUE INTO R1 00100A 1038 B7 F421 A STA R1 00101A 103B 86 84 A LDA IIS84 "IND" COMMAND TO LOAD DOR (r=4) 00102A 103D B7 F428 A STA -R0+8 LOAD AND EXECUTE COMMAND. 31/38 291 APPLICATION NOTE PAGE 003 EF80 .SA:O 00104 ** ROR REGISTER INITIALIZATION : 00105 00106 * ROR(4:0) =01009 : ORIGIN ROW =8 00107 * ROR(7:5) = 001 : DISPLAYED PAGE JIIEMORY STARTS FROM BLOCK 0 00108 * 00110A 1040 BD 10D2 A JSR BUSY 00111A 1043 86 28 A LDA 11$28 LOAD VALLE INTO R1 00112A 1045 B7 F421 A STA R1 001BA 1048 86 87 A LDA 11$87 "IND" COM""'ND TO LOAD ROR (r=7) 00114A 104A B7 F428 A STA R0+8 LOAD AND EXECUTE COM""'ND. 00116 00117 ** CLEAR PAGE JllEJIIORY WITH ALPHANUMERIC SPACES 00118 * BACKGROUND COLOR = CM (MARGIN COLOR) 00119 * 00120A 104D 86 20 A LOA 11$20 C BYTE FOR EVEN POSITION CHAR. 00121A 104F 8E 2000 A LDX 11$2000 C BYTE FOR ODD POSITION AND A Nmll..ES 00122A 1052 C6 04 A LDB 114 PAGE JllEJIIORY FIRST BLOCK NUMBER 00123A 1054 BD 1008 A JSR JIIPFILL 00125 * WRITE "ABCD ..... WITH FLASH AND NEGATIVE ATTRIBUTES 00126 * ATTRIBUTE BITS (D,N)=01 : COLOR = CO DEFINED IN DOR 00127 00128 * BACKGROUND FOREGROUND COLOR = CM (MARGIN COLOR) * 00130A 1057 BD 10D2 A JSR BUSY 00131A 105A 86 51 A LDA 11$51 LOAD "KRL" COMI'IIINO WITH 00132A 105C B7 F420 A STA RO CURSOR INCREMENTATION 00134A 105F 86 28 A LOA 11$28 INIT ""'IN POINTER (CURSOR) 00135A 1061 B7 F426 A STA R6 00136A 1064 86 00 A LOA IlSOO 00137A 1066 B7 F427 A STA R7 00139A 1069 86 CC A LOA IISCC LOAD ATTRIBUTE NIBBLE (REPEATED 00140A 1068 B7 F423 A STA R3 INTO R3). 00142A 106E C6 OA A LDB 1110 LOOP COUNTER FOR 10 CHARACTERS 00143A 1070 86 41 A LDA li'A FIRST CHAR CODE C BYTE 00145A1072 B7 F429 A LOOP STA R1+8 STORE C.C. C BYTE AND EXEC COMJllAND 00146A 1075 4C INCA INCREMENT C BYTE 00147A 1076 BD 10D2 A JSR BUSY 00148A 1079 5A DEeB DEe LOOP COUNTER 00149A 107A 26 F6 1072 BNE LOOP 32/38 292 ( APPLICATION NOTE PAGE 004 EF80 .SA:O 00151 * WRITE '"KLI'I •••• '" WITH UNDeRLINING 00152 * (D,N) = (0,0) : BACKGROUND COLOR = CM 00153 * FOREGROUND COLOR = CO 00155A 107C 86 2A A LOA #S2A INIT CURSOR 00156A 107E B7 F426 A STA R6 00157A 1081 86 00 A LOA II$(] 0 00158A 1083 B7 F427 A STA R7 00160A 1086 86 22 A LOA 1IS22 ATTRIBUTE Nmlll.E INTO R3 00161 A 1088 B7 F423 A STA R3 00163A 1088 C6 OA A LDB 1110 00164A 108D 86 4B A LOA II'K 00166A 108F B7 F429 A LOOP1 STA R1+8 00167A 1092 4C INCA 00168A 1093 BD 1002 A JSR BUSY 00169A 1096 5A DECB 00170A 1097 26 F6 108F BNE LOOP1 00172 * ROLL-UP OPERATION EXAMPLE 00174A 1099 BD 10D2 A JSR BUSY 00176A 109C 86 8F A LOA IIS8F EXECUTE "IND" COMMAND TO READ ROR REGISTE 00177A 109E B7 F428 A STA R0+8 00179A 10A1 BD 10D2 A JSR BUSY COMMAND EXECUTED? 00180A 10M B6 F421 A LOA R1 READ RESULT FROM R1 00182A 10A7 C6 87 A LDB #S87 STORE "IND" COMI'IAND FOR LOADING ROR 00183A 10A9 F7 F420 A STB RO 00185 10AC A LOOP3 EQU * 00187A 10AC B7 F429 A STA R1+8 STORE VALUE TO BE LOADED INTO ROR 00188A 10AF BD 1002 A JSR BUSY 00189A 1082 BD 10C6 A JSR WAIT TEMPO 00190A 1085 4C INCA 00191A 1086 34 02 A PSHS A 00192A 1088 84 1F A ANOA flS1F YOR = ROR(4:0> = 31 ? 00193A 10BA 81 1F A CMPA 1131 00194A 10BC 35 02 A PULS A 00195A lOBE 26 EC 10AC BNE LOOP3 00197A 10CO 84 EO A ANDA IISEO IF YOR=31, SET YOR=8 00198A 10C2 88 08 A ADDA fl8 00199A 10C4 20 E6 10AC BRA LOOP3 Oft201 10C6 A WAIT EQU 00202A 10C6 34 10 A PSHS *X 00203A 10C8 8E FfFF A WAIT1 LOX #SFFFF 00204A 10CB 30 1F A WAIT2 LEAX -1,x 00205A 10CD 26 FC 10CB BNE WAlT2 00206A 10CF 35 10 A PULS X 00207A 1001 39 RTS 33/38 293 APPLICATION NOTE PAGE 005 EF80 .SA:O 00209 00210 ** BUSY : TEST BUSY IN STATUS REGISTER RO(7) 00211 * 1002 A BUSY EQU 00213 00214A 10D2 7D F420 A TST * RO 00215A 10D5 2B FB 1002 BMI BUSY LOOP IF BIT 7 =1 00216A 10D7 39 RTS 00218 00219 ** MPFlLL FILL THE 3-BLOCK PAGE MEMORY STARTING FROM BLOCK 0 00220 * WITH THE SAME LONG CHARACTER CODE 00221 * ENTRY: ·THE 1RST BlOCK IS FILLED WITH ACC. A CONTENTS 00222 * THE 2ND BLOCK WITH X REG. (MSB) CONTENTS 00223 * THE 3RD BLOCK WITH X REG. (LSB) CONTENTS. 00224 * 00226 10D8 A MPFlLL EQU * 00228A 10D8 BD 10D2 A JSR BUSY TEST BUSY STATUS 00229A 10DB B7 F421 A STII R1 STORE CHAR CODE INTO R1,R2,R3 00230A 10DE BF F422 A STX R2 00232A 10E1 4F CLRA INIT MAIN POINTER TO THE BEGINNING 00233A 10E2 B7 F426 II STA R6 OF THE SERVICE ROW : R6 = = R7 O. 00234A 10E5 B7 F427 A STA R7 0023611 10E8 86 05 A LDA (lS05 LOAD AND EXECUTE "ClF" COM MAN D 0023711 10EII B7 F428 A STA ROt8 00239A 10ED 8E 0700 A LOX (12000 0024011 10FO 30 1F A FlLL30 lEAX -1,X WAIT ABOUT 15 MILLISECONDS 00241A 10F2 26 FC 10FO BNE FllL30 00243A 10F4 86 91 A LDII (1$91 EXECUTE A "NOP" COMMAND 00244A 10F6 B7 F428 II STII ROt8 TO ABORT "CLF" 0024611 10F9 39 RTS 00248 END TOTAL ERRORS OOOOQ--{)OOOO TOTAL WARN INGS OOOOQ--{)OOOO 34/38 294 COMMAND TABLE Code Parameter Status Arguments Execution Time (1) Type Memo 7 6 5 4 3 2 1 0 AI LX m LX, R 17 R1 R2 R3 R4 R5 R6 R7 Write R.. d Irdirect INO I 0 0 0 R/W- r - 0 0 0 0 D - - - - MP 2 3.5 40 Characters - 24 Bits KRF 0 0 0 0 A/W 0 0 I X X 0 0 C B A - - MP 4 7.5 40 Characters - 16 Bits KRG 0 0 0 0 R/WO 1 1 X X 0 0 A' B' W - - MP 5.5 7.5 80 Characters - 8 Bits KRC 0 1 0 0 R/W 0 0 1 X X 0 0 C - - - - MP 9 9.5 80 Characters - 12 Bits KRL 0 1 0 1 R/W 0 0 1 X X 0 0 C - A - - MP 12.5 11.5 40 Characters Variable KRV 0 0 1 0 R/W 0 0 1 X X X X C B A - XF MP (2) 3 + 3 + j 3.5+S*j Expansion EXP 0 1 1 0 0 0 0 0 X 0 X 0 C B A PW XF MP (3) < 247 - Compression CMP 0 1 1 1 0 0 0 0 X 0 X 0 C B A PW XF MP (3) < 402 - Expanded Characters KRE 0 0 0 1 R/W 0 0 I X X 0 0 C B A PW - MP 4 7.5 Byte OCT 0 0 1 1 R/W P 0 I X X X 0 D - - AP MP 4 4.5 Move Buffer MVB 1 1 0 1 S ! a a 0 0 0 0 W - - AP MP (2) 2 + 4.n - ~ Move Double Buffer Move Triple Buffer MVD MVT 1 1 1 1 1 1 0 1 s S i t a 11: a a 0 0 0 0 0 0 0 - - 0 W - W - AP AP MP MP (2) 2 + B.n (2) 2 + 12.n - - R~ ",(It Clear Page (4) - 24 Bits CLF 0 0 0 0 0 1 0 1 X X 0 0 C B A - - MP < 4700 (1 K code) - @. ~i! Clear Page (4) - 16 Bits CLG 0 0 0 0 0 1 1 1 X X 0 - 0 A' B' W - MP < 5800 (1 K code) - !O VerticeJ Sync Mask Set VSM 1 0 0 1 1 0 0 1 0 0 0 0 - - - - - - - 1 - ~I Vertical Sync Mask Reset VRM 1 0 0 1 0 1 0 1 - - - - - - - - - - - 1 - ~O ~Z IrcrementY INY 1 0 1 1 0 0 0 0 0 0 0 0 - - - - - y - TBD - No Operation NOP 1 0 0 1 0 0 0 1 - - - - - - - - - - - 1 - Pointer Select Not Afflocted (I) Unit: 12 clock periods (- 1 .,.5) without possible suspension. , : Auxiliary Pointer W Used as Working Register (2) n: total number of words s 40 ; J _ , lor long codes. j _ 0 o : Main POinter. PW(~. YW) Workln, BuNer for short codas. B•• Source Destination X Sat or R86et (3) Worst case (20 long code. + 20 .hon cod•• ). 01 : Source. MP ; Destination. AP 1 0 : Scuree • AP ; Destination. mP XF I X File (4) These commands repeat KRF or KRG with V incr.mentatlon » "tJ a.a Stop Condition 0' : Slap at End of Buffer MP D Pointer Incremantation Data Main Pointer when X overflows. When the lasl position ia reached In a row. Y is incremented and tha process starts again on the next row. These commands SlOp only with abOrt. ... "tJ , 0 : No Stop Indirect Register Number AP Auxiliary Pointer, ~ -I (5 Z Z '" o-I I}l ~ m c.n ClO APPLICATION NOTE POINTERS y =10,1 ;810311 y' '" (0,1 ; 8 to 311 I I I I , I I 2 I' 1 dl d'l dO 3 0 R6 MAIN AUXILIARY X "'0 to 39 X' ""Ol039 POINTER POINTER I I 15 I' 1 12 I' 1 bO bl 3 0 R7 I b'OI b'l I I' 5 13 I 2 I' 1 0 R5 INDIRECT REGISTERS 7 6 5 I z31 z, I 221 ROR Ir ~ 71 ~ • ~ I Origin row address YOR ,,-(8 t0311 '--_ _ _ _ _ _ _ _~,..,.. Block origin levenl Ir-------....~ I IV ~ '/01 Service row select •5 TGS (r 0 11 40 CHAR LONG CHAR CODe PAT7 0 TGS7 0 TGSs 0 J I L~L.1__1"' ' ' - ~ Interlaced Horizontal resVnc enable Vertl!:al resync enable Sync oul pins configuration 40 CHAR VAA 40 CHAR SHORT so CHAR LONG 0 , 0 a a 1 , 0 1 l 1 1 : Composite sync i' phase comparator o V sync + H sync 80 CHAR SHORT a 1 0 I PAT Ir ~ 31 lTL~ Service row enable Upper bulk enable Lower bulk enable INSERT MODE PATS PAT4 ... Conceal enable INLAY 0 0 F lash enable BOXING 0 , CHARACTER MARK 1 0 ACTIVE AREA MARK , , MAT Ir = 21 CU RSOR DISPLAY MODE FIXED COMPLEMENTED FLASH COMPLEMENTED MAT5 0 , MAT, 0 0 .1[_1-~ Margin color Margin insert Cursor displav enable Double height FIXED UNDERLINED 0 , FLASH UNDERLINED , 1 NOTA: PROGRAMMING BIT VALUE 1 = True 0= False DOR in 40 char/row DOR in 80 chilrlrow 4 o 6 '1 I I 1 ! I I I I B, G, Rl '0 BO Go AO -...- ~ Cl: Co DOR Q DOR G', DOA G'o E88-AN44T-25 36/38 296 APPLICATION NOTE 40 Char/Row Fixed Long Codes BICHROME CODE OUAORICHROME CODE 6 5 4 3 2 o 6 5 4 3 0 I-I I caYTE I-I I -------1 ~: ILlmlHlil 11~::- ; BBYTE Doublewidth TVpe end set r II~ 1 '-' ~ Low R.olution Subset index (low resolutIon onlv) Set number I I I I N Bl Gl I Rl F A BYTE 4 COLOR PALETTE « ! ! ! II c:::::-.. Background color Co " - - _ : : Flaoh (Blinkl Foreground color C1 '--_ _ _ _ _ _ _ _ _ _ Negative (Reverse video) E88-AN44T-26 Type and Set Number of Character Code: B (4: 7) Set Set Cell Per Set Name Type Location 7 6 5 4 C (0:6) 1 0 128 Standard Mosarcs G10 SEMI-GR. 0 1 1 32 Strokes G 11 0 0 U 128 Alphanumerics GO 0 N B ON-CHIP D I ROM 0 C E Accentued Lower Case Alpha G20 1 1 ALPHA H R G21 L R 1 0 1 I 0 N 100 Alpha UDS G'O M E E 0 1 1 100 Semi-graphic UDS G'10 EXTERNAL SEMI-GR. 1 0 100 Semi-graphic UDS G'11 MEMORY 8 Sets of 100 QO 1 X X to QUAD RICH ROME Quadrichrome Character Q7 Nota: Programming bit value 1 = True 0= False. 37/38 297 APPLICATION NOTE 80 Char/Row Character Code 6 5 4 3 2 o 3 2 o 6 5 4 3 2 o 3 2 o - -----~~------- C ALPHANUMERIC CHAR CODE A --------- --- I\XIXIX,XIX,XIXIIX,XIXIDI C MOSAIC CHAR CODE A N = Negative F = Flash = U Underline .. .... .. I 3 pelS 1 3peb I D = Color set o CO CI I DEDICATED 2 MOSAIC 128 ALPHANUMERICS C2 C3 3 In GO .et. 4 SET C4 C5 5 6 C6 AI 7 8 A2 AJ 9 E88-AN44T-27 COLOR SELECTION D N BACKGND FOREGND i COLOR COLOR 0 0 CM Co iO 0 1 Co CM iO 1 0 CM CI i1 1 1 C, CM i1 (Co, c" iO, il) : defined in DOR CM : margin color defined in MAT 38/38 Gi'l SGS·ntOMSON • Jj IliIUI:OO~I!.IiC'ITIiiI@OOUC$ 298 NOTES AUSTRALIA INDIA SINGAPORE NSW 2027 EDGECLIFF NEW DELHI 110048 SINGAPORE 2056 Suite 211, Edgecliff centre Liason Office 28 Ang Mo Kio - Industrial Park 2 203-233, New South Head Road S114, Greater Kailash Part 2 Tel. (65) 4821411 Tel. (61-2) 327.39.22 Tel. (91) 6414537 Telex: RS 55201 ESGIES Telex: 071 126911 TCAUS Telex: 31-62000 SGSS IN Telefax: (65) 4820240 Telefax: (61-2) 327.61.76 ITALY SPAIN BRAZIL 20090 ASSAGO (MI) BARCELONA 05413 SAO PAULO V.le Milanofiori - Strada 4 - Palazzo A/4/A Calle Platon, 64°/5' R. Henrique Schaumann 286-CJ33 Tel. (39-2) 8244131 (10 !inee) Tel. (34-3) 2022017-2020316 Tel. (55-11) 883-5455 Telex: 330131 - 330141 SGSAGR Telefax: (34-3) 2021461 Telex: (39-11) 37988 "UMBR BR" Telefax: (39-2) 8250449 28027 MADRID CANADA 40033 CASALECCHIO 01 RENO (BO) Calle Albacete, 5 Via R. Fucini, 12 Tel. (34-1) 4051615 BRAMPTON, ONTARIO Telex: 46033 TCCEE Tel. (39-51) 591914 341 Main St. North Telefax: (34-1) 4031134 Telex: 226363 Tel. (416) 455-0505 Telefax: (39-51) 591305 Telefax: 416-455-2606 SWEDEN 00161 ROMA CHINA Via A. Torlonia, 15 S-16421 KISTA Tel. (39-6) 8443341/2/3/4/5 Borgarfjordsgatan, 13 - Box 1094 BEIJING Tel. (46-8) 7939220 Beijing No. 5 Semiconductor Telex: 620653 SGSATE I Telefax: (39-6) 8444474 Telex: 12078 THSWS Device Factory Telefax: (46-8) 7504950 14 Wu Lu Tong Road Da Shang Mau Wai JAPAN SWITZERLAND Tel. (861) 2024378 Telex 222722 STM CH TOKYO 141 1218 GRAND·SACONNEX (GENEVE) Shinagawa-Ku, Nishi Gotanda Chemin FranQois-Lehmann, 18/A DENMARK 8-11-7, Collins Bldg 8 Tel. (41-22) 7986462 Tel. (81-3) 491-8611 Telex: 415493 STM CH 2730 HERLEV Telefax: (81-3) 491-8735 Telefax: (41-22) 7984869 Herlev Torv, 4 Tel. (45-2) 94.85.33 TAIWAN Telex: 35411 KOREA Telefax: (45-2) 948694 SEOUL 121 KAOHSIUNG 8th floor Shinwon Building 7FL-2 No FRANCE 823-14, Yuksam-Dong 5 Chung Chen3rd Road Kang-Nam-Gu Tel. (886-7) 2011702 94253 GENTILL Y Cedex Telefax: (886-7) 2011703 Tel. (82-2) 552-0399 7 - avenue Gallieni - BP. 93 Telex: SGSKOR K29998 Tel.: (33-1) 47.40.75.75 TAIPEI Telefax: (82-2) 552-1051 Telex: 632570 STMHQ 6th Floor, Pacific Commercial Building Telefax: (33-1) 47.40.79.10 285 Chung Hsiao E. Road - SEC, 4 NETHERLANDS Tel. (886-2) 7728203 67000 STRASBOURG Telex: 10310 ESGIE TW 20, Place des Hailes 5612 AM EINDHOVEN Telefax: (886-2) 7413837 Tel. (33) 88.25.49.90 Dillenburgstraat 25 Telex: 870001 F Tel.: (31-40) 550015 UNITED KINGDOM Telefax: (33) 88.22.29.32 Telex: 51186 Telefax: (31-40) 528835 MARLOW, BUCKS HONG KONG Planar House, Parkway Globe Park WANCHAI Tel.: (44-628) 890800 22nd Floor - Hopewell centre Telex: 847458 183 Queen's Road East Telefax: (44-628) 890391 Tel. (852-5) 8615788 Telex: 60955 ESGIES HX Telefax: (852-5) 8656589 U.S.A. NC FOR RF AND MICROWAVE Charlotte (Rep) - (704) 563-5554 POWER TRANSISTORS CONTACT NORTH & SOUTH AMERICAN Morrisville (Rep) - (919) 469-9997 THE FOLLOWING REGIONAL MARKETING HEADQUARTERS Raleigh - (919) 832-7775 OFFICES IN THE U.S.A. 1000 East Bell Road Phoenix, AZ 85022 NJ CA (1)-(602) 867-6100 Voorhees - (609) 772-6222 Hawthorne - (213) 675-0742 SALES & REPS COVERAGE BY STATE NY NJ Binghamton (Rep) - (607) 772-0651 Totowa - (201) 890-0884 AL E. Rochester (Rep) - (716) 381-8500 Huntsville - (205) 533-5995 Jericho (Rep) - (516) 935-3200 PA Huntsville (Rep) - (205) 881-9270 Pittsford (Rep).- (716) 381-3186 Montgomeryville - (215) 362-8500 Poughkeepsie - (914) 454-8813 TX AZ Skaneateles (Rep) - (315) 685-5703 Phoenix - (602) 867-6340 Carrollton - (214) 466-8844 OH CA Chagrin Falls (Rep) - (216) 247-6655 WEST GERMANY Fountain Valley (Rep) - (714) 545-3255 Dayton (Rep) - (513) 866-6699 Irvine - (714) 250-0455 6000 FRANKFURT 71 Los Angeles (Rep) - (213) 879-0770 OR Rennbahnstrasse 72-74 San Diego (Rep) - (619) 693-1111 Beaverton (Rep) - (503) 627-0838 - Tel. (49-69) 6708191 San Jose - (408) 452-8585 Tigard - (503) 620-5517 Telex: 176997 689 Santa Clara (Rep) - (408) 727-3406 Telefax: (49-69) 674377 PA Teletex: 6997689 =csfbef CO Butler (Rep) - (412) 285-1313 Boulder (303) 449-9000 Horsham (Rep) - (215) 441-4300 0-8011 GRASBRUNN BEl MONCHEN Wheat Ridge (Rep) - (303) 422-8957 Bretonischer Ring 4 TN P.B.1122 FL Jefferson City (Rep) - (615) 475-9012 Tel.: (49-89) 460060 Altamonte Springs (Rep) - (305) 682-4800 Telex: 528211 Deerfield Beach (Rep) - (305) 426-4601 TX Telefax: (49-89) 4605454 St. Petersburg (Rep) - (813) 823-6221 Austin - (512) 339-4191 Teletex: 897107 =STDISTR Carrollton - (214) 466-8844 GA 3000 HANNOVER 1 Tucker (Rep) - (404) 938-4358 UT Eckenerstrasse 5 Salt Lake City (Rep) - (801) 269-0419 Tel. (49-511) 634191 IL Telex 175118418 Schaumburg - (312) 517-1890 WA Bellevue (Rep) - (206) 451-3500 Teletex: 5118418 csfbeh IN Seattle, (206) 524-6421 Telefax: (49-511) 633552 Fort Wayne (Rep) - (219) 436-3023 8500 NORNBERG 20 Greenwood (Rep) - (317) 881-0110 CANADA Burnaby (Rep) - (604) 421-9111 Erlenstegenstrasse, 72 Kokomo - (317) 459-4700 Mississauga (Rep) - (416) 673-0011 Tel.: (49-911) 597032 IA Nepean (Rep) - (613) 825-0545 Telex: 626243 Cedar Rapids (Rep) - (319) 362-2526 Quebec (Rep) - (514) 337-5022 Telefax: (49-911) 5980701 Winnipeg (Rep) - (204) 783-4387 5200 SIEGBURG MD Glen Burnie (Rep) - (301) 761-6000 COLUMBIA Frankfurter Str. 22a Bogota (Rep) - (011) 57-1-257-8824 Tel. (49-2241) 660 84-86 MA Telex: 889510 Waltham - (617) 890-6688 MEXICO Telefax: (49-2241) 67584 Mexico City (Rep) - (905) 577-1883 MI 7000 STUTTGART 1 Southfield - (313) 358-4250 PUERTO RICO Oberer Kirchhaldenweg 135 Southfield (Rep) - (313) 358-4151 Rio Piedras (Rep) - (809) 790-4090 Tel. (49-711) 692041 Telex: 721718 MN URUGUARY Telefax: (49-711) 691408 Bloomington (Rep) - (612) 884-6515 Montevideo (Rep) - (011) 598-2-594-888 MO Florissant (Rep) - (314) 839-0033 Kansas City (Rep) - (816) 436-6445 Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of SGS-THOMSON Microelectronics. Specifica- tions mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previou- sly supplied. SGS-THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of SGS-THOMSON Microelectronics. © 1989 SGS-THOMSON Microelectronics - Printed in Italy - All Rights Reserved SGS-THOMSON Microelectronics GROUP OF COMPANIES Australia· Brazil - China· France· Hong Kong· Italy - Japan - Korea - Malaysia· Malta· Morocco - The Netherlands· Singapore· Spain' Sweden· Switzerland - Taiwan· United Kingdom - U.S.A. - West Germany Garzanti s.p.a. - Cernusco s.lN.