![]() ZBasic System Library
33
ZBasic Microcontrollers
INT4
INT5
INT6
INT7
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, tiny84A, tiny441,
tiny841
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
tiny828
WaitPinChangeA
WaitPinChangeB
WaitPinChangeC
WaitPinChangeD
PCINT0
PCINT1
PCINT2
PCINT3
A.7-A.0
B.7-B.0
C.7-C.0
D.3-D.0
tiny1634
WaitPinChangeA
WaitPinChangeB
WaitPinChangeC
PCINT0
PCINT1
PCINT2
A.7-A.0
B.3-B.0
C.3-C.0
mega8, mega8A, mega16, mega16A, mega32, mega32A,
mega64, mega64A, mega128, mega128A,
mega8515, mega8535, mega161, mega163, mega323,
AT90CAN32, AT90CAN64, AT90CAN128
-
-
-
mega48, mega48A, mega48P, mega48PA, mega48PB,
mega88, mega88A, mega88P, mega88PA, mega88PB,
mega168, mega168A, mega168P, mega168PA, mega168PB,
mega328, mega328P, mega328PB
(mega328PB only)
WaitPinChangeB
WaitPinChangeC
WaitPinChangeD
WaitPinChangeE
PCINT0
PCINT1
PCINT2
PCINT3
B.7-B.0
C.6-C.0
D.7-D.0
E.3-E.0
mega164A, mega164P, mega164PA,
mega324P, mega324PA,
mega644, mega644A, mega644P, mega644PA,
mega1284P
WaitPinChangeA
WaitPinChangeB
WaitPinChangeC
WaitPinChangeD
PCINT0
PCINT1
PCINT2
PCINT3
A.7-A.0
B.7-B.0
C.7-C.0
D.7-D.0
mega1281, mega2561
WaitPinChangeB
WaitPinChangeE
PCINT0
PCINT1
B.7-B.0
E.0
mega640, mega1280, mega2560
WaitPinChangeB
WaitPinChangeJ
WaitPinChangeK
PCINT0
PCINT1
PCINT2
B.7-B.0
J.7-J.0
K.7-K.0
mega8U2, mega16U2, mega32U2,
AT90USB82, AT90USB162
WaitPinChangeB
WaitPinChangeC
PCINT0
PCINT1
B.7-B.0
D.5, C.2,
C.4, C.5,
C.6
mega16U4, mega32U4,
WaitPinChangeB
PCINT0
B.7-B.0
|