English
Language : 

M38503MXH Datasheet, PDF (13/86 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
3850 Group (Spec. H)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
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
register 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
becomes an input pin. When “1” is written to that bit, that pin
becomes 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.
Table 7 I/O port function
Pin
Name
P00/SIN2
P01/SOUT2
P02/SCLK2
Port P0
P03/SRDY2
P04–P07
P10–P17
P20/XCOUT
Port P1
P21/XCIN
P22
P23
P24/RxD
P25/TxD
P26/SCLK
P27/CNTR0/SRDY1
Port P2
P30/AN0–
P34/AN4
P40/CNTR1
P41/INT0
P42/INT1
P43/INT2/SCMP2
Port P3
Port P4
P44/INT3/PWM
Input/Output
I/O Structure
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
N-channel open-drain
output
Input/output,
individual
bits
CMOS compatible
input level
CMOS 3-state output
Non-Port Function
Serial I/O2 function I/O
Related SFRs
Serial I/O2 control register
Ref.No.
(1)
(2)
(3)
(4)
(5)
Sub-clock generating
(6)
circuit
CPU mode register
(7)
(8)
(9)
Serial I/O1 function I/O Serial I/O1 control register (10)
(11)
Serial I/O1 function I/O Serial I/O1 control register (12)
Timer X function I/O
Timer XY mode register
A-D conversion input
A-D control register
(13)
Timer Y function I/O
Timer XY mode register
(14)
External interrupt input Interrupt edge selection
register
(15)
External interrupt input Interrupt edge selection
SCMP2 output
register
(16)
Serial I/O2 control register
External interrupt input Interrupt edge selection
register
(17)
PWM output
PWM control register
13