DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 3
25
Programming with the Low-Level API
May 2019
www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
3.9
Configuring
Break-before-
make
Functionality
By default, when users program a relay state change for a channel, MUX-414 /
MUX-418 break-before-make circuitry will open the A, B, and C relays for that
channel before connecting.
Users can adjust the duration of time you break on a relay state change, as well
as disable break-before-make functionality completely.
3.9.1
Changing
Break
Duration
To change the duration of the break time, you configure the
off_delay
element in the
DQ414CFG
structure using the
DqAdv414SetCfg
API.
typedef struct {
uint32 on_delay;
uint32 off_delay;
uint32 di_mode;
uint32 di_polarity;
uint32 sync_out_pw;
uint32 sync_out_mode;
} DQ414CFG, *pDQ414CFG;
:
For example, to set 1 ms as the amount of time you break connections for A, B,
and C relays before you reconnect to a new configuration, you program the
following:
// set delay in DQ414CFG struct
r_cfg.off_delay = 100; // 100*10us(1000uS) breaking time
// of break-before-make
// set configuration
DqAdv414SetCfg(hd, DEVN1, &r_cfg);
3.9.2
Disabling
Break-before-
make
To disable the break-before-make functionality on MUX-414 / MUX-418 relay
switches, you set the
DQ_MUX414_W_OPTION_NO_BBM
flag using the
DqAdv414Write
API.
For example, the following disables break-before-make circuitry for the following
DqAdv414Write
:
pdata.rflags=DQ_MUX414_W_PORT0 | DQ_MUX414_W_OPTION_NO_BBM;
pdata.mux_select[0] = 0x000D032;
DqAdv414Write(hd0, DEVN, pdata);
Table 3-4 Setting for DQ414CFG Break-before-make Delay
Name
Description
off_delay
program the breaking time of break-before-make in 10uS units,
range 1..256