8275 PROGRAMMABLE CRT CONTROLLER • Programmable Screen and Character • Fully MCS·SO™ and MCS·SS™ Format Compatible • 6 Independent Visual Field Attributes • Dual Row Buffers • 11 Visual Character Attributes (Graphic Capability) • Programmable DMA Burst Mode • Cursor Control (4 Types) • Single + SV Supply • Light Pen Detection and· Registers • 40·Pin Package The Intell!> 8275 Programmable CRT Controller is a single chip device to interface CRT raster scan displays with Intell!> microcomputer systems. Its primary function is to refresh the display by buffering the information from main memory and keeping track of the display position of the screen. The flexibility deSigned into the 8275 will allow simple interface to almost any raster scan CRT display with a minimum of external hardware and software overhead. CCLK LC3 vcc LC2 'LAo LC, LA, OB0-7 CCO_6 LCO LTEN ORO RVV DACK VSP HRTC GPA, VRTC GPAo iffi HLGT ORO LCo_3 WR IRO DACK LPEN CCLK IRO DBO CC6 DB, CC5 DB2 CC4 iiD DB3 CC3 LAO-l Wll DB4 CC2 HRTe AO VRTC HLGT DB5 CC, RVV LTEN DB6 cCo cs VSP GPAo_, DB7 cs GND AO LPEN Figure 1. Block Diagram Figure 2. Pin Configuration 1·354 inter 8275 Table 1. Pin Descriptions Pin PI,!- Symbol No. Type Nanie and Function Symbol No. Type Name and Function LC3 1 0 Line Count: Outputfrom the line count- Vcc 40 +5V Power Supply. LC2 2' er which is used to address the charac- LAo 39 0 Line Attribute Codes: These attribute LC, 3 ter generator for the line positions on the LA, 38 codes have to be decoded externally by LCo 4 screen. the dot/timing logic to generate the ORO 5 0 DMA Request: Output signal to the horizontal ~nd vertical line combina- 8257 DMA controller requesting a DMA tions for the graphic displays specified cycle. by the character attribute codes. DACK 6 I DMA Acknowledge: ,Input signal from LTEN 37 0 Light Enable:, Output signal used to the 8257 DMA controller acknowledging , enable the video signal to the CRT. This that the requested DMA cycle has been output is active at the programmed granted. underline,cursor position, and at posi- HRTC 7 0 Horizontal Retrace: Output signal tions specified by attribute codes. which is active during the programmed RW, 36 0 Reverse Video: Output signal used to horizontal retrace interval. During this indicate the CRT circuitry to reverse the period the VSP output is high and the video signal. This output is active at the , LTEN output is low. cursor position if a reverse video block VRTC 8 0., Vertical Retrace: Output signal which cursor is programmed or at the posi- is active during the ,programmed tions specified by the field attribute vertical retrace interval. During this codes. period the VSP output is high and the VSP 35 0 Video Suppression: Output signal LTEN output is low. used to blank the video signal to the RD 9 I Read Input: A control signal to read CRT. This output is active: registers. -during the horizontal and vertical re- trace intervals. WR 10 I WrHe Input: A control signal to write commands into the control registers or -at the top and bottom lines of rows if write data into the row buffers during a underline is programmed to be num- DMAcycle. ber 8 or greater. -when an end of row or end of screen LPEN 11 I Light Pen: Input signal from the CRT code is detected. system signifying that a light pen signal has been detected. -when a DMA underrun occurs. -at regular intervals (1/16 frame fre- DBo 12 I/O BI-Directional Three-State Data Bus quency for cursor, 1132 frame fre- DB, 13 Lines: The outputs are enabled during quency for character and field attri- DB2 14 a read of the C or P ports. butes)-to create blinking displays as DB3 15 specified by cursor, character attri- DB, 16 bute, or field attribute programming. DBs 17 DBs 18 GPA, 34 0 General Purpose Attribute Codes: DB7 19 GPAo 33 Outputs which are enabled by the gen- eral purpose field attribute codes. Ground 20 ,Ground. HLGT 32 0 Highlight: Output signal used to inten- sify the display at particular positions on the screen as specified by the character attribute codes or field attribute codes. IRO 31 0 Interrupt Request. CCLK 30 I Character Clock (tromdot/timing logic). CCs 29 0 Character Codes: Output from the CC s 28 row buffers used for character selection CC. 27 in the character generator. CC3 26 CC2 25 CC, 24 CCo 23 CS 22 I Chip Select: The read and write are en- abled by CS. Ao 21 I Port Address: A high input on Ao selects the "C" port or command regis- ters and a low input selects the "P" port or parameter registers. 1-355 AFN-00224B inter 8275 FUNCTIONAL DESCRIPTION Data Bus Buffer CCL. This 3-state, bidirectional, 8-bit buffer is used to interface the 8275 to the system Data Bus. This functional block accepts inputs from the System Con- trol Bus and generates control signals for overall device C"o_6 operation. It contains the Command, Parameter, and Status Registers that store the various control formats for the device functional definition. AO OPERATION REGISTER ORO LCO_3 0 Read PREG DACK Write PREG IRO 0 1 Read SREG AD 1 Write CREG LAO_1 Wii HRTe VRTe· HLGT RVV LTEN RD (Read) vsp ~--.J GPAO-l A "low" on this input informs the 8275 that the CPU is reading data or status information from the 8275. LPEN WR (Write) A "low" on this input informs the 8275 that the CPU is writing data or control words to the 8275. Figure 3. 8275 Block Diagram Showing Data Bus Buffer and ReadlWrlte Functions CS (Chip Select) A "low" on this input selects the 8275. No reading or writ· ing will occur unless the device is selected. When CS is high, Ao RD WR CS the Data 8us in the float state and RD and WR will have no 0 0 1 0 Write 8275 Parameter effect on the chip. 0 1 0 0 Read 8275 Parameter DRQ (DMA Request) 1 0 1 0 Write 8275 Command 1 0 0 Read 8275 Status A "high" on this output informs the DMA Controller that X 1 1 0 Three-State the 8275 desires a DMA transfer. X X X Three-state DACK (DMA Acknowledge) A "low" on this input informs the 8275 that a DMA cycle is in progress. IRQ (Interrupt Request) A "high" on this output informs the CPU that the 8275 desires interrupt service. 1·356 AFN-00224B 8275 Character Counter CClK 'The Charac~l!r CQuntl!r is a programmable counter that is used to det.ermin~ the,number of characters to be displayed per row and the, lengt~ ohhe horizontal retrace interval. It is driven by the CCLK,,(Character Clock) input, which should be a derivative of the external dot clock. 0110-7 CCO-6 Line Counter ' ' The Line Cou'~ter i~:a"~rogrammable counter that is used to determine the .nurnber of .horizontal' Jines (Sweeps) per character row. ;Its outputs are used, to address the external ORQ _ _ _ ~ .character gene(8tor ROM. LCO_3 DACK--'--- IRQ 'Aow Counter The Row Counter is a programmable counter that is used to determine the number of character rows t'o 'be displayed per LA0--1 frame and len'gth of the vertical retrace interval. HRTe VRTe HLGT RVV LTEN Light Pen Aeglsters vs. GPA0-1 " The Light Pen Registers are two registers that store the con- tents of the character counter and ,the row counter when- a ever there is rising ed~, on the LPEN (Light Pen) input. LPEN ,Note: Software ~!1rrection is required, ' Figure 4. 8275 Block Diagram ShowingCoJnter Aaster Timing and Video Controls , 'andRes,llsterFunctions The Raster Timi~~.cir~u;i~/~Qntrols th~.timin~' of the FIFOs HRTC (Horizontal' R~trace) and VRTC (Vertical Retrace) outputs. The Video Control circuitry controls the genera- There are two 16 character FI FOs in th~ 8275. 'They are tion of LA0-1 (Line Attribute), HGLT (Highlight), RVV used to provide extra row buffer length in the Transpa'rent (Reverse Video), LTEN (LightEnahle),VSP (Video Sup- Attribute Mode (see Detailed Operation section). press), and'GPA0-1 (General'Purpose Attribute) outputs. Buffer InpuUOutpul Controllers Row Buffers The Buffer Input/Output Controllers decode the characters The Row Buffers are two 80 character buffers. They are being placed in the row buffers. .If the character is a charac· filled from the microcompu~~r system memory with, the ter attribute, field attribute, or speCial code, these con- character codes to be displayed. While one ·row buffer is trollers control the appropriate action. (Examples: An displaying a row of characters, the other is being filled with "End of Screen-Stop DMA" special code will cause the the next row of characters. Buffer Input Contn;>IIer to stop further DMA requests. A "Highlight" field attribute will cause the Buffer, Output Controller to activate the HGL T output.) 1.·357 AFN-002248 8275 SYSTEM OPERATION The 8275 is programmable to a large number of different It is designed to interface with the 8257 OMA Controller display formats. It provides raster timing, display row buf- and standard character generator ROMs for dot matrix fering, visual attribute decoding, cursor timing, and light decoding. Dot level timing must be provided by external pen detection. circuitry. MEMORIES SYSTEM BUS U ( \ DBO_7 I'ifE"MR AO lOW DBO_7 MEMW WR iOR RD CS CS HRO IRO HACK ORO LCO_3 8257 VIDEO SIGNAL DMA CHARAcTER CONTROLLER DACK GENERATOR HORIZONTAL SYNC 8275 CCO-6 DOT CRT TIMING VERTICAL SYNC CONTROLLER CCLK AND INTERFACE INTENSITY VIDEO CONTROLS Figure 5. 8275 Systems Block Diagram Showing SystemsOj)eratlon 1·358 AFN.00224B 8275 General Systems Operational Description The number of lines per character row, the underline posi- tion, and blanking of top and bottom lines are program- The 8275' provides a "window" into the microcomputer mable. (Se!! ,Programming Section.) system memory. The 8275 provides special Control Codes which can be used Display characters are retrieved from memory and dis· to minimize' DMA or software oyerhead. It also provides played on a row by row basis. The 8275 has two row buf· Visual Attribute Codes to cause special action or ,symbols fers. While one row buffer is being used for display, the on the screen without the use of the character generator other is being filled with the next row of characters to be (see Visual Attributes Section). displayed. The number of display characters per row and The 8275 ,also controls raster timing. This is done by gen- the number of character rows per frame are software pro· erating Horizontal Retrace (H RTC) and Vertical Retrace grammable, providing easy interface to most CRT displays. (VRTC) signals. The timing of these signals is program- (See Programming Section.) mable. The 8275 requests DMA to fill the row buffer that is not The 8275 can generate a cursor. Cursor location and format being used for display. DMA burst length and spacing is are programm~ble. (See Programming Section.) programmable. (See Programming Section.) The 8275 has a light pen input and registers. The light pen input is used to load the registers. Light pen registers can be The 8275 displays character rows one line at a time. read on command. (See Programming Section.) , 1st 2nd 3rd 4th 5th 6th 7th Character Character Character Charaetar Character Character Charaetar ~------- 00••••000.0000.00 • • • • • 000000000 • • • • 0000 • • • 000.000.0 First Line of a Character Row 1st 2nd 3rd 4th 5th 6th 7th -'-. ....---------- Character Character Character Character Character Character Character 00. . . .000.0000.00 • • • • • 000000000 • • • • 0000 • • • 000.000.0 0.0000.00 ••000'00.0000000000000.000.00.0,00.00.000.0 Second Line of a Character Ro,'" - 1st 2nd 3rd 4th 5th 6th 7th Character Character Character Character Character Character Charaetar ~-----.;.......--.. 00••••000.0000.00 • • • • • 000000000 . . . . . 0000 • • • 000.000.0 0.0000.00 •• 000.00.0000000000000.000.00.000.00.000.0 '0.0000.00'0000.00.0000000000000.000.00.000.00.000.0 Third Line of a Character Row 1st 2nd 3rd 4th 5th 6th 7th -------- Character Character Character Character Character .~-­ oa.•••ooo.oooo.oo ••••• ooooooooo •••• oooo ••• ooo.ooo.o a.oooo.oo••ooo.OO.ooooooooooooo.ooo.oo.ooo.oo.ooo.o 0.0000.00.0_00.00.0000000000000.000.00.000.00.000.0 Charaetar Character 0.0000.00.0000.00 • • • • 0000000000 • • • • 000.000.00.0.0.0 o.oooo.od.oo.o.oo.ooooooooooooo.o.oooo.ooo.oo.o.o.o o.qooo.oo.OOO••oo.ooooooooooooo.oo.ooo.ooo.oo.o.o.o Oq••••ooo.oooo.oo ••••• ooooooooo.oo.oooo ••• oooo.o.oo Seventh Line of a Cheraeter Row Figure 6. Display of a Character Row 1-359 AFN.Q0224B 8275 Display Row Buffering After all the lines of the character row are scanned, the Before the start of a frame, the 8275 requests DMA and roles of the two row buffers are reversed and the same one row buffer is filled with characters. procedure is followed for the next row. CCLK CCLK CCO_6 CCO_6 ORO LCO_3 DACK ORO LCO_3 IRa DACK IRa Rii LAO_l Rii WR HRTC LAO_l VRTC WR AO HLGT HRTe RW VRTe AO LTEN HLGT VS. RW C!! LTEN GPAO_l vs. cs GPAO_l LPEN LPEN Figure 7. First Row Buffer Filled When the first horizontal sweep is started, character codes Figure 9. First Buffer Filled with Third Row are output to the character generator from the row buffer Second Row Displayed ' just filled. Simultaneously, DMA begins filling the other row buffer with the next row of characters. This is repeated until all of the character rows are dis· played. CCLK 080_7 CCO_6 DRa _ _ _ _ ~ LCO_3 LAO_l HRTC VRle AO- HLGT RW LTEN vs. GPAO_l LPEN Figure 8. Second Buffer Filled, First Row Displayed 1-360 AFN-00224B inter 8275 Display Format aow Format The 8275 is designed to hold the line count stable while outputting the appropriate character codes during each horizontal sweep. The line' count is incremented during Screen Format horizontal retrace' al1d the whole row of character codes are The 8275 can 'be programmed to generate from 1 to 80 oUtput again during the next sweep. This is continued until characters per row, and from 1 to 64 rows per frame. the whole character row is displayed. The number of lines (horizontal sweeps) 'per character row is program mabie from 1 to 16. The output of the line counter can be programmed to be in one of two modes. 123456789 . . . . . . . . . . . . . . 80 In mode 0, the output of the line counter is the same as the 2 line number. . 3 In mode 1, the line counter is offset by one from the line 4 number. 5 6 Note: In mode 1, while the first line (line number 0) is being dis- 7 played, the last count is output by the line counter (see 8 examples). 9 Line Line Line Counter Counter Number Mode a Model 64 0 0 0 0 0 0 0 0 0 0 0000 1111 1 0 0 0 0 • 0 0 0 0 0001 0000 2 0 0 0 • 0 • 0 0 0 0010 0001 Figure 10. Screen Format 3 0 0 • 0 0 0 • ..0 0 0011 0010 4 0 • 0 0 0 0 0 0 0100 0011 5 0 • • 0 0 0 0 0 0 0101 0100 6 0 ••••••• 0 0110 0101 7 0 • • 0 0 0 0 0 0 0111 0110 8 0 • • 0 0 0 0 0 0 1000 0111 The 8275 can also be programmed to blank alternate rows. 9 10 0 0 •0 0 00 0 0 0 0 0 0 0 • 0 .0 0 1001 10,1 Q 1000 1 Q 01 In this mode, the first row is displayed, the second blanked, 11 0 0 0 0 0 0 0 0 0 1011 1010 12 0 0 0 0 0 0 0 0 0 1100 1011 the third displayed, etc. DMA is'not requested for the 13 0 0 0 0 0 0 0 0 0 1101 1100 blanked rows. 14 0 0 0 0 0 0 0 0 0 1 110 1 101 15 0 0 0 0 0 0 0 0 0 1111 1110 Figure 12. Example of a 16-Line Format Line Line Line Counter Counter 123456789 . . . . . . . . . . . . . . . 80 Number Mode 0 Mode 1 2 0 0 0 0 0 0 0 0 0000 1001 3, 1 0 0 0 • 0 0 0 0001 0000 2 0 0 • • 0 0 0 0010 0001 4 3 .0 • 0 • 0 0 0 0011 0010 5 4 0 • 0 • 0 0 0 0100 0011 5 0 ••••• 0 0101 0100 6 0 • 0 • 0 0 0 01 (0 0101 7 8 0 0 • 0 0 0 • 0 0 0 0 0 0 0 0111 1000' 0110 0111 9 0 0 0 0 0 0 0 100 i 1000 64 Figure 13. Example of a 10-Line Format Figure 11. Blank Alternate Rows Mode Mode 0 is useful for character generators that leave address zero blank and start at address 1. Mode 1 is useful for char- acter generators which start at address zero. 1-361 AFN-00224B intef 8275 Underline placement is also programmable (from line num- Dot Format ber·O to 15l- This is independent of the line counter mode_ Dot width and character width are dependent upon the If the line number of the underline is greater than 7 (line external timing and control circuitry. number MSB = 1), then the top and bottom lines will be blanked_ Dot level timing circuitry should be designed to accept the parallel output of the character generato,r and shift it out serially at the rate required by the CRT display. Line Line Line Counter Counter Number Mode a Model a 0 0 0 0 0 0 0 0 0 0000 1011 1 0 0 0 0 • 0 0 0 0 0001 0000 2 0 0 0 • 0 •o .• 0 0 0 o.Q 1 0 0001 3 0 0 •• 0 0 0 0 0011 0010 4 0 • 0 0 0 0 0 0 0100 0011 5 6 0 0 • .. ••••• • 0 • 0 0 0 ,0 0 0 0101 0110 0100 0101 7 0 • .0 0 • 0 0 0 0 0 0111 0110 B 0 • o .• .0, 0;.0 0 ,000 0111 9 0 • • 0 0 0 0 0 0 1001 1000 10 11 ••••••••• 0 0 0 0 0 0 0 0 0 1010 1011 1001 1010 VIDEO Top and Bottom Lines are Blanked Figure 16~ Typical Dot Level Block Diagram Figure 14. Underline In Line Number 10 'If the line number of the underline is less than or equal to 7. Dot width is a function of dot clock freqLJenc¥. (line number MSB =0), then the top and bottom lines will Character width is a function of the character generator not be blanked. width. Horizontal character spacing' is a function of the shift register length. Note: Video control and timing signals must be synchronized with the video signal due to the character generator access delay. Line Line Line Counter Counter Number Mode a Model 0 0 0 0 • 0 0 0 0000 0111 1 d 0 • 0 • D 0 0'001 0000 2 0 • • 0 0 0 0 0010 0001 3 0 • • 0 0 0 0 0011 0010 4 0 ••••• 0 0100 0011 5 0 • • 0 0 0 0 0101 0100 6 0 • o • 0 0 0 0110 0101 7 ••••••• 0111 0110 Top and Bottom Lines are not Blanked Figure 15. Underline In Line Number 7 If the line number of the underline is greater than the maxi- mum number of lines, the underline will not appear. Blanking is accomplished by the VSP (Video Suppression) signal. Underline is accomplished by the LTEN (Light Enable) signal. AFN-00224B 1-362 8275 Raster Timing The row counter is an internal counter driven by the line The character counter is driven by the character clock input counter. It controls the functions of the row buffers and (CCLK). It coUnts out the characters being displayed counts the number of character rows displayed. (programmable from 1 to 80). It then causes the line counter to increment, and it 'Starts counting out the hori- . ONE CHARACTER .ROW . zontal retrace. interval (programmable from 2 to 32). This is constantly repeated. INTERNAL CCLK ROWCOUNTI;:R • PROGRAMMABLE 1 TO 16 LINE COUNTS HRTe Figure 18. Row Timing PROGRAMMABLE 1 TO 80 CCLKS After the row counter counts all of the rows in a frame ________________J NEXT LC1).3 PRESENT LINE COUNT LINE COUNT (programmable from 1 to 64), it starts counting out the vertical retrace interval (programmable from 1 to 4). Figure 17. Line Timing , ONE FRAME' ROWI~~~~:~~xxxt/Xj:x_ FIRST LAST FIRST LAST The line counter is driven by the character counter. It is DISPLAY ROW DISPLAY ROW RETRACE RETRACe ROW ROW used to generate the line address outputs (LC O_3 ) for the character generator. After it counts all of the lines in a character row (programmable from 1 to 16). it increments VRTC~~'- .. , \ the row counter, and starts over again. (See Character For- T T PROGRAMMABLE PROGRAMMABLE mat Section for detailed description of Line Counter 1 TO B4 ROW COUNTS 1 TO 4 ROW COUNTS functions. ) Figure 19. Frame Timing The Video Suppression Output (VSP) is active during horizontal and vertical retrace intervals. Dot level timing circuitry must synchronize these outputs with the vidllo signal to the CRT Display. 1-363 AFN-00224B inter 8275 DMATlming Interrupt Timing The 8275 can be programmed to request burst DMA trans- The 8275 can be programmed to generate an interrupt fers of 1 to 8 characters. The interval between bursts is also request at the end of each frame. This can be used to programmable (from 0 to 55 character clock periods ±1). reinitialize the DMA controller. If the 8275 interrupt This allows the user to tailor his DMA overhead to fit his enable flag is set, an interrupt request will occur at the system needs. beginning of the last display row. The first DMA request of the frame occurs one row time before the end of vertical retrace. DMA requests continue as programmed, until the row buffer is filled. If the row buffer is filled in the middle of a burst, the 8275 terminates the burst and resets the burst counter. No more DMA INTERNAL~ ROW COUNTER requests will occur until the beginning of the next row. At that time, DMA requests are activated as programmed until the other buffer is filled. The first DMA request for a row will start at the first char- VRTC ~1---e--..1 acter clock of the preceding row. If the burst mode is used, the first DMA request may occur a number of character IRQ clocks later. This number is equal to the programmed burst space. Figure 21. Beginning of Interrupt Request If, for any reason, there is a DMA underrun, a flag in the status word will be set. I RO will go inactive after the status register is read. INTERNAL ,OW LAST RETRAce ROW ~ FIRST DISPlAV ROW COUNTER \~--- IRQ } wffi i~ i~~ w ~ RD~~}- g~ ~:~ ~ 0", Figure 22. End of Interrupt Request ROW BUFFER FILLED Figure 20. DMA Timing A reset command will also cause IRO to go inactive, but this is not recommended during normal service. Another method of reinitializing the DMA controller is to have the DMA controller itself interrupt on terminal count. With this method, the 8275 interrupt enable flag should not be set. Note: Upon power-up, the 8275 Interrupt Enable Flag may be set. The DMA controller is typically initialized for the next As a result, the user's cold start routine should write a reset frame at the end of the current frame. command to the 8275 before system interrupts are enabled. AFN-00224B 1-364 8275 VISUAL ATTRIBUTES AND SPECIAL Character Attribute Codes CODES Character attribute codes are codes that can be used to gen- erate graphics symbols without, the use' of a character generator. This, is accomplished by selectively aclivating the Line Attribute outputs (LAo-1), the Video Suppression The characters processed by the 8275 are 8-bit quantities. output (VSPI. and the Light Enable output. The dot level timing circuitry can use these signals to generate the proper The character code outputs provIde the character generator symbols. with 7 bits of address. The Most Significant Bit is the extra bit and it is used to determine if it is a normal display Character attributes can be programmed to blink or be character (MSB = 0), or if it is a Visual Attribute or Special highlighted individually. Blinking is accomplished with the Code (MSB = 1). Video Suppression output (VSP). Blink frequency is equal There are two types of Visual Attribute Codes. They are to the screen refresh frequency divided by 32. Highlighting Character Attributes and Field Attributes. is accomplished by activating the Highlight output (HGLT). Character Attributes MSB LSB 1 1 .::.C-..::.C,...::.C-..::.C B H I' I L HIGHLIGHT BLINK L-;"':':'_ _ _ CHARACTER ATTRIBUTE CODE DOT CLOCK ~~~~z. RIGHT -...;.. ~ 00 CHAR. GEN. ___ ENABLE - ---I l' -.....1 ::::: ->---- >- .... '-' ::::. >---- ~ GENERATOR t----' 0, CHARACTER ~~~ 03 ~ :::: - -L- = ->- -U- SHIFT REGISTER " 8275 0, - .... >---- - ....- f'")---- - f) - ~~ETr)--------(n) rt:=-l'H-ORIZ'LE---LFTHALF~OUIT~_ LA, f - - - h . . . . -_ _ _'r1-4____ 14--++,...J1l ...... >---\----r L-!> ......._-r-- ....... T ..... I v ~ =L.)-VIDEO LAo r--- PIPELINE I : VSP r--- 1--"---------------------1 VS' f - - LTEN 1-_ _ _ _ _ _--'-_ _ _ _ _ _ _ _ _ _ _ _--_.11 SYNCHF:I~ J-2L,,!,!TEO!!N_ _...J t---HGLT 1-_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _-1-1 NIZATION I I - - - - - - _ H I G H L . I G H T ---" '--- Figure 23. Typical Character Attribute Logic 1-365 AFN-00224B inter 8275 Table 2. Character Attributes Character attributes were designed to produce the following graphics: CHARACTER ATTRIBUTE DESCRIPTION 0000 Top Left Corner 0001 Top Right Corner 0010 Bottom Left Corner 0011 Bottom Right Corner 0100 Top Intersect 0101 Right Intersect 0110 Left Intersect 0111 Bottom Intersect 1000 Horizontal Line 1001 Vertical Line 1010 Crossed Lines 1011 Not Recommended * 1100 Special Codes 1101 Illegal 1110 Illegal 1111 Illegal *Character Attribute Code 1011 is not recommended for Character Attribute Codes 1101, 1110, and 1111 are illegal. normal operation. Since none of the attribute outputs are active, the character Generator will not be disabled, and Blinking is active when B: 1. an indeterminate character will be generated. Highlight is active when H = 1. 1·366 AFN-oG2248 inter 8275 Special Code. character following the code up to, and including, the Four special codes are avaIlable to help reduce memory, character which precedes the next field attribute code, or software, or DMAoverhead. up to the end of the frame. The field attributes are reset during the vertical retrace interval. ' Special Control Character There are six field attributes: MSB LSB 1 1 1 1 DOS S 1. Blink - Characters following the code are caused ~SPECIAL CONTROL CODE to blink by activating the Video Suppression out- put (VSP). The blink frequency is' equal to the screen refresh frequency divid,ed by 32. S S FUNCTION 2. Highlight - Characters following the code are a 0 End of Row caused to be highlighted by activating the High- a 1 End of Row·Stop DMA light output (HG LT). o End of Screen End of Screen'Stop DMA 3. Reverse Video - Characters following the code are caused to appear with reverse video by activating the Reverse Video output (RVV). The End of Row Code (00) activates VSP and holds it to 4. Underline - Characters following the code are the end of the line. caused to be underlined by activating the Light The End of Row-Stop DMA Code (01) causes the DMA Enable output (L TEN). Control Logic to stop DMA for the rest of the row when it 5,6. Genera/Purpose - There are two additional 8275 is written into the Row Buffer. It affects the display in the outputs which act as general purpose, independ- Saple way as the End of Row Code (00). ently programmable field attributes. GPA0-1 are The End of Screen Code (1 0) activates VSP and holds it to active high outputs. the end of the frame. The End of Screen-Stop DMA Code (1 n causes the QMA Field Attribute Code Control Logic to stop DMA for the rest of the frame when MSB LSB it is written into the Row Buffer. It affects the display in 10liRGGBH II T Il.....-- the same way as the End of Screen Code (10). HIGHLIGHT If the Stop DMA feature is not used, all characters after an ---BLINK L, L :- - -_ _ GENERAL PURPOSE End of Row character are ignored, except for the End of L.- ' - - - - - - - REVERSE VIDEO " Screen character, which operates normally. All characters L--------UNDERLINE' after an End of Screen character are ignored. H = 1 FOR HIGHLIGHTING B = 1 FOR BLINKING Note: If a Stop DMA character is not' tlie last character in a burst or R = 1 FOR REVERSE VIDEO row, DMA is not stopped 'until after the next character is U = 1 FOR UNDERLINE read. In this situation, a dummy character must be placed in' = GG GPA1, GPAo memory after the Stop DMA character. Field Attribute. *More than one attribute can be enabled at the same time. The field attributes are control codes which affect the If the blinking and reverse video attributes are enabled visual characteristics for a field of characters, starting at the simultaneously, only the reversed characters will blink. 1-367 AFN-00224B inter 8275 The 8275 can be programmed to provide visible or invisible Each row buffer has a corresponding FIFO. These FIFO!; field attribute characters. are 16 characters by 7 bits in size. If the 8275 is programmed in the visible field attribute When a field attribute is placed in the row buffer during mode, all field attributes will occupy a position on the DMA, the buffer input controller recognizes it and places screen. They will appear as blanks caused by activation of the next character in the proper FIFO. the Video Suppression output (VSP). The chosen visual When a field attribute is placed in the Buffer Output Con· attributes are activated after this blanked character. troller during display, it causes the controller to immedi- ately put a character from the FIFO on the Character Code outputs (CCO-6). The chosen Visual Attributes are also activated. ABC D E F G H I J K L M Since the FIFO is 16 characters long, no more than 16 field NOPORSTUV attribute characters may be used per line in this mode. If more are used, a bit in the status word is set and the first characters in the FIFO are written over and lost. Note: Since the FIFO is 7 bits wide, the MSB of any characters put in it are stripped off. Therefore, a Visual Attribute or Special Code must not immediately follow a field attribute code. If this situation does occur, the Visual, Attribute .. or, Special 1 234 5 6 7 8 9 Code will be treated as a normal display character. ' ' Figure 24. Example of the Visible Field Attribute Mode (Underline Attribute) If the 8275 is programmed in the invisible field attribute mode, the 8275 FIFO is activated. ABC D E .,F G H.I J K L M NOPORSTUV CCLK 1 234 5 6 7 8 9 080_7 CCO_6 Figure 26. Example of the Invisible Field Attribute Mode (Underline Attribute) ORO_-----, LCO_3 DACK IRO LAO-l HRTC VRre HLGT RVV LTEN VSP GPAo_l Field and Character Attribute Interaction Character Attribute Symbols are affected by the Reverse LPEN Video (RVV) and General Purpose (GPAO-l) field attri- butes. They are not affected by Underline, Blink or High- light field attributes; however, these characteristics can be programmed individually for Character Attribute Symbols. Figure 25. Block Diagram Showing FIFO Activation 1·368 AFN-00224B inter 8275 Cursor Timing Device Programming The cursor location is determined by a cursor row register The 8275 has two programming registers, the Command and a character position register which are loaded by com- Register (CREG) and the Parameter Register (PREG). It mand to the controller. The cursor can be programmed to also has·a Status Register (SREG).,The Command Register appear on the display as: can only be written into and the Status Registers can only 1. a blinking underline be read from.· They are addressed as follows: 2. a blinking reverse video block AO OPERATION REGISTER 3.· a non-blinking.underline 4. a non-blinking reverse video block 0 Read PREG The cursor blinking frequency is equal to the screen refresh 0 Write PREG frequency divided by 16. Read SREG If a non-blinking reverse video cursor appears in a non- blinking reverse video field; the cursor will appear as a ," Write. CREG normal video block. The 8275 expects to receive a command and' a sequence If a non-blinking underline cursor..appears in a non-blinking of 0 to 4 parameters, depending on the command. If the underline field. the cursor will not be visible. ,proper number of parameter bytes are not received before another command is given, a status flag is set, indicating an Light Pen Detection improper command. A light pen consists of a micro switch and a tiny light Instruction Set sensor. When the light pen is pressed against the CRT screen. The 8275 instruction set consists of 8 commands. the micro switch enables the light sensor. When the raster sweep reaches the light sensor, it triggers the light pen COMMAND NO. OF PARAMETER BYTES output. Reset 4 If the output of the light pen is presented to the 8275 Start Display o LPEN input, the row and character position coordinates are Stop Display o stored in a pair of registers. These registers can be read on Read Light Pen 2 command. A bit in the status word is set, indicating that Load Cursor 2 the light pen signal was detected. The LPEN input must be Enable Interrupt o a 0 to 1 transition for proper operation. Disable Interrupt o Preset Counters o Note: Due to internal and external delays, the character position coordinate will be off by at least three character positions. In addition, the status of the 8275 (SREG) can be read by This has to be corrected in software. the CPU at any time. 1-369 AFN-00224B inter 8275 1. Reset Command: Parameter - UUUU Underline Placement DATA BUS LINE NUMBER OF OPERATION AO DESCRIPTION MSB LSB U U U U UNDERLINE Command Write 1 Reset Command 0 0 0 0 0 0 0 0 0 0 0 0 1 Screen Comp 0 0 0 1 2 Write 0 S H H H H H H H Byte 1 0 0 0 3 Screen Cemp Write 0 V V R R R R R R Byte 2 Parameters Screen Camp Write 0 U U U U L L L L Byte 3 Screen Camp 1 1 1 16 Write 0 M F C C Z Z Z Z Byte 4 Action - After the reset command is written, DMA reo quests stop, 8275 interrupts are disabled, and the VSP Parameter - LLLL Number of Lines per Character Row output is used to blank the screen. HRTC and VRTC con· L L L L NO. OF LINES/ROW tinue to run. HRTC and VRTC timing are random on power-up. 0 0 0 0 1 0 0 0 2 As parameter~ are written, the screen composition is 0 0 0 3 defined. Parameter - S Spaced Rows 1 1 16 S FUNCTIONS o Normal Rows Spaced Rows Parameter - M Line Counter Mode M LINE COUNTER MODE Parameter - HHHHHHH Horizontal Characters/Row o Mode 0 (Non·Offsed NO. OF CHARACTERS Mode 1 (Offset by 1 Cou nt) H H H H H H H PER ROW 0 0 0 0 0 0 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 3 Parameter - F Field Attribute Mode F FIELD ATTRIBUTE MODE o Transparent Non-Transparent 0 0 80 0 0 0 0 0 Undefined Parameter - CC Cursor Format C C CURSOR FORMAT 1 1 1 1 1 1 Undefined o 0 Blinking reverse video block o Blinking underline Parameter - VV Vertical Retrace Row Count o Nonblinking reverse video block Nonblinking underling V V NO. OF ROW COUNTS PER VRTC o 0 1 o 2 o 3 Parameter - ZZZZ Horizontal Retrace Count 4 NO. OF CHARACTER Z Z Z Z COUNTS PER HRTC 0 0 0 0 2 Parameter - RRRRRR Vertical Rows/Frame 0 0 0 1 4 R R R R R R NO. OF ROWS/FRAME 0 0 0 6 0 0 0 0 0 0 1 0 0 0 0 0 1 2 0 0 0 0 0 3 1 1 1 32 1 1 1 1 1 1 64 Nota: uuuu MSB determines blanking of top and bottom lines (1 = blanked, 0 = not blanked). 1·370 AFN-00224B inter 8275 2. Start Display Command: 5. Load Cursor Position: DATA-BUS DATA BUS OPERATION AO DESCRIPTION MSB LSB OPERATION AO DESCRIPTION MSB LSB Command Write 1 Start Display 0 0 1 S 5 5 B B Command Write 1 Load Cursor 1 0 0 0 0 0 0 0 No parameters Write 0 Char. Number (Char. Position ,in Row) Parameters Write 0 Row Number (Row Numbed SSS BURST SPACE CODE Action - The 8275 is conditioned to place the next two NO. OF CHARACTER CLOCKS parameter bytes into the cursor position registers. Status S S S BETWEEN DMA REQUESTS flags not affected. 0 0 0 0 0 0 1 7 0 0 15 0 1 1 23 6. E'mible Interrupt Command: 0 0 31 DATA BUS 0 1 39 [OPERATION AO DESCRIPTION MSB LSB 0 47 55 Command I Write 1 Enable Interrupt 1 0 1 0 0 0 0 0 No parameters BB BURST COUNT CODE NO. OF DMA CYCLES PER Action - The interrupt enable status flag is set and inter- B B BURST rupts are enabled. 0 0 1 0 1 2 1 0 4 8 7. Disable Interrupt Command: Action - 8275 interrupts are enabled, DMA requests begin, video is enabled, Interrupt Enable and Video Enable status IOPERATION AO DESCRIPTION MSB DATA BUS LSB flags are set. 1 command.l Write 1 Disable Interrupt 1 0 0 0 0 0 0 3. Stop Display Command: No parameters DATA BUS iOPERATION AO I DESCRIPTION MsB LsB Action - Interrupts are disabled and the interrupt enable Command I Write 1 IStop Display 0 1 0 0 0 0 0 0 status flag is reset. No parameters I Action - Disables video, interrupts remain enabled, HRTC and VRTC continue to run, Video Enable status flag is reset, and the "Start Display" command must be given to re-enable the display. 8. Preset Counters Command: DATA BUS 4. Read Light Pen Command [OPERATION AO DESCRIPTION MSB LSB OPERATION AO DESCRIPTION MSB DATA BUS LSB Command I Write 1 Preset Counters 1 1 1 0 0 0 0 0 Command Write 1 Read Light Pen 0 1 1 0 0 0 0 0 No parameters Read 0 Char. Number (Char. Position in Row) , Parameters Read 0 Row Number (Row Number) Action - The internal timing counters are preset, corre- sponding to a screen display position at the top left corner. Action - The 8275 is conditioned to supply the contents Two character clocks are required for this operahon. The of the light pen pOSition registers in the next two read counters will remain in th is state until any other command cycles of the parameter register. Status flags' are not af- is given. fected. This command is useful for system debug and synchroniza- Nota: Software correction of light pen position is required. tion of clustered CRT displays on a single CPU. 1·371 AFN-002248 inter 8275 Status Flags IC - (Improper Command) This flag is set when a DATA BUS MSB LSB command paramete'r string is too long or too short. The flag is automatically reset after a Command OlE 11'1 LP leVE OU FO status read. IE - (Interrupt Enable) Set or reset by command. It VE - (Video Enable) This flag indicates that video enables vertical retrace interrupt. It is auto- operation of the CRT is enabled. This flag is matically set by a "Start Display" command set on a "Start Display" command, and reset and reset with the "Reset" command. on a "Stop Display" or "Reset" command. I R - (Interrupt Request) This flag is set at the begin- DU - (DMA Underrun) This flag is set whenever a ning of display of the last row of the frame if data underrun occurs during DMA transfers. the interrupt enable flag is set. It is reset after Upon detection of DU, the DMA operation is a status read operation. stopped and the screen is blanked until after LP - This flag is set when the light pen input (LPEN) the vertical retrace interval. This flag is reset is activated and the light pen registers have been after a status read. loaded. This flag is automatically reset after a FO - (FIFO Overrun) This flag is set whenever the status read. FIFO is overrun. It is reset on a status read. 1-372 AFN-IJ0224B inter 8275 ABSOLUTE MAXIMUM RATINGS* "NOTICE: Stresses above those listed under "Absolute Ambient Temperature Under' Bias......... o°c to 70°C Maximum Ratings" may cause permanent damage to the Storage Temperature. : ............ -65°Cto +150°C devic.e, This is.a stress rating only and functional opera- Voltage On Any Pin tion of the device at these 0; any other conditions above With Respect to Ground ............ -0.5V to +7V those indicated in the operationalssctionsof this specifi- Power Dis'sipation .......... ' ............. 1 Watt cation is not implied. . D.C. CHARACTERISTICS (TA = O°C to 70°C, Vee = 5V ±5%) Symbol Parameter Min. Max. Units Test Conditions V,L Input Low Voltage. -0.5 0.8 V V,H Input High Voltage 2.0 Vcc+0.5V V VOL Output Low Voltage 0.45 V loC= 2.2mA VOH Output High Voltage 2.4 V IOH = -400p.A I,L Input Load Current ±10 p.A Y,N = Vce to OV IOFL Output Float Leakage ±10 p.A VOUT = Vec to OV ICC Vec Supply Current 160 mA CAPACITANCE (TA = 25°C, Vee = GND = OV) Symbol Parameter Min. Max. Units Test Conditions C'N Input Capacitance 10 pF fc= 1 MHz CliO I/O Capacitance 20 pF Unmeasured pins returned to VSS. A.C. CHARACTERISTICS (TA= O°C to 70°C, Vee = 5.0V ±5%, GND = OV) Bus Parameters READ CYCLE Symbol Parameter Min. Max. Units Test Conditions tAR Address Stable Before READ 0 ns tRA Address Hold Time for READ 0 ns tRR READ Pulse Width 250 ns tRO Data Delay from READ 200 ns CL - 150 pF tOF READ to Data Floating. 20 100 ns CL min. - 20 pF; CL max. - 150 pF WRITE CYCLE Symbol Parameter Min. Max. Units Test Conditions tAW Address Stable Before WR ITE 0 ns tWA Address Hold Time for WR ITE 0 ns tww WR ITE Pulse Width 250 ns tow Data Setup Time for WR ITE 150 ns two Data Hold Time for WR ITE 0 ns CLOCK TIMING Symbol Parameter Min. Max. Units Test Conditions tCLK Clock Period 480 ns tKH Clock High 240 ns tKL Clock Low 160 ns tKR Clock Rise 5 30 ns tKF Clock Fall 5 30 ns AFN-oG224B 1-373 inter 8275 A.C. CHARACTERISTICS (Continued) OTHER TIMING Symbol Parameter Min. Max. Units Test Conditions tcc Character Code Output Delay 150 ns CL = 50 pF tHR Horizontal Retrace Output Delay 200 ns CL = 50 pF tLc Line Count Output Delay 400 ns CL = 50 pF tAT Control/Attribute Output Delay 275 ns CL = 50 pF tVR Vertical Retrace Output Delay 275 ns CL = 50 pF tRI IROt from RDt 250 ns CL = 50 pF two DRat from WRt 250 ns CL = 50 pF tRo DRat from WRt 200 ns CL = 50 pF tLR DACK,j, to WRt 0 ns tRL WRt to DACKt 0 ns tPR LPEN Rise 50 ns tpH LPEN Hold 100 ns A.C. TESTING INPUT, OUTPUT WAVEFORM A.C. TESTING LOAD CIRCUIT x= INPUT/OUTPUT 2.4J:2 > 0.45 - 0.8 TEST POINTS < 2~ 0.8 - DEVICE UNDER TEST ICL A.G. TESTING: INPUTS ARE DRIVEN AT 2.4V FOR A LOGIC "1" AND O.45V FOR A LOGIC "0." TIMING MEASUREMENTS ARE MADE AT 2.2V FOR A LOGIC' 1 AND O.BV FOR A LOGIC "0 " WAVEFORMS TYPICAL DOT LEVEL TIMING EXT DOT elK CClK· lL-_____ ....J CCO_6 FIRST CHARACTER CODE SEfOND.CHARACTER CODE ~RaMACCESS CHARACTER GENERATOR --------"""'Ir-------------"""' r--------- FIRST CHARACTER SECOND CHARACTER OUTPUT _ _ _ _ _ _ _ _.J \._ _ _ _ _ _ _ _ _ _ _ _....J ' -_ _ _ _ _ _ _ __ ATTRIBUTES & CONTROLS VIDEO (FROM SHIFT REGISTER) FIRST CHARA:CTER . SECOND CHARACTER ATTRIBUTES & CONTROLS ATTRIBUTES & CONTROLS ATTRIBUTES & CONTROLS FOR FIRST CHAR. FOR 2ND CHAR. (FROM SYNCHRONIZER) I L-_ _ _ _ _ _ _ _"CClK __ IS A_ __ MULTIPLE OF_ THE_ DOT_ _AND CLOCK _ AN __ _INPUT _8275. TO THE ____ ~ _ __.:.._ _ _ _ _ _ _ _ _ _ ....Ji 1·374 AFN-00224B intJ 8275 WAVEFORMS (Continued) LINE TIMING CCLK . •. \.Jl-.I\-I cCa_6 HRTe LCO_3 -+____P_R_ES_E_NT_Ll_N_E_CO_U_N_T_ _ _-I \-________________f-NEXT LINE COUNT· te tLC . VIDEO CONTROLS AND ATTRIBUTES· r-v X I,: r--P.---J '------\,1-,- - ' - - - )( *LAo-l. VSP, LTEN, HGlT, RVV, GPAo-l ROW TIMING CClK HRTe LCO_3 i-----PROGRAMMABLE FROM 1 TO 16 LlNES----+I INTERNAL·---'-"--""" r------------\\------""" ROW . ··COUNTER _ _ _ _J 1'"------------1 \-_____ P~ESENT ROW .J FRAME TIMIN.G CCLK ST ~ "INTERNAL ROW RETRACE COUNTER ROW " VRTe 1-375 AFN-IIill!24B inter 8275 WAVEFORMS (Continued) INTERRUPT TIMING \ CCLK CCo-e LAST RETRACE ____~CH~A~RA~cr __ X FIRST RETRACE ER____~~---C~H~A~RA~cr~E~R--- LCo-3 FIRST LINE COUNT HRTe i\'---_ _ IRQ INTERNAL ---------+-------- OOU~::-------~-~-D-,S~P-LA-~-R-:-~t-,-R---------_-_ DMATIMING CCLK ---ltKQt-----. DRQ J \~ ______ LPEN _ _ ~jJ __ 1·376 AFN-Q02248 8275 WAVEFORMS (Continued) WRITE TIMING READ TIMING INVALID AO.CS ~_,--_V_AL_'D.,--_ _ ~tAR INVALID CLOCK TIMING CCLK tKF 1-377 AFN-Q0224B