|
4250 Datasheet, PDF (8/59 Pages) Energizer – Industrial Rubber Light | |||
|
◁ |
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
I/O PORT
(1) Port D (D0âD3)
Each pin of port D has an independent 1-bit wide I/O function.
Each pin has an output latch. For input/output of ports D0âD3,
select one of port D with the register Y of data pointer first. For
input use, set the latch of the specified bit to â1.â All port D
output latches can be set to â1â with the CLD instruction. The
output structure is the N-channel open-drain. Ports D2 and D3
are also used as ports C and K, respectively. Accordingly,
when port D2/C is used as port D2, set the port C output latch
to â1.â When port D3/K is used as port D3, set the port K output
latch to â1.â
(2) Port C
1-bit I/O port.
Port C output latch can be set to â1â with the SCP instruction.
Port C output latch can be cleared to â0â with the RCP
instruction. Port C input level can be examined by executing
the skip (SNZCP) instruction. For input use, set the latch of
the specified bit to â1.â The output structure is the N-channel
open-drain. The pull-up transistor of port C is turned on when
the bit 1 of register PU0 is set to â1â by software. Port C is also
used as port D2. Accordingly, when port D2/C is used as port
C, set the port D2 output latch to â1.â
(3) Port K
1-bit I/O port.
For input use, set the latch of the specified bit to â1.â The
output structure is the N-channel open-drain. The pull-up
transistor of port K is turned on when the bit 1 of register PU0
is set to â1â by software. Port K is also used as port D3.
Accordingly, when port D3/K is used as port K, set the port D3
output latch to â1.â
(4) Port G (G0âG3)
4-bit I/O port.
For input use, set the latch of the specified bit to â1.â The
output structure is the N-channel open-drain. The pull-up
transistor of port G is turned on when the bit 0 of register PU0
is set to â1â by software. Ports G0 and G1 are also used as INT
pin and TOUT pin, respectively.
Pull-up control register
Pull-up control register PU0
Ports C and K
PU01
pull-up transistor control bit
Ports G0âG3
PU00
pull-up transistor control bit
Note: âWâ represents write enabled.
at reset : 002
at RAM back-up : state retained
W
0 Pull-up transistor OFF
1 Pull-up transistor ON
0 Pull-up transistor OFF
1 Pull-up transistor ON
7
|
▷ |