M38062M3-156FP MITSUBISHI [Mitsubishi Electric Semiconductor], M38062M3-156FP Datasheet - Page 12

no-image

M38062M3-156FP

Manufacturer Part Number
M38062M3-156FP
Description
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
I/O Ports
Direction registers
The 3806 group has 72 programmable I/O pins arranged in nine
I/O ports (ports P0 to P8). The I/O ports have direction registers
which determine the input/output direction of each individual pin.
Each bit in a direction register corresponds to one pin, 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-
comes an input pin. When “1” is written to that bit, that pin be-
comes an output pin.
Note 1: For details of the functions of ports P0 to P3 in modes other than single-chip mode, and how to use double-function ports as func-
12
P0
P1
P2
P3
P4
P4
P4
P4
P4
P4
P4
P5
P5
P5
P5
P5
P5
P5
P5
P6
P6
P7
P7
P7
P7
P7
P8
0
0
0
0
0
2
3
4
5
6
7
0
1
2
3
4
5
6
7
0
7
0
1
2
3
4
0
,P4
/INT
/INT
/R
/T
/S
/S
/INT
/INT
/INT
/CNTR
/CNTR
/DA
/DA
/AN
/AN
/S
/S
/S
/S
2: Make sure that the input level at each pin is either 0 V or V
– P0
– P1
– P2
– P3
_____
_____
– P7
– P8
Pin
X
CLK1
RDY1
IN2
OUT2
CLK2
RDY2
X
tion I/O ports, refer to the applicable sections.
When an input level is at an intermediate potential, a current will flow from V
D,
1
D,
1
2
0
7
0
1
2
3
4
,
,
7
7
7
7
,
,
,
7
7
,
,
0
1
,
,
Port P0
Port P1
Port P2
Port P3
Port P4
Port P5
Port P6
Port P7
Port P8
Name
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/Output
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
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
N-channel open-drain output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
I/O Format
CC
during execution of the STP instruction.
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.
Address low-order byte
output
Address high-order
byte output
Data bus I/O
Control signal I/O
External interrupt input
Serial I/O1 function I/O
External interrupt input
Timer X and Timer Y
function I/O
D-A conversion output
A-D conversion input
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.
CPU mode register
CPU mode register
CPU mode register
CPU mode register
Interrupt edge selection
register
Serial I/O1 control
register
UART control register
Interrupt edge selection
register
Timer XY mode register
AD/DA control register
Serial I/O2 control
register
Related SFRs
3806 Group
Ref.No.
(10)
(12)
(13)
(14)
(11)
(1)
(2)
(3)
(4)
(5)
(6)
(1)
(2)
(7)
(8)
(9)
(1)

Related parts for M38062M3-156FP