4 dac12_xdat data format – Texas Instruments MSP430x4xx User Manual

Page 453

Advertising
background image

DAC12 Operation

23-7

DAC12

23.2.4 DAC12_xDAT Data Format

The DAC12 supports both straight binary and 2’s compliment data formats.
When using straight binary data format, the full-scale output value is 0FFFh
in 12-bit mode (0FFh in 8-bit mode) as shown in Figure 23−3.

Figure 23−3. Output Voltage vs DAC12 Data, 12-Bit, Straight Binary Mode

Full-Scale Output

0

0FFFh

0

Output Voltage

DAC Data

When using 2’s compliment data format, the range is shifted such that a
DAC12_xDAT value of 0800h (0080h in 8-bit mode) results in a zero output
voltage, 0000h is the mid-scale output voltage, and 07FFh (007Fh for 8-bit
mode) is the full-scale voltage output as shown in Figure 23−4.

Figure 23−4. Output Voltage vs DAC12 Data, 12-Bit, 2’s Compliment Mode

Full-Scale Output

0800h (−2048)

07FFh (+2047)

0

0

Output Voltage

DAC Data

Mid-Scale Output

Advertising