Chapter 1
Overview
I - 16
Pin Description
Table 1-3-7
Pin Function Summary (6/7)
Name
No.
I/O
Other Function
Function
Description
80LQFP
84QFP
Vref+
Vref-
17
26
19
28
-
+power supply for
A/D converter
- power supply for
A/D converter
Reference power supply pins for the A/D converter.
Normally, the values of Vref+=VDD and Vref-=VSS are
used.
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
18
19
20
21
22
23
24
25
20
21
22
23
24
25
26
27
Input
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
Analog input pins
A na lo g i np ut p i ns fo r a n 8 -c ha nne l, 1 0 -b i t A /D
converter.
When not used for analog input, these pins can be used
as normal input pins.
IRQ0
IRQ1
IRQ2
IRQ3
41
42
43
-
43
44
45
46
Input
P20
P21, ACZ
P22
P23
External interrupt input pins
External interrupt input pins.
The valid edge for IRQ0 to 3 can be selected with the
IRQnICR register.
IRQ1 is an external interrupt pin that is able to deternine
AC zero crossings. Both edge for IRQ2, 3 are valid for
interrupt. When these are not used for interrupts, these
can be used as normal input pins.
ACZ
42
44
Input
P21, IRQ1
AC zero-cross detection
input pin
An input pin for an AC zero-cross detection circuit. The
AC zero-cross detection circuit outputs a high level
when the input is at an intermediate level. It outputs a
lo w level at all o ther ti me s. A C Z i np ut si gnal i s
connected to the P21 i nput ci rcui t and the IQR1
interrupt circuit. When the AC zero-cross detection
circuit is not used, this pin can be used as a normal
P21 input.
KEY0
KEY1
KEY2
KEY3
KEY4
KEY5
KEY6
KEY7
45
46
47
48
49
50
51
52
48
49
50
51
52
53
54
55
Input
P40, SEG31, SDO0
P41, SEG30, SDO1
P42, SEG29, SDO2
P43, SEG28, SDO3
P44, SEG27, SDO4
P45, SEG26, SDO5
P46, SEG25, SDO6
P47, SEG24, SDO7
Key interrupt input pins
Input pins for interrupt based on ORed result of pin
inputs.
Key input pin for 1 bit can be selected individually by
the key interrupt control register (P4IMD).
When not used for KEY input, these pins can be used
as normal I/O pins.
LED0
LED1
LED2
LED3
-
6
7
8
6
7
8
9
output
P50, TM0O
P51, TM7O
P52, TM2O
P53, TM8O
LED driver pins
Large current output pins, These pins can be used as
timer output pins. Each bit can be set individually as
output mode by the P5OMD register.
When not used for LED output, this pin can be used as
a normal I/O pin.
TM0O
TM7O
TM2O
TM8O
-
6
7
8
6
7
8
9
output
P50, LED0
P51, LED1
P52, LED2
P53, LED3
Timer output pins
Timer output and PWM signal output pins for 8-bit timer
0, 2 and 16-bit timer 7, 8.
For timer output, PWM signal output, select the timer
output by the port 5 output mode register (P5OMD) and
set to the output mode by the P5DIR register.