English
Language : 

MC68HC05SR3D Datasheet, PDF (53/96 Pages) Freescale Semiconductor, Inc – Microcontrollers
7.2
ADC Status and Control Register (ADSCR)
The ADSCR is a read/write register containing status and control bits for the ADC.
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0E COCO ADRC ADON
CH2 CH1 CH0 000- -000
COCO — COnversion COmplete
1 (set) – An ADC conversion has completed; ADC Data Register ($0F)
contains valid conversion result.
0 (clear) – ADC conversion not completed.
This read-only status bit is set when a conversion is completed, indicating that the ADC Data
Register contains a valid result. This COCO bit is cleared either by a write to the ADSCR or a read
of the ADC Data Register. Once the COCO bit is cleared, a new conversion automatically starts.
If the COCO bit is not cleared, conversions are initiated every 32 cycles. In this continuous
conversion mode the ADC Data Register is refreshed with new data, every 32 cycles, and the
COCO bit remains set.
7
ADRC — ADC RC Oscillator Control
1 (set) – ADC uses RC oscillator as clock source.
0 (clear) – ADC uses internal processor clock as clock source.
The RC oscillator option must be used if the internal processor is running below 1MHz. A
stabilization time of typically 1ms is required when switching to the RC oscillator option.
ADON — ADC On
1 (set) – ADC is switched ON.
0 (clear) – ADC is switched OFF.
When the ADC is turned from OFF to ON, it requires a time tADON for the current sources to
stabilize. During this time ADC conversion results may be inaccurate. Switching the ADC off
disables the internal charge pump and RC oscillator (if selected by ADRC=1), and hence saving
power.
CH2:CH0 — Channel Select Bits
These three bits selects one of eight ADC channels for the conversion. Channels 0 to 3
correspond to inputs AN0-AN3 on port pins PD0-PD3 respectively. Channels 4 and 5 are the ADC
reference inputs VRH and VRL, on port pins PD4 and PD5 respectively. Channels 6 and 7 are used
for internal reference points. Table 7-1 shows the signals selected by the channel select bits.
MC68HC05SR3
ANALOG TO DIGITAL CONVERTER
TPG
Freescale
7-3