English
Language : 

COP8AME9 Datasheet, PDF (51/83 Pages) National Semiconductor (TI) – 8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEROM, Temperature Sensor,10-Bit A/D and Brownout Reset
15.0 A/D Converter (Continued)
ADCH3
0
1
1
1
1
1
1
1
1
TABLE 23. A/D Converter Channel Selection when the Multiplexor Output is Enabled
Select Bits
ADCH2
1
0
0
0
0
1
1
ADCH1
1
0
0
1
1
0
0
1
1
1
1
ADCH0
1
0
1
0
1
0
1
0
1
Mode Select
ADMOD = 0
Single Ended Mode
Channel No.
Temp Sensor (Note 14)
Not used
Not used
10
11
12
13
ADCH14 is
Mux Output
(Note 13)
ADCH15 is
A/D Input
(Note 13)
Mode Select
ADMOD = 1
Differential Mode
Channel Pairs (+, −)
Not used
Not used
Not used
10, 11 (Note 15)
11, 10 (Note 15)
Not Used
ADCH13 is
Mux Output −
(Notes 13, 15)
ADCH14 is
Mux Output +
(Notes 13, 15)
ADCH15 is
A/D Input
(Notes 13, 15)
Mux Output
Enabled
MUX
1
1
1
1
1
1
1
1
1
Note 13: These input channels are not available in this mode.
Note 14: Temperature Sensor cannot be used in this mode.
Note 15: Programmable Gain Amplifier must be bypassed when MUX = 1.
15.1.1.3 Mode Select
This 1-bit field is used to select the mode of operation (single
ended or differential) as shown in the following Table 24.
TABLE 24. A/D Conversion Mode Selection
ADMOD
Mode
0 Single Ended mode. This mode is required if
the temperature sensor is being selected.
1 Differential mode (programmable gain
amplifier must be bypassed)
15.1.1.4 Prescaler Select
This 1-bit field is used to select one of two prescaler clocks
for the A/D Converter. The following Table 25 shows the
various prescaler options. Care must be taken, when select-
ing this bit, to not exceed the maximum frequency of the A/D
converter.
TABLE 25. A/D Converter Clock Prescale
PSC
0
1
Clock Select
MCLK Divide by 1
MCLK Divide by 16
15.1.1.5 Busy Bit
The ADBSY bit of the ENAD register is used to control
starting and stopping of the A/D conversion. When ADBSY is
cleared, the prescale logic is disabled and the A/D clock is
turned off, drawing minimal power. Setting the ADBSY bit
starts the A/D clock and initiates a conversion based on the
values currently in the ENAD register. Normal completion of
an A/D conversion clears the ADBSY bit and turns off the A/D
Converter.
When changing the channel and gain of the programmable
gain amplifier, it is necessary to wait before performing an
A/D conversion. This due to the amplifier settling time. See
the section on the Programmable Gain Amplifier for these
settling times.
If the user wishes to restart a conversion which is already in
progress, this can be accomplished only by writing a zero to
the ADBSY bit to stop the current conversion and then by
writing a one to ADBSY to start a new conversion. This can
be done in two consecutive instructions.
All multiplexor input channels should be internally gated off
when ADBSY = 0, unless MUX =1 or the programmable gain
amplifier is enabled. When MUX =1 or the programmable
gain amplifier is enabled, the internal path through the mul-
tiplexor to the pin and the input path for the A/D Converter
should be enabled.
15.1.2 A/D Result Registers
There are two result registers for the A/D converter: the high
8 bits of the result and the low 2-bits of the result. The format
of these registers is shown in Tables 26, 27. Both registers
are read/write registers, but in normal operation, the hard-
ware writes the value into the register when the conversion is
complete and the software reads the value. Both registers
are undefined upon Reset. They hold the previous value until
a new conversion overwrites them. When reading ADRSTL,
bits 5-0 will read as 0.
51
www.national.com