52
Chapter 7. Digital I/O
H[IGH]
Count while input is
HIGH
, enables counter
L[OW]
Count while input is
LOW
, enables counter
R[ISING]
Count rising edges, enables counter
F[ALLING]
Count falling edges, enables counter
B[OTH]
Count both rising and falling edges, enables counter
The following
NSB
-mode example sets up a rising edge counter on
HSB3
and counts for approximately 100 ms.
1
EXTIO,MODE,2,HSB,READ
EXTIO,COUNTER,2,HS3,RISING
EXTIO,COUNTER,2,HS3,RESET
SLEEP,100
# wait approximately 100ms
EXTIO,COUNTER,2,HS3,READ
# returns counts recorded
7.8
Examples
The following examples demonstrate how to configure and use the
external I/O pins.
Note that pins must be set to
MANUAL
using the
EXTIO,CTRL
command to be used for
READ
and
WRITE
.
These commands may be useful in executing scripts or diagnosing
experiments.
For any application where timing is important, table
mode should be used.
EXTIO,CTRL,1,HSB,MAN
Set HSB1 to
MANUAL
mode, for use with
READ
and
WRITE
EXTIO,WRITE,1,DOUT,1
Sets the
CH1-DOut
pin (
DB15
) to
HIGH
EXTIO,READ,2,OFF
Reads the current state of the
CH2-OFF
pin (
DB15
)
EXTIO,MODE,1,HSB,WRITE
Set the entire first high-speed bank into write mode
1
Advanced table mode should be used for more accurate measurement (
§
9.4).
Содержание ARF021
Страница 1: ...Agile RF Synthesizer AOM driver ARF021 ARF421 XRF021 XRF421 Version 1 5 0 Rev 6 ...
Страница 4: ...ii ...
Страница 10: ...viii Contents ...
Страница 26: ...16 Chapter 3 Communications ...
Страница 44: ...34 Chapter 5 External modulation ...
Страница 50: ...40 Chapter 6 PID stabilisation ...
Страница 64: ...54 Chapter 7 Digital I O ...
Страница 100: ...90 Chapter 9 Advanced table mode XRF ...
Страница 128: ...118 Appendix C Command language ...
Страница 133: ......