Datasheet

MC9S08SG32 Data Sheet, Rev. 8
Freescale Semiconductor 13
Section Number Title Page
6.4.2 Edge and Level Sensitivity................................................................................................ 81
6.4.3 Pull-up/Pull-down Resistors ............................................................................................. 81
6.4.4 Pin Interrupt Initialization................................................................................................. 81
6.5 Pin Behavior in Stop Modes............................................................................................................ 81
6.6 Parallel I/O and Pin Control Registers ............................................................................................ 82
6.6.1 Port A Registers................................................................................................................ 83
6.6.2 Port B Registers ................................................................................................................ 87
6.6.3 Port C Registers ................................................................................................................ 91
Chapter 7
Central Processor Unit (S08CPUV3)
7.1 Introduction ..................................................................................................................................... 95
7.1.1 Features............................................................................................................................. 95
7.2 Programmer’s Model and CPU Registers ....................................................................................... 96
7.2.1 Accumulator (A)............................................................................................................... 96
7.2.2 Index Register (H:X)......................................................................................................... 96
7.2.3 Stack Pointer (SP)............................................................................................................. 97
7.2.4 Program Counter (PC) ...................................................................................................... 97
7.2.5 Condition Code Register (CCR)....................................................................................... 97
7.3 Addressing Modes........................................................................................................................... 99
7.3.1 Inherent Addressing Mode (INH)..................................................................................... 99
7.3.2 Relative Addressing Mode (REL)..................................................................................... 99
7.3.3 Immediate Addressing Mode (IMM)................................................................................ 99
7.3.4 Direct Addressing Mode (DIR) ........................................................................................ 99
7.3.5 Extended Addressing Mode (EXT) ................................................................................ 100
7.3.6 Indexed Addressing Mode .............................................................................................. 100
7.4 Special Operations......................................................................................................................... 101
7.4.1 Reset Sequence ............................................................................................................... 101
7.4.2 Interrupt Sequence .......................................................................................................... 101
7.4.3 Wait Mode Operation...................................................................................................... 102
7.4.4 Stop Mode Operation...................................................................................................... 102
7.4.5 BGND Instruction........................................................................................................... 103
7.5 HCS08 Instruction Set Summary .................................................................................................. 104
Chapter 8
Analog Comparator 5-V (S08ACMPV3)
8.1 Introduction ................................................................................................................................... 115
8.1.1 ACMP Configuration Information.................................................................................. 115
8.1.2 ACMP/TPM Configuration Information......................................................................... 115
8.2 Features ......................................................................................................................................... 117
8.3 Modes of Operation....................................................................................................................... 117
8.4 Block Diagram .............................................................................................................................. 117