Feb 18, 2005
page 11 of 85
REJ03B0122-0101
7512 Group
Pin
Port P0
Port P1
Port P2
Port P3
Port P4
Input/output,
individual bits
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/SMBUS input level
(when selecting I2C-BUS
interface function)
N-channel open-drain 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
Table 5 I/O port function
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.
P00/SIN2
P01/SOUT2
P02/SCLK2
__________
P03/SRDY2
P04/AN8
P05/AN9
P06/CFETCNT/AN10
P07/AN11/PWM1
P10–P17
P20/XCOUT
P21/XCIN
P22/SDA1
P23/SCL1
P24/SDA2/RxD
P25/SCL2/TxD
P26/SCLK
P27/CNTR0/
__________
SRDY1
P30/AN0–
P35/AN5
P40/CNTR1
P41/INT0
P42/INT1
P43/INT2/SCMP2
P44/INT3/PWM0
P45/DFETCNT
Serial I/O2 control register
AD control register
MISRG2
AD control register, MISRG2
Charge over current detect
control register
AD control register, MISRG2
PWM control register
CPU mode register
MISRG2
I2C control register
Serial I/O1 control register
Timer XY mode register
AD control register
MISRG2
Timer XY mode register
Interrupt edge selection
register 1
Interrupt edge selection
register 2
Serial I/O2 control register
Interrupt edge selection
register 2
PWM control register
Short current detect control
register
Over current detect control
register
Wake up current detect
control register
Serial I/O2 function I/O
A/D conversion input
Over current detector
output
A/D conversion input
PWM output
Sub-clock generating
circuit
I2C-BUS interface
function I/O
I2C-BUS interface
function I/O
Serial I/O1 function I/O
Timer X function I/O
A/D conversion input
Timer Y function I/O
External interrupt input
SCMP2 output
External interrupt input
PWM output
Over current detector
output
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.
Name
Input/Output
I/O Structure
Non-Port Function
Related SFRs
Ref.No.
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(6)
(18)
(19)
(20)
(21)
(22)