5.2 1
This IOType returns a single analog input reading.
• Positive Channel: 0-15 for AIN0-AIN15, 30 for temp sensor, or 31 for Vreg. Note that
AIN0-AIN7 appear on FIO0-FIO7, and AIN8-AIN15 appear on EIO0-EIO7.
• LongSettling: If this bit is set, additional settling time is added between the mulitplexer
configuration and the analog to digital conversion.
put conversion is done, at the expense
ded. Note that
15 appear on EIO0-EIO7.
d as a 16-bit value. Differential
readings are signed, while single-ended readings are unsigned.
5.2.5.6 WaitShort: IOType=5
his IOType provides a way to add a delay during execution of the Feedback function. The
pical use would be putting this IOType in between IOTypes that set a digital output line high
nd low, thus providing a simple way to create a pulse. Note that this IOType uses the same
ternal timer as stream mode, so cannot be used while streaming.
• Time: This value (0-255) is multiplied by 128 microseconds to determine the delay.
5.2.5.6 WaitLong: IOType=6
This IOType provides a way to add a delay during execution of the Feedback function. The
typical use would be putting this IOType in between IOTypes that set a digital output line high
.5. AIN: IOType=1
AIN
, 3 Command Bytes:
0
1 Bits 4-0: Positive Channel
Bit 6: LongSettling
Bit 7: QuickSample
Negative Channel
IOType=1
2
ponse Bytes:
2 Res
• QuickSample: If this bit is set, a faster analog in
of increased noise.
• Negative Channel: 0-15 for AIN0-AIN15, 30 for Vref, or 31 for single-en
AIN0-AIN7 appear on FIO0-FIO7, and AIN8-AIN
• AIN LSB & MSB: Analog input reading is returned justifie
0 AIN LSB
1 AIN MSB
WaitShort
, 2 Command Bytes:
0 IOType=5
1 Time (*128 us)
0 Response Bytes:
T
ty
a
in
WaitLong
, 2 Command Bytes:
0 IOType=6
1Time (*32 ms)
0 Response Bytes:
89