English
Language : 

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