ibm PCjr — 2-075

Signal Name Pin Number +12V A01 Light +5V A03 System Pen LOGIC GND B01 Board -LIGHT PEN INPUT A02 -LIGHT PEN SWITCH B02 UNUSED B03 Connector Specifications Note: The light pen interface is set for RGBI (Red, Green, Blue, Intensity). Due to timing differences between different displays (Different phosphors take longer to turn on, and different circuits take longer to accomplish their task.) the row, column value returned from the CRT can vary. This difference must be compensated for through software. Programming Considerations Programming the 6845 CRT Controller The 6845 has 19 accessible, internal registers, which are used to define and control a raster-scanned CRT display.

One of these registers, the Index Register, is actually used as a pointer to the other 18 registers. It is a I write I -only register, which is loaded from the processor by executing an 'Out I instruction to I/O address hex 3D4. The five least-significant-bits of the I/O bus are loaded into the Index Register. In order to load any of the other 18 registers, the Index Register is first loaded with the necessary pointer; then the Data Register is loaded with the information to be Video Subsystem 2-75