English
Language : 

MC9S08AW60 Datasheet, PDF (13/320 Pages) Freescale Semiconductor, Inc – Microcontrollers
8.5 Initialization/Application Information ..........................................................................................145
8.5.1 Introduction ..................................................................................................................145
8.5.2 Example #1: External Crystal = 32 kHz, Bus Frequency = 4.19 MHz ........................147
8.5.3 Example #2: External Crystal = 4 MHz, Bus Frequency = 20 MHz ............................149
8.5.4 Example #3: No External Crystal Connection, 5.4 MHz Bus Frequency ....................151
8.5.5 Example #4: Internal Clock Generator Trim ................................................................153
Chapter 9
Keyboard Interrupt (S08KBIV1)
9.1 Introduction ...................................................................................................................................155
9.2 Keyboard Pin Sharing ....................................................................................................................155
9.3 Features .........................................................................................................................................156
9.3.1 KBI Block Diagram ......................................................................................................158
9.4 Register Definition ........................................................................................................................158
9.4.1 KBI Status and Control Register (KBI1SC) .................................................................159
9.4.2 KBI Pin Enable Register (KBI1PE) .............................................................................160
9.5 Functional Description ..................................................................................................................160
9.5.1 Pin Enables ...................................................................................................................160
9.5.2 Edge and Level Sensitivity ...........................................................................................160
9.5.3 KBI Interrupt Controls .................................................................................................161
Chapter 10
Timer/PWM (S08TPMV2)
10.1 Introduction ...................................................................................................................................163
10.2 Features .........................................................................................................................................163
10.2.1 Block Diagram ..............................................................................................................165
10.3 External Signal Description ..........................................................................................................166
10.3.1 External TPM Clock Sources .......................................................................................166
10.3.2 TPMxCHn — TPMx Channel n I/O Pins .....................................................................166
10.4 Register Definition ........................................................................................................................166
10.4.1 Timer x Status and Control Register (TPMxSC) ..........................................................167
10.4.2 Timer x Counter Registers (TPMxCNTH:TPMxCNTL) .............................................168
10.4.3 Timer x Counter Modulo Registers (TPMxMODH:TPMxMODL) .............................169
10.4.4 Timer x Channel n Status and Control Register (TPMxCnSC) ....................................170
10.4.5 Timer x Channel Value Registers (TPMxCnVH:TPMxCnVL) ....................................171
10.5 Functional Description ..................................................................................................................172
10.5.1 Counter .........................................................................................................................172
10.5.2 Channel Mode Selection ...............................................................................................173
10.5.3 Center-Aligned PWM Mode ........................................................................................175
10.6 TPM Interrupts ..............................................................................................................................176
10.6.1 Clearing Timer Interrupt Flags .....................................................................................176
10.6.2 Timer Overflow Interrupt Description ..........................................................................176
10.6.3 Channel Event Interrupt Description ............................................................................177
10.6.4 PWM End-of-Duty-Cycle Events .................................................................................177
MC9S08AW60 Data Sheet, Rev.1.0
Freescale Semiconductor
13