![]() ZBasic System Library
31
ZBasic Microcontrollers
INT1
INT2
INT3
INT4
INT5
INT6
INT7
44, D.1
45, D.2
46, D.3
6, E.4
7, E.5
8, E.6
9, E.7
mega8U2, mega16U2, mega32U2, AT90USB82, AT90USB162
T32
INT0
INT1
INT2
INT3
INT4
INT5
INT6
INT7
6, D.0
7, D.1
8, D.2
9, D.3
22, C.7
10, D.4
12, D.6
13, D.7
mega16U4, mega32U4
T44
INT0
INT1
INT2
INT3
INT6
18, D.0
19, D.1
20, D.2
21, D.3
1, E.6
AT90USB646, AT90USB647, AT90USB1286, AT90USB1287
T64
INT0
INT1
INT2
INT3
INT4
INT5
INT6
INT7
25, D.0
26, D.1
27, D.2
28, D.3
18, E.4
19, E.5
1, E.6
2, E.7
1
The interrupt input configuration is shared between INT0 and INT1. Consequently, if both are used at
the same time the last configured will control the input configuration.
The table below shows how ports are mapped to the four possible pin change interrupts on ATtiny and
ATmega devices. See the description of WaitForInterrupt for more information on preparing to await a pin
change interrupt.
ATtiny and ATmega Pin Change Interrupt Support
Target Device
WaitForInterrupt
intNum
PinChange
Interrupt
Port
Pins
tiny24, tiny24A, tiny44, tiny44A, tiny84
WaitPinChangeA
WaitPinChangeB
PCINT0
PCINT1
A.7-A.0
B.3-B.0
tiny48, tiny88
WaitPinChangeB
WaitPinChangeC
WaitPinChangeD
WaitPinChangeA
PCINT0
PCINT1
PCINT2
PCINT3
B.7-B.0
C.7-C.0
D.7-D.0
A.3-A.0
tiny87, tiny167
WaitPinChangeA
WaitPinChangeB
PCINT0
PCINT1
A.7-A.0
B.7-B.0
tiny2313, tiny2313A
WaitPinChangeB
PCINT0
B.7-B.0
tiny4313
WaitPinChangeB
WaitPinChangeA
WaitPinChangeD
PCINT0
PCINT1
PCINT2
B.7-B.0
A.3-A.0
D.6-D.0
mega8, mega8A, mega16, mega16A, mega32, mega32A,
mega64, mega64A, mega128, mega128A,
mega8515, mega8535, mega161, mega163, mega323,
AT90CAN32, AT90CAN64, AT90CAN128
-
-
-
mega48, mega48A, mega48P, mega48PA, mega88,
mega88A, mega88P, mega88PA, mega168, mega168A,
mega168P, mega168PA, mega328, mega328P
WaitPinChangeB
WaitPinChangeC
WaitPinChangeD
PCINT0
PCINT1
PCINT2
B.7-B.0
C.6-C.0
D.7-D.0
|