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 SD16MEMxDigital Filter Output
(OSR =256)
+FSR FFFF FFFFFF
0Unipolar:
Offset ZERO 8000 800000
0Offset
Binary FSR 0000 000000
+FSR 7FFF 7FFFFF
1Bipolar:
TwosZERO 0000 000000
1Twos
complement FSR 8000 800000
Independent of SD16OSRx setting; SD16LSBACC = 0.
Figure 215 shows the relationship between the full-scale input voltage range
from VFSR to +VFSR and the conversion result. The digital values for both data
formats are illustrated.
Figure 215. Input Voltage vs. Digital Output
Input
Voltage
SD16MEMx
VFSR
+VFSR
7FFFh
8000h
Bipolar Output
Input
Voltage
SD16MEMx
VFSR +VFSR
FFFFh
8000h
Unipolar Output
0000h
0000h