Datasheet

MC9S08SG32 Data Sheet, Rev. 8
14 Freescale Semiconductor
Section Number Title Page
8.5 External Signal Description .......................................................................................................... 119
8.6 Memory Map ................................................................................................................................ 119
8.6.1 Register Descriptions...................................................................................................... 119
8.7 Functional Description .................................................................................................................. 121
Chapter 9
Analog-to-Digital Converter (S08ADC10V1)
9.1 Introduction ................................................................................................................................... 123
9.1.1 Channel Assignments...................................................................................................... 123
9.1.2 Analog Power and Ground Signal Names ...................................................................... 124
9.1.3 Alternate Clock............................................................................................................... 124
9.1.4 Hardware Trigger............................................................................................................ 124
9.1.5 Temperature Sensor ........................................................................................................ 124
9.1.6 Features........................................................................................................................... 127
9.1.7 ADC Module Block Diagram......................................................................................... 127
9.2 External Signal Description .......................................................................................................... 128
9.2.1 Analog Power (V
DDA
) .................................................................................................... 129
9.2.2 Analog Ground (V
SSA
)................................................................................................... 129
9.2.3 Voltage Reference High (V
REFH
) ................................................................................... 129
9.2.4 Voltage Reference Low (V
REFL
)..................................................................................... 129
9.2.5 Analog Channel Inputs (ADx)........................................................................................ 129
9.3 Register Definition ........................................................................................................................ 129
9.3.1 Status and Control Register 1 (ADCSC1) ...................................................................... 130
9.3.2 Status and Control Register 2 (ADCSC2) ...................................................................... 131
9.3.3 Data Result High Register (ADCRH)............................................................................. 132
9.3.4 Data Result Low Register (ADCRL).............................................................................. 132
9.3.5 Compare Value High Register (ADCCVH).................................................................... 133
9.3.6 Compare Value Low Register (ADCCVL) ..................................................................... 133
9.3.7 Configuration Register (ADCCFG)................................................................................ 133
9.3.8 Pin Control 1 Register (APCTL1) .................................................................................. 135
9.3.9 Pin Control 2 Register (APCTL2) .................................................................................. 136
9.3.10 Pin Control 3 Register (APCTL3) .................................................................................. 137
9.4 Functional Description .................................................................................................................. 138
9.4.1 Clock Select and Divide Control .................................................................................... 138
9.4.2 Input Select and Pin Control........................................................................................... 139
9.4.3 Hardware Trigger............................................................................................................ 139
9.4.4 Conversion Control......................................................................................................... 139
9.4.5 Automatic Compare Function......................................................................................... 142
9.4.6 MCU Wait Mode Operation............................................................................................ 143
9.4.7 MCU Stop3 Mode Operation.......................................................................................... 143
9.4.8 MCU Stop2 Mode Operation.......................................................................................... 144
9.5 Initialization Information .............................................................................................................. 144