150 of 323
ZBasic System Library 140 ZX Microcontroller Family PortC bit 0. This means that you should set pin 12 to be an input (either tri-state or pull-up) when you want to use InputCapture() so that it doesn’t interfere with the pulse train to be measured. This routine cannot be used at the same time as OutputCapture() or OutputCaptureEx() when that routine requires the same timer. Valid Input Capture Pins ZX Models Timer1 Timer3 Timer4 Timer5 ZX-24, ZX-24a, ZX-24p, ZX-24n 12, D.6 - - - ZX-40, ZX-40a, ZX-40p, ZX-40n 20, D.6 - - - ZX-44, ZX-44a, ZX-44p, ZX-44n 15, D.6 - - - ZX-24r, ZX-24s 12, D.6 B.5 - - ZX-40r, ZX-40s 20, D.6 6, B.5 - - ZX-44r, ZX-44s 15, D.6 1, B.5 - - ZX-24e, ZX-24ae, ZX-24ne, ZX-24pe, ZX-24nu, ZX-24pu 14, D.6 - - - ZX-24ru, ZX-24su 14, D.6 23, B.5 - - ZX-328n, ZX-328l 14 B.0 - - - ZX-32n, ZX-32l 12 B.0 - - - ZX-1281, ZX-1281n 29, D.4 9, E.7 - - ZX-1280, ZX-1280n 47, D.4 9, E.7 35, L.0 36, L.1 ZX-128e, ZX-128ne, ZX-1281e, ZX-1281ne 8, D.4 13, E.7 - - ZX-328nu 11, B.0 - - - Valid Input Capture Pins ZX Models TimerC0 TimerD0 TimerD1 TimerE0 TimerE1 TimerF0 TimerF1 ZX-24x 12, C.0 26, D.0 D.4 25, E.0 - - - ZX-32a4 10, C.0 20, D.0 24, D.4 28, E.0 - - - ZX-128a1 15, C.0 25, D.0 29, D.4 35, E.0 39, E.4 45, F.0 49, F.4 ZX-24xu 12, C.0 20, D.0 16, D.4 24, E.0 - - - For native code devices, the table below gives the ISRs that may be loaded if your program uses InputCaptureEx(). If the compiler cannot determine which specific timer ISR is required by analyzing the parameters used, all listed ISRs will be included. ISRs Required Underlying CPU ISR Name mega328P, mega644P Timer1_Capt, Timer1_OVF mega1284P Timer1_Capt, Timer1_OVF, Timer3_Capt, Timer3_OVF mega1281, mega128 Timer1_Capt, Timer1_OVF, Timer3_Capt, Timer3_OVF mega1280 Timer1_Capt, Timer1_OVF, Timer3_Capt, Timer3_OVF, Timer4_Capt, Timer4_OVF, Timer5_Capt, Timer5_OVF xmega32A4 TimerC0_CCA, TimerC0_OVF, TimerD0_CCA, TimerD0_OVF, TimerD1_CCA, TimerD1_OVF, TimerE0_CCA, TimerE0_OVF xmega128A1 TimerC0_CCA, TimerC0_OVF, TimerD0_CCA, TimerD0_OVF, TimerD1_CCA, TimerD1_OVF, TimerE0_CCA, TimerE0_OVF, TimerE1_CCA, TimerE1_OVF, TimerF0_CCA, TimerF0_OVF, TimerF1_CCA, TimerF1_OVF