![](http://datasheet.mmic.net.cn/220000/LC72345_datasheet_15479597/LC72345_7.png)
No. 6171-7/13
LC72344W, 72345W
Pin Functions
Pin No.
Pin
I/O
Function
I/O circuit
75 kHz crystal oscillator connections
64
1
XIN
XOUT
I
O
IC testing.
These pins must be connected to ground.
—
63
2
TEST1
TEST2
I
I
Input with built-in
pull-down resistor
Special-purpose ports for key return signal input designed with a low threshold voltage. When
a key matrix is formed in combination with port PB, simultaneous multiple key presses with
up to 3 keys can be detected. The pull-down resistors are set up for all four pins at the same
time with the IOS instruction (PWn = 2.b1). This setting cannot be specified for individual
pins. In backup mode, these pins go to the input disabled state, and the pull-down resistors
are disabled after a reset.
6
5
4
3
PA1
PA2
PA3
I
Unbalanced CMOS
push-pull output
Unbalanced CMOS outputs. These outputs are switched with the IOS 0 instruction. Since
these outputs are unbalanced, no diodes are required to prevent short circuits due to
simultaneous multiple key presses. These outputs go to the high-impedance output state in
backup mode. After a reset, they go to the high-impedance output state and remain in that
state until an output instruction (OUT, SPB, or RPB) is executed.
10
9
8
7
PB0
PB1
PB2
PB3
O
CMOS push-pull output
General-purpose I/O ports.
PD0 can be used as an external interrupt port. The IOS instruction (Pwn = 4, 5) is used for
switching the general-purpose I/O port function, and these ports can be set to input or output
in 1-bit units. (0: input, 1: output)
In backup mode they go to the input disabled high-impedance state.
After a reset, they switch to the general-purpose input port function.
14
13
12
11
18
17
16
15
PC0
PC1
PC2
PC3
INT/PD0
PD1
PD2
PD3
(
*
)
I/O
N-channel open-drain output
General-purpose output and beep tone output shared function ports (PE0 only). The BEEP
instruction is used to switch PE0 between the general-purpose output port and beep tone
output functions. To use PE0 as a general-purpose output port, execute a BEEP instruction
with b2 set to 0. Set b2 to 1 to use PE0 as the beep tone output port. The b0 and b1 bits are
used to select the beep tone frequency. There are two beep tone frequencies supported.
*
: When PE0 is set up as the beep tone output, executing an output instruction to PN0 only
changes the state of the internal output latch, it does not affect the beep tone output in any
way. Only the PE0 pin can be switched between the general-purpose output function and the
beep tone output function; the PE1 pin only functions as a general-purpose output. These
pins go to the high-impedance state in backup mode and remain in that state until an output
instruction or a BEEP instruction is executed. Since these ports are open-drain ports,
resistors must be inserted between these pins and V
DD
. These ports are set to their general-
purpose output port function after a reset.
20
19
BEEP/PE0
PE1
Continued on next page.