English
Language : 

M37516F8HP Datasheet, PDF (7/12 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PRELIMINARY NSocothimcaene:gpTeah.riasmisetnrioct laimfiintsalasrepescuibfijceacttioton.
MITSUBISHI MICROCOMPUTERS
M37516F8HP
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 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-
comes 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 2 I/O port function
Pin
Name
P00/SIN2
P01/SOUT2
P02/SCLK2
P03/SRDY2
Port P0
P04–P07
P10/–P17
P20/XCOUT
P21/XCIN
Port P1
Port P2
P22/SDA1
P23/SCL1
P24/SDA2/RxD
P25/SCL2/TxD
P26/SCLK
P27/CNTR0/
SRDY1
Input/Output
Input/output,
individual
bits
I/O Structure
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS/SMBUS input
level (when selecting
I2C-BUS interface
function)
N-channel open-drain
output
CMOS compatible
input level
CMOS/SMBUS input
level (when selecting
I2C-BUS interface
function)
CMOS 3-state output
N-channel open-drain
output (when
selecting I2C-BUS
interface function)
CMOS compatible
input level
CMOS 3-state output
P30/AN0–
P37/AN7
P40/CNTR1
P41/INT0
P42/INT1
P43/INT2/SCMP2
Port P3
Port P4
P44/INT3/PWM
P45–P47
Non-Port Function
Serial I/O2 function I/O
Related SFRs
Serial I/O2 control
register
Sub-clock generating
circuit
I2C-BUS interface func-
tion I/O
CPU mode register
I2C control register
I2C-BUS interface func-
tion I/O
Serial I/O1 function I/O
I2C control register
Serial I/O1 control
register
Serial I/O1 function I/O
Serial I/O1 function I/O
Timer X function I/O
A-D conversion input
Serial I/O1 control
register
Serial I/O1 control
register
Timer XY mode register
A-D control register
Timer Y function I/O
External interrupt input
External interrupt input
SCMP2 output
External interrupt input
PWM output
Timer XY mode register
Interrupt edge selection
register
Interrupt edge selection
register
Serial I/O2 control
register
Interrupt edge selection
register
PWM control register
Ref.No.
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(5)
7