English
Language : 

7220 Datasheet, PDF (48/303 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER
FUNCTIONAL DESCRIPTION
2.4 Input/Output pins
(2) Port P1
Port P1 is an 8-bit I/O port. The output structure is CMOS output, however, only when ports P11–
P14 are used as multi-master I2C-BUS interface, the output structure is N-channel open-drain output.
Port P1 has basically the same function as port P0.
Port P10 is also used as CRT output pin OUT2. Pin OUT2 is a CRT output pin. When setting “1” to
bit 7 of the CRT control register, the pin functions as CRT output pin, when setting “0,” the pin
functions as a general-purpose I/O port.
Ports P11–P14 are used as SCL1, SCL2, SDA1 and SDA2 respectively.
Port P15 is also used as external interrupt input pin INT3 and analog input pin A-D1.
Ports P16 and P17 are also used as analog input pins A-D2 and A-D3 respectively.
(3) Port P2
Port P2 is an 8-bit I/O port. The output structure is CMOS output, however, only when ports P20 and
P21 are used as serial I/O pins, the output structure is N-channel open-drain output. Port P2 has
basically the same function as port P0.
Port P20 is also used as serial I/O synchronous clock input/output pin SCLK. Port P21 is also used as
serial I/O data output pin SOUT. Port P22 is also used as serial I/O data input pin SIN.
Port P23 is also used as external clock input pin TIM3. When the timer 3 count source is supplied
form an external device (as set by the timer 34 mode register), the input signal to this pin is the timer
3 count source.
The port P24 is also used as external clock input pin TIM2. When the count source for timer 2 is
supplied form an external device (as set by the timer 12 mode register), the input signal to this pin
is the timer 2 count source.
Ports P25–P27 has only I/O port function.
(4) Port P3
Ports P30–P32 are 3-bit I/O ports, ports P33 and P34 are a 2-bit input port. For the output structure
of ports P30 and P31, either CMOS output or N-channel open-drain output structure can be selected
by bit 0 or 1 of the port P3 output mode control register (address 00CD16). When “1,” N-channel open-
drain output structure is selected; when “0,” CMOS output structure is selected.
Port P32 has only I/O port function. The output structure is N-channel open-drain output. Port P32 has
basically the same function as port P0.
Ports P30 and P31 are also used as analog input pins A-D5 and A-D6 respectively.
Ports P33 and P34 are also used as CRT display clock input pins OSC1 and OSC2 respectively. Pin
OSC1 is a clock input for CRT display, pin OSC2 is a clock output for CRT display. The output
structure of pin OSC2 is CMOS output.
(5) Port P5
Ports P52–P55 are 4-bit output ports. The output structure is CMOS output. Ports P52–P55 are also
used as CRT output pins R, G, B, OUT1 respectively.
Pins R, G, B, and OUT1 are CRT output pins. When setting each bit of the port P5 direction register
to “0,” the pins function as CRT output pins; when setting to “1,” the pins function as general-purpose
output ports. The output structure of CRT output pin is CMOS output structure.
7220 Group User’s Manual
2-21