MC9S08QG8 and MC9S08QG4 Data Sheet, Rev. 1.01
12
Freescale Semiconductor
Section Number
Title
Page
8.1.4
8.1.5
External Signal Description ..........................................................................................................109
Register Definition ........................................................................................................................109
8.3.1
ACMP Status and Control Register (ACMPSC) .............................................................110
Functional Description ..................................................................................................................111
Modes of Operation ........................................................................................................107
Block Diagram ................................................................................................................107
8.2
8.3
8.4
Chapter 9
Analog-to-Digital Converter (S08ADC10V1)
Introduction ...................................................................................................................................113
9.1.1
Module Configurations ...................................................................................................115
9.1.2
Features ...........................................................................................................................117
9.1.3
Block Diagram ................................................................................................................117
External Signal Description ..........................................................................................................118
9.2.1
Analog Power (V
DDAD
) ..................................................................................................119
9.2.2
Analog Ground (V
SSAD
) .................................................................................................119
9.2.3
Voltage Reference High (V
REFH
) ...................................................................................119
9.2.4
Voltage Reference Low (V
REFL
) .....................................................................................119
9.2.5
Analog Channel Inputs (ADx) ........................................................................................119
Register Definition ........................................................................................................................119
9.3.1
Status and Control Register 1 (ADCSC1) ......................................................................119
9.3.2
Status and Control Register 2 (ADCSC2) ......................................................................121
9.3.3
Data Result High Register (ADCRH) .............................................................................122
9.3.4
Data Result Low Register (ADCRL) ..............................................................................122
9.3.5
Compare Value High Register (ADCCVH) ....................................................................123
9.3.6
Compare Value Low Register (ADCCVL) .....................................................................123
9.3.7
Configuration Register (ADCCFG) ................................................................................123
9.3.8
Pin Control 1 Register (APCTL1) ..................................................................................125
9.3.9
Pin Control 2 Register (APCTL2) ..................................................................................126
9.3.10 Pin Control 3 Register (APCTL3) ..................................................................................127
Functional Description ..................................................................................................................128
9.4.1
Clock Select and Divide Control ....................................................................................128
9.4.2
Input Select and Pin Control ...........................................................................................129
9.4.3
Hardware Trigger ............................................................................................................129
9.4.4
Conversion Control .........................................................................................................129
9.4.5
Automatic Compare Function .........................................................................................132
9.4.6
MCU Wait Mode Operation ............................................................................................132
9.4.7
MCU Stop3 Mode Operation ..........................................................................................132
9.4.8
MCU Stop1 and Stop2 Mode Operation .........................................................................133
Initialization Information ..............................................................................................................133
9.5.1
ADC Module Initialization Example .............................................................................134
9.1
9.2
9.3
9.4
9.5