
9.0 System Wake-Up Control (SWC)
(Continued)
www.national.com
194
Revision1.2
P
9.3.17
This register configures the keyboard and mouse events detected by the Keyboard/Mouse Wake-up Detector. It is reset
by hardware to 00h.
Power Well:V
PP
Location:
Bank 0
, Offset 13h
Type:
R/W
PS2 Protocol Control Register (PS2CTL)
Bit
Name
Reset
7
6
5
4
3
2
1
0
DISPAR
0
MSEVCFG
0
KBEVCFG
0
0
0
0
0
0
Bit
Description
7
DISPAR (Disable Parity Check).
This controls the parity checking of the keyboard and mouse data by the
Keyboard/Mouse Wake-up Detector.
0: Enable parity check (default)
1: Disable parity check
6-4
MSEVCFG (Mouse Event Configuration).
These bits configure the mouse data sequence for the Mouse event.
Before setting them to a new value, these bits must be cleared by writing a value of 000b.
Bits
6 5 4
Event Configuration
0 0 0:
Disable mouse wake-up detection (default)
0 0 1:
Wake-up on any mouse movement or button click
0 1 0:
Wake-up on left button click
0 1 1:
Wake-up on left button double-click
1 0 0:
Wake-up on right button click
1 0 1:
Wake-up on right button double-click
1 1 0:
Wake-up on any button single-click (left, right or middle)
1 1 1:
Wake-up on any button double-click (left, right or middle)
3-0
KBEVCFG (Keyboard Event Configuration).
These bits configure the keyboard data sequence for the
Keyboard event, which indicates that any key or key sequence was pressed on the keyboard. The setting of the
KBEVCFG field is relevant only if the Keyboard/Mouse Wake-up Detector is in either Special Key Sequence or
Password mode (KBDMODE = 0). The keyboard data sequence used to detect a Keyboard Event is stored in
registers PS2KEY0 to PS2KEY7, starting with PS2KEY0. Before setting them to a new value, the KBEVCFG
field must be cleared by writing a value of 0000b.
Bits
3 2 1 0
Event Configuration
0 0 0 0:
Disable keyboard wake-up detection (default)
0 0 0 1
to
Special Key Sequence mode 2-8 PS/2 data bytes, “Make” and “Break” (including Shift and Alt keys)
0 1 1 1
1 0 0 0
to
Password Enabled mode with 1-8 keys “Make” code (excluding Shift and Alt keys)
1 1 1 1
}
}