Texas Instruments MSP430x4xx Computer Hardware User Manual


 
SD16 Operation
21-9SD16
21.2.7 Conversion Memory Registers: SD16MEMx
One SD16MEMx register is associated with each SD16 channel. Conversion
results for each channel are moved to the corresponding SD16MEMx register
with each decimation step of the digital filter. The SD16IFG bit for a given
channel is set when new data is written to SD16MEMx. SD16IFG is
automatically cleared when SD16MEMx is read by the CPU or may be cleared
with software.
Output Data Format
The output data format is configurable in twos complement or offset binary as
shown in Table 211.The data format is selected by the SD16DF bit.
Table 211.Data Format
SD16DF Format Analog Input SD16MEMx
Digital Filter Output
(OSR =256)
+FSR FFFF FFFFFF
0
Unipolar:
Offset
ZERO 8000 800000
0
Offset
Binary
FSR 0000 000000
+FSR
7FFF 7FFFFF
1
Bipolar:
Twos
ZERO 0000 000000
1
Twos
complement
FSR 8000 800000
Independent of SD16OSRx setting; SD16LSBACC = 0.
Figure 215 shows the relationship between the full-scale input voltage range
from V
FSR
to +V
FSR
and the conversion result. The digital values for both data
formats are illustrated.
Figure 215. Input Voltage vs. Digital Output
Input
Voltage
SD16MEMx
V
FSR
+V
FSR
7FFFh
8000h
Bipolar Output
Input
Voltage
SD16MEMx
V
FSR
+V
FSR
FFFFh
8000h
Unipolar Output
0000h
0000h