MC6845 REGISTER FILE DESCRIPTION (See Table 2) Nineteen registers in the CRTC can be accessed by means of the data bus. Register addressing and lengths are shown in Table 2. ADDRESS REGISTER The Address Register is a 5 bit write-only register used as an ‘‘indirect’’ or “pointer” register. Its contents are the address of one of the other 18 registers in the file. When RS and CS are low, the Address Register itself is addressed. When RS is high, the Register File is accessed. HORIZONTAL TIMING REGISTERS RO, R1, R2, and R3 Figure 9 shows the visible display area of a typical CRT Monitor giving the point of reference for horizontal registers as the left most displayed character position. Horizontal registers are programmed in “character time” units with respect to the reference. Horizontal Total Register (RO) — This 8 bit write-only register determines the horizontal frequency of HS. It is the total of displayed plus non-displayed character time units minus one. Horizontal Displayed Register (R1) — This 8 bit write-only register determines the number of displayed characters per horizontal line. Horizontal Sync Position Register (R2) — This 8 bit write-only register determines the horizontal sync postiton on the horizontal line. Horizontal Sync Width Register (R3) — This 4 bit write-only register determines the width of the HS pulse. It may not be apparent why this width needs to be programmed. However, consider that all timing widths must be programmed as multiples of the character clock period which varies. !f HS width were fixed as an integral number of character times, it would vary with character rate and be out of tolerance for certain monitors. The rate programmable feature allows compensating HS width. VERTICAL TIMING REGISTERS R4, R5, R6, R7, R8, and R9 The point of reference for vertical registers is the top character position displayed. Vertical registers are programmed in character row times or scan line times. Vertical Total Register (R4) and Vertical Total Adjust Register (R5) — The vertical frequency of VS is determined by both R4 and R5. The calculated number of character line times is usually an integer plus a fraction to get exactly a 50 or 60 Hz vertical refresh rate. The integer number of character line times minus one is programmed in the 7 bit write-only Vertical Total Register; the fraction is programmed in the 5 bit write-only Vertical Scan Adjust Register as a number of scan line times. Vertical Displayed Register (R6) — This 7 bit write-only register determines the number of displayed character rows on the CRT screen, and is programmed in character row times. Vertical Sync Position (R7) — This 7 bit write-only register determines the vertical sync position with respect TABLE 2 -- CRTC INTERNAL REGISTER ASSIGNMENT _ Address Register Regi ; ; Program Number of Bits cs | RS 4 3 2 1 0 # Register File Unit Read Write 7 6 5 4 3 2 1 0 4 x X x x x x x _ ~ - _- 0 ¢) x x} x] x x x Address Register - No Yes 0 1 0 o| o| 0 0 RO Horizontal Total Char. No Yes 0 1 0 o 0 0 1 R1 Horizontal Displayed Char. No Yes ie) 1 () Qo} 0 1 0 R2 H. Sync Position Char. No Yes 0 1 0 oj}; aj] 1 1 R3 H. Syne Width Char. No Yes e) 1 ) o| 1 Oo 0 R4 Vertical Total Char. Row No Yes 0 1 (9) 10) 1 0 1 R5 V. Total Adjust Scan Line No Yes (¢) 1 (¢) o{| 1 1 0 R6 Vertical Displayed Char. Row No Yes 0 1 O° 0 1 1 1 R? V. Sync Position Char. Row No Yes 0 1 i*) 1 0 i?) i) R8 tnterlace Mode - No Yes 10) 1 0 1 0 0 1 R9 Max Scan Line Address Scan Line No Yes (0) 1 ) 1{ Oo] 4 Oo R10 Cursor Start Scan Line No Yes B | P (Note 1) (9) i 0 1 0 1 1 R11 Cursor End Scan Line No Yes (9) 1 is) 1 1 Qo o R12 Start Address (H} - No Yes 0 1 i) 1 1 i?) 1 R13 Start Address (L)} - No Yes 0 1 0 1 1 1 i?) R14 Cursor (H) - Yes Yes QO 1 0 1 1 1 1 R15 Cursor (L) - Yes Yes 0 1 1 Oo} of 0 (¢) R16 Light Pen (H) = Yes No 0 1 1 Oo] of O 1 R17 Light Pea (L) - Yes No Note (1): Bit 5 of the Cursor Start Raster Register 1s used for blink period control, and Bit 6 is used to select blink or non-blink. @) MOTOROLA Semiconductor Products inc.