Fixed Channel, Continuous Conversion Mode; Auto Scan, Single Conversion Mode; Auto Scan, Continuous Conversion Mode - Philips P89LPC938 User Manual

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors
Table 7:
Result register
AD0DAT1R/L
AD0DAT2R/L
AD0DAT3R/L

3.2.1.2 Fixed channel, continuous conversion mode

A single input channel can be selected for continuous conversion. The results of the
conversions will be sequentially placed in the eight result register pairs (see
user may select whether an interrupt can be generated after every four or every eight
conversions. Additional conversion results will again cycle through the result register
pairs, overwriting the previous results. Continuous conversions continue until terminated
by the user. This mode is selected by setting the SCC0 bit in the ADMODA register.
Table 8:
Result register
AD0DAT0R/L
AD0DAT1R/L
AD0DAT2R/L
AD0DAT3R/L
AD0DAT4R/L
AD0DAT5R/L
AD0DAT6R/L
AD0DAT7R/L

3.2.1.3 Auto scan, single conversion mode

Any combination of the eight input channels can be selected for conversion by setting a
channel's respective bit in the ADINS register. A single conversion of each selected input
will be performed and the result placed in the result register pair which corresponds to the
selected input channel (see
will be generated after either the first four conversions have occurred or all selected
channels have been converted. If the user selects to generate an interrupt after the first
four input channels have been converted, a second interrupt will be generated after the
remaining input channels have been converted. If only a single channel is selected this is
equivalent to single channel, single conversion mode. The channels are converted from
LSB to MSB order (in ADINS). This mode is selected by setting the SCAN0 bit in the
ADMODA register.

3.2.1.4 Auto scan, continuous conversion mode

Any combination of the eight input channels can be selected for conversion by setting a
channel's respective bit in the ADINS register. A conversion of each selected input will be
performed and the result placed in the result register pair which corresponds to the
selected input channel (See
enabled, will be generated after either the first four conversions have occurred or all
selected channels have been converted. If the user selects to generate an interrupt after
the four input channels have been converted, a second interrupt will be generated after
the remaining input channels have been converted. After all selected channels have been
User manual
Input channels and result registers for fixed channel single, auto scan single, and
auto scan continuous conversion modes
Input channel
AD01
AD02
AD03
Result registers and conversion results for fixed channel, continuous conversion
mode
Contains
Selected channel, first conversion result
Selected channel, second conversion result
Selected channel, third conversion result
Selected channel, fourth conversion result
Selected channel, fifth conversion result
Selected channel, sixth conversion result
Selected channel, seventh conversion result
Selected channel, eighth conversion result
Table
7). The user may select whether an interrupt, if enabled,
Table
7). The user may select whether an interrupt, if
Rev. 03 — 7 June 2005
...continued
Result register
Input channel
AD0DAT5R/L
AD05
AD0DAT6R/L
AD06
AD0DAT7R/L
AD07
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10119
P89LPC938 User manual
Table
8). The
24 of 139

Advertisement

Table of Contents
loading

Table of Contents