Datasheet

MC9S08AW60 Data Sheet, Rev 2
16 Freescale Semiconductor
Section Number Title Page
Chapter 14
Analog-to-Digital Converter (S08ADC10V1)
14.1 Overview .......................................................................................................................................233
14.2 Channel Assignments ....................................................................................................................233
14.2.1 Alternate Clock .............................................................................................................234
14.2.2 Hardware Trigger ..........................................................................................................234
14.2.3 Temperature Sensor ......................................................................................................235
14.2.4 Features .........................................................................................................................237
14.2.5 Block Diagram ..............................................................................................................237
14.3 External Signal Description ..........................................................................................................238
14.3.1 Analog Power (V
DDAD
) ................................................................................................239
14.3.2 Analog Ground (V
SSAD
) ..............................................................................................239
14.3.3 Voltage Reference High (V
REFH
) .................................................................................239
14.3.4 Voltage Reference Low (V
REFL
) ..................................................................................239
14.3.5 Analog Channel Inputs (ADx) ......................................................................................239
14.4 Register Definition ........................................................................................................................239
14.4.1 Status and Control Register 1 (ADC1SC1) ..................................................................239
14.4.2 Status and Control Register 2 (ADC1SC2) ..................................................................241
14.4.3 Data Result High Register (ADC1RH) ........................................................................242
14.4.4 Data Result Low Register (ADC1RL) ..........................................................................242
14.4.5 Compare Value High Register (ADC1CVH) ................................................................243
14.4.6 Compare Value Low Register (ADC1CVL) .................................................................243
14.4.7 Configuration Register (ADC1CFG) ............................................................................243
14.4.8 Pin Control 1 Register (APCTL1) ................................................................................245
14.4.9 Pin Control 2 Register (APCTL2) ................................................................................246
14.4.10 Pin Control 3 Register (APCTL3) ................................................................................247
14.5 Functional Description ..................................................................................................................248
14.5.1 Clock Select and Divide Control ..................................................................................248
14.5.2 Input Select and Pin Control .........................................................................................249
14.5.3 Hardware Trigger ..........................................................................................................249
14.5.4 Conversion Control .......................................................................................................249
14.5.5 Automatic Compare Function ......................................................................................252
14.5.6 MCU Wait Mode Operation .........................................................................................252
14.5.7 MCU Stop3 Mode Operation .......................................................................................252
14.5.8 MCU Stop1 and Stop2 Mode Operation ......................................................................253
14.6 Initialization Information ..............................................................................................................253
14.6.1 ADC Module Initialization Example ...........................................................................253
14.7 Application Information ................................................................................................................255
14.7.1 External Pins and Routing ............................................................................................255
14.7.2 Sources of Error ............................................................................................................257