LC75886PW
www.onsemi.com
12
Control Data Functions
1. OC … RC oscillator operating mode/external clock operating mode switching control data
This control data bit selects the OSC pin function (RC oscillator operating mode or external clock operating mode)
OC OSC pin function
0 RC oscillator operating mode
1 External clock operating mode
Note: If RC oscillator operating mode is selected, connect an external resistor R
OSC
and an external capacitor C
OSC
to the OSC pin.
2. PC50, PC51 … General-purpose output port/clock output port/segment output port switching control data
These control data bits swithes the functions of the P5/S57 output pin between the general-purpose output port, the
clock output port, and the segment output port.
Control data
The state of P5/S57 output pin
PC50 PC51
0 0 General-purpose output port (P5) (”L” level output)
1 0 General-purpose output port (P5) (“H” level output)
0 1 Clock output port (P5) (Clock frequency is f
OSC
/2 or f
CK
/2)
1 1 Segment output port (S57)
Note: If the sleep mode is set, the P5/S57 output pin can not be used as the clock output port.
3. KSC … Key scan operation enabled/disabled state setting control data
This control data bit enables or disables key scan operation.
KSC Key scan operating state
0
Key scan operation enabled
(A key scan operation is performed if any key on the lines corresponding to KS1 to KS6 pin which is set
high is pressed.)
1
Key scan operation disabled
(No key scan operation is performed, even if any of the keys in the key matrix are pressed.
If this state is set up, the key data is forcibly reset to 0 and the key data read request is also cleared.
(DO is set high.))
4. S0, S1 … Sleep control data
These control data bits switch between normal mode and sleep mode, and set the states of the KS1 to KS6 key scan
output during key scan standby.
Control data
Mode
OSC pin state
(RC oscillator
or acceptance
of the external
clock signal)
Segment
output /
Common
output
Output pin states during key scan standby
S0 S1 KS1 KS2 KS3 KS4 KS5 KS6
0 0 Normal Operating Operating H H H H H H
0 1 Sleep Stopped L L L L L L H
1 0 Sleep Stopped L L L L L H H
1 1 Sleep Stopped L H H H H H H
Note: This assumes that the KS1/S55 and KS2/S56 output pins are selected for key scan output.