English
Language : 

MC9S08QD4_07 Datasheet, PDF (13/202 Pages) Freescale Semiconductor, Inc – 8-Bit HCS08 Central Processor Unit (CPU)
9.5 Module Initialization ....................................................................................................................134
9.5.1 ICS Module Initialization Sequence ...............................................................................134
Chapter 10
Keyboard Interrupt (S08KBIV2)
10.1 Introduction ...................................................................................................................................137
10.1.1 Features ...........................................................................................................................139
10.1.2 Modes of Operation ........................................................................................................139
10.1.3 Block Diagram ................................................................................................................139
10.2 External Signal Description ..........................................................................................................140
10.3 Register Definition ........................................................................................................................140
10.3.1 KBI Status and Control Register (KBISC) .....................................................................140
10.3.2 KBI Pin Enable Register (KBIPE) ..................................................................................141
10.3.3 KBI Edge Select Register (KBIES) ................................................................................141
10.4 Functional Description ..................................................................................................................142
10.4.1 Edge Only Sensitivity .....................................................................................................142
10.4.2 Edge and Level Sensitivity .............................................................................................142
10.4.3 KBI Pullup/Pulldown Resistors ......................................................................................143
10.4.4 KBI Initialization ............................................................................................................143
Chapter 11
Timer/Pulse-Width Modulator (S08TPMV2)
11.1 Introduction ...................................................................................................................................145
11.1.1 TPM2 Configuration Information ...................................................................................145
11.1.2 TCLK1 and TCLK2 Configuration Information ............................................................145
11.1.3 Features ...........................................................................................................................147
11.1.4 Block Diagram ................................................................................................................147
11.2 External Signal Description ..........................................................................................................149
11.2.1 External TPM Clock Sources .........................................................................................149
11.2.2 TPMxCHn — TPMx Channel n I/O Pins .......................................................................149
11.3 Register Definition ........................................................................................................................149
11.3.1 Timer Status and Control Register (TPMxSC) ...............................................................150
11.3.2 Timer Counter Registers (TPMxCNTH:TPMxCNTL) ...................................................151
11.3.3 Timer Counter Modulo Registers (TPMxMODH:TPMxMODL) ..................................152
11.3.4 Timer Channel n Status and Control Register (TPMxCnSC) .........................................153
11.3.5 Timer Channel Value Registers (TPMxCnVH:TPMxCnVL) .........................................154
11.4 Functional Description ..................................................................................................................155
11.4.1 Counter ............................................................................................................................155
11.4.2 Channel Mode Selection .................................................................................................156
11.4.3 Center-Aligned PWM Mode ...........................................................................................158
11.5 TPM Interrupts ..............................................................................................................................159
11.5.1 Clearing Timer Interrupt Flags .......................................................................................159
11.5.2 Timer Overflow Interrupt Description ............................................................................159
11.5.3 Channel Event Interrupt Description ..............................................................................160
11.5.4 PWM End-of-Duty-Cycle Events ...................................................................................160
MC9S08QD4 Series MCU Data Sheet, Rev. 3
Freescale Semiconductor
13