Mux Control - Base+4 And Base+5; Table C-5: Register For Multiplexer Control - Advantech MIC-3716 Manual

Table of Contents

Advertisement

C.6 MUX Control — BASE+4 and BASE+5

Table C-5: Register for multiplexer control

Write
Bit #
BASE + 5
BASE + 4
STA3 ~ STA0
STO3 ~ STO0
n
When you set the gain code of analog input channel n, you
should set the Multiplexer start & stop channel number to
channel n to prevent any unexpected errors. In fact BASE+4 bit
3 to bit 0, STA3 ~ STA0, act as a pointer to channel n' s address
in the SRAM when you program the A/D channel setting (refer
to Section C.5).
Caution!
We recommend you to set the same start and stop channel when writing to
the register BASE+2. Otherwise, if the A/D trigger source is on, the
multiplexer will continuously scan between channels and the range setting
may be set to an unexpected channel. Make sure the A/D trigger source is
turned off to avoid this kind of error.
The write-only registers of BASE +4 and BASE+5 control how the
multiplexers (Multiplexer) scan.
82
7
6
5
Start Scan Channel Number
Stop Scan Channel Number
Multiplexer Control
4
3
STO3
STA3
2
1
STO2
STO1
STA2
STA1
0
STO0
STA0

Advertisement

Table of Contents
loading

Table of Contents