![background image](http://html1.mh-extra.com/html/rabbit/bl2100/bl2100_user-manual_775873057.webp)
User’s Manual
51
Sets the voltage of a D/A converter output channel by serially clocking in 16 bits to a D/A converter
using the following format:
D15, D12
Register R1, Register R0
00—Write data to DAC OUTB
01—Write data to buffer
10—Write data to DAC OUTA
11—Reserved
D14
Speed control
0—slow
1—fast (default)
D13
Power control
0—normal (default)
1—powerdown
D11–D0
Data bits, MSB–LSB (0–4095)
PARAMETERS
power_control
is the D/A converter power control option (0—normal (default) or 1—powerdown).
When the power-down mode is selected, the only other parameter that is used is the D/A converter chan-
nel (
channel
). The values of the other parameters are not considered.
Two D/A converter channels are affected when putting a D/A converter output in powerdown or normal
mode.
Powerdown Mode:
When
power_control
equals 1 and
channel
is 0 or 1, then both D/A converter channels 0
and 1 are put in powerdown mode (channels 2 and 3 not affected).
When
power_control
equals 1 and
channel
is 2 or 3, then both D/A converter channels 2
and 3 are put in powerdown mode (channels 0 and 1 not affected).
Normal Mode:
When
power_control
equals 1 and
channel
is 0 or 1, then both D/A converter channels 0
and 1 are put in normal mode. (channels 2 and 3 not affected).
When
power_control
equals 1 and
channel
is 2 or 3, then both D/A converter channels 2
and 3 are put in normal mode (channels 0 and 1 not affected).
void anaOutDriver(int power_control,
int speed_control, int channel,
unsigned int rawcount);
Содержание BL2100
Страница 6: ...Smartcat BL2100...
Страница 14: ...8 Smartcat BL2100...
Страница 60: ...54 Smartcat BL2100...
Страница 78: ...72 Smartcat BL2100...
Страница 84: ...78 Smartcat BL2100...
Страница 118: ...112 Smartcat BL2100...
Страница 124: ...118 Smartcat BL2100...
Страница 132: ...126 Smartcat BL2100...
Страница 134: ......