English
Language : 

M37161M8 Datasheet, PDF (7/129 Pages) Renesas Technology Corp – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37161M8/MA/MF-XXXSP/FP,M37161EFSP/FP
7. PIN DESCRIPTION
Table 7.1 PIN DESCRIPTION
Pin
Name
VCC, VSS
CNVSS
______
RESET
Power source
CNVSS
Reset input
Input/
Output
Input
XIN
XOUT
Clock input
Clock output
Input
Output
P00/PWM0/DA I/O port P0
P01/PWM1,
P02/PWM2,
P03/PWM3/AD1, 8-bit
P04/PWM4/AD2, PWM output
P05/AD3, DA output
P06/INT2/AD4, External interrupt
P07/INT1 input
Analog input
P10/CLK CONT, I/O port P1
P11/SCL1,
P12/SCL2,
P13/SDA1,
P14/SDA2,
P15,
P16/AD8/TIM2
Multi-master
I2C-BUS interface
Clock control
External clock
input for timer
Analog input
P20/SCLK/AD5, I/O port P2
P21/SOUT/AD6,
P22/SIN/AD7, Serial I/O synchronous
P23/TIM3, clock input/output port
P24/TIM2, Serial I/O data
P25/INT3, output
P26/XCIN, Serial I/O data input
P27/XCOUT External clock
input for timer
Analog input
Sub-clock input
Sub-clock output
External interrupt
input
P30/SDA3 I/O port P30, P31
P31/SCL3
P35-P37
Multi-master
I2C-BUS Interface
Input P35-P37
I/O
Output
Output
Input
Input
I/O
I/O
Output
Input
Input
I/O
I/O
Output
Input
Input
Input
Input
Output
Input
I/O
I/O
Input
Functions
Apply voltage of 5 V ± 10 % to (typical) VCC, and 0 V to VSS.
This is connected to VSS.
To enter the reset state, the reset input pin must be kept at a LOW for 2 ms or more (under
normal VCC conditions).
If more time is needed for the quartz-crystal oscillator to stabilize, this LOW condition should
be maintained for the required time.
This is the input pin for the main clock generating circuit. Built-in clock clock generation
circuit, when set
to oscillation frequency, connect ceramic resonator or crystal frequency between XIN and
XOUT. When use external clock input, connect clock oscillation source to XIN pin, and open
XOUT pin.
Port P0 is a 8-bit I/O port with a direction register allowing each I/O bit to be individually
programmed as input or output. At reset, this port is set to input mode. The output structure
is N-channel open-drain output. (See note)
Ouput Pins P00 to P04 are also used as 8-bit PWM output pins PWM0 to PWM4, respectively. The
output structure is N-channel open-drain output.
P00 pin is also used as 14-bit PWM output pin DA. The output structure is CMOS.
Pins P06 and P07 are also used as INT external interrupt input pins INT2 and INT1 respectively.
Pins P03, P04, P05 and P06 are also used as analog input pins AD1, AD2, AD3 and AD4, respectively.
Port P1 is a 7-bit I/O port and has basically the same functions as port P0. The output
structure is CMOS output. (See note)
Pins P11–P14 are used as SCL1, SCL2, SDA1 and SDA2 respectively, when multi-master
I2C-BUS interface is used. The output structure is N-channel open-drain output.
P10 pin is also used as Clock control output CLK CONT. The output structure is CMOS
output.
P16 pin is also used as timer external clock input pin TIM2.
P16 pin is also used as analog input pin AD8.
Port P2 is a 8-bit I/O port and has basically the same functions as port P0. The output
structure is CMOS output. (See note)
P20 pin is also used as serial I/O synchronous clock input/output pin SCLK. The output
structure is N-channel open-drain output.
P21 pin is also used as serial I/O data output pin SOUT. The output structure is open-drain
output.
P22 pin is also used as serial I/O data input pin SIN.
Pins P23 and P24 are also used as timer external clock input pins TIM3 and TIM2
respectively.
Pins P20–P22 are also used as analog input pins AD5, AD6 and AD7 respectively.
P26 pin is also used as sub-clock input pin XCIN.
P27 pin is also used as sub-clock output pin XCOUT. The output structure is CMOS output.
P25 pin is also used as INT external interrupt input pin INT3.
Pins P30 and P31 are 2-bit I/O port and has basically the same functions as port P0.
The output structure is CMOS output. (See note)
Pins P30 and P31 are used as SDA3,SCL3 respectively, when multi-master I2C-BUS
interface is used. The output structure is N-channel open-drain output.
Pins P35–P37 are 3-bit input port.
Rev.1.00 2003.11.25 page 7 of 128