
IT8673F
7
Note: These are the default values of the LDN5, 60h and 61h (DATA); LDN5, 62h and 63h (Command). All
these registers are programmable.
READ DATA:
This is an 8-bit
read only
register. When read, the KIRQ output is cleared and OBF flag in
the status register is cleared.
WRITE DATA:
This is an 8-bit
write only
register. When written, the F1 flag of the Status register is
cleared and the IBF bit is set.
READ Status:
This is an 8-bit
read only
register. Refer to the description of the Status register for more
information.
WRITE Command:
This is an 8-bit
write only
register. When written, both F1 and IBF flags of the Status
register are set.
11.7.2 Data Registers and Status Register
The keyboard controller provides two data registers, one is DBIN for data input, the other is DBOUT for
data output. Each of the data registers are 8-bit wide. A write (microcontroller) to the DBOUT will load
Keyboard Data Read Buffer, set OBF flag and set the KIRQ output. A read (microcontroller) of the DBIN
will read the data from the Keyboard Data or Command Write Buffer and clear the IBF flag.
The status register holds information concerning the status of the data registers, the internal flags, and
some user-defined status bits. Please refer to Table 11-45. The bit 0 OBF is set to “1” when the
microcontroller writes a data into DBOUT, and is cleared when the system initiates a DATA READ
operation. The bit 1 IBF is set to “1” when the system initiates a WRITE operation, and is cleared when the
microcontroller executes an “IN A, DBB” instruction. The F0 and F1 flags can be set or reset when the
microcontroller executes the clear and complement flag instructions. F1 also holds system WRITE
information when the system performs WRITE operations.
Table 11-45. Status Register
7
6
5
4
3
2
1
0
ST7
ST6
ST5
ST4
F1
F0
IBF
OBF
11.7.3 Keyboard and Mouse Interface
KCLK is the keyboard clock pin; its output is the inversion of pin P26 of the microcontroller, and the input of
KCLK is connected to the T0 pin of the microcontroller. KDAT is the keyboard data pin; its output is the
inversion of pin P27 of the microcontroller, and the input of KDAT is connected to the P10 of the
microcontroller. MCLK is the mouse clock pin; its output is the inversion of pin P23 of the microcontroller,
and the input of MCLK is connected to the T1 pin of the microcontroller. MDAT is the Mouse data pin; its
output is the inversion of pin P22 of the microcontroller, and the input of MDAT is connected to the P11 of
the microcontroller. KRST# is pin P20 of the microcontroller. GATEA20 is the pin P21 of the
microcontroller. These two pins are used as a software controlled or user defined outputs. External
pull-ups may be required for these pins.
11.7.4 KIRQ and MIRQ
KIRQ is the interrupt request for keyboard (Default IRQ1), and MIRQ is the interrupt request for mouse
(Default IRQ12). KIRQ is internally connected to P24 pin of the microcontroller, and MIRQ is internally
connected to pin P25 of the microcontroller.