52
Smartcat (BL2100)
speed_control
is the D/A converter power control option (0—slow or 1—fast (default)).
Test conditions from TI's data sheet (TLV5618A D/A converter) for the speed-control option:
- No load.
- All inputs are at GND or VDD.
- D/A converter latch = 0x800.
channel
is the D/A converter output channel to write (0–3).
rawcount
is the data value corresponding to the desired voltage on the analog output channel (0–4095).
RETURN VALUE
None
SEE ALSO
anaOut, anaOutVolts, anaOutCalib
Sets the voltage of a D/A converter output channel.
PARAMETERS
channel
is the D/A converter output channel (0–3).
rawcount
is a data value corresponding to the voltage desired on the output channel (0–4095).
RETURN VALUE
0 if sucessful.
-1 if
rawcount
is more than 4095.
SEE ALSO
anaOutDriver, anaOutVolts, anaOutCalib
Sets the voltage of a D/A converter output channel by using the previously set calibration constants to
calculate the correct data values.
PARAMETERS
channel
is the D/A converter output channel (0–3).
voltage
is the voltage desired on the output channel.
RETURN VALUE
None.
SEE ALSO
anaOut, anaOutCalib, brdInit
Mode
Speed vs. Power Dissipation
0—slow
12 µs access vs. 1 mA
1—fast (default)
3 µs access vs. 2.3 mA
void anaOut(unsigned int channel,
unsigned int rawcount);
void anaOutVolts(unsigned int ch, float voltage);
Содержание 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: ......