m38039mf-xxxsp Mitsumi Electronics, Corp., m38039mf-xxxsp Datasheet - Page 19

no-image

m38039mf-xxxsp

Manufacturer Part Number
m38039mf-xxxsp
Description
Single-chip 8-bit Cmos Microcomputer
Manufacturer
Mitsumi Electronics, Corp.
Datasheet
I/O PORTS
The I/O ports have direction registers which determine the input/
output direction of each individual pin. Each bit in a direction reg-
ister corresponds to one pin, and each pin can be set to be input
port or output port.
When “0” is written to the bit corresponding to a pin, that pin be-
Table 6 I/O port function of 3803 group
Notes 1: Refer to the applicable sections how to use double-function ports as function I/O ports.
P0
P1
P1
P1
P2
P2
P3
P3
P3
P3
P3
P3
P3
P3
P4
P4
P4
P4
P4
P4
P4
P4
P5
P5
P5
P5
P5
P5
P5
P5
P6
0
0
0
1
2
0
7
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
/AN
/INT
/INT
–P1
/LED
/LED
/DA
/DA
/RxD
/TxD
/S
/S
/INT
/INT
/INT
/INT
/RxD
/TxD
/S
/S
/S
/S
/S
/S
/CNTR
/CNTR
/PWM
/INT
/AN
2: Make sure that the input level at each pin is either 0 V or V
CLK3
RDY3
CLK1
RDY1
IN2
OUT2
CLK2
RDY2
Pin
8
0
1
2
01
7
When an input level is at an intermediate potential, a current will flow from V
41
00
40
1
2
3
–P0
–P6
3
1
0
7
3
1
/X
/X
0
1
/CNTR
7
7
CIN
COUT
/AN
/AN
15
7
2
Port P1
Port P3
Port P5
Port P0
Port P2
Port P4
Port P6
Name
CMOS compatible input level
CMOS 3-state output
CMOS compatible input level
CMOS 3-state output
CMOS compatible input level
N-channel open-drain output
CMOS compatible input level
CMOS 3-state output
CMOS compatible input level
CMOS 3-state output
CMOS compatible input level
CMOS 3-state output
CMOS compatible input level
CMOS 3-state output
I/O Structure
CC
during execution of the STP instruction.
comes an input pin. When “1” is written to that bit, that pin be-
comes an output pin.
If data is read from a pin which is set to output, the value of the
port output latch is read, not the value of the pin itself. Pins set to
input are floating. If a pin set to input is written to, only the port
output latch is written to and the pin remains floating.
External interrupt input
Sub-clock generating
circuit
External interrupt input
Serial I/O1 function I/O
Serial I/O1 function I/O
Timer Z function I/O
Timer X, Y function I/O
PWM output
External interrupt input
A-D converter input
A-D converter input
External interrupt input
D-A converter output
Serial I/O3 function I/O
Serial I/O2 function I/O
Non-Port Function
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
CC
to V
SS
MITSUBISHI MICROCOMPUTERS
through the input-stage gate.
Serial I/O1 control
register
Timer Z mode register
Serial I/O2 control
register
AD/DA control register
Interrupt edge selection
register
AD/DA control register
Serial I/O3 control
register
UART3 control register
Interrupt edge selection
register
CPU mode register
Interrupt edge selection
register
Serial I/O1 control
register
UART1 control register
Timer XY mode register
PWM control register
Interrupt edge selection
register
AD/DA control register
3803/3804 Group
Related SFRs
Ref.No.
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(10)
(11)
(6)
(7)
(8)
(2)
(1)
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(2)
19

Related parts for m38039mf-xxxsp