Page 44 of 346 Start Back Next End ZBasic System Library 32 ZBasic Microcontrollers 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 C.4-C.0 mega16U4, mega32U4, AT90USB646, AT90USB647, AT90USB1286, AT90USB1287 WaitPinChangeB PCINT0 B.7-B.0 mega162 WaitPinChangeA WaitPinChangeC PCINT0 PCINT1 A.7-A.0 C.7-C.0 mega165, mega165A, mega165P, mega165PA, mega325, mega325P, mega645, mega645A, mega645P, mega169, mega169A, mega169P, mega169PA, mega329, mega329P, mega329PA, mega649, mega649A, mega649P WaitPinChangeE WaitPinChangeB PCINT0 PCINT1 E.7-E.0 B.7-B.0 mega3250, mega3250P, mega6450, mega6450A, mega6450P, mega3290, mega3290P, mega6490, mega6490A, mega6490P WaitPinChangeE WaitPinChangeB WaitPinChangeH WaitPinChangeJ PCINT0 PCINT1 PCINT2 PCINT3 E.7-E.0 B.7-B.0 H.7-H.0 J.6-J.0 The table below shows how ports are mapped to the four possible pin change interrupts on ATxmega devices. Note that for each port, there are two independent channels available. See the description of WaitForInterrupt for more information on preparing to await a pin change interrupt. ATxmega Pin Change Interrupt Support Processors WaitForInterrupt intNum Pin Change Trigger Interrupt xmegaA1, xmegaA3, xmegaA3B, xmegaA4, xmegaD3, xmegaD4 WaitPinChangeA0 WaitPinChangeA1 WaitPinChangeB0 WaitPinChangeB1 WaitPinChangeC0 WaitPinChangeC1 WaitPinChangeD0 WaitPinChangeD1 WaitPinChangeE0 WaitPinChangeE1 Port A, channel 0 Port A, channel 1 Port B, channel 0 Port B, channel 1 Port C, channel 0 Port C, channel 1 Port D, channel 0 Port D, channel 1 Port E, channel 0 Port E, channel 1 PORTA_INT0 PORTA_INT1 PORTB_INT0 PORTB_INT1 PORTC_INT0 PORTC_INT1 PORTD_INT0 PORTD_INT1 PORTE_INT0 PORTE_INT1 xmegaA1, xmegaA3, xmegaA3B, xmegaD3 WaitPinChangeF0 WaitPinChangeF1 Port F, channel 0 Port F, channel 1 PORTF_INT0 PORTF_INT1 xmegaA1 WaitPinChangeH0 WaitPinChangeH1 WaitPinChangeJ0 WaitPinChangeJ1 WaitPinChangeK0 WaitPinChangeK1 WaitPinChangeQ0 WaitPinChangeQ1 Port H, channel 0 Port H, channel 1 Port J, channel 0 Port J, channel 1 Port K, channel 0 Port K, channel 1 Port Q, channel 0 Port Q, channel 1 PORTH_INT0 PORTH_INT1 PORTJ_INT0 PORTJ_INT1 PORTK_INT0 PORTK_INT1 PORTQ_INT0 PORTQ_INT1 Analog Comparator Interrupts The table below shows analog comparator input pins for ZX devices. See the description of WaitForInterrupt for more information on preparing to await an analog comparator interrupt.