MC6845 CRTC DESCRIPTION (Figure 8: CRTC Block Diagram) The CRTC consists of programmable horizontal and vertical timing generators, programmable linear address register, programmable cursor logic, light pen capture register, and control circuitry for interface to a processor bus. All CRTC timing is derived from CLK, usually the output of an external dot rate counter. Coincidence (CO) circuits continuously compare counter contents to the contents of the programmable register file, RO-R17. For horizontal timing generation, comparisons result in: 1) Horizontal syne pulse (HS) of a frequency, position, and width determined by the registers, 2) Horizontal Display Signal of a frequency, position, and duration determined by the registers. The Horizontal counter produces H clock which drives the Scan Line Counter and Vertical Control. The contents of the Raster Counter are continuously compared to the Max Scan Line Address Register. A coincidence resets the Raster Counter and clocks the Vertical Counter. Comparisons of Vertical Counter contents and Vertical Registers result in: 1) Vertical sync pulse (VS) of a frequency and positon determined by the registers—the width is fixed at 16 raster lines in the vertical control section and is not programmable, 2) Vertical Display of a frequency and position determined by the registers. The Vertical Control Logic has other functions. 1. Generate row selects, RAO-RA4, from the Raster Count for the corresponding interlace or non- interlace modes. 2. Extend the number of scan tines in the vertical total by the amount programmed in the Vertical Total Adjust Register. The Linear Address Generator is driven by CLK and locates the relative positions of characters in memory with their positions on the screen. Fourteen lines, MAO-MA13, are available for addressing up to four pages of 4K characters, 8 pages of 2K characters, etc. Using the Start Address Register, hardware scrolling through 16K characters is possible. The Linear Address Generator repeats the same sequence of addresses for each scan line of a character row. The cursor logic determines the cursor location, size, and blinking rate on the screen. All are programmable. The light pen strobe going high causes the current contents of the Address Counter to be latched in the Light Pen Register. The contents of the Light Pen Register are subsequently read by the Processor. Internal CRTC registers are programmed by the processor through the data bus, DO-D7, and the control signals—RW, CS, RS and E. FIGURE 9 — ILLUSTRATION OF THE CRT SCREEN FORMAT [emer ot Horizontal Total Char. (Nht+1) f—_Remper of Horizontal Displaved Char. a | -ATBC Nr+1) | aa \ Line Maximum Scan Lines ( Number of Vertica! Total Char. (Nvt+1) Number of Vertical Disp'ayed Char. (Nvd) Display Period Horizontal Retrace Period Vertical Retrace Period Total Scan Line Adjust (Nadj) — (MA) MOTOROLA Semiconductor Products inc.