ZBasic System Library
188
ZX Microcontroller Family
Resource Usage
This routine uses the I/O Timer. If the timer is already in use the routine will return immediately without
performing the waveform generation. Also, this routine cannot be used at the same time as
InputCapture() or InputCaptureEx() that requires the same timer.
Hardware Output Capture Pin
ZX Models
Timer 1 Pin
Timer 3 Pin
Timer 4 Pin
Timer 5 Pin
ZX-24, ZX-24a, ZX-24p, ZX-24n
27, D.4
-
-
-
ZX-40, ZX-40a, ZX-40p, ZX-40n
18, D.4
-
-
-
ZX-44, ZX-44a, ZX-44p, ZX-44n
13, D.4
-
-
-
ZX-24r, ZX-24s
27, D.4
B.7
-
-
ZX-40r, ZX-40s
18, D.4
8, B.7
-
-
ZX-44r, ZX-44s
13, D.4
3, B.7
-
-
ZX-24e, ZX-24ae, ZX-24ne, ZX-24pe,
ZX-24nu, ZX-24pu
13, D.4
-
-
-
ZX-328n, ZX-328l
16, B.2
-
-
-
ZX-32n, ZX-32l
14, B.2
-
-
-
ZX-1281, ZX-1281n
16, B.6
6, E.4
-
-
ZX-1280, ZX-1280n
25, B.6
6, E.4
16, H.4
39, L.4
ZX-128e, ZX-128ne, ZX-1281e, ZX-1281ne
22, B.6
16, E.4
-
-
ZX-328nu
13, B.2
-
-
-
When performing an output capture on a general I/O pin, the IO Timer will be used to generate the
required timing. On ZX devices that have other 16-bit timers, they will be used if the IO Timer is not
available. If no 16-bit timer is available, the routine will return immediately.
For native code devices, the table below gives the ISRs that may be loaded if your program uses
OutputCapture(). 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_CompB
mega128
Timer1_CompB,
Timer3_CompB
mega1281, mega1284P
Timer1_CompB,
Timer1_CompC,
Timer3_CompB
mega1280
Timer1_CompB,
Timer1_CompC,
Timer3_CompB,
Timer4_CompB
Timer5_CompB
Compatibility
This routine is not available in BasicX compatibility mode.