SD16 Operation
21-10 SD16
21.2.8 Conversion Modes
The SD16 module can be configured for four modes of operation, listed in
Table 212. The SD16SNGL and SD16GRP bits for each channel selects the
conversion mode.
Table 212.Conversion Mode Summary
SD16SNGL SD16GRP{Mode Operation
1 0 Single channel,
Single conversion A single channel is
converted once.
0 0 Single channel,
Continuous conversion A single channel is
converted continuously.
1 1 Group of channels,
Single conversion A group of channels is
converted once.
0 1 Group of channels,
Continuous conversion A group of channels is
converted continuously.
A channel is grouped and is the master channel of the group when SD16GRP = 0 if SD16GRP
for the prior channel(s) is set.
Single Channel, Single Conversion
Setting the SD16SC bit of a channel initiates one conversion on that channel
when SD16SNGL = 1 and it is not grouped with any other channels. The
SD16SC bit will automatically be cleared after conversion completion.
Clearing SD16SC before the conversion is completed immediately stops
conversion of the selected channel, the channel is powered down and the
corresponding digital filter is turned off. The value in SD16MEMx can change
when SD16SC is cleared. It is recommended that the conversion data in
SD16MEMx be read prior to clearing SD16SC to avoid reading an invalid
result.
Single Channel, Continuous Conversion
When SD16SNGL = 0 continuous conversion mode is selected. Conversion
of the selected channel will begin when SD16SC is set and continue until the
SD16SC bit is cleared by software when the channel is not grouped with any
other channel.
Clearing SD16SC immediately stops conversion of the selected channel, the
channel is powered down and the corresponding digital filter is turned off. The
value in SD16MEMx can change when SD16SC is cleared. It is recommended
that the conversion data in SD16MEMx be read prior to clearing SD16SC to
avoid reading an invalid result.
Figure 216 shows single channel operation for single conversion mode and
continuous conversion mode.