![]() ZBasic System Library
20
ZBasic Microcontrollers
The tables below give the set of valid pins for the InputCaptureEx subroutine and also indicate (with an
asterisk) the default pin used by the InputCapture subroutine. When an input capture operation has been
started successfully, the corresponding timer busy flag (e.g. Register.Timer1Busy) will be set True
for the duration of the input capture operation. Note that an input capture cannot be used at the same
time as an output capture operation involving the same timer.
For native code ZX devices and all generic target devices, at least two ISRs will be automatically provided
by the compiler to facilitate the input capture operation corresponding to the capture interrupt and the
timer overflow interrupt. The names of the interrupt vectors are related to the timer being used. For
example, for Timer1 the names are Timer1_Capt and Timer1_OVF. Note that if the compiler cannot
determine at compile time which timer will be used, the capture and timer overflow ISRs for all possible
timers will be included in the application.
Valid Input Capture Pins for ZX Devices
ZX Device
Timer
Pin
ZX-24, ZX-24a, ZX-24p, ZX-24n
Timer1
12, D.6*
ZX-40, ZX-40a, ZX-40p, ZX-40n
Timer1
20, D.6*
ZX-44, ZX-44a, ZX-44p, ZX-44n
Timer1
15, D.6*
ZX-24r, ZX-24s, ZX-24t
Timer1
Timer3
12, D.6*
B.5
ZX-40r, ZX-40s, ZX-40t
Timer1
Timer3
20, D.6*
6, B.5
ZX-44r, ZX-44s, ZX-44t
Timer1
Timer3
15, D.6*
1, B.5
ZX-24e, ZX-24ae, ZX-24ne, ZX-24pe, ZX-24nu, ZX-24pu
Timer1
14, D.6*
ZX-24ru, ZX-24su
Timer1
Timer3
14, D.6*
23, B.5
ZX-328n, ZX-328l
Timer1
14 B.0*
ZX-32n, ZX-32l
Timer1
12 B.0*
ZX-1281, ZX-1281n
Timer1
Timer3
29, D.4*
9, E.7
ZX-1280, ZX-1280n
Timer1
Timer3
Timer4
Timer5
47, D.4*
9, E.7
35, L.0
36, L.1
ZX-24x, ZX-24u
TimerC0
TimerD0
TimerE0
12, C.0*
26, D.0
25, E.0
ZX-32a4
TimerC0
TimerD0
TimerE0
10, C.0*
20, D.0
28, E.0
ZX-128a1
TimerC0
TimerD0
TimerE0
TimerE1
TimerF0
TimerF1
15, C.0*
25, D.0
35, E.0
39, E.4
45, F.0
49, F.4
ZX-128e, ZX-128ne, ZX-1281e, ZX-1281ne
Timer1
Timer3
8, D.4*
13, E.7
ZX-328nu
Timer1
11, B.0*
ZX-24xu
TimerC0
TimerD0
TimerE0
12, C.0*
20, D.0
24, E.0
|