SlideShare a Scribd company logo
1 of 343
Download to read offline
Freescale Semiconductor
Addendum
Document Number: QFN_Addendum
Rev. 0, 07/2014
© Freescale Semiconductor, Inc., 2014. All rights reserved.
This addendum provides the changes to the 98A case outline numbers for products covered in this book.
Case outlines were changed because of the migration from gold wire to copper wire in some packages. See
the table below for the old (gold wire) package versus the new (copper wire) package.
To view the new drawing, go to Freescale.com and search on the new 98A package number for your
device.
For more information about QFN package use, see EB806: Electrical Connection Recommendations for
the Exposed Pad on QFN and DFN Packages.
Addendum for New QFN
Package Migration
Addendum for New QFN Package Migration, Rev. 0
Freescale Semiconductor2
Part Number Package Description
Original (gold wire)
package document number
Current (copper wire)
package document number
MC68HC908JW32 48 QFN 98ARH99048A 98ASA00466D
MC9S08AC16
MC9S908AC60
MC9S08AC128
MC9S08AW60
MC9S08GB60A
MC9S08GT16A
MC9S08JM16
MC9S08JM60
MC9S08LL16
MC9S08QE128
MC9S08QE32
MC9S08RG60
MCF51CN128
MC9RS08LA8 48 QFN 98ARL10606D 98ASA00466D
MC9S08GT16A 32 QFN 98ARH99035A 98ASA00473D
MC9S908QE32 32 QFN 98ARE10566D 98ASA00473D
MC9S908QE8 32 QFN 98ASA00071D 98ASA00736D
MC9S08JS16 24 QFN 98ARL10608D 98ASA00734D
MC9S08QB8
MC9S08QG8 24 QFN 98ARL10605D 98ASA00474D
MC9S08SH8 24 QFN 98ARE10714D 98ASA00474D
MC9RS08KB12 24 QFN 98ASA00087D 98ASA00602D
MC9S08QG8 16 QFN 98ARE10614D 98ASA00671D
MC9RS08KB12 8 DFN 98ARL10557D 98ASA00672D
MC9S08QG8
MC9RS08KA2 6 DFN 98ARL10602D 98ASA00735D
© Freescale Semiconductor, Inc., 2012. All rights reserved.
Freescale Semiconductor MC9S08SH8
Rev. 3.1, 05/2012
This is the MC9S08SH8 datasheet set consisting of the following files:
• MC9S08SH8 Datasheet Addendum, Rev 1
• MC9S08SH8 Datasheet, Rev 3
MC9S08SH8 Datasheet
© Freescale Semiconductor, Inc., 2012. All rights reserved.
Freescale Semiconductor
Datasheet Addendum
MC9S08SH8AD
Rev. 1, 05/2012
Table of ContentsThis addendum describes corrections or updates to the
MC9S08SH8 Datasheet, file named as MC9S08SH8.
Please check our website at http://www.freescale.com/,
for the latest updates.
The current version available of the MC9S08SH8
Datasheet is Revision 3.0.
MC9S08SH8 Datasheet Addendum
1 Addendum for Revision 3.0. . . . . . . . . . . . . . . . . . 2
2 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . 2
MC9S08SH8AD, Rev. 1
Addendum for Revision 3.0
Freescale Semiconductor2
1 Addendum for Revision 3.0
2 Revision History
Table 2 provides a revision history for this document.
Table 1. MC9S08SH8 Rev 3.0 Addendum
Location Description
Section “Control Timing” for
Appendix A ”Electrical
Characteristics”
In “Control Timing” table, changed minimum value of “'Internal low power oscillator period”
parameter from 800 µs to 700 µs. This value is under 5V VDD, -40 o
C to 125 o
C temperature
range condition.
Table 2. Revision History Table
Rev. Number Substantive Changes Date of Release
1.0 Initial release. Changed minimum value of “'Internal low power oscillator period”
parameter from 800 µs to 700 µs, in “Control Timing” table.
05/2012
How to Reach Us:
Home Page:
www.freescale.com
Web Support:
http://www.freescale.com/support
USA/Europe or Locations Not Listed:
Freescale Semiconductor, Inc.
Technical Information Center, EL516
2100 East Elliot Road
Tempe, Arizona 85284
+1-800-521-6274 or +1-480-768-2130
www.freescale.com/support
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH
Technical Information Center
Schatzbogen 7
81829 Muenchen, Germany
+44 1296 380 456 (English)
+46 8 52200080 (English)
+49 89 92103 559 (German)
+33 1 69 35 48 48 (French)
www.freescale.com/support
Japan:
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
Japan
0120 191014 or +81 3 5437 9125
support.japan@freescale.com
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
support.asia@freescale.com
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
1-800-441-2447 or 303-675-2140
Fax: 303-675-2150
LDCForFreescaleSemiconductor@hibbertgroup.com
Information in this document is provided solely to enable system and
software implementers to use Freescale Semiconductor products. There are
no express or implied copyright licenses granted hereunder to design or
fabricate any integrated circuits or integrated circuits based on the
information in this document.
Freescale Semiconductor reserves the right to make changes without further
notice to any products herein. Freescale Semiconductor makes no warranty,
representation or guarantee regarding the suitability of its products for any
particular purpose, nor does Freescale Semiconductor assume any liability
arising out of the application or use of any product or circuit, and specifically
disclaims any and all liability, including without limitation consequential or
incidental damages. “Typical” parameters that may be provided in Freescale
Semiconductor data sheets and/or specifications can and do vary in different
applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer
application by customer’s technical experts. Freescale Semiconductor does
not convey any license under its patent rights nor the rights of others.
Freescale Semiconductor products are not designed, intended, or authorized
for use as components in systems intended for surgical implant into the body,
or other applications intended to support or sustain life, or for any other
application in which the failure of the Freescale Semiconductor product could
create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended
or unauthorized application, Buyer shall indemnify and hold Freescale
Semiconductor and its officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs, damages, and expenses, and
reasonable attorney fees arising out of, directly or indirectly, any claim of
personal injury or death associated with such unintended or unauthorized
use, even if such claim alleges that Freescale Semiconductor was negligent
regarding the design or manufacture of the part.
Freescale™ and the
Freescale logo are trademarks of Freescale Semiconductor, Inc. All other
product or service names are the property
of their respective owners.© Freescale Semiconductor, Inc. 2012. All rights
reserved.
MC9S08SH8AD
Rev. 1
05/2012
HCS08
Microcontrollers
freescale.com
a
MC9S08SH8
MC9S08SH4
Data Sheet
MC9S08SH8
Rev. 3
6/2008
8-Bit HCS08 Central Processor Unit (CPU)
• 40-MHz HCS08 CPU (central processor unit)
• HC08 instruction set with added BGND instruction
• Support for up to 32 interrupt/reset sources
On-Chip Memory
• FLASH read/program/erase over full operating
voltage and temperature
• Random-access memory (RAM)
Power-Saving Modes
• Two very low power stop modes
• Reduced power wait mode
• Very low power real time interrupt for use in run,
wait, and stop
Clock Source Options
• Oscillator (XOSC) — Loop-control Pierce
oscillator; Crystal or ceramic resonator range of
31.25 kHz to 38.4 kHz or 1 MHz to 16 MHz
• Internal Clock Source (ICS) — Internal clock
source module containing a frequency-locked
loop (FLL) controlled by internal or external
reference; precision trimming of internal reference
allows 0.2% resolution and 2% deviation over
temperature and voltage; supports bus
frequencies from 2 MHz to 20 MHz.
System Protection
• Watchdog computer operating properly (COP)
reset with opti/n to run from dedicated 1-kHz
internal clock source or bus clock
• Low-voltage detection with reset or interrupt;
selectable trip points
• Illegal opcode detection with reset
• Illegal address detection with reset
• FLASH block protect
Development Support
• Single-wire background debug interface
• Breakpoint capability to allow single breakpoint
setting during in-circuit debugging (pluss two
more breakpoints in on-chip debug module)
• On-chip, in-circuit emulation (ICE) debug module
containing two comparators and nine trigger
modes. Eight deep FIFO for storing
change-of-flow address and event-only data.
Debug module supports both tag and force
breakpoints.
Peripherals
• ADC — 12-channel, 10-bit resolution, 2.5 μs
conversion time, automatic compare function,
temperature sensor, internal bandgap reference
channel; runs in stop3
• ACMP — Analog comparator with selectable
interrupt on rising, falling, or either edge of
comparator output; compare option to fixed
internal bandgap reference voltage; output can be
optionally routed to TPM module; runs in stop3
• SCI — Full duplex non-return to zero (NRZ); LIN
master extended break generation; LIN slave
extended break detection; wake up on active edge
• SPI — Full-duplex or single-wire bidirectional;
Double-buffered transmit and receive; Master or
Slave mode; MSB-first or LSB-first shifting
• IIC — Up to 100 kbps with maximum bus loading;
Multi-master operation; Programmable slave
address; Interrupt driven byte-by-byte data
transfer; supports broadcast mode and 10-bit
addressing
• MTIM — 8-bit modulo counter with 8-bit prescaler
and overflow interrupt
• TPMx — Two 2-channel timer pwm modules
(TPM1, TPM2); Selectable input capture, output
compare, or buffered edge- or center-aligned
PWM on each channel
• RTC — (Real-time counter) 8-bit modulus counter
with binary or decimal based prescaler; External
clock source for precise time base, time-of-day,
calendar or task scheduling functions; Free
running on-chip low power oscillator (1 kHz) for
cyclic wake-up without external components, runs
in all MCU modes
Input/Output
• 17 general purpose I/O pins (GPIOs) and 1
output-only pin
• 8 interrupt pins with selectable polarity
• Ganged output option for PTB[5:2] and PTC[3:0];
allows single write to change state of multiple pins
• Hysteresis and configurable pull up device on all
input pins; Configurable slew rate and drive
strength on all output pins.
Package Options
• 24-QFN, 20-TSSOP, 20-SOIC, 20-PDIP,
16-TSSOP, 8-SOIC
MC9S08SH8 Features
MC9S08SH8 Data Sheet
Covers MC9S08SH8
MC9S08SH4
MC9S08SH8
Rev. 3
6/2008
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
© Freescale Semiconductor, Inc., 2007-2008. All rights reserved.
MC9S08SH8 MCU Series Data Sheet, Rev. 3
6 Freescale Semiconductor
Revision History
To provide the most up-to-date information, the revision of our documents on the World Wide Web will be
the most current. Your printed copy may be an earlier revision. To verify you have the latest information
available, refer to:
http://freescale.com/
The following revision history table summarizes changes contained in this document.
Revision
Number
Revision
Date
Description of Changes
0.01 3/08/2006 Initial review copy
1 11/2007
Updated Electricals and incorporated revisions from Project sync issues: 2394,
2600, 2601, and 2764.
2 3/2008
Corrected SPI module to be version 3. Incorporated fixes for Project Sync
issues: 2394, 2600, 2601, 2764, 3237, and 3279; as well as, ADC Temperature
Sensor issues 3331 and 3335. Adjusted Features page leading and fixed minor
grammatical errors. Added 20-SOIC package option for the C temp only. Cor-
rected package drawing number for 24-QFN.
3 6/2008 Added ICS over Termperature graph to Electricals. Resolved final TBDs.
© Freescale Semiconductor, Inc., 2007-2008. All rights reserved.
This product incorporates SuperFlash®
Technology licensed from SST.
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 7
List of Chapters
Chapter 1 Device Overview ......................................................................19
Chapter 2 Pins and Connections.............................................................23
Chapter 3 Modes of Operation.................................................................31
Chapter 4 Memory.....................................................................................37
Chapter 5 Resets, Interrupts, and General System Control..................59
Chapter 6 Parallel Input/Output Control..................................................75
Chapter 7 Central Processor Unit (S08CPUV2)......................................93
Chapter 8 Analog Comparator 5-V (S08ACMPV2)................................113
Chapter 9 Analog-to-Digital Converter (S08ADCV1)............................121
Chapter 10 Internal Clock Source (S08ICSV2)........................................149
Chapter 11 Inter-Integrated Circuit (S08IICV2) .......................................163
Chapter 12 Modulo Timer (S08MTIMV1)..................................................183
Chapter 13 Real-Time Counter (S08RTCV1) ...........................................193
Chapter 14 Serial Communications Interface (S08SCIV4).....................203
Chapter 15 Serial Peripheral Interface (S08SPIV3) ................................223
Chapter 16 Timer Pulse-Width Modulator (S08TPMV3).........................239
Chapter 17 Development Support ...........................................................267
Appendix A Electrical Characteristics......................................................289
Appendix B Ordering Information and Mechanical Drawings................319
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 9
Contents
Section Number Title Page
Chapter 1
Device Overview
1.1 Devices in the MC9S08SH8 Series .................................................................................................19
1.2 MCU Block Diagram ......................................................................................................................20
1.3 System Clock Distribution ..............................................................................................................22
Chapter 2
Pins and Connections
2.1 Device Pin Assignment ...................................................................................................................23
2.2 Recommended System Connections ...............................................................................................24
2.2.1 Power ................................................................................................................................25
2.2.2 Oscillator (XOSC) ............................................................................................................26
2.2.3 RESET ..............................................................................................................................26
2.2.4 Background / Mode Select (BKGD/MS) ..........................................................................27
2.2.5 General-Purpose I/O and Peripheral Ports ........................................................................27
Chapter 3
Modes of Operation
3.1 Introduction .....................................................................................................................................31
3.2 Features ...........................................................................................................................................31
3.3 Run Mode ........................................................................................................................................31
3.4 Active Background Mode ................................................................................................................31
3.5 Wait Mode .......................................................................................................................................32
3.6 Stop Modes ......................................................................................................................................32
3.6.1 Stop3 Mode .......................................................................................................................33
3.6.2 Stop2 Mode .......................................................................................................................34
3.6.3 On-Chip Peripheral Modules in Stop Modes ....................................................................34
Chapter 4
Memory
4.1 MC9S08SH8 Memory Map ............................................................................................................37
4.2 Reset and Interrupt Vector Assignments .........................................................................................38
4.3 Register Addresses and Bit Assignments ........................................................................................39
4.4 RAM ................................................................................................................................................46
4.5 FLASH ............................................................................................................................................46
4.5.1 Features .............................................................................................................................47
4.5.2 Program and Erase Times .................................................................................................47
MC9S08SH8 MCU Series Data Sheet, Rev. 3
10 Freescale Semiconductor
Section Number Title Page
4.5.3 Program and Erase Command Execution .........................................................................48
4.5.4 Burst Program Execution ..................................................................................................49
4.5.5 Access Errors ....................................................................................................................51
4.5.6 FLASH Block Protection ..................................................................................................51
4.5.7 Vector Redirection ............................................................................................................52
4.6 Security ............................................................................................................................................52
4.7 FLASH Registers and Control Bits .................................................................................................53
4.7.1 FLASH Clock Divider Register (FCDIV) ........................................................................54
4.7.2 FLASH Options Register (FOPT and NVOPT) ................................................................55
4.7.3 FLASH Configuration Register (FCNFG) ........................................................................56
4.7.4 FLASH Protection Register (FPROT and NVPROT) .......................................................56
4.7.5 FLASH Status Register (FSTAT) ......................................................................................57
4.7.6 FLASH Command Register (FCMD) ...............................................................................58
Chapter 5
Resets, Interrupts, and General System Control
5.1 Introduction .....................................................................................................................................59
5.2 Features ...........................................................................................................................................59
5.3 MCU Reset ......................................................................................................................................59
5.4 Computer Operating Properly (COP) Watchdog .............................................................................60
5.5 Interrupts .........................................................................................................................................61
5.5.1 Interrupt Stack Frame .......................................................................................................62
5.5.2 External Interrupt Request Pin (IRQ) ...............................................................................63
5.5.3 Interrupt Vectors, Sources, and Local Masks ....................................................................63
5.6 Low-Voltage Detect (LVD) System ................................................................................................65
5.6.1 Power-On Reset Operation ...............................................................................................65
5.6.2 Low-Voltage Detection (LVD) Reset Operation ...............................................................65
5.6.3 Low-Voltage Warning (LVW) Interrupt Operation ...........................................................65
5.7 Reset, Interrupt, and System Control Registers and Control Bits ...................................................65
5.7.1 Interrupt Pin Request Status and Control Register (IRQSC) ............................................66
5.7.2 System Reset Status Register (SRS) .................................................................................67
5.7.3 System Background Debug Force Reset Register (SBDFR) ............................................68
5.7.4 System Options Register 1 (SOPT1) ................................................................................69
5.7.5 System Options Register 2 (SOPT2) ................................................................................70
5.7.6 System Device Identification Register (SDIDH, SDIDL) ................................................71
5.7.7 System Power Management Status and Control 1 Register (SPMSC1) ...........................72
5.7.8 System Power Management Status and Control 2 Register (SPMSC2) ...........................73
Chapter 6
Parallel Input/Output Control
6.1 Port Data and Data Direction ..........................................................................................................75
6.2 Pull-up, Slew Rate, and Drive Strength ...........................................................................................76
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 11
Section Number Title Page
6.3 Ganged Output ................................................................................................................................77
6.4 Pin Interrupts ...................................................................................................................................78
6.4.1 Edge Only Sensitivity .......................................................................................................78
6.4.2 Edge and Level Sensitivity ................................................................................................78
6.4.3 Pull-up/Pull-down Resistors .............................................................................................79
6.4.4 Pin Interrupt Initialization .................................................................................................79
6.5 Pin Behavior in Stop Modes ............................................................................................................79
6.6 Parallel I/O and Pin Control Registers ............................................................................................79
6.6.1 Port A Registers ................................................................................................................80
6.6.2 Port B Registers ................................................................................................................85
6.6.3 Port C Registers ................................................................................................................89
Chapter 7
Central Processor Unit (S08CPUV2)
7.1 Introduction .....................................................................................................................................93
7.1.1 Features .............................................................................................................................93
7.2 Programmer’s Model and CPU Registers .......................................................................................94
7.2.1 Accumulator (A) ...............................................................................................................94
7.2.2 Index Register (H:X) .........................................................................................................94
7.2.3 Stack Pointer (SP) .............................................................................................................95
7.2.4 Program Counter (PC) ......................................................................................................95
7.2.5 Condition Code Register (CCR) .......................................................................................95
7.3 Addressing Modes ...........................................................................................................................97
7.3.1 Inherent Addressing Mode (INH) .....................................................................................97
7.3.2 Relative Addressing Mode (REL) .....................................................................................97
7.3.3 Immediate Addressing Mode (IMM) ................................................................................97
7.3.4 Direct Addressing Mode (DIR) ........................................................................................97
7.3.5 Extended Addressing Mode (EXT) ..................................................................................98
7.3.6 Indexed Addressing Mode ................................................................................................98
7.4 Special Operations ...........................................................................................................................99
7.4.1 Reset Sequence .................................................................................................................99
7.4.2 Interrupt Sequence ............................................................................................................99
7.4.3 Wait Mode Operation ......................................................................................................100
7.4.4 Stop Mode Operation ......................................................................................................100
7.4.5 BGND Instruction ...........................................................................................................101
7.5 HCS08 Instruction Set Summary ..................................................................................................102
Chapter 8
Analog Comparator 5-V (S08ACMPV2)
8.1 Introduction ...................................................................................................................................113
8.1.1 ACMP Configuration Information ..................................................................................113
8.1.2 ACMP in Stop3 Mode .....................................................................................................113
MC9S08SH8 MCU Series Data Sheet, Rev. 3
12 Freescale Semiconductor
Section Number Title Page
8.1.3 ACMP/TPM Configuration Information .........................................................................113
8.1.4 Features ...........................................................................................................................115
8.1.5 Modes of Operation ........................................................................................................115
8.1.6 Block Diagram ................................................................................................................115
8.2 External Signal Description ..........................................................................................................117
8.3 Memory Map ................................................................................................................................117
8.3.1 Register Descriptions ......................................................................................................117
8.4 Functional Description ..................................................................................................................119
Chapter 9
Analog-to-Digital Converter (S08ADCV1)
9.1 Introduction ...................................................................................................................................121
9.1.1 Channel Assignments ......................................................................................................121
9.1.2 Alternate Clock ...............................................................................................................122
9.1.3 Hardware Trigger ............................................................................................................122
9.1.4 Temperature Sensor ........................................................................................................122
9.1.5 Features ...........................................................................................................................125
9.1.6 Block Diagram ................................................................................................................125
9.2 External Signal Description ..........................................................................................................126
9.2.1 Analog Power (VDDAD) ..................................................................................................127
9.2.2 Analog Ground (VSSAD) .................................................................................................127
9.2.3 Voltage Reference High (VREFH) ...................................................................................127
9.2.4 Voltage Reference Low (VREFL) .....................................................................................127
9.2.5 Analog Channel Inputs (ADx) ........................................................................................127
9.3 Register Definition ........................................................................................................................127
9.3.1 Status and Control Register 1 (ADCSC1) ......................................................................127
9.3.2 Status and Control Register 2 (ADCSC2) ......................................................................129
9.3.3 Data Result High Register (ADCRH) .............................................................................130
9.3.4 Data Result Low Register (ADCRL) ..............................................................................130
9.3.5 Compare Value High Register (ADCCVH) ....................................................................131
9.3.6 Compare Value Low Register (ADCCVL) .....................................................................131
9.3.7 Configuration Register (ADCCFG) ................................................................................131
9.3.8 Pin Control 1 Register (APCTL1) ..................................................................................133
9.3.9 Pin Control 2 Register (APCTL2) ..................................................................................134
9.3.10 Pin Control 3 Register (APCTL3) ..................................................................................135
9.4 Functional Description ..................................................................................................................136
9.4.1 Clock Select and Divide Control ....................................................................................136
9.4.2 Input Select and Pin Control ...........................................................................................137
9.4.3 Hardware Trigger ............................................................................................................137
9.4.4 Conversion Control .........................................................................................................137
9.4.5 Automatic Compare Function .........................................................................................140
9.4.6 MCU Wait Mode Operation ............................................................................................140
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 13
Section Number Title Page
9.4.7 MCU Stop3 Mode Operation ..........................................................................................140
9.4.8 MCU Stop1 and Stop2 Mode Operation .........................................................................141
9.5 Initialization Information ..............................................................................................................141
9.5.1 ADC Module Initialization Example .............................................................................141
9.6 Application Information ................................................................................................................143
9.6.1 External Pins and Routing ..............................................................................................143
9.6.2 Sources of Error ..............................................................................................................145
Chapter 10
Internal Clock Source (S08ICSV2)
10.1 Introduction ...................................................................................................................................149
10.1.1 Module Configuration .....................................................................................................149
10.1.2 Features ...........................................................................................................................151
10.1.3 Block Diagram ................................................................................................................151
10.1.4 Modes of Operation ........................................................................................................152
10.2 External Signal Description ..........................................................................................................153
10.3 Register Definition ........................................................................................................................153
10.3.1 ICS Control Register 1 (ICSC1) .....................................................................................154
10.3.2 ICS Control Register 2 (ICSC2) .....................................................................................155
10.3.3 ICS Trim Register (ICSTRM) .........................................................................................156
10.3.4 ICS Status and Control (ICSSC) .....................................................................................156
10.4 Functional Description ..................................................................................................................157
10.4.1 Operational Modes ..........................................................................................................157
10.4.2 Mode Switching ..............................................................................................................159
10.4.3 Bus Frequency Divider ...................................................................................................160
10.4.4 Low Power Bit Usage .....................................................................................................160
10.4.5 Internal Reference Clock ................................................................................................160
10.4.6 Optional External Reference Clock ................................................................................160
10.4.7 Fixed Frequency Clock ...................................................................................................161
Chapter 11
Inter-Integrated Circuit (S08IICV2)
11.1 Introduction ...................................................................................................................................163
11.1.1 Module Configuration .....................................................................................................163
11.1.2 Features ...........................................................................................................................165
11.1.3 Modes of Operation ........................................................................................................165
11.1.4 Block Diagram ................................................................................................................166
11.2 External Signal Description ..........................................................................................................166
11.2.1 SCL — Serial Clock Line ...............................................................................................166
11.2.2 SDA — Serial Data Line ................................................................................................166
11.3 Register Definition ........................................................................................................................166
11.3.1 IIC Address Register (IICA) ...........................................................................................167
MC9S08SH8 MCU Series Data Sheet, Rev. 3
14 Freescale Semiconductor
Section Number Title Page
11.3.2 IIC Frequency Divider Register (IICF) ...........................................................................167
11.3.3 IIC Control Register (IICC1) ..........................................................................................170
11.3.4 IIC Status Register (IICS) ...............................................................................................171
11.3.5 IIC Data I/O Register (IICD) ..........................................................................................172
11.3.6 IIC Control Register 2 (IICC2) .......................................................................................172
11.4 Functional Description ..................................................................................................................173
11.4.1 IIC Protocol .....................................................................................................................173
11.4.2 10-bit Address .................................................................................................................177
11.4.3 General Call Address ......................................................................................................178
11.5 Resets ............................................................................................................................................178
11.6 Interrupts .......................................................................................................................................178
11.6.1 Byte Transfer Interrupt ....................................................................................................178
11.6.2 Address Detect Interrupt .................................................................................................178
11.6.3 Arbitration Lost Interrupt ................................................................................................178
11.7 Initialization/Application Information ..........................................................................................180
Chapter 12
Modulo Timer (S08MTIMV1)
12.1 Introduction ...................................................................................................................................183
12.1.1 MTIM Configuration Information ..................................................................................183
12.1.2 Features ...........................................................................................................................185
12.1.3 Modes of Operation ........................................................................................................185
12.1.4 Block Diagram ................................................................................................................186
12.2 External Signal Description ..........................................................................................................186
12.3 Register Definition ........................................................................................................................187
12.3.1 MTIM Status and Control Register (MTIMSC) .............................................................188
12.3.2 MTIM Clock Configuration Register (MTIMCLK) .......................................................189
12.3.3 MTIM Counter Register (MTIMCNT) ...........................................................................190
12.3.4 MTIM Modulo Register (MTIMMOD) ..........................................................................190
12.4 Functional Description ..................................................................................................................191
12.4.1 MTIM Operation Example .............................................................................................192
Chapter 13
Real-Time Counter (S08RTCV1)
13.1 Introduction ...................................................................................................................................193
13.1.1 Features ...........................................................................................................................195
13.1.2 Modes of Operation ........................................................................................................195
13.1.3 Block Diagram ................................................................................................................196
13.2 External Signal Description ..........................................................................................................196
13.3 Register Definition ........................................................................................................................196
13.3.1 RTC Status and Control Register (RTCSC) ....................................................................197
13.3.2 RTC Counter Register (RTCCNT) ..................................................................................198
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 15
Section Number Title Page
13.3.3 RTC Modulo Register (RTCMOD) ................................................................................198
13.4 Functional Description ..................................................................................................................198
13.4.1 RTC Operation Example .................................................................................................199
13.5 Initialization/Application Information ..........................................................................................200
Chapter 14
Serial Communications Interface (S08SCIV4)
14.1 Introduction ...................................................................................................................................203
14.1.1 Features ...........................................................................................................................205
14.1.2 Modes of Operation ........................................................................................................205
14.1.3 Block Diagram ................................................................................................................206
14.2 Register Definition ........................................................................................................................208
14.2.1 SCI Baud Rate Registers (SCIxBDH, SCIxBDL) ..........................................................208
14.2.2 SCI Control Register 1 (SCIxC1) ...................................................................................209
14.2.3 SCI Control Register 2 (SCIxC2) ...................................................................................210
14.2.4 SCI Status Register 1 (SCIxS1) ......................................................................................211
14.2.5 SCI Status Register 2 (SCIxS2) ......................................................................................213
14.2.6 SCI Control Register 3 (SCIxC3) ...................................................................................214
14.2.7 SCI Data Register (SCIxD) .............................................................................................215
14.3 Functional Description ..................................................................................................................215
14.3.1 Baud Rate Generation .....................................................................................................215
14.3.2 Transmitter Functional Description ................................................................................216
14.3.3 Receiver Functional Description .....................................................................................217
14.3.4 Interrupts and Status Flags ..............................................................................................219
14.3.5 Additional SCI Functions ...............................................................................................220
Chapter 15
Serial Peripheral Interface (S08SPIV3)
15.1 Introduction ...................................................................................................................................223
15.1.1 Features ...........................................................................................................................225
15.1.2 Block Diagrams ..............................................................................................................225
15.1.3 SPI Baud Rate Generation ..............................................................................................227
15.2 External Signal Description ..........................................................................................................228
15.2.1 SPSCK — SPI Serial Clock ............................................................................................228
15.2.2 MOSI — Master Data Out, Slave Data In ......................................................................228
15.2.3 MISO — Master Data In, Slave Data Out ......................................................................228
15.2.4 SS — Slave Select ...........................................................................................................228
15.3 Modes of Operation .......................................................................................................................229
15.3.1 SPI in Stop Modes ..........................................................................................................229
15.4 Register Definition ........................................................................................................................229
15.4.1 SPI Control Register 1 (SPIC1) ......................................................................................229
15.4.2 SPI Control Register 2 (SPIC2) ......................................................................................230
MC9S08SH8 MCU Series Data Sheet, Rev. 3
16 Freescale Semiconductor
Section Number Title Page
15.4.3 SPI Baud Rate Register (SPIBR) ....................................................................................231
15.4.4 SPI Status Register (SPIS) ..............................................................................................232
15.4.5 SPI Data Register (SPID) ................................................................................................233
15.5 Functional Description ..................................................................................................................234
15.5.1 SPI Clock Formats ..........................................................................................................234
15.5.2 SPI Interrupts ..................................................................................................................237
15.5.3 Mode Fault Detection .....................................................................................................237
Chapter 16
Timer Pulse-Width Modulator (S08TPMV3)
16.1 Introduction ...................................................................................................................................239
16.1.1 ACMP/TPM Configuration Information .........................................................................239
16.1.2 TPM Configuration Information .....................................................................................239
16.1.3 Features ...........................................................................................................................241
16.1.4 Modes of Operation ........................................................................................................241
16.1.5 Block Diagram ................................................................................................................242
16.2 Signal Description .........................................................................................................................244
16.2.1 Detailed Signal Descriptions ...........................................................................................244
16.3 Register Definition ........................................................................................................................248
16.3.1 TPM Status and Control Register (TPMxSC) ................................................................248
16.3.2 TPM-Counter Registers (TPMxCNTH:TPMxCNTL) ....................................................249
16.3.3 TPM Counter Modulo Registers (TPMxMODH:TPMxMODL) ....................................250
16.3.4 TPM Channel n Status and Control Register (TPMxCnSC) ..........................................251
16.3.5 TPM Channel Value Registers (TPMxCnVH:TPMxCnVL) ..........................................253
16.4 Functional Description ..................................................................................................................254
16.4.1 Counter ............................................................................................................................255
16.4.2 Channel Mode Selection .................................................................................................256
16.5 Reset Overview .............................................................................................................................260
16.5.1 General ............................................................................................................................260
16.5.2 Description of Reset Operation .......................................................................................260
16.6 Interrupts .......................................................................................................................................260
16.6.1 General ............................................................................................................................260
16.6.2 Description of Interrupt Operation ..................................................................................260
16.7 The Differences from TPM v2 to TPM v3 ....................................................................................262
Chapter 17
Development Support
17.1 Introduction ...................................................................................................................................267
17.1.1 Forcing Active Background ............................................................................................267
17.1.2 Features ...........................................................................................................................268
17.2 Background Debug Controller (BDC) ..........................................................................................268
17.2.1 BKGD Pin Description ...................................................................................................269
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 17
Section Number Title Page
17.2.2 Communication Details ..................................................................................................270
17.2.3 BDC Commands .............................................................................................................274
17.2.4 BDC Hardware Breakpoint .............................................................................................276
17.3 On-Chip Debug System (DBG) ....................................................................................................277
17.3.1 Comparators A and B ......................................................................................................277
17.3.2 Bus Capture Information and FIFO Operation ...............................................................277
17.3.3 Change-of-Flow Information ..........................................................................................278
17.3.4 Tag vs. Force Breakpoints and Triggers .........................................................................278
17.3.5 Trigger Modes .................................................................................................................279
17.3.6 Hardware Breakpoints ....................................................................................................281
17.4 Register Definition ........................................................................................................................281
17.4.1 BDC Registers and Control Bits .....................................................................................281
17.4.2 System Background Debug Force Reset Register (SBDFR) ..........................................283
17.4.3 DBG Registers and Control Bits .....................................................................................284
Appendix A
Electrical Characteristics
A.1 Introduction ...................................................................................................................................289
A.2 Parameter Classification ................................................................................................................289
A.3 Absolute Maximum Ratings ..........................................................................................................289
A.4 Thermal Characteristics .................................................................................................................291
A.5 ESD Protection and Latch-Up Immunity ......................................................................................293
A.6 DC Characteristics .........................................................................................................................294
A.7 Supply Current Characteristics ......................................................................................................298
A.8 External Oscillator (XOSC) Characteristics .................................................................................301
A.9 Internal Clock Source (ICS) Characteristics .................................................................................303
A.10 Analog Comparator (ACMP) Electricals ......................................................................................305
A.11 ADC Characteristics ......................................................................................................................306
A.12 AC Characteristics .........................................................................................................................309
A.12.1 Control Timing ...............................................................................................................309
A.12.2 TPM/MTIM Module Timing ..........................................................................................311
A.12.3 SPI ...................................................................................................................................312
A.13 FLASH Specifications ...................................................................................................................315
A.14 EMC Performance .........................................................................................................................316
A.14.1 Radiated Emissions .........................................................................................................316
A.14.2 Conducted Transient Susceptibility ................................................................................316
Appendix B
Ordering Information and Mechanical Drawings
B.1 Ordering Information ....................................................................................................................319
B.1.1 Device Numbering Scheme ............................................................................................319
B.2 Mechanical Drawings ....................................................................................................................320
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 19
Chapter 1
Device Overview
The MC9S08SH8 members of the low-cost, high-performance HCS08 Family of 8-bit microcontroller
units (MCUs). All MCUs in the family use the enhanced HCS08 core and are available with a variety of
modules, memory sizes, memory types, and package types.
1.1 Devices in the MC9S08SH8 Series
Table 1-1 summarizes the feature set available in the MC9S08SH8 series of MCUs.
t
Table 1-1. MC9S08SH8 Features by MCU and Package
Feature 9S08SH8 9S08SH4
FLASH size (bytes) 8192 4096
RAM size (bytes) 512 256
Pin quantity 24 20 16 8 24 20 16 8
ACMP yes
ADC channels 12 12 8 4 12 12 8 4
DBG yes
ICS yes yes yes yes1
1
FBE and FEE modes are not available in 8-pin packages.
yes yes yes yes 1
IIC yes
MTIM yes
Pin Interrupts 8 8 8 4 8 8 8 4
Pin I/O 2
2
Port I/O count does not include the output-only PTA4/ACMPO/BKGD/MS.
17 17 13 5 17 17 13 5
RTC yes
SCI yes yes yes no yes yes yes no
SPI yes yes yes no yes yes yes no
TPM1 channels 2 2 2 1 2 2 2 1
TPM2 channels 2 2 2 1 2 2 2 1
XOSC yes yes yes no yes yes yes no
Chapter 1 Device Overview
MC9S08SH8 MCU Series Data Sheet, Rev. 3
20 Freescale Semiconductor
1.2 MCU Block Diagram
The block diagram in Figure 1-1 shows the structure of the MC9S08SH8 MCU.
Figure 1-1. MC9S08SH8 Block Diagram
PTB7/SCL/EXTAL
PORTB
PTB6/SDA/XTAL
PTB5/TPM1CH1/SS
PTB4/TPM2CH1/MISO
PTB3/PIB3/MOSI/ADP7
PTB2/PIB2/SPSCK/ADP6
PORTA
PTA1/PIA1/TPM2CH0/ADP1/ACMP–
PTB1/PIB1/TxD/ADP5
PTB0/PIB0/RxD/ADP4
PORTC
PTC3/ADP11
PTC2/ADP10
PTC1/TPM1CH1/ADP9
PTC0/TPM1CH0/ADP8
PTA3/PAI3/SCL/ADP3
PTA2/PAI2/SDA/ADP2
PTA0/PIA0/TPM1CH0/ADP0/ACMP+
Pin can be enabled as part of the ganged output drive feature
PTA4/ACMPO/BKGD/MS
PTA5/IRQ/TCLK/RESET
NOTE 1: Port B not available on 8-pin packages
SEE NOTE 1
SEE NOTE 1, 2
NOTE 2: Port C not available on 8-pin or 16-pin packages
IIC MODULE (IIC)
SERIAL PERIPHERAL
INTERFACE MODULE (SPI)USER FLASH
USER RAM
HCS08 CORE
CPU BDC
HCS08 SYSTEM CONTROL
RESETS AND INTERRUPTS
MODES OF OPERATION
POWER MANAGEMENT
COP LVD
INTERFACE MODULE (SCI)
SERIAL COMMUNICATIONS
8-BIT MODULO TIMER
MODULE (MTIM)
VOLTAGE REGULATOR
DEBUG MODULE (DBG)
MISO
SCL
SDA
MOSI
SPSCK
RxD
TxD
LOW-POWER OSCILLATOR
40-MHz INTERNAL CLOCK
SOURCE (ICS)
31.25 kHz to 38.4 kHz
1 MHz to 16 MHz
(XOSC)
EXTAL
XTAL
VSS
VDD
VSSA
VDDA
VREFL
VREFH
ANALOG-TO-DIGITAL
CONVERTER (ADC)
10-BIT
SS
TCLK
BKGD/MS
16-BIT TIMER/PWM
MODULE (TPM2)
TCLK
REAL-TIME COUNTER (RTC)
(MC9S08SH8 = 8,192 BYTES)
(MC9S08SH4 = 4096 BYTES)
(MC9S08SH8 = 512 BYTES)
ANALOG COMPARATOR
(ACMP)
ACMPO
ACMP–
ACMP+
TPM2CH0
TPM2CH1
ADP11-ADP0
16-BIT TIMER/PWM
MODULE (TPM1)
TCLK
TPM1CH0
TPM1CH1
IRQ
IRQ
(MC9S08SH4 = 256 BYTES)
NOTE 3: VDDA/VREFH and VSSA/VREFL, are double bonded to VDD and VSS respectively.
NOTES
=
SEE NOTE 3
Chapter 1 Device Overview
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 21
Table 1-2 provides the functional version of the on-chip modules
Table 1-2. Module Versions
Module Version
Analog Comparator (5V) (ACMP) 2
Analog-to-Digital Converter (ADC) 1
Central Processor Unit (CPU) 2
Inter-Integrated Circuit (IIC) 2
Internal Clock Source (ICS) 2
Serial Peripheral Interface (SPI) 3
Serial Communications Interface (SCI) 4
Modulo Timer (MTIM) 1
Real-Time Counter (RTC) 1
Timer Pulse Width Modulator (TPM) 3
Chapter 1 Device Overview
MC9S08SH8 MCU Series Data Sheet, Rev. 3
22 Freescale Semiconductor
1.3 System Clock Distribution
Figure 1-2 shows a simplified clock connection diagram. Some modules in the MCU have selectable clock
inputs as shown. The clock inputs to the modules indicate the clock(s) that are used to drive the module
function.
The following defines the clocks used in this MCU:
• BUSCLK — The frequency of the bus is always half of ICSOUT.
• ICSOUT — Primary output of the ICS and is twice the bus frequency.
• ICSLCLK — Development tools can select this clock source to speed up BDC communications in
systems where the bus clock is configured to run at a very slow frequency.
• ICSERCLK — External reference clock can be selected as the RTC clock source and as the
alternate clock for the ADC module.
• ICSIRCLK — Internal reference clock can be selected as the RTC clock source.
• ICSFFCLK — Fixed frequency clock can be selected as clock source for the TPM1, TPM2 and
MTIM modules.
• LPOCLK — Independent 1-kHz clock source that can be selected as the clock source for the COP
and RTC modules.
• TCLK — External input clock source for TPM1, TPM2 and MTIM and is referenced as TPMCLK
in TPM chapters.
Figure 1-2. System Clock Distribution Diagram
TPM1 TPM2 MTIM SCI
BDCCPU ADC IIC FLASH
ICS
ICSOUT
÷2
BUSCLK
ICSLCLK
ICSERCLK
COP
* The fixed frequency clock (FFCLK) is internally
synchronized to the bus clock and must not exceed one half
of the bus clock frequency.
FLASH has frequency
requirements for program
and erase operation. See
the electricals appendix
for details.
ADC has min and max
frequency requirements.
See the ADC chapter
and electricals appendix
for details.
XOSC
EXTAL XTAL
SPI
FFCLK*ICSFFCLK
RTC
1 kHZ
LPO
TCLK
ICSIRCLK
÷2 SYNC*
LPOCLK
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 23
Chapter 2
Pins and Connections
This section describes signals that connect to package pins. It includes pinout diagrams, recommended
system connections, and detailed discussions of signals.
2.1 Device Pin Assignment
Figure 2-1 - Figure 2-4 shows the pin assignments for the MC9S08SH8 devices.
Figure 2-1. 24-Pin QFN
PTA5/IRQ/TCLK/RESET
PTA4/ACMPO/BKGD/MS
VDD
VSS
PTB4/TPM2CH1/MISO
PTB5/TPM1CH1/SS
PTB6/SDA/XTAL
PTB7/SCL/EXTAL
PTB3/PIB3/MOSI/ADP7
PTB2/PIB2/SPSCK/ADP6
PTB1/PIB1/TxD/ADP5
PTA1/PIA1/TPM2CH0/ADP1/ACMP–
PTA2/PIA2/SDA/ADP2
PTA3/PIA3/SCL/ADP3
PTB0/PIB0/RxD/ADP4
PTA0/PIA0/TPM1CH0ADP0/ACMP+
Pin 1 indicator
1
2
3
4
5
6
18
17
16
15
14
13
7 8 9 10 11 12
24 23 22 21 20 19
PTC3/ADP11
PTC2/ADP10
PTC1/TPMCH1/ADP9
PTC0/TPM1CH0/ADP8NC
NC
NC
NC
Chapter 2 Pins and Connections
MC9S08SH8 MCU Series Data Sheet, Rev. 3
24 Freescale Semiconductor
Figure 2-2. 20-Pin PDIP, SOIC, and TSSOP
Figure 2-3. 16-Pin TSSOP
Figure 2-4. 8-Pin SOIC
2.2 Recommended System Connections
Figure 2-5 shows pin connections that are common to MC9S08SH8 application systems.
PTB1/PIB1/TxD/ADP5
PTB5/TPM1CH1/SS
PTB6/SDA/XTAL
PTB2/PIB2/SPSCK/ADP6
PTA3/PIA3/SCL/ADP3
PTB4/TPM2CH1/MISO PTB3/PIB3/MOSI/ADP7
PTB0/PIB0/RxD/ADP4
VDD
VSS
PTB7/SCL/EXTAL
1
2
3
4
5
6
7
8
20
19
18
17
16
15
9
10
14
12
11
13
PTC3/ADP11 PTC0/TPM1CH0/ADP8
PTC2/ADP10 PTC1/TPM1CH1/ADP9
PTA4/ACMPO/BKGD/MS
PTA5/IRQ/TCLK/RESET
PTA2/PIA2/SDA/ADP2
PTA1/PIA1/TPM2CH0/ADP1/ACMP-
PTA0/PIA0/TPM1CH0/ADP0/ACMP+
PTB1/PIB1/TxD/ADP5
PTB5/TPM1CH1/SS
PTB6/SDA/XTAL
PTB2/PIB2/SPSCK/ADP6
PTA3/PIA3/SCL/ADP3
PTB4/TPM2CH1/MISO PTB3/PIB3/MOSI/ADP7
PTB0/PIB0/RxD/ADP4
VDD
VSS
PTB7/SCL/EXTAL
1
2
3
4
5
6
7
8
16
15
14
13
12
11
10
9
PTA4/ACMPO/BKGD/MS
PTA5/IRQ/TCLK/RESET
PTA2/PIA2/SDA/ADP2
PTA1/PIA1/TPM2CH0/ADP1/ACMP-
PTA0/PIA0/TPM1CH0/ADP0/ACMP+
1
2
3
4
8
7
6
5
PTA0/PIA0/TPM1CH0/ADP0/ACMP+
PTA1/PIA1/TPM2CH0/ADP1/ACMP-
PTA2/PIA2/SDA/ADP2
PTA3/PIA3/SCL/ADP3VSS
VDD
PTA4/ACMPO/BKGD/MS
PTA5/IRQ/TCLK/RESET
Chapter 2 Pins and Connections
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 25
Figure 2-5. Basic System Connections
2.2.1 Power
VDD and VSS are the primary power supply pins for the MCU. This voltage source supplies power to all
I/O buffer circuitry, ACMP and ADC modules, and to an internal voltage regulator. The internal voltage
regulator provides regulated lower-voltage source to the CPU and other internal circuitry of the MCU.
Typically, application systems have two separate capacitors across the power pins. In this case, there
should be a bulk electrolytic capacitor, such as a 10-μF tantalum capacitor, to provide bulk charge storage
for the overall system and a 0.1-μF ceramic bypass capacitor located as near to the MCU power pins as
practical to suppress high-frequency noise. Each pin must have a bypass capacitor for best noise
suppression.
BKGD/MS
RESET
OPTIONAL
MANUAL
RESET
VDD
BACKGROUND HEADER
SYSTEM
POWER
PORT
B
PTB0/PIB0/RxD/ADP4
PTB1/PIB1/TxD/ADP5
PTB2/PIB2/SPSCK/ADP6
PTB3/PIB3/MOSI/ADP7
PTB4/TPM2CH1/MISO
PTB5/TPM1CH1/SS
PTB6/SDA/XTAL
PTB7/SCL/EXTAL
PORT
C
PTC0/TPM1CH0/ADP8
PTC1/TPM1CH1/ADP9
PTC2/ADP10
PTC3/ADP11
MC9S08SH8
VSS
VDD
CBY
0.1 μF
CBLK
10 μF
+
5 V
+
C2C1 X1
RF
RS
PORT
A
PTA0/PIA0/TPM1CH0/ADP0/ACMP+
PTA1/PIA1/TPM2CH0/ADP1/ACMP-
PTA2/PIA2/SDA/ADP2
PTA3/PIA3/SCL/ADP3
0.1 μF
VDD
4.7 kΩ–10 kΩ
NOTE 1
NOTES:
1. External crystal circuit not required if using the internal clock option.
2. RESET pin can only be used to reset into user mode, you can not enter BDM using RESET
pin. BDM can be entered by holding MS low during POR or writing a 1 to BDFR in SBDFR
with MS low after issuing BDM command.
3. RC filter on RESET pin recommended for noisy environments.
PTA4/ACMPO/BKGD/MS
PTA5/IRQ/TCLK/RESET
Chapter 2 Pins and Connections
MC9S08SH8 MCU Series Data Sheet, Rev. 3
26 Freescale Semiconductor
2.2.2 Oscillator (XOSC)
Immediately after reset, the MCU uses an internally generated clock provided by the clock source
generator (ICS) module. For more information on the ICS, see Chapter 10, “Internal Clock Source
(S08ICSV2).”
The oscillator (XOSC) in this MCU is a Pierce oscillator that can accommodate a crystal or ceramic
resonator. Rather than a crystal or ceramic resonator, an external oscillator can be connected to the EXTAL
input pin.
Refer to Figure 2-5 for the following discussion. RS (when used) and RF should be low-inductance
resistors such as carbon composition resistors. Wire-wound resistors, and some metal film resistors, have
too much inductance. C1 and C2 normally should be high-quality ceramic capacitors that are specifically
designed for high-frequency applications.
RF is used to provide a bias path to keep the EXTAL input in its linear range during crystal startup; its value
is not generally critical. Typical systems use 1 MΩ to 10 MΩ. Higher values are sensitive to humidity and
lower values reduce gain and (in extreme cases) could prevent startup.
C1 and C2 are typically in the 5-pF to 25-pF range and are chosen to match the requirements of a specific
crystal or resonator. Be sure to take into account printed circuit board (PCB) capacitance and MCU pin
capacitance when selecting C1 and C2. The crystal manufacturer typically specifies a load capacitance
which is the series combination of C1 and C2 (which are usually the same size). As a first-order
approximation, use 10 pF as an estimate of combined pin and PCB capacitance for each oscillator pin
(EXTAL and XTAL).
2.2.3 RESET
After a power-on reset (POR), the PTA5/IRQ/TCLK/RESET pin defaults to a general-purpose I/O port
pin, PTA5. Setting RSTPE in SOPT1 configures the pin to be the RESET pin with an open-drain drive
containing an internal pull-up device. After configured as RESET, the pin will remain RESET until the
next POR. The RESET pin when enabled can be used to reset the MCU from an external source when the
pin is driven low.
Internal power-on reset and low-voltage reset circuitry typically make external reset circuitry unnecessary.
This pin is normally connected to the standard 6-pin background debug connector so a development
system can directly reset the MCU system. If desired, a manual external reset can be added by supplying
a simple switch to ground (pull reset pin low to force a reset).
Whenever any non-POR reset is initiated (whether from an external signal or from an internal system), the
RESET pin if enabled is driven low for about 66 bus cycles. The reset circuitry decodes the cause of reset
and records it by setting a corresponding bit in the system reset status register (SRS).
NOTE
This pin does not contain a clamp diode to VDD and should not be driven
above VDD.
Chapter 2 Pins and Connections
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 27
The voltage measured on the internally pulled up RESET pin will not be
pulled to VDD. The internal gates connected to this pin are pulled to VDD. If
the RESET pin is required to drive to a VDD level an external pullup should
be used.
NOTE
In EMC-sensitive applications, an external RC filter is recommended on the
RESET. See Figure 2-5 for an example.
2.2.4 Background / Mode Select (BKGD/MS)
During a power-on-reset (POR) or background debug force reset (see Section 5.7.3, “System Background
Debug Force Reset Register (SBDFR),” for more information), the PTA4/ACMPO/BKGD/MS pin
functions as a mode select pin. Immediately after any reset, the pin functions as the background pin and
can be used for background debug communication. When enabled as the BKGD/MS pin (BKGDPE = 1),
an internal pullup device is automatically enabled.
The background debug communication function is enabled when BKGDPE in SOPT1 is set. BKGDPE is
set following any reset of the MCU and must be cleared to use the PTA4/ACMPO/BKGD/MS pin’s
alternative pin function.
If nothing is connected to this pin, the MCU will enter normal operating mode at the rising edge of the
internal reset after a POR or force BDC reset. If a debug system is connected to the 6-pin standard
background debug header, it can hold BKGD/MS low during a POR or immediately after issuing a
background debug force reset, which will force the MCU to active background mode.
The BKGD pin is used primarily for background debug controller (BDC) communications using a custom
protocol that uses 16 clock cycles of the target MCU’s BDC clock per bit time. The target MCU’s BDC
clock could be as fast as the maximum bus clock rate, so there must never be any significant capacitance
connected to the BKGD/MS pin that could interfere with background serial communications.
Although the BKGD pin is a pseudo open-drain pin, the background debug communication protocol
provides brief, actively driven, high speedup pulses to ensure fast rise times. Small capacitances from
cables and the absolute value of the internal pullup device play almost no role in determining rise and fall
times on the BKGD pin.
2.2.5 General-Purpose I/O and Peripheral Ports
The MC9S08SH8 series of MCUs support up to 17 general-purpose I/O pins and 1 output-only pin, which
are shared with on-chip peripheral functions (timers, serial I/O, ADC, etc).
When a port pin is configured as a general-purpose output or a peripheral uses the port pin as an output,
software can select one of two drive strengths and enable or disable slew rate control. When a port pin is
configured as a general-purpose input or a peripheral uses the port pin as an input, software can enable a
pull-up device. Immediately after reset, all of these pins are configured as high-impedance general-purpose
inputs with internal pull-up devices disabled.
Chapter 2 Pins and Connections
MC9S08SH8 MCU Series Data Sheet, Rev. 3
28 Freescale Semiconductor
When an on-chip peripheral system is controlling a pin, data direction control bits still determine what is
read from port data registers even though the peripheral module controls the pin direction by controlling
the enable for the pin’s output buffer. For information about controlling these pins as general-purpose I/O
pins, see Chapter 6, “Parallel Input/Output Control.”
The MC9S08SH8 devices contain a ganged output drive feature that allows a safe and reliable method of
allowing pins to be tied together externally to produce a higher output current drive. See Section 6.3,
“Ganged Output” for more information for configuring the port pins for ganged output drive.
NOTE
To avoid extra current drain from floating input pins, the reset initialization
routine in the application program should either enable on-chip pull-up
devices or change the direction of unused pins to outputs so they do not float.
When using the 8-pin devices, the user must either enable on-chip pullup
devices or change the direction of non-bonded out port B and port C pins to
outputs so the pins do not float.
When using the 16-pin devices, the user must either enable on-chip pullup
devices or change the direction of non-bonded out port C pins to outputs so
the pins do not float.
Chapter 2 Pins and Connections
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 29
Pin Number
Priority
24-pin 20-pin 16-pin 8-pin Port Pin Alt 1 Alt 2 Alt 3 Alt 4 Alt5
1 3 3 3 VDD
2 — — —
3 4 4 4 VSS
4 5 5 — PTB7 SCL1
1
IIC pins can be repositioned using IICPS in SOPT2, default reset locations are on PTA2 and PTA3.
EXTAL
5 6 6 — PTB6 SDA1 XTAL
6 7 7 — PTB5 TPM1CH12
2
TPM1CHx pins can be repositioned using TPM1PS in SOPT2, default reset locations are on PTA0 and PTB5.
SS PTC03
3 This port pin is part of the ganged output feature. When pin is enabled for ganged output, it will have priority over
all digital modules. The output data, drive strength and slew-rate control of this port pin will follow the configuration
for the PTC0 pin, even in 16-pin packages where PTC0 doesn’t bond out. Ganged output not available in 8-pin
packages.
7 8 8 — PTB4 TPM2CH1 MISO PTC03
8 9 — — PTC3 PTC03 ADP11
9 10 — — PTC2 PTC03 ADP10
10 11 — — PTC1 TPM1CH12
PTC03
ADP9
11 12 — — PTC0 TPM1CH02
PTC03
ADP8
12 13 9 — PTB3 PIB3 MOSI PTC03
ADP7
13 14 10 — PTB2 PIB2 SPSCK PTC03
ADP6
14 15 11 — PTB1 PIB1 TxD ADP5
15 16 12 — PTB0 PIB0 RxD ADP4
16 17 13 5 PTA3 PIA3 SCL1
ADP3
17 18 14 6 PTA2 PIA2 SDA1
ADP2
18 19 15 7 PTA1 PIA1 TPM2CH0 ADP14
4 If ACMP and ADC are both enabled, both will have access to the pin.
ACMP–4
19 20 16 8 PTA0 PIA0 TPM1CH02
ADP04
ACMP+4
20 — — —
21 — — —
22 — — —
23 1 1 1 PTA55
IRQ TCLK RESET
24 2 2 2 PTA4 ACMPO BKGD MS
5
Pin is open-drain when configured as output driving high. Pin does not contain a clamp diode to VDD and should
not be driven above VDD. The voltage measured on the internally pulled up RESET will not be pulled to VDD. The
internal gates connected to this pin are pulled to VDD.
Lowest Highest
Table 2-1. Pin Availability by Package Pin-Count
Chapter 2 Pins and Connections
MC9S08SH8 MCU Series Data Sheet, Rev. 3
30 Freescale Semiconductor
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 31
Chapter 3
Modes of Operation
3.1 Introduction
The operating modes of the MC9S08SH8 are described in this chapter. Entry into each mode, exit from
each mode, and functionality while in each of the modes are described.
3.2 Features
• Active background mode for code development
• Wait mode — CPU shuts down to conserve power; system clocks are running and full regulation
is maintained
• Stop modes — System clocks are stopped and voltage regulator is in standby
— Stop3 — All internal circuits are powered for fast recovery
— Stop2 — Partial power down of internal circuits, RAM content is retained
3.3 Run Mode
This is the normal operating mode for the MC9S08SH8. This mode is selected upon the MCU exiting reset
if the BKGD/MS pin is high. In this mode, the CPU executes code from internal memory with execution
beginning at the address fetched from memory at 0xFFFE–0xFFFF after reset.
3.4 Active Background Mode
The active background mode functions are managed through the background debug controller (BDC) in
the HCS08 core. The BDC, together with the on-chip debug module (DBG), provide the means for
analyzing MCU operation during software development.
Active background mode is entered in any of the following ways:
• When the BKGD/MS pin is low during POR or immediately after issuing a background debug
force reset (see Section 5.7.3, “System Background Debug Force Reset Register (SBDFR)”)
• When a BACKGROUND command is received through the BKGD/MS pin
• When a BGND instruction is executed
• When encountering a BDC breakpoint
• When encountering a DBG breakpoint
After entering active background mode, the CPU is held in a suspended state waiting for serial background
commands rather than executing instructions from the user application program.
Chapter 3 Modes of Operation
MC9S08SH8 MCU Series Data Sheet, Rev. 3
32 Freescale Semiconductor
Background commands are of two types:
• Non-intrusive commands, defined as commands that can be issued while the user program is
running. Non-intrusive commands can be issued through the BKGD/MS pin while the MCU is in
run mode; non-intrusive commands can also be executed when the MCU is in the active
background mode. Non-intrusive commands include:
— Memory access commands
— Memory-access-with-status commands
— BDC register access commands
— The BACKGROUND command
• Active background commands, which can only be executed while the MCU is in active background
mode. Active background commands include commands to:
— Read or write CPU registers
— Trace one user program instruction at a time
— Leave active background mode to return to the user application program (GO)
The active background mode is used to program a bootloader or user application program into the FLASH
program memory before the MCU is operated in run mode for the first time. When the MC9S08SH8 is
shipped from the Freescale Semiconductor factory, the FLASH program memory is erased by default
unless specifically noted so there is no program that could be executed in run mode until the FLASH
memory is initially programmed. The active background mode can also be used to erase and reprogram
the FLASH memory after it has been previously programmed.
For additional information about the active background mode, refer to the Development Support chapter.
3.5 Wait Mode
Wait mode is entered by executing a WAIT instruction. Upon execution of the WAIT instruction, the CPU
enters a low-power state in which it is not clocked. The I bit in CCR is cleared when the CPU enters the
wait mode, enabling interrupts. When an interrupt request occurs, the CPU exits the wait mode and
resumes processing, beginning with the stacking operations leading to the interrupt service routine.
While the MCU is in wait mode, there are some restrictions on which background debug commands can
be used. Only the BACKGROUND command and memory-access-with-status commands are available
when the MCU is in wait mode. The memory-access-with-status commands do not allow memory access,
but they report an error indicating that the MCU is in either stop or wait mode. The BACKGROUND
command can be used to wake the MCU from wait mode and enter active background mode.
3.6 Stop Modes
One of two stop modes is entered upon execution of a STOP instruction when STOPE in SOPT1. In any
stop mode, the bus and CPU clocks are halted. The ICS module can be configured to leave the reference
clocks running. See Chapter 10, “Internal Clock Source (S08ICSV2),” for more information.
Chapter 3 Modes of Operation
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 33
Table 3-1 shows all of the control bits that affect stop mode selection and the mode selected under various
conditions. The selected mode is entered following the execution of a STOP instruction.
3.6.1 Stop3 Mode
Stop3 mode is entered by executing a STOP instruction under the conditions as shown in Table 3-1. The
states of all of the internal registers and logic, RAM contents, and I/O pin states are maintained.
Stop3 can be exited by asserting RESET if enabled, or by an interrupt from one of the following sources:
the real-time counter (RTC), LVD system, ACMP, ADC, SCI, IRQ, or any pin interrupts.
If stop3 is exited by means of the RESET pin, then the MCU is reset and operation will resume after taking
the reset vector. Exit by means of one of the internal interrupt sources results in the MCU taking the
appropriate interrupt vector.
3.6.1.1 LVD Enabled in Stop Mode
The LVD system is capable of generating either an interrupt or a reset when the supply voltage drops below
the LVD voltage. For configuring the LVD system for interrupt or reset, refer to 5.6, “Low-Voltage Detect
(LVD) System”. If the LVD is enabled in stop (LVDE and LVDSE bits in SPMSC1 both set) at the time
the CPU executes a STOP instruction, then the voltage regulator remains active during stop mode.
For the ADC to operate in stop mode, the LVD must be enabled when entering stop3.
For the ACMP to operate in stop mode with compare to internal bandgap option, the LVD must be enabled
when entering stop3.
3.6.1.2 Active BDM Enabled in Stop Mode
Entry into the active background mode from run mode is enabled if ENBDM in BDCSCR is set. This
register is described in Chapter 17, “Development Support.” If ENBDM is set when the CPU executes a
STOP instruction, the system clocks to the background debug logic remain active when the MCU enters
stop mode. Because of this, background debug communication remains possible. In addition, the voltage
regulator does not enter its low-power standby state but maintains full internal regulation.
Table 3-1. Stop Mode Selection
STOPE ENBDM 1
1
ENBDM is located in the BDCSCR, which is only accessible through BDC commands, see Section 17.4.1.1, “BDC Status and
Control Register (BDCSCR)”.
LVDE LVDSE PPDC Stop Mode
0 x x x Stop modes disabled; illegal opcode reset if STOP instruction executed
1 1 x x Stop3 with BDM enabled 2
2 When in Stop3 mode with BDM enabled, The SIDD will be near RIDD levels because internal clocks are enabled.
1 0 Both bits must be 1 0 Stop3 with voltage regulator active
1 0 Either bit a 0 0 Stop3
1 0 Either bit a 0 1 Stop2
Chapter 3 Modes of Operation
MC9S08SH8 MCU Series Data Sheet, Rev. 3
34 Freescale Semiconductor
Most background commands are not available in stop mode. The memory-access-with-status commands
do not allow memory access, but they report an error indicating that the MCU is in either stop or wait
mode. The BACKGROUND command can be used to wake the MCU from stop and enter active
background mode if the ENBDM bit is set. After entering background debug mode, all background
commands are available.
3.6.2 Stop2 Mode
Stop2 mode is entered by executing a STOP instruction under the conditions as shown in Table 3-1. Most
of the internal circuitry of the MCU is powered off in stop2 with the exception of the RAM. Upon entering
stop2, all I/O pin control signals are latched so that the pins retain their states during stop2.
Exit from stop2 is performed by asserting the wake-up pin (PTA5/IRQ/TCLK/RESET) on the MCU.
In addition, the real-time counter (RTC) can wake the MCU from stop2, if enabled.
Upon wake-up from stop2 mode, the MCU starts up as from a power-on reset (POR):
• All module control and status registers are reset
• The LVD reset function is enabled and the MCU remains in the reset state if VDD is below the LVD
trip point (low trip point selected due to POR)
• The CPU takes the reset vector
In addition to the above, upon waking up from stop2, the PPDF bit in SPMSC2 is set. This flag is used to
direct user code to go to a stop2 recovery routine. PPDF remains set and the I/O pin states remain latched
until a 1 is written to PPDACK in SPMSC2.
To maintain I/O states for pins that were configured as general-purpose I/O before entering stop2, the user
must restore the contents of the I/O port registers, which have been saved in RAM, to the port registers
before writing to the PPDACK bit. If the port registers are not restored from RAM before writing to
PPDACK, then the pins will switch to their reset states when PPDACK is written.
For pins that were configured as peripheral I/O, the user must reconfigure the peripheral module that
interfaces to the pin before writing to the PPDACK bit. If the peripheral module is not enabled before
writing to PPDACK, the pins will be controlled by their associated port control registers when the I/O
latches are opened.
3.6.3 On-Chip Peripheral Modules in Stop Modes
When the MCU enters any stop mode, system clocks to the internal peripheral modules are stopped. Even
in the exception case (ENBDM = 1), where clocks to the background debug logic continue to operate,
clocks to the peripheral systems are halted to reduce power consumption. Refer to Section 3.6.2, “Stop2
Mode,” and Section 3.6.1, “Stop3 Mode,” for specific information on system behavior in stop modes.
Chapter 3 Modes of Operation
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 35
Table 3-2. Stop Mode Behavior
Peripheral
Mode
Stop2 Stop3
CPU Off Standby
RAM Standby Standby
FLASH Off Standby
Parallel Port Registers Off Standby
ADC Off Optionally On1
1
Requires the asynchronous ADC clock and LVD to be enabled, else in
standby.
ACMP Off Optionally On2
2 Requires the LVD to be enabled when compare to internal bangap reference
option is enabled.
BDM Off3
3 If ENBDM is set when entering stop2, the MCU will actually enter stop3..
Optionally On
ICS Off Optionally On4
4
IRCLKEN and IREFSTEN set in ICSC1, else in standby.
IIC Off Standby
LVD/LVW Off5
5
If LVDSE is set when entering stop2, the MCU will actually enter stop3..
Optionally On
MTIM Off Standby
RTC Optionally On Optionally On
SCI Off Standby
SPI Off Standby
TPM Off Standby
Voltage Regulator Standby Optionally On6
6
Voltage regulator will be on if BDM is enabled or if LVD is enabled when
entering stop3.
XOSC Off Optionally On7
7 ERCLKEN and EREFSTEN set in ICSC2, else in standby. For high frequency
range (RANGE in ICSC2 set) requires the LVD to also be enabled in stop3.
I/O Pins States Held States Held
Chapter 3 Modes of Operation
MC9S08SH8 MCU Series Data Sheet, Rev. 3
36 Freescale Semiconductor
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 37
Chapter 4
Memory
4.1 MC9S08SH8 Memory Map
As shown in Figure 4-1, on-chip memory in the MC9S08SH8 series of MCUs consists of RAM, FLASH
program memory for nonvolatile data storage, and I/O and control/status registers. The registers are
divided into three groups:
• Direct-page registers (0x0000 through 0x007F)
• High-page registers (0x1800 through 0x185F)
• Nonvolatile registers (0xFFB0 through 0xFFBF)
Figure 4-1. MC9S08SH8 Memory Map
DIRECT PAGE REGISTERS
RAM
HIGH PAGE REGISTERS
512 BYTES
0x0000
0x007F
0x0080
0x027F
0x1800
0x17FF
0x185F
0xFFFF
0x0280
MC9S08SH8
FLASH
8192 BYTES
0x1860
MC9S08SH4
UNIMPLEMENTED
51,104 BYTES
0xE000
0xDFFF
DIRECT PAGE REGISTERS
RAM
HIGH PAGE REGISTERS
256 BYTES
0x0000
0x007F
0x0080
0x1800
0x17FF
0x185F
0xFFFF
FLASH
4096 BYTES
0x1860
0x017F
0x0180
0xF000
0xEFFF
UNIMPLEMENTED
5504 BYTES
0x027F
0x0280 UNIMPLEMENTED
5504 BYTES
RESERVED
256 BYTES
UNIMPLEMENTED
51,104 BYTES
0xE000
0xDFFF
RESERVED
4096 BYTES
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
38 Freescale Semiconductor
4.2 Reset and Interrupt Vector Assignments
Table 4-1 shows address assignments for reset and interrupt vectors. The vector names shown in this table
are the labels used in the Freescale Semiconductor provided equate file for the MC9S08SH8.
Table 4-1. Reset and Interrupt Vectors
Address
(High/Low)
Vector Vector Name
0xFFC0:0xFFC1 Reserved —
0xFFC2:0xFFC3 ACMP Vacmp
0xFFC4:0xFFC5 Reserved —
0xFFC6:0xFFC7 Reserved —
0xFFC8:0xFFC9 Reserved —
0xFFCA:0xFFCB MTIM Overflow Vmtim
0xFFCC:0xFFCD RTC Vrtc
0xFFCE:0xFFCF IIC Viic
0xFFD0:0xFFD1 ADC Conversion Vadc
0xFFD2:0xFFD3 Reserved —
0xFFD4:0xFFD5 Port B Pin Interrupt Vportb
0xFFD6:0xFFD7 Port A Pin Interrupt Vporta
0xFFD8:0xFFD9 Reserved —
0xFFDA:0xFFDB SCI Transmit Vscitx
0xFFDC:0xFFDD SCI Receive Vscirx
0xFFDE:0xFFDF SCI Error Vscierr
0xFFE0:0xFFE1 SPI Vspi
0xFFE2:0xFFE3 TPM2 Overflow Vtpm2ovf
0xFFE4:0xFFE5 TPM2 Channel 1 Vtpm2ch1
0xFFE6:0xFFE7 TPM2 Channel 0 Vtpm2ch0
0xFFE8:0xFFE9 TPM1 Overflow Vtpm1ovf
0xFFEA:0xFFEB Reserved —
0xFFEC:0xFFED Reserved —
0xFFEE:0xFFEF Reserved —
0xFFF0:0xFFF1 Reserved —
0xFFF2:0xFFF3 TPM1 Channel 1 Vtpm1ch1
0xFFF4:0xFFF5 TPM1 Channel 0 Vtpm1ch0
0xFFF6:0xFFF7 Reserved —
0xFFF8:0xFFF9 Low Voltage Detect Vlvd
0xFFFA:0xFFFB IRQ Virq
0xFFFC:0xFFFD SWI Vswi
0xFFFE:0xFFFF Reset Vreset
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 39
4.3 Register Addresses and Bit Assignments
The registers in the MC9S08SH8 are divided into these groups:
• Direct-page registers are located in the first 128 locations in the memory map; these are accessible
with efficient direct addressing mode instructions.
• High-page registers are used much less often, so they are located above 0x1800 in the memory
map. This leaves more room in the direct page for more frequently used registers and RAM.
• The nonvolatile register area consists of a block of 16 locations in FLASH memory at
0xFFB0–0xFFBF. Nonvolatile register locations include:
— NVPROT and NVOPT are loaded into working registers at reset
— An 8-byte backdoor comparison key that optionally allows a user to gain controlled access to
secure memory
Because the nonvolatile register locations are FLASH memory, they must be erased and
programmed like other FLASH memory locations.
Direct-page registers can be accessed with efficient direct addressing mode instructions. Bit manipulation
instructions can be used to access any bit in any direct-page register. Table 4-2 is a summary of all
user-accessible direct-page registers and control bits.
The direct page registers in Table 4-2 can use the more efficient direct addressing mode, which requires
only the lower byte of the address. Because of this, the lower byte of the address in column one is shown
in bold text. In Table 4-3 and Table 4-4, the whole address in column one is shown in bold. In Table 4-2,
Table 4-3, and Table 4-4, the register names in column two are shown in bold to set them apart from the
bit names to the right. Cells that are not associated with named bits are shaded. A shaded cell with a 0
indicates this unused bit always reads as a 0. Shaded cells with dashes indicate unused or reserved bit
locations that could read as 1s or 0s.
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
40 Freescale Semiconductor
Table 4-2. Direct-Page Register Summary (Sheet 1 of 3)
Address
Register
Name
Bit 7 6 5 4 3 2 1 Bit 0
0x0000 PTAD 0 0 PTAD5 PTAD4 PTAD3 PTAD2 PTAD1 PTAD0
0x0001 PTADD 0 0 PTADD5 PTADD4 PTADD3 PTADD2 PTADD1 PTADD0
0x0002 PTBD PTBD7 PTBD6 PTBD5 PTBD4 PTBD3 PTBD2 PTBD1 PTBD0
0x0003 PTBDD PTBDD7 PTBDD6 PTBDD5 PTBDD4 PTBDD3 PTBDD2 PTBDD1 PTBDD0
0x0004 PTCD 0 0 0 0 PTCD3 PTCD2 PTCD1 PTCD0
0x0005 PTCDD 0 0 0 0 PTCDD3 PTCDD2 PTCDD1 PTCDD0
0x0006–
0x000D
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x000E ACMPSC ACME ACBGS ACF ACIE ACO ACOPE ACMOD1 ACMOD0
0x000F Reserved — — — — — — — —
0x0010 ADSC1 COCO AIEN ADCO ADCH
0x0011 ADSC2 ADACT ADTRG ACFE ACFGT — — — —
0x0012 ADRH 0 0 0 0 0 0 ADR9 ADR8
0x0013 ADRL ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0
0x0014 ADCVH 0 0 0 0 0 0 ADCV9 ADCV8
0x0015 ADCVL ADCV7 ADCV6 ADCV5 ADCV4 ADCV3 ADCV2 ADCV1 ADCV0
0x0016 ADCFG ADLPC ADIV ADLSMP MODE ADICLK
0x0017 APCTL1 ADPC7 ADPC6 ADPC5 ADPC4 ADPC3 ADPC2 ADPC1 ADPC0
0x0018 APCTL2 0 0 0 0 ADPC11 ADPC10 ADPC9 ADPC8
0x0019 Reserved — — — — — — — —
0x001A IRQSC 0 IRQPDD IRQEDG IRQPE IRQF IRQACK IRQIE IRQMOD
0x001B Reserved — — — — — — — —
0x001C MTIMSC TOF TOIE TRST TSTP 0 0 0 0
0x001D MTIMCLK 0 0 CLKS PS
0x001E MTIMCNT CNT
0x001F MTIMMOD MOD
0x0020 TPM1SC TOF TOIE CPWMS CLKSB CLKSA PS2 PS1 PS0
0x0021 TPM1CNTH Bit 15 14 13 12 11 10 9 Bit 8
0x0022 TPM1CNTL Bit 7 6 5 4 3 2 1 Bit 0
0x0023 TPM1MODH Bit 15 14 13 12 11 10 9 Bit 8
0x0024 TPM1MODL Bit 7 6 5 4 3 2 1 Bit 0
0x0025 TPM1C0SC CH0F CH0IE MS0B MS0A ELS0B ELS0A 0 0
0x0026 TPM1C0VH Bit 15 14 13 12 11 10 9 Bit 8
0x0027 TPM1C0VL Bit 7 6 5 4 3 2 1 Bit 0
0x0028 TPM1C1SC CH1F CH1IE MS1B MS1A ELS1B ELS1A 0 0
0x0029 TPM1C1VH Bit 15 14 13 12 11 10 9 Bit 8
0x002A TPM1C1VL Bit 7 6 5 4 3 2 1 Bit 0
0x002B–
0x0037
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 41
0x0038 SCIBDH LBKDIE RXEDGIE 0 SBR12 SBR11 SBR10 SBR9 SBR8
0x0039 SCIBDL SBR7 SBR6 SBR5 SBR4 SBR3 SBR2 SBR1 SBR0
0x003A SCIC1 LOOPS SCISWAI RSRC M WAKE ILT PE PT
0x003B SCIC2 TIE TCIE RIE ILIE TE RE RWU SBK
0x003C SCIS1 TDRE TC RDRF IDLE OR NF FE PF
0x003D SCIS2 LBKDIF RXEDGIF 0 RXINV RWUID BRK13 LBKDE RAF
0x003E SCIC3 R8 T8 TXDIR TXINV ORIE NEIE FEIE PEIE
0x003F SCID Bit 7 6 5 4 3 2 1 Bit 0
0x0040–
0x0047
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x0048 ICSC1 CLKS RDIV IREFS IRCLKEN IREFSTEN
0x0049 ICSC2 BDIV RANGE HGO LP EREFS ERCLKEN EREFSTEN
0x004A ICSTRM TRIM
0x004B ICSSC 0 0 0 IREFST CLKST OSCINIT FTRIM
0x004C–
0x004F
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x0050 SPIC1 SPIE SPE SPTIE MSTR CPOL CPHA SSOE LSBFE
0x0051 SPIC2 0 0 0 MODFEN BIDIROE 0 SPISWAI SPC0
0x0052 SPIBR 0 SPPR2 SPPR1 SPPR0 0 SPR2 SPR1 SPR0
0x0053 SPIS SPRF 0 SPTEF MODF 0 0 0 0
0x0054 Reserved 0 0 0 0 0 0 0 0
0x0055 SPID Bit 7 6 5 4 3 2 1 Bit 0
0x0056–
0x0057
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x0058 IICA AD7 AD6 AD5 AD4 AD3 AD2 AD1 0
0x0059 IICF MULT ICR
0x005A IICC1 IICEN IICIE MST TX TXAK RSTA 0 0
0x005B IICS TCF IAAS BUSY ARBL 0 SRW IICIF RXAK
0x005C IICD DATA
0x005D IICC2 GCAEN ADEXT 0 0 0 AD10 AD9 AD8
0x005E–
0x005F
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x0060 TPM2SC TOF TOIE CPWMS CLKSB CLKSA PS2 PS1 PS0
0x0061 TPM2CNTH Bit 15 14 13 12 11 10 9 Bit 8
0x0062 TPM2CNTL Bit 7 6 5 4 3 2 1 Bit 0
0x0063 TPM2MODH Bit 15 14 13 12 11 10 9 Bit 8
0x0064 TPM2MODL Bit 7 6 5 4 3 2 1 Bit 0
0x0065 TPM2C0SC CH0F CH0IE MS0B MS0A ELS0B ELS0A 0 0
0x0066 TPM2C0VH Bit 15 14 13 12 11 10 9 Bit 8
0x0067 TPM2C0VL Bit 7 6 5 4 3 2 1 Bit 0
Table 4-2. Direct-Page Register Summary (Sheet 2 of 3)
Address
Register
Name
Bit 7 6 5 4 3 2 1 Bit 0
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
42 Freescale Semiconductor
0x0068 TPM2C1SC CH1F CH1IE MS1B MS1A ELS1B ELS1A 0 0
0x0069 TPM2C1VH Bit 15 14 13 12 11 10 9 Bit 8
0x006A TPM2C1VL Bit 7 6 5 4 3 2 1 Bit 0
0x006B Reserved — — — — — — — —
0x006C RTCSC RTIF RTCLKS RTIE RTCPS
0x006D RTCCNT RTCCNT
0x006E RTCMOD RTCMOD
0x006F -
0x007F
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Table 4-2. Direct-Page Register Summary (Sheet 3 of 3)
Address
Register
Name
Bit 7 6 5 4 3 2 1 Bit 0
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 43
High-page registers, shown in Table 4-3, are accessed much less often than other I/O and control registers
so they have been located outside the direct addressable memory space, starting at 0x1800.
Table 4-3. High-Page Register Summary (Sheet 1 of 2)
Address Register Name Bit 7 6 5 4 3 2 1 Bit 0
0x1800 SRS POR PIN COP ILOP ILAD 0 LVD 0
0x1801 SBDFR 0 0 0 0 0 0 0 BDFR
0x1802 SOPT1 COPT STOPE 0 0 IICPS BKGDPE RSTPE
0x1803 SOPT2 COPCLKS COPW 0 ACIC 0 0 T1CH1PS T1CH0PS
0x1804 –
0x1805
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x1806 SDIDH 0 — — — ID11 ID10 ID9 ID8
0x1807 SDIDL ID7 ID6 ID5 ID4 ID3 ID2 ID1 ID0
0x1808 Reserved — — — — — — — —
0x1809 SPMSC1 LVWF LVWACK LVWIE LVDRE LVDSE LVDE 0 BGBE
0x180A SPMSC2 0 0 LVDV LVWV PPDF PPDACK — PPDC
0x180B–
0x180F
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x1810 DBGCAH Bit 15 14 13 12 11 10 9 Bit 8
0x1811 DBGCAL Bit 7 6 5 4 3 2 1 Bit 0
0x1812 DBGCBH Bit 15 14 13 12 11 10 9 Bit 8
0x1813 DBGCBL Bit 7 6 5 4 3 2 1 Bit 0
0x1814 DBGFH Bit 15 14 13 12 11 10 9 Bit 8
0x1815 DBGFL Bit 7 6 5 4 3 2 1 Bit 0
0x1816 DBGC DBGEN ARM TAG BRKEN RWA RWAEN RWB RWBEN
0x1817 DBGT TRGSEL BEGIN 0 0 TRG3 TRG2 TRG1 TRG0
0x1818 DBGS AF BF ARMF 0 CNT3 CNT2 CNT1 CNT0
0x1819–
0x181F
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x1820 FCDIV DIVLD PRDIV8 DIV
0x1821 FOPT KEYEN FNORED 0 0 0 0 SEC
0x1822 Reserved — — — — — — — —
0x1823 FCNFG 0 0 KEYACC 0 0 0 0 0
0x1824 FPROT FPS FPDIS
0x1825 FSTAT FCBEF FCCF FPVIOL FACCERR 0 FBLANK 0 0
0x1826 FCMD FCMD
0x1827–
0x183F
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0x1840 PTAPE 0 0 PTAPE5 PTAPE4 PTAPE3 PTAPE2 PTAPE1 PTAPE0
0x1841 PTASE 0 0 — PTASE4 PTASE3 PTASE2 PTASE1 PTASE0
0x1842 PTADS 0 0 — PTADS4 PTADS3 PTADS2 PTADS1 PTADS0
0x1843 Reserved — — — — — — — —
0x1844 PTASC 0 0 0 0 PTAIF PTAACK PTAIE PTAMOD
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
44 Freescale Semiconductor
0x1845 PTAPS 0 0 0 PTAPS4 PTAPS3 PTAPS2 PTAPS1 PTAPS0
0x1846 PTAES 0 0 0 PTAES4 PTAES3 PTAES2 PTAES1 PTAES0
0x1847 Reserved — — — — — — — —
0x1848 PTBPE PTBPE7 PTBPE6 PTBPE5 PTBPE4 PTBPE3 PTBPE2 PTBPE1 PTBPE0
0x1849 PTBSE PTBSE7 PTBSE6 PTBSE5 PTBSE4 PTBSE3 PTBSE2 PTBSE1 PTBSE0
0x184A PTBDS PTBDS7 PTBDS6 PTBDS5 PTBDS4 PTBDS3 PTBDS2 PTBDS1 PTBDS0
0x184B Reserved — — — — — — — —
0x184C PTBSC 0 0 0 0 PTBIF PTBACK PTBIE PTBMOD
0x184D PTBPS 0 0 0 0 PTBPS3 PTBPS2 PTBPS1 PTBPS0
0x184E PTBES 0 0 0 0 PTBES3 PTBES2 PTBES1 PTBES0
0x184F Reserved — — — — — — — —
0x1850 PTCPE 0 0 0 0 PTCPE3 PTCPE2 PTCPE1 PTCPE0
0x1851 PTCSE 0 0 0 0 PTCSE3 PTCSE2 PTCSE1 PTCSE0
0x1852 PTCDS 0 0 0 0 PTCDS3 PTCDS2 PTCDS1 PTCDS0
0x1853 GNGC GNGPS7 GNGPS6 GNGPS5 GNGPS4 GNGPS3 GNGPS2 GNGPS1 GNGEN
0x1854–
0x185F
Reserved
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Table 4-3. High-Page Register Summary (Sheet 2 of 2)
Address Register Name Bit 7 6 5 4 3 2 1 Bit 0
Chapter 4 Memory
MC9S08SH8 MCU Series Data Sheet, Rev. 3
Freescale Semiconductor 45
Nonvolatile FLASH registers, shown in Table 4-4, are located in the FLASH memory. These registers
include an 8-byte backdoor key, NVBACKKEY, which can be used to gain access to secure memory
resources. During reset events, the contents of NVPROT and NVOPT in the nonvolatile register area of the
FLASH memory are transferred into corresponding FPROT and FOPT working registers in the high-page
registers to control security and block protection options.
Provided the key enable (KEYEN) bit is 1, the 8-byte comparison key can be used to temporarily
disengage memory security. This key mechanism can be accessed only through user code running in secure
memory. (A security key cannot be entered directly through background debug commands.) This security
key can be disabled completely by programming the KEYEN bit to 0. If the security key is disabled, the
only way to disengage security is by mass erasing the FLASH if needed (normally through the background
debug interface) and verifying that FLASH is blank. To avoid returning to secure mode after the next reset,
program the security bits (SEC) to the unsecured state (1:0).
Table 4-4. Nonvolatile Register Summary
Address Register Name Bit 7 6 5 4 3 2 1 Bit 0
0xFFAE Reserved for
storage of FTRIM
0 0 0 0 0 0 0 FTRIM
0xFFAF Reserved for
storage of
ICSTRIM
TRIM
0xFFB0 –
0xFFB7
NVBACKKEY
8-Byte Comparison Key
0xFFB8 –
0xFFBC
Reserved —
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0xFFBD NVPROT FPS FPDIS
0xFFBE Reserved — — — — — — — —
0xFFBF NVOPT KEYEN FNORED 0 0 0 0 SEC
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8
Mc9 s08sh8

More Related Content

What's hot

SDC 602RF Data Sheet
SDC 602RF Data SheetSDC 602RF Data Sheet
SDC 602RF Data SheetJMAC Supply
 
Rotary and Key Lock Switches
Rotary and Key Lock SwitchesRotary and Key Lock Switches
Rotary and Key Lock SwitchesPremier Farnell
 
An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers Premier Farnell
 
Advanced motion controls be15a8
Advanced motion controls be15a8Advanced motion controls be15a8
Advanced motion controls be15a8Electromate
 
Advanced motion controls 20a20
Advanced motion controls 20a20Advanced motion controls 20a20
Advanced motion controls 20a20Electromate
 
Drv8833 motor driver datasheet
Drv8833 motor driver datasheetDrv8833 motor driver datasheet
Drv8833 motor driver datasheetMahmut Yildiz
 
Advanced motion controls sx30a8
Advanced motion controls sx30a8Advanced motion controls sx30a8
Advanced motion controls sx30a8Electromate
 
User Manual - Final Project 2015
User Manual - Final Project 2015User Manual - Final Project 2015
User Manual - Final Project 2015Chafic Bouchakra
 
Intelligent mcc Siemens
Intelligent mcc Siemens Intelligent mcc Siemens
Intelligent mcc Siemens Praveen Patil
 
Advanced motion controls s60a8
Advanced motion controls s60a8Advanced motion controls s60a8
Advanced motion controls s60a8Electromate
 
Manual de Danfoss 2800
Manual de Danfoss 2800Manual de Danfoss 2800
Manual de Danfoss 2800Camilo Avelino
 
Tier1automation Guide To Know More About Variable Frequency Drives
Tier1automation Guide To Know More About Variable Frequency DrivesTier1automation Guide To Know More About Variable Frequency Drives
Tier1automation Guide To Know More About Variable Frequency Drivestier1automation
 
VLSID 2015 FirmLeak (Poster)
VLSID 2015 FirmLeak (Poster)VLSID 2015 FirmLeak (Poster)
VLSID 2015 FirmLeak (Poster)Anand Haridass
 
Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...
Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...
Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...Sven Åge Eriksen
 

What's hot (20)

Cc2530
Cc2530Cc2530
Cc2530
 
SDC 602RF Data Sheet
SDC 602RF Data SheetSDC 602RF Data Sheet
SDC 602RF Data Sheet
 
Rotary and Key Lock Switches
Rotary and Key Lock SwitchesRotary and Key Lock Switches
Rotary and Key Lock Switches
 
Abb softstartery pstx kat_en15
Abb softstartery pstx kat_en15Abb softstartery pstx kat_en15
Abb softstartery pstx kat_en15
 
Cptg011 en (web)
Cptg011 en (web)Cptg011 en (web)
Cptg011 en (web)
 
An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers An Introduction to very low power 16-bit Digital Signal Controllers
An Introduction to very low power 16-bit Digital Signal Controllers
 
Advanced motion controls be15a8
Advanced motion controls be15a8Advanced motion controls be15a8
Advanced motion controls be15a8
 
Advanced motion controls 20a20
Advanced motion controls 20a20Advanced motion controls 20a20
Advanced motion controls 20a20
 
Drv8833 motor driver datasheet
Drv8833 motor driver datasheetDrv8833 motor driver datasheet
Drv8833 motor driver datasheet
 
193 td012 -en-p
193 td012 -en-p193 td012 -en-p
193 td012 -en-p
 
Advanced motion controls sx30a8
Advanced motion controls sx30a8Advanced motion controls sx30a8
Advanced motion controls sx30a8
 
FirmLeak
FirmLeakFirmLeak
FirmLeak
 
User Manual - Final Project 2015
User Manual - Final Project 2015User Manual - Final Project 2015
User Manual - Final Project 2015
 
Intelligent mcc Siemens
Intelligent mcc Siemens Intelligent mcc Siemens
Intelligent mcc Siemens
 
Advanced motion controls s60a8
Advanced motion controls s60a8Advanced motion controls s60a8
Advanced motion controls s60a8
 
Manual de Danfoss 2800
Manual de Danfoss 2800Manual de Danfoss 2800
Manual de Danfoss 2800
 
Tier1automation Guide To Know More About Variable Frequency Drives
Tier1automation Guide To Know More About Variable Frequency DrivesTier1automation Guide To Know More About Variable Frequency Drives
Tier1automation Guide To Know More About Variable Frequency Drives
 
VLSID 2015 FirmLeak (Poster)
VLSID 2015 FirmLeak (Poster)VLSID 2015 FirmLeak (Poster)
VLSID 2015 FirmLeak (Poster)
 
Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...
Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...
Datablad ua741 operasjonsforsterer OP-AMP OPAMP Forsterker operational amplif...
 
Ddec master 2000 current4 6
Ddec  master 2000 current4 6Ddec  master 2000 current4 6
Ddec master 2000 current4 6
 

Viewers also liked

mi emprendimiento
mi emprendimientomi emprendimiento
mi emprendimiento0987044918
 
OKSofás Campaña Otoño 2016
OKSofás Campaña Otoño 2016OKSofás Campaña Otoño 2016
OKSofás Campaña Otoño 2016OKSofás
 
GROUP A - POSTER PRESENTATION - M02MAM
GROUP A - POSTER PRESENTATION - M02MAMGROUP A - POSTER PRESENTATION - M02MAM
GROUP A - POSTER PRESENTATION - M02MAMtolani adeleke
 
FSP Retail PC PSU : HYGRO Series
FSP Retail PC PSU :  HYGRO SeriesFSP Retail PC PSU :  HYGRO Series
FSP Retail PC PSU : HYGRO SeriesFSP Technology Inc.
 
7 iu s_u
7 iu s_u7 iu s_u
7 iu s_upidru4
 

Viewers also liked (6)

It resume
It resumeIt resume
It resume
 
mi emprendimiento
mi emprendimientomi emprendimiento
mi emprendimiento
 
OKSofás Campaña Otoño 2016
OKSofás Campaña Otoño 2016OKSofás Campaña Otoño 2016
OKSofás Campaña Otoño 2016
 
GROUP A - POSTER PRESENTATION - M02MAM
GROUP A - POSTER PRESENTATION - M02MAMGROUP A - POSTER PRESENTATION - M02MAM
GROUP A - POSTER PRESENTATION - M02MAM
 
FSP Retail PC PSU : HYGRO Series
FSP Retail PC PSU :  HYGRO SeriesFSP Retail PC PSU :  HYGRO Series
FSP Retail PC PSU : HYGRO Series
 
7 iu s_u
7 iu s_u7 iu s_u
7 iu s_u
 

Similar to Mc9 s08sh8

DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...
DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...
DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...Pradeep Avanigadda
 
Hoja de datos lm 555 y configuraciones
Hoja de datos lm 555 y configuraciones Hoja de datos lm 555 y configuraciones
Hoja de datos lm 555 y configuraciones Marlon Torres
 
testing purpose for ic testing and othettastinng
testing purpose for ic testing and othettastinngtesting purpose for ic testing and othettastinng
testing purpose for ic testing and othettastinngPvaveen
 
Lm3488 mm Datasheet-- Sharing by kynix
Lm3488 mm Datasheet-- Sharing by kynixLm3488 mm Datasheet-- Sharing by kynix
Lm3488 mm Datasheet-- Sharing by kynixwhatry1995
 
Track d more performance less power - freescale final
Track d   more performance less power  - freescale finalTrack d   more performance less power  - freescale final
Track d more performance less power - freescale finalchiportal
 
LM358 dual operational amplifier
LM358 dual operational amplifierLM358 dual operational amplifier
LM358 dual operational amplifierEasonchenng
 
What is huawei quidway s5300 gigabit switches
What is huawei quidway s5300 gigabit switchesWhat is huawei quidway s5300 gigabit switches
What is huawei quidway s5300 gigabit switchesHuanetwork
 
Relay Setting Calculation For REF615/ REJ601
Relay Setting Calculation For REF615/ REJ601Relay Setting Calculation For REF615/ REJ601
Relay Setting Calculation For REF615/ REJ601SARAVANAN A
 
MC9S08MP16: 8-bit MCU For BLDC Motor Control
MC9S08MP16: 8-bit MCU For BLDC Motor ControlMC9S08MP16: 8-bit MCU For BLDC Motor Control
MC9S08MP16: 8-bit MCU For BLDC Motor ControlPremier Farnell
 
Applied motion products txm24 c brochure
Applied motion products txm24 c brochureApplied motion products txm24 c brochure
Applied motion products txm24 c brochureElectromate
 
Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000
Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000
Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000niranjan131
 
Design and development of programmable controller for air sampling machine
Design and development of programmable controller for air sampling machineDesign and development of programmable controller for air sampling machine
Design and development of programmable controller for air sampling machineeSAT Journals
 
Applied motion products txm24 rs232 485 brochure
Applied motion products txm24 rs232 485 brochureApplied motion products txm24 rs232 485 brochure
Applied motion products txm24 rs232 485 brochureElectromate
 
Littelfuse solutions for uninterrupted power supply and energy storage systems
Littelfuse solutions for uninterrupted power supply and energy storage systemsLittelfuse solutions for uninterrupted power supply and energy storage systems
Littelfuse solutions for uninterrupted power supply and energy storage systemsLittelfuse
 
TIDA-01070-Design-Guide
TIDA-01070-Design-GuideTIDA-01070-Design-Guide
TIDA-01070-Design-GuideBrian Dempsey
 

Similar to Mc9 s08sh8 (20)

lm555.pdf
lm555.pdflm555.pdf
lm555.pdf
 
DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...
DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...
DETECTING POWER GRID SYNCHRONISATION FAILURE ON SENSING BAD VOLTAGE OR FREQUE...
 
Hoja de datos lm 555 y configuraciones
Hoja de datos lm 555 y configuraciones Hoja de datos lm 555 y configuraciones
Hoja de datos lm 555 y configuraciones
 
testing purpose for ic testing and othettastinng
testing purpose for ic testing and othettastinngtesting purpose for ic testing and othettastinng
testing purpose for ic testing and othettastinng
 
Lm3488 mm Datasheet-- Sharing by kynix
Lm3488 mm Datasheet-- Sharing by kynixLm3488 mm Datasheet-- Sharing by kynix
Lm3488 mm Datasheet-- Sharing by kynix
 
MC13202.pdf
MC13202.pdfMC13202.pdf
MC13202.pdf
 
Track d more performance less power - freescale final
Track d   more performance less power  - freescale finalTrack d   more performance less power  - freescale final
Track d more performance less power - freescale final
 
LM358 dual operational amplifier
LM358 dual operational amplifierLM358 dual operational amplifier
LM358 dual operational amplifier
 
What is huawei quidway s5300 gigabit switches
What is huawei quidway s5300 gigabit switchesWhat is huawei quidway s5300 gigabit switches
What is huawei quidway s5300 gigabit switches
 
Relay Setting Calculation For REF615/ REJ601
Relay Setting Calculation For REF615/ REJ601Relay Setting Calculation For REF615/ REJ601
Relay Setting Calculation For REF615/ REJ601
 
MC9S08MP16: 8-bit MCU For BLDC Motor Control
MC9S08MP16: 8-bit MCU For BLDC Motor ControlMC9S08MP16: 8-bit MCU For BLDC Motor Control
MC9S08MP16: 8-bit MCU For BLDC Motor Control
 
Applied motion products txm24 c brochure
Applied motion products txm24 c brochureApplied motion products txm24 c brochure
Applied motion products txm24 c brochure
 
Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000
Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000
Xrio converter manual 7 sa513 v3.3 enu tu2.11 v1.000
 
Design and development of programmable controller for air sampling machine
Design and development of programmable controller for air sampling machineDesign and development of programmable controller for air sampling machine
Design and development of programmable controller for air sampling machine
 
Applied motion products txm24 rs232 485 brochure
Applied motion products txm24 rs232 485 brochureApplied motion products txm24 rs232 485 brochure
Applied motion products txm24 rs232 485 brochure
 
Littelfuse solutions for uninterrupted power supply and energy storage systems
Littelfuse solutions for uninterrupted power supply and energy storage systemsLittelfuse solutions for uninterrupted power supply and energy storage systems
Littelfuse solutions for uninterrupted power supply and energy storage systems
 
Etracer6415BND Etracer4415BND user manual by Ultisolar New Energy
Etracer6415BND Etracer4415BND user manual by Ultisolar New Energy Etracer6415BND Etracer4415BND user manual by Ultisolar New Energy
Etracer6415BND Etracer4415BND user manual by Ultisolar New Energy
 
TIDA-01070-Design-Guide
TIDA-01070-Design-GuideTIDA-01070-Design-Guide
TIDA-01070-Design-Guide
 
Hd404314
Hd404314Hd404314
Hd404314
 
Ultisolar iT3415 iT4415 iT6415 iTracer User Manual
Ultisolar iT3415 iT4415 iT6415  iTracer User ManualUltisolar iT3415 iT4415 iT6415  iTracer User Manual
Ultisolar iT3415 iT4415 iT6415 iTracer User Manual
 

Recently uploaded

Monthly Market Risk Update: April 2024 [SlideShare]
Monthly Market Risk Update: April 2024 [SlideShare]Monthly Market Risk Update: April 2024 [SlideShare]
Monthly Market Risk Update: April 2024 [SlideShare]Commonwealth
 
The Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfThe Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfGale Pooley
 
Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services  9892124323 | ₹,4500 With Room Free DeliveryMalad Call Girl in Services  9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free DeliveryPooja Nehwal
 
The Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdfThe Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdfGale Pooley
 
20240417-Calibre-April-2024-Investor-Presentation.pdf
20240417-Calibre-April-2024-Investor-Presentation.pdf20240417-Calibre-April-2024-Investor-Presentation.pdf
20240417-Calibre-April-2024-Investor-Presentation.pdfAdnet Communications
 
Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex
 
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdfFinTech Belgium
 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...ssifa0344
 
03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptxFinTech Belgium
 
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure serviceCall US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure servicePooja Nehwal
 
Q3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast SlidesQ3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast SlidesMarketing847413
 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Instant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School DesignsInstant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School Designsegoetzinger
 
Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...
Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...
Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...ssifa0344
 
How Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of ReportingHow Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of ReportingAggregage
 
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...Suhani Kapoor
 
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spiritegoetzinger
 
Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...
Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...
Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...makika9823
 

Recently uploaded (20)

Monthly Market Risk Update: April 2024 [SlideShare]
Monthly Market Risk Update: April 2024 [SlideShare]Monthly Market Risk Update: April 2024 [SlideShare]
Monthly Market Risk Update: April 2024 [SlideShare]
 
The Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfThe Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdf
 
Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services  9892124323 | ₹,4500 With Room Free DeliveryMalad Call Girl in Services  9892124323 | ₹,4500 With Room Free Delivery
Malad Call Girl in Services 9892124323 | ₹,4500 With Room Free Delivery
 
The Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdfThe Economic History of the U.S. Lecture 18.pdf
The Economic History of the U.S. Lecture 18.pdf
 
20240417-Calibre-April-2024-Investor-Presentation.pdf
20240417-Calibre-April-2024-Investor-Presentation.pdf20240417-Calibre-April-2024-Investor-Presentation.pdf
20240417-Calibre-April-2024-Investor-Presentation.pdf
 
Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024Bladex Earnings Call Presentation 1Q2024
Bladex Earnings Call Presentation 1Q2024
 
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
06_Joeri Van Speybroek_Dell_MeetupDora&Cybersecurity.pdf
 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
 
Commercial Bank Economic Capsule - April 2024
Commercial Bank Economic Capsule - April 2024Commercial Bank Economic Capsule - April 2024
Commercial Bank Economic Capsule - April 2024
 
03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx03_Emmanuel Ndiaye_Degroof Petercam.pptx
03_Emmanuel Ndiaye_Degroof Petercam.pptx
 
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure serviceCall US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
 
Q3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast SlidesQ3 2024 Earnings Conference Call and Webcast Slides
Q3 2024 Earnings Conference Call and Webcast Slides
 
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Shivane  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Shivane 6297143586 Call Hot Indian Gi...
 
Instant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School DesignsInstant Issue Debit Cards - School Designs
Instant Issue Debit Cards - School Designs
 
Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...
Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...
Solution Manual for Financial Accounting, 11th Edition by Robert Libby, Patri...
 
How Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of ReportingHow Automation is Driving Efficiency Through the Last Mile of Reporting
How Automation is Driving Efficiency Through the Last Mile of Reporting
 
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
VIP Call Girls LB Nagar ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With Room...
 
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
 
Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...
Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...
Independent Lucknow Call Girls 8923113531WhatsApp Lucknow Call Girls make you...
 

Mc9 s08sh8

  • 1. Freescale Semiconductor Addendum Document Number: QFN_Addendum Rev. 0, 07/2014 © Freescale Semiconductor, Inc., 2014. All rights reserved. This addendum provides the changes to the 98A case outline numbers for products covered in this book. Case outlines were changed because of the migration from gold wire to copper wire in some packages. See the table below for the old (gold wire) package versus the new (copper wire) package. To view the new drawing, go to Freescale.com and search on the new 98A package number for your device. For more information about QFN package use, see EB806: Electrical Connection Recommendations for the Exposed Pad on QFN and DFN Packages. Addendum for New QFN Package Migration
  • 2. Addendum for New QFN Package Migration, Rev. 0 Freescale Semiconductor2 Part Number Package Description Original (gold wire) package document number Current (copper wire) package document number MC68HC908JW32 48 QFN 98ARH99048A 98ASA00466D MC9S08AC16 MC9S908AC60 MC9S08AC128 MC9S08AW60 MC9S08GB60A MC9S08GT16A MC9S08JM16 MC9S08JM60 MC9S08LL16 MC9S08QE128 MC9S08QE32 MC9S08RG60 MCF51CN128 MC9RS08LA8 48 QFN 98ARL10606D 98ASA00466D MC9S08GT16A 32 QFN 98ARH99035A 98ASA00473D MC9S908QE32 32 QFN 98ARE10566D 98ASA00473D MC9S908QE8 32 QFN 98ASA00071D 98ASA00736D MC9S08JS16 24 QFN 98ARL10608D 98ASA00734D MC9S08QB8 MC9S08QG8 24 QFN 98ARL10605D 98ASA00474D MC9S08SH8 24 QFN 98ARE10714D 98ASA00474D MC9RS08KB12 24 QFN 98ASA00087D 98ASA00602D MC9S08QG8 16 QFN 98ARE10614D 98ASA00671D MC9RS08KB12 8 DFN 98ARL10557D 98ASA00672D MC9S08QG8 MC9RS08KA2 6 DFN 98ARL10602D 98ASA00735D
  • 3. © Freescale Semiconductor, Inc., 2012. All rights reserved. Freescale Semiconductor MC9S08SH8 Rev. 3.1, 05/2012 This is the MC9S08SH8 datasheet set consisting of the following files: • MC9S08SH8 Datasheet Addendum, Rev 1 • MC9S08SH8 Datasheet, Rev 3 MC9S08SH8 Datasheet
  • 4. © Freescale Semiconductor, Inc., 2012. All rights reserved. Freescale Semiconductor Datasheet Addendum MC9S08SH8AD Rev. 1, 05/2012 Table of ContentsThis addendum describes corrections or updates to the MC9S08SH8 Datasheet, file named as MC9S08SH8. Please check our website at http://www.freescale.com/, for the latest updates. The current version available of the MC9S08SH8 Datasheet is Revision 3.0. MC9S08SH8 Datasheet Addendum 1 Addendum for Revision 3.0. . . . . . . . . . . . . . . . . . 2 2 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . 2
  • 5. MC9S08SH8AD, Rev. 1 Addendum for Revision 3.0 Freescale Semiconductor2 1 Addendum for Revision 3.0 2 Revision History Table 2 provides a revision history for this document. Table 1. MC9S08SH8 Rev 3.0 Addendum Location Description Section “Control Timing” for Appendix A ”Electrical Characteristics” In “Control Timing” table, changed minimum value of “'Internal low power oscillator period” parameter from 800 µs to 700 µs. This value is under 5V VDD, -40 o C to 125 o C temperature range condition. Table 2. Revision History Table Rev. Number Substantive Changes Date of Release 1.0 Initial release. Changed minimum value of “'Internal low power oscillator period” parameter from 800 µs to 700 µs, in “Control Timing” table. 05/2012
  • 6. How to Reach Us: Home Page: www.freescale.com Web Support: http://www.freescale.com/support USA/Europe or Locations Not Listed: Freescale Semiconductor, Inc. Technical Information Center, EL516 2100 East Elliot Road Tempe, Arizona 85284 +1-800-521-6274 or +1-480-768-2130 www.freescale.com/support Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) www.freescale.com/support Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064 Japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com Asia/Pacific: Freescale Semiconductor China Ltd. Exchange Building 23F No. 118 Jianguo Road Chaoyang District Beijing 100022 China +86 10 5879 8000 support.asia@freescale.com For Literature Requests Only: Freescale Semiconductor Literature Distribution Center 1-800-441-2447 or 303-675-2140 Fax: 303-675-2150 LDCForFreescaleSemiconductor@hibbertgroup.com Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals”, must be validated for each customer application by customer’s technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners.© Freescale Semiconductor, Inc. 2012. All rights reserved. MC9S08SH8AD Rev. 1 05/2012
  • 8.
  • 9. 8-Bit HCS08 Central Processor Unit (CPU) • 40-MHz HCS08 CPU (central processor unit) • HC08 instruction set with added BGND instruction • Support for up to 32 interrupt/reset sources On-Chip Memory • FLASH read/program/erase over full operating voltage and temperature • Random-access memory (RAM) Power-Saving Modes • Two very low power stop modes • Reduced power wait mode • Very low power real time interrupt for use in run, wait, and stop Clock Source Options • Oscillator (XOSC) — Loop-control Pierce oscillator; Crystal or ceramic resonator range of 31.25 kHz to 38.4 kHz or 1 MHz to 16 MHz • Internal Clock Source (ICS) — Internal clock source module containing a frequency-locked loop (FLL) controlled by internal or external reference; precision trimming of internal reference allows 0.2% resolution and 2% deviation over temperature and voltage; supports bus frequencies from 2 MHz to 20 MHz. System Protection • Watchdog computer operating properly (COP) reset with opti/n to run from dedicated 1-kHz internal clock source or bus clock • Low-voltage detection with reset or interrupt; selectable trip points • Illegal opcode detection with reset • Illegal address detection with reset • FLASH block protect Development Support • Single-wire background debug interface • Breakpoint capability to allow single breakpoint setting during in-circuit debugging (pluss two more breakpoints in on-chip debug module) • On-chip, in-circuit emulation (ICE) debug module containing two comparators and nine trigger modes. Eight deep FIFO for storing change-of-flow address and event-only data. Debug module supports both tag and force breakpoints. Peripherals • ADC — 12-channel, 10-bit resolution, 2.5 μs conversion time, automatic compare function, temperature sensor, internal bandgap reference channel; runs in stop3 • ACMP — Analog comparator with selectable interrupt on rising, falling, or either edge of comparator output; compare option to fixed internal bandgap reference voltage; output can be optionally routed to TPM module; runs in stop3 • SCI — Full duplex non-return to zero (NRZ); LIN master extended break generation; LIN slave extended break detection; wake up on active edge • SPI — Full-duplex or single-wire bidirectional; Double-buffered transmit and receive; Master or Slave mode; MSB-first or LSB-first shifting • IIC — Up to 100 kbps with maximum bus loading; Multi-master operation; Programmable slave address; Interrupt driven byte-by-byte data transfer; supports broadcast mode and 10-bit addressing • MTIM — 8-bit modulo counter with 8-bit prescaler and overflow interrupt • TPMx — Two 2-channel timer pwm modules (TPM1, TPM2); Selectable input capture, output compare, or buffered edge- or center-aligned PWM on each channel • RTC — (Real-time counter) 8-bit modulus counter with binary or decimal based prescaler; External clock source for precise time base, time-of-day, calendar or task scheduling functions; Free running on-chip low power oscillator (1 kHz) for cyclic wake-up without external components, runs in all MCU modes Input/Output • 17 general purpose I/O pins (GPIOs) and 1 output-only pin • 8 interrupt pins with selectable polarity • Ganged output option for PTB[5:2] and PTC[3:0]; allows single write to change state of multiple pins • Hysteresis and configurable pull up device on all input pins; Configurable slew rate and drive strength on all output pins. Package Options • 24-QFN, 20-TSSOP, 20-SOIC, 20-PDIP, 16-TSSOP, 8-SOIC MC9S08SH8 Features
  • 10.
  • 11. MC9S08SH8 Data Sheet Covers MC9S08SH8 MC9S08SH4 MC9S08SH8 Rev. 3 6/2008 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. © Freescale Semiconductor, Inc., 2007-2008. All rights reserved.
  • 12. MC9S08SH8 MCU Series Data Sheet, Rev. 3 6 Freescale Semiconductor Revision History To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify you have the latest information available, refer to: http://freescale.com/ The following revision history table summarizes changes contained in this document. Revision Number Revision Date Description of Changes 0.01 3/08/2006 Initial review copy 1 11/2007 Updated Electricals and incorporated revisions from Project sync issues: 2394, 2600, 2601, and 2764. 2 3/2008 Corrected SPI module to be version 3. Incorporated fixes for Project Sync issues: 2394, 2600, 2601, 2764, 3237, and 3279; as well as, ADC Temperature Sensor issues 3331 and 3335. Adjusted Features page leading and fixed minor grammatical errors. Added 20-SOIC package option for the C temp only. Cor- rected package drawing number for 24-QFN. 3 6/2008 Added ICS over Termperature graph to Electricals. Resolved final TBDs. © Freescale Semiconductor, Inc., 2007-2008. All rights reserved. This product incorporates SuperFlash® Technology licensed from SST.
  • 13. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 7 List of Chapters Chapter 1 Device Overview ......................................................................19 Chapter 2 Pins and Connections.............................................................23 Chapter 3 Modes of Operation.................................................................31 Chapter 4 Memory.....................................................................................37 Chapter 5 Resets, Interrupts, and General System Control..................59 Chapter 6 Parallel Input/Output Control..................................................75 Chapter 7 Central Processor Unit (S08CPUV2)......................................93 Chapter 8 Analog Comparator 5-V (S08ACMPV2)................................113 Chapter 9 Analog-to-Digital Converter (S08ADCV1)............................121 Chapter 10 Internal Clock Source (S08ICSV2)........................................149 Chapter 11 Inter-Integrated Circuit (S08IICV2) .......................................163 Chapter 12 Modulo Timer (S08MTIMV1)..................................................183 Chapter 13 Real-Time Counter (S08RTCV1) ...........................................193 Chapter 14 Serial Communications Interface (S08SCIV4).....................203 Chapter 15 Serial Peripheral Interface (S08SPIV3) ................................223 Chapter 16 Timer Pulse-Width Modulator (S08TPMV3).........................239 Chapter 17 Development Support ...........................................................267 Appendix A Electrical Characteristics......................................................289 Appendix B Ordering Information and Mechanical Drawings................319
  • 14.
  • 15. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 9 Contents Section Number Title Page Chapter 1 Device Overview 1.1 Devices in the MC9S08SH8 Series .................................................................................................19 1.2 MCU Block Diagram ......................................................................................................................20 1.3 System Clock Distribution ..............................................................................................................22 Chapter 2 Pins and Connections 2.1 Device Pin Assignment ...................................................................................................................23 2.2 Recommended System Connections ...............................................................................................24 2.2.1 Power ................................................................................................................................25 2.2.2 Oscillator (XOSC) ............................................................................................................26 2.2.3 RESET ..............................................................................................................................26 2.2.4 Background / Mode Select (BKGD/MS) ..........................................................................27 2.2.5 General-Purpose I/O and Peripheral Ports ........................................................................27 Chapter 3 Modes of Operation 3.1 Introduction .....................................................................................................................................31 3.2 Features ...........................................................................................................................................31 3.3 Run Mode ........................................................................................................................................31 3.4 Active Background Mode ................................................................................................................31 3.5 Wait Mode .......................................................................................................................................32 3.6 Stop Modes ......................................................................................................................................32 3.6.1 Stop3 Mode .......................................................................................................................33 3.6.2 Stop2 Mode .......................................................................................................................34 3.6.3 On-Chip Peripheral Modules in Stop Modes ....................................................................34 Chapter 4 Memory 4.1 MC9S08SH8 Memory Map ............................................................................................................37 4.2 Reset and Interrupt Vector Assignments .........................................................................................38 4.3 Register Addresses and Bit Assignments ........................................................................................39 4.4 RAM ................................................................................................................................................46 4.5 FLASH ............................................................................................................................................46 4.5.1 Features .............................................................................................................................47 4.5.2 Program and Erase Times .................................................................................................47
  • 16. MC9S08SH8 MCU Series Data Sheet, Rev. 3 10 Freescale Semiconductor Section Number Title Page 4.5.3 Program and Erase Command Execution .........................................................................48 4.5.4 Burst Program Execution ..................................................................................................49 4.5.5 Access Errors ....................................................................................................................51 4.5.6 FLASH Block Protection ..................................................................................................51 4.5.7 Vector Redirection ............................................................................................................52 4.6 Security ............................................................................................................................................52 4.7 FLASH Registers and Control Bits .................................................................................................53 4.7.1 FLASH Clock Divider Register (FCDIV) ........................................................................54 4.7.2 FLASH Options Register (FOPT and NVOPT) ................................................................55 4.7.3 FLASH Configuration Register (FCNFG) ........................................................................56 4.7.4 FLASH Protection Register (FPROT and NVPROT) .......................................................56 4.7.5 FLASH Status Register (FSTAT) ......................................................................................57 4.7.6 FLASH Command Register (FCMD) ...............................................................................58 Chapter 5 Resets, Interrupts, and General System Control 5.1 Introduction .....................................................................................................................................59 5.2 Features ...........................................................................................................................................59 5.3 MCU Reset ......................................................................................................................................59 5.4 Computer Operating Properly (COP) Watchdog .............................................................................60 5.5 Interrupts .........................................................................................................................................61 5.5.1 Interrupt Stack Frame .......................................................................................................62 5.5.2 External Interrupt Request Pin (IRQ) ...............................................................................63 5.5.3 Interrupt Vectors, Sources, and Local Masks ....................................................................63 5.6 Low-Voltage Detect (LVD) System ................................................................................................65 5.6.1 Power-On Reset Operation ...............................................................................................65 5.6.2 Low-Voltage Detection (LVD) Reset Operation ...............................................................65 5.6.3 Low-Voltage Warning (LVW) Interrupt Operation ...........................................................65 5.7 Reset, Interrupt, and System Control Registers and Control Bits ...................................................65 5.7.1 Interrupt Pin Request Status and Control Register (IRQSC) ............................................66 5.7.2 System Reset Status Register (SRS) .................................................................................67 5.7.3 System Background Debug Force Reset Register (SBDFR) ............................................68 5.7.4 System Options Register 1 (SOPT1) ................................................................................69 5.7.5 System Options Register 2 (SOPT2) ................................................................................70 5.7.6 System Device Identification Register (SDIDH, SDIDL) ................................................71 5.7.7 System Power Management Status and Control 1 Register (SPMSC1) ...........................72 5.7.8 System Power Management Status and Control 2 Register (SPMSC2) ...........................73 Chapter 6 Parallel Input/Output Control 6.1 Port Data and Data Direction ..........................................................................................................75 6.2 Pull-up, Slew Rate, and Drive Strength ...........................................................................................76
  • 17. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 11 Section Number Title Page 6.3 Ganged Output ................................................................................................................................77 6.4 Pin Interrupts ...................................................................................................................................78 6.4.1 Edge Only Sensitivity .......................................................................................................78 6.4.2 Edge and Level Sensitivity ................................................................................................78 6.4.3 Pull-up/Pull-down Resistors .............................................................................................79 6.4.4 Pin Interrupt Initialization .................................................................................................79 6.5 Pin Behavior in Stop Modes ............................................................................................................79 6.6 Parallel I/O and Pin Control Registers ............................................................................................79 6.6.1 Port A Registers ................................................................................................................80 6.6.2 Port B Registers ................................................................................................................85 6.6.3 Port C Registers ................................................................................................................89 Chapter 7 Central Processor Unit (S08CPUV2) 7.1 Introduction .....................................................................................................................................93 7.1.1 Features .............................................................................................................................93 7.2 Programmer’s Model and CPU Registers .......................................................................................94 7.2.1 Accumulator (A) ...............................................................................................................94 7.2.2 Index Register (H:X) .........................................................................................................94 7.2.3 Stack Pointer (SP) .............................................................................................................95 7.2.4 Program Counter (PC) ......................................................................................................95 7.2.5 Condition Code Register (CCR) .......................................................................................95 7.3 Addressing Modes ...........................................................................................................................97 7.3.1 Inherent Addressing Mode (INH) .....................................................................................97 7.3.2 Relative Addressing Mode (REL) .....................................................................................97 7.3.3 Immediate Addressing Mode (IMM) ................................................................................97 7.3.4 Direct Addressing Mode (DIR) ........................................................................................97 7.3.5 Extended Addressing Mode (EXT) ..................................................................................98 7.3.6 Indexed Addressing Mode ................................................................................................98 7.4 Special Operations ...........................................................................................................................99 7.4.1 Reset Sequence .................................................................................................................99 7.4.2 Interrupt Sequence ............................................................................................................99 7.4.3 Wait Mode Operation ......................................................................................................100 7.4.4 Stop Mode Operation ......................................................................................................100 7.4.5 BGND Instruction ...........................................................................................................101 7.5 HCS08 Instruction Set Summary ..................................................................................................102 Chapter 8 Analog Comparator 5-V (S08ACMPV2) 8.1 Introduction ...................................................................................................................................113 8.1.1 ACMP Configuration Information ..................................................................................113 8.1.2 ACMP in Stop3 Mode .....................................................................................................113
  • 18. MC9S08SH8 MCU Series Data Sheet, Rev. 3 12 Freescale Semiconductor Section Number Title Page 8.1.3 ACMP/TPM Configuration Information .........................................................................113 8.1.4 Features ...........................................................................................................................115 8.1.5 Modes of Operation ........................................................................................................115 8.1.6 Block Diagram ................................................................................................................115 8.2 External Signal Description ..........................................................................................................117 8.3 Memory Map ................................................................................................................................117 8.3.1 Register Descriptions ......................................................................................................117 8.4 Functional Description ..................................................................................................................119 Chapter 9 Analog-to-Digital Converter (S08ADCV1) 9.1 Introduction ...................................................................................................................................121 9.1.1 Channel Assignments ......................................................................................................121 9.1.2 Alternate Clock ...............................................................................................................122 9.1.3 Hardware Trigger ............................................................................................................122 9.1.4 Temperature Sensor ........................................................................................................122 9.1.5 Features ...........................................................................................................................125 9.1.6 Block Diagram ................................................................................................................125 9.2 External Signal Description ..........................................................................................................126 9.2.1 Analog Power (VDDAD) ..................................................................................................127 9.2.2 Analog Ground (VSSAD) .................................................................................................127 9.2.3 Voltage Reference High (VREFH) ...................................................................................127 9.2.4 Voltage Reference Low (VREFL) .....................................................................................127 9.2.5 Analog Channel Inputs (ADx) ........................................................................................127 9.3 Register Definition ........................................................................................................................127 9.3.1 Status and Control Register 1 (ADCSC1) ......................................................................127 9.3.2 Status and Control Register 2 (ADCSC2) ......................................................................129 9.3.3 Data Result High Register (ADCRH) .............................................................................130 9.3.4 Data Result Low Register (ADCRL) ..............................................................................130 9.3.5 Compare Value High Register (ADCCVH) ....................................................................131 9.3.6 Compare Value Low Register (ADCCVL) .....................................................................131 9.3.7 Configuration Register (ADCCFG) ................................................................................131 9.3.8 Pin Control 1 Register (APCTL1) ..................................................................................133 9.3.9 Pin Control 2 Register (APCTL2) ..................................................................................134 9.3.10 Pin Control 3 Register (APCTL3) ..................................................................................135 9.4 Functional Description ..................................................................................................................136 9.4.1 Clock Select and Divide Control ....................................................................................136 9.4.2 Input Select and Pin Control ...........................................................................................137 9.4.3 Hardware Trigger ............................................................................................................137 9.4.4 Conversion Control .........................................................................................................137 9.4.5 Automatic Compare Function .........................................................................................140 9.4.6 MCU Wait Mode Operation ............................................................................................140
  • 19. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 13 Section Number Title Page 9.4.7 MCU Stop3 Mode Operation ..........................................................................................140 9.4.8 MCU Stop1 and Stop2 Mode Operation .........................................................................141 9.5 Initialization Information ..............................................................................................................141 9.5.1 ADC Module Initialization Example .............................................................................141 9.6 Application Information ................................................................................................................143 9.6.1 External Pins and Routing ..............................................................................................143 9.6.2 Sources of Error ..............................................................................................................145 Chapter 10 Internal Clock Source (S08ICSV2) 10.1 Introduction ...................................................................................................................................149 10.1.1 Module Configuration .....................................................................................................149 10.1.2 Features ...........................................................................................................................151 10.1.3 Block Diagram ................................................................................................................151 10.1.4 Modes of Operation ........................................................................................................152 10.2 External Signal Description ..........................................................................................................153 10.3 Register Definition ........................................................................................................................153 10.3.1 ICS Control Register 1 (ICSC1) .....................................................................................154 10.3.2 ICS Control Register 2 (ICSC2) .....................................................................................155 10.3.3 ICS Trim Register (ICSTRM) .........................................................................................156 10.3.4 ICS Status and Control (ICSSC) .....................................................................................156 10.4 Functional Description ..................................................................................................................157 10.4.1 Operational Modes ..........................................................................................................157 10.4.2 Mode Switching ..............................................................................................................159 10.4.3 Bus Frequency Divider ...................................................................................................160 10.4.4 Low Power Bit Usage .....................................................................................................160 10.4.5 Internal Reference Clock ................................................................................................160 10.4.6 Optional External Reference Clock ................................................................................160 10.4.7 Fixed Frequency Clock ...................................................................................................161 Chapter 11 Inter-Integrated Circuit (S08IICV2) 11.1 Introduction ...................................................................................................................................163 11.1.1 Module Configuration .....................................................................................................163 11.1.2 Features ...........................................................................................................................165 11.1.3 Modes of Operation ........................................................................................................165 11.1.4 Block Diagram ................................................................................................................166 11.2 External Signal Description ..........................................................................................................166 11.2.1 SCL — Serial Clock Line ...............................................................................................166 11.2.2 SDA — Serial Data Line ................................................................................................166 11.3 Register Definition ........................................................................................................................166 11.3.1 IIC Address Register (IICA) ...........................................................................................167
  • 20. MC9S08SH8 MCU Series Data Sheet, Rev. 3 14 Freescale Semiconductor Section Number Title Page 11.3.2 IIC Frequency Divider Register (IICF) ...........................................................................167 11.3.3 IIC Control Register (IICC1) ..........................................................................................170 11.3.4 IIC Status Register (IICS) ...............................................................................................171 11.3.5 IIC Data I/O Register (IICD) ..........................................................................................172 11.3.6 IIC Control Register 2 (IICC2) .......................................................................................172 11.4 Functional Description ..................................................................................................................173 11.4.1 IIC Protocol .....................................................................................................................173 11.4.2 10-bit Address .................................................................................................................177 11.4.3 General Call Address ......................................................................................................178 11.5 Resets ............................................................................................................................................178 11.6 Interrupts .......................................................................................................................................178 11.6.1 Byte Transfer Interrupt ....................................................................................................178 11.6.2 Address Detect Interrupt .................................................................................................178 11.6.3 Arbitration Lost Interrupt ................................................................................................178 11.7 Initialization/Application Information ..........................................................................................180 Chapter 12 Modulo Timer (S08MTIMV1) 12.1 Introduction ...................................................................................................................................183 12.1.1 MTIM Configuration Information ..................................................................................183 12.1.2 Features ...........................................................................................................................185 12.1.3 Modes of Operation ........................................................................................................185 12.1.4 Block Diagram ................................................................................................................186 12.2 External Signal Description ..........................................................................................................186 12.3 Register Definition ........................................................................................................................187 12.3.1 MTIM Status and Control Register (MTIMSC) .............................................................188 12.3.2 MTIM Clock Configuration Register (MTIMCLK) .......................................................189 12.3.3 MTIM Counter Register (MTIMCNT) ...........................................................................190 12.3.4 MTIM Modulo Register (MTIMMOD) ..........................................................................190 12.4 Functional Description ..................................................................................................................191 12.4.1 MTIM Operation Example .............................................................................................192 Chapter 13 Real-Time Counter (S08RTCV1) 13.1 Introduction ...................................................................................................................................193 13.1.1 Features ...........................................................................................................................195 13.1.2 Modes of Operation ........................................................................................................195 13.1.3 Block Diagram ................................................................................................................196 13.2 External Signal Description ..........................................................................................................196 13.3 Register Definition ........................................................................................................................196 13.3.1 RTC Status and Control Register (RTCSC) ....................................................................197 13.3.2 RTC Counter Register (RTCCNT) ..................................................................................198
  • 21. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 15 Section Number Title Page 13.3.3 RTC Modulo Register (RTCMOD) ................................................................................198 13.4 Functional Description ..................................................................................................................198 13.4.1 RTC Operation Example .................................................................................................199 13.5 Initialization/Application Information ..........................................................................................200 Chapter 14 Serial Communications Interface (S08SCIV4) 14.1 Introduction ...................................................................................................................................203 14.1.1 Features ...........................................................................................................................205 14.1.2 Modes of Operation ........................................................................................................205 14.1.3 Block Diagram ................................................................................................................206 14.2 Register Definition ........................................................................................................................208 14.2.1 SCI Baud Rate Registers (SCIxBDH, SCIxBDL) ..........................................................208 14.2.2 SCI Control Register 1 (SCIxC1) ...................................................................................209 14.2.3 SCI Control Register 2 (SCIxC2) ...................................................................................210 14.2.4 SCI Status Register 1 (SCIxS1) ......................................................................................211 14.2.5 SCI Status Register 2 (SCIxS2) ......................................................................................213 14.2.6 SCI Control Register 3 (SCIxC3) ...................................................................................214 14.2.7 SCI Data Register (SCIxD) .............................................................................................215 14.3 Functional Description ..................................................................................................................215 14.3.1 Baud Rate Generation .....................................................................................................215 14.3.2 Transmitter Functional Description ................................................................................216 14.3.3 Receiver Functional Description .....................................................................................217 14.3.4 Interrupts and Status Flags ..............................................................................................219 14.3.5 Additional SCI Functions ...............................................................................................220 Chapter 15 Serial Peripheral Interface (S08SPIV3) 15.1 Introduction ...................................................................................................................................223 15.1.1 Features ...........................................................................................................................225 15.1.2 Block Diagrams ..............................................................................................................225 15.1.3 SPI Baud Rate Generation ..............................................................................................227 15.2 External Signal Description ..........................................................................................................228 15.2.1 SPSCK — SPI Serial Clock ............................................................................................228 15.2.2 MOSI — Master Data Out, Slave Data In ......................................................................228 15.2.3 MISO — Master Data In, Slave Data Out ......................................................................228 15.2.4 SS — Slave Select ...........................................................................................................228 15.3 Modes of Operation .......................................................................................................................229 15.3.1 SPI in Stop Modes ..........................................................................................................229 15.4 Register Definition ........................................................................................................................229 15.4.1 SPI Control Register 1 (SPIC1) ......................................................................................229 15.4.2 SPI Control Register 2 (SPIC2) ......................................................................................230
  • 22. MC9S08SH8 MCU Series Data Sheet, Rev. 3 16 Freescale Semiconductor Section Number Title Page 15.4.3 SPI Baud Rate Register (SPIBR) ....................................................................................231 15.4.4 SPI Status Register (SPIS) ..............................................................................................232 15.4.5 SPI Data Register (SPID) ................................................................................................233 15.5 Functional Description ..................................................................................................................234 15.5.1 SPI Clock Formats ..........................................................................................................234 15.5.2 SPI Interrupts ..................................................................................................................237 15.5.3 Mode Fault Detection .....................................................................................................237 Chapter 16 Timer Pulse-Width Modulator (S08TPMV3) 16.1 Introduction ...................................................................................................................................239 16.1.1 ACMP/TPM Configuration Information .........................................................................239 16.1.2 TPM Configuration Information .....................................................................................239 16.1.3 Features ...........................................................................................................................241 16.1.4 Modes of Operation ........................................................................................................241 16.1.5 Block Diagram ................................................................................................................242 16.2 Signal Description .........................................................................................................................244 16.2.1 Detailed Signal Descriptions ...........................................................................................244 16.3 Register Definition ........................................................................................................................248 16.3.1 TPM Status and Control Register (TPMxSC) ................................................................248 16.3.2 TPM-Counter Registers (TPMxCNTH:TPMxCNTL) ....................................................249 16.3.3 TPM Counter Modulo Registers (TPMxMODH:TPMxMODL) ....................................250 16.3.4 TPM Channel n Status and Control Register (TPMxCnSC) ..........................................251 16.3.5 TPM Channel Value Registers (TPMxCnVH:TPMxCnVL) ..........................................253 16.4 Functional Description ..................................................................................................................254 16.4.1 Counter ............................................................................................................................255 16.4.2 Channel Mode Selection .................................................................................................256 16.5 Reset Overview .............................................................................................................................260 16.5.1 General ............................................................................................................................260 16.5.2 Description of Reset Operation .......................................................................................260 16.6 Interrupts .......................................................................................................................................260 16.6.1 General ............................................................................................................................260 16.6.2 Description of Interrupt Operation ..................................................................................260 16.7 The Differences from TPM v2 to TPM v3 ....................................................................................262 Chapter 17 Development Support 17.1 Introduction ...................................................................................................................................267 17.1.1 Forcing Active Background ............................................................................................267 17.1.2 Features ...........................................................................................................................268 17.2 Background Debug Controller (BDC) ..........................................................................................268 17.2.1 BKGD Pin Description ...................................................................................................269
  • 23. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 17 Section Number Title Page 17.2.2 Communication Details ..................................................................................................270 17.2.3 BDC Commands .............................................................................................................274 17.2.4 BDC Hardware Breakpoint .............................................................................................276 17.3 On-Chip Debug System (DBG) ....................................................................................................277 17.3.1 Comparators A and B ......................................................................................................277 17.3.2 Bus Capture Information and FIFO Operation ...............................................................277 17.3.3 Change-of-Flow Information ..........................................................................................278 17.3.4 Tag vs. Force Breakpoints and Triggers .........................................................................278 17.3.5 Trigger Modes .................................................................................................................279 17.3.6 Hardware Breakpoints ....................................................................................................281 17.4 Register Definition ........................................................................................................................281 17.4.1 BDC Registers and Control Bits .....................................................................................281 17.4.2 System Background Debug Force Reset Register (SBDFR) ..........................................283 17.4.3 DBG Registers and Control Bits .....................................................................................284 Appendix A Electrical Characteristics A.1 Introduction ...................................................................................................................................289 A.2 Parameter Classification ................................................................................................................289 A.3 Absolute Maximum Ratings ..........................................................................................................289 A.4 Thermal Characteristics .................................................................................................................291 A.5 ESD Protection and Latch-Up Immunity ......................................................................................293 A.6 DC Characteristics .........................................................................................................................294 A.7 Supply Current Characteristics ......................................................................................................298 A.8 External Oscillator (XOSC) Characteristics .................................................................................301 A.9 Internal Clock Source (ICS) Characteristics .................................................................................303 A.10 Analog Comparator (ACMP) Electricals ......................................................................................305 A.11 ADC Characteristics ......................................................................................................................306 A.12 AC Characteristics .........................................................................................................................309 A.12.1 Control Timing ...............................................................................................................309 A.12.2 TPM/MTIM Module Timing ..........................................................................................311 A.12.3 SPI ...................................................................................................................................312 A.13 FLASH Specifications ...................................................................................................................315 A.14 EMC Performance .........................................................................................................................316 A.14.1 Radiated Emissions .........................................................................................................316 A.14.2 Conducted Transient Susceptibility ................................................................................316 Appendix B Ordering Information and Mechanical Drawings B.1 Ordering Information ....................................................................................................................319 B.1.1 Device Numbering Scheme ............................................................................................319 B.2 Mechanical Drawings ....................................................................................................................320
  • 24.
  • 25. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 19 Chapter 1 Device Overview The MC9S08SH8 members of the low-cost, high-performance HCS08 Family of 8-bit microcontroller units (MCUs). All MCUs in the family use the enhanced HCS08 core and are available with a variety of modules, memory sizes, memory types, and package types. 1.1 Devices in the MC9S08SH8 Series Table 1-1 summarizes the feature set available in the MC9S08SH8 series of MCUs. t Table 1-1. MC9S08SH8 Features by MCU and Package Feature 9S08SH8 9S08SH4 FLASH size (bytes) 8192 4096 RAM size (bytes) 512 256 Pin quantity 24 20 16 8 24 20 16 8 ACMP yes ADC channels 12 12 8 4 12 12 8 4 DBG yes ICS yes yes yes yes1 1 FBE and FEE modes are not available in 8-pin packages. yes yes yes yes 1 IIC yes MTIM yes Pin Interrupts 8 8 8 4 8 8 8 4 Pin I/O 2 2 Port I/O count does not include the output-only PTA4/ACMPO/BKGD/MS. 17 17 13 5 17 17 13 5 RTC yes SCI yes yes yes no yes yes yes no SPI yes yes yes no yes yes yes no TPM1 channels 2 2 2 1 2 2 2 1 TPM2 channels 2 2 2 1 2 2 2 1 XOSC yes yes yes no yes yes yes no
  • 26. Chapter 1 Device Overview MC9S08SH8 MCU Series Data Sheet, Rev. 3 20 Freescale Semiconductor 1.2 MCU Block Diagram The block diagram in Figure 1-1 shows the structure of the MC9S08SH8 MCU. Figure 1-1. MC9S08SH8 Block Diagram PTB7/SCL/EXTAL PORTB PTB6/SDA/XTAL PTB5/TPM1CH1/SS PTB4/TPM2CH1/MISO PTB3/PIB3/MOSI/ADP7 PTB2/PIB2/SPSCK/ADP6 PORTA PTA1/PIA1/TPM2CH0/ADP1/ACMP– PTB1/PIB1/TxD/ADP5 PTB0/PIB0/RxD/ADP4 PORTC PTC3/ADP11 PTC2/ADP10 PTC1/TPM1CH1/ADP9 PTC0/TPM1CH0/ADP8 PTA3/PAI3/SCL/ADP3 PTA2/PAI2/SDA/ADP2 PTA0/PIA0/TPM1CH0/ADP0/ACMP+ Pin can be enabled as part of the ganged output drive feature PTA4/ACMPO/BKGD/MS PTA5/IRQ/TCLK/RESET NOTE 1: Port B not available on 8-pin packages SEE NOTE 1 SEE NOTE 1, 2 NOTE 2: Port C not available on 8-pin or 16-pin packages IIC MODULE (IIC) SERIAL PERIPHERAL INTERFACE MODULE (SPI)USER FLASH USER RAM HCS08 CORE CPU BDC HCS08 SYSTEM CONTROL RESETS AND INTERRUPTS MODES OF OPERATION POWER MANAGEMENT COP LVD INTERFACE MODULE (SCI) SERIAL COMMUNICATIONS 8-BIT MODULO TIMER MODULE (MTIM) VOLTAGE REGULATOR DEBUG MODULE (DBG) MISO SCL SDA MOSI SPSCK RxD TxD LOW-POWER OSCILLATOR 40-MHz INTERNAL CLOCK SOURCE (ICS) 31.25 kHz to 38.4 kHz 1 MHz to 16 MHz (XOSC) EXTAL XTAL VSS VDD VSSA VDDA VREFL VREFH ANALOG-TO-DIGITAL CONVERTER (ADC) 10-BIT SS TCLK BKGD/MS 16-BIT TIMER/PWM MODULE (TPM2) TCLK REAL-TIME COUNTER (RTC) (MC9S08SH8 = 8,192 BYTES) (MC9S08SH4 = 4096 BYTES) (MC9S08SH8 = 512 BYTES) ANALOG COMPARATOR (ACMP) ACMPO ACMP– ACMP+ TPM2CH0 TPM2CH1 ADP11-ADP0 16-BIT TIMER/PWM MODULE (TPM1) TCLK TPM1CH0 TPM1CH1 IRQ IRQ (MC9S08SH4 = 256 BYTES) NOTE 3: VDDA/VREFH and VSSA/VREFL, are double bonded to VDD and VSS respectively. NOTES = SEE NOTE 3
  • 27. Chapter 1 Device Overview MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 21 Table 1-2 provides the functional version of the on-chip modules Table 1-2. Module Versions Module Version Analog Comparator (5V) (ACMP) 2 Analog-to-Digital Converter (ADC) 1 Central Processor Unit (CPU) 2 Inter-Integrated Circuit (IIC) 2 Internal Clock Source (ICS) 2 Serial Peripheral Interface (SPI) 3 Serial Communications Interface (SCI) 4 Modulo Timer (MTIM) 1 Real-Time Counter (RTC) 1 Timer Pulse Width Modulator (TPM) 3
  • 28. Chapter 1 Device Overview MC9S08SH8 MCU Series Data Sheet, Rev. 3 22 Freescale Semiconductor 1.3 System Clock Distribution Figure 1-2 shows a simplified clock connection diagram. Some modules in the MCU have selectable clock inputs as shown. The clock inputs to the modules indicate the clock(s) that are used to drive the module function. The following defines the clocks used in this MCU: • BUSCLK — The frequency of the bus is always half of ICSOUT. • ICSOUT — Primary output of the ICS and is twice the bus frequency. • ICSLCLK — Development tools can select this clock source to speed up BDC communications in systems where the bus clock is configured to run at a very slow frequency. • ICSERCLK — External reference clock can be selected as the RTC clock source and as the alternate clock for the ADC module. • ICSIRCLK — Internal reference clock can be selected as the RTC clock source. • ICSFFCLK — Fixed frequency clock can be selected as clock source for the TPM1, TPM2 and MTIM modules. • LPOCLK — Independent 1-kHz clock source that can be selected as the clock source for the COP and RTC modules. • TCLK — External input clock source for TPM1, TPM2 and MTIM and is referenced as TPMCLK in TPM chapters. Figure 1-2. System Clock Distribution Diagram TPM1 TPM2 MTIM SCI BDCCPU ADC IIC FLASH ICS ICSOUT ÷2 BUSCLK ICSLCLK ICSERCLK COP * The fixed frequency clock (FFCLK) is internally synchronized to the bus clock and must not exceed one half of the bus clock frequency. FLASH has frequency requirements for program and erase operation. See the electricals appendix for details. ADC has min and max frequency requirements. See the ADC chapter and electricals appendix for details. XOSC EXTAL XTAL SPI FFCLK*ICSFFCLK RTC 1 kHZ LPO TCLK ICSIRCLK ÷2 SYNC* LPOCLK
  • 29. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 23 Chapter 2 Pins and Connections This section describes signals that connect to package pins. It includes pinout diagrams, recommended system connections, and detailed discussions of signals. 2.1 Device Pin Assignment Figure 2-1 - Figure 2-4 shows the pin assignments for the MC9S08SH8 devices. Figure 2-1. 24-Pin QFN PTA5/IRQ/TCLK/RESET PTA4/ACMPO/BKGD/MS VDD VSS PTB4/TPM2CH1/MISO PTB5/TPM1CH1/SS PTB6/SDA/XTAL PTB7/SCL/EXTAL PTB3/PIB3/MOSI/ADP7 PTB2/PIB2/SPSCK/ADP6 PTB1/PIB1/TxD/ADP5 PTA1/PIA1/TPM2CH0/ADP1/ACMP– PTA2/PIA2/SDA/ADP2 PTA3/PIA3/SCL/ADP3 PTB0/PIB0/RxD/ADP4 PTA0/PIA0/TPM1CH0ADP0/ACMP+ Pin 1 indicator 1 2 3 4 5 6 18 17 16 15 14 13 7 8 9 10 11 12 24 23 22 21 20 19 PTC3/ADP11 PTC2/ADP10 PTC1/TPMCH1/ADP9 PTC0/TPM1CH0/ADP8NC NC NC NC
  • 30. Chapter 2 Pins and Connections MC9S08SH8 MCU Series Data Sheet, Rev. 3 24 Freescale Semiconductor Figure 2-2. 20-Pin PDIP, SOIC, and TSSOP Figure 2-3. 16-Pin TSSOP Figure 2-4. 8-Pin SOIC 2.2 Recommended System Connections Figure 2-5 shows pin connections that are common to MC9S08SH8 application systems. PTB1/PIB1/TxD/ADP5 PTB5/TPM1CH1/SS PTB6/SDA/XTAL PTB2/PIB2/SPSCK/ADP6 PTA3/PIA3/SCL/ADP3 PTB4/TPM2CH1/MISO PTB3/PIB3/MOSI/ADP7 PTB0/PIB0/RxD/ADP4 VDD VSS PTB7/SCL/EXTAL 1 2 3 4 5 6 7 8 20 19 18 17 16 15 9 10 14 12 11 13 PTC3/ADP11 PTC0/TPM1CH0/ADP8 PTC2/ADP10 PTC1/TPM1CH1/ADP9 PTA4/ACMPO/BKGD/MS PTA5/IRQ/TCLK/RESET PTA2/PIA2/SDA/ADP2 PTA1/PIA1/TPM2CH0/ADP1/ACMP- PTA0/PIA0/TPM1CH0/ADP0/ACMP+ PTB1/PIB1/TxD/ADP5 PTB5/TPM1CH1/SS PTB6/SDA/XTAL PTB2/PIB2/SPSCK/ADP6 PTA3/PIA3/SCL/ADP3 PTB4/TPM2CH1/MISO PTB3/PIB3/MOSI/ADP7 PTB0/PIB0/RxD/ADP4 VDD VSS PTB7/SCL/EXTAL 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 PTA4/ACMPO/BKGD/MS PTA5/IRQ/TCLK/RESET PTA2/PIA2/SDA/ADP2 PTA1/PIA1/TPM2CH0/ADP1/ACMP- PTA0/PIA0/TPM1CH0/ADP0/ACMP+ 1 2 3 4 8 7 6 5 PTA0/PIA0/TPM1CH0/ADP0/ACMP+ PTA1/PIA1/TPM2CH0/ADP1/ACMP- PTA2/PIA2/SDA/ADP2 PTA3/PIA3/SCL/ADP3VSS VDD PTA4/ACMPO/BKGD/MS PTA5/IRQ/TCLK/RESET
  • 31. Chapter 2 Pins and Connections MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 25 Figure 2-5. Basic System Connections 2.2.1 Power VDD and VSS are the primary power supply pins for the MCU. This voltage source supplies power to all I/O buffer circuitry, ACMP and ADC modules, and to an internal voltage regulator. The internal voltage regulator provides regulated lower-voltage source to the CPU and other internal circuitry of the MCU. Typically, application systems have two separate capacitors across the power pins. In this case, there should be a bulk electrolytic capacitor, such as a 10-μF tantalum capacitor, to provide bulk charge storage for the overall system and a 0.1-μF ceramic bypass capacitor located as near to the MCU power pins as practical to suppress high-frequency noise. Each pin must have a bypass capacitor for best noise suppression. BKGD/MS RESET OPTIONAL MANUAL RESET VDD BACKGROUND HEADER SYSTEM POWER PORT B PTB0/PIB0/RxD/ADP4 PTB1/PIB1/TxD/ADP5 PTB2/PIB2/SPSCK/ADP6 PTB3/PIB3/MOSI/ADP7 PTB4/TPM2CH1/MISO PTB5/TPM1CH1/SS PTB6/SDA/XTAL PTB7/SCL/EXTAL PORT C PTC0/TPM1CH0/ADP8 PTC1/TPM1CH1/ADP9 PTC2/ADP10 PTC3/ADP11 MC9S08SH8 VSS VDD CBY 0.1 μF CBLK 10 μF + 5 V + C2C1 X1 RF RS PORT A PTA0/PIA0/TPM1CH0/ADP0/ACMP+ PTA1/PIA1/TPM2CH0/ADP1/ACMP- PTA2/PIA2/SDA/ADP2 PTA3/PIA3/SCL/ADP3 0.1 μF VDD 4.7 kΩ–10 kΩ NOTE 1 NOTES: 1. External crystal circuit not required if using the internal clock option. 2. RESET pin can only be used to reset into user mode, you can not enter BDM using RESET pin. BDM can be entered by holding MS low during POR or writing a 1 to BDFR in SBDFR with MS low after issuing BDM command. 3. RC filter on RESET pin recommended for noisy environments. PTA4/ACMPO/BKGD/MS PTA5/IRQ/TCLK/RESET
  • 32. Chapter 2 Pins and Connections MC9S08SH8 MCU Series Data Sheet, Rev. 3 26 Freescale Semiconductor 2.2.2 Oscillator (XOSC) Immediately after reset, the MCU uses an internally generated clock provided by the clock source generator (ICS) module. For more information on the ICS, see Chapter 10, “Internal Clock Source (S08ICSV2).” The oscillator (XOSC) in this MCU is a Pierce oscillator that can accommodate a crystal or ceramic resonator. Rather than a crystal or ceramic resonator, an external oscillator can be connected to the EXTAL input pin. Refer to Figure 2-5 for the following discussion. RS (when used) and RF should be low-inductance resistors such as carbon composition resistors. Wire-wound resistors, and some metal film resistors, have too much inductance. C1 and C2 normally should be high-quality ceramic capacitors that are specifically designed for high-frequency applications. RF is used to provide a bias path to keep the EXTAL input in its linear range during crystal startup; its value is not generally critical. Typical systems use 1 MΩ to 10 MΩ. Higher values are sensitive to humidity and lower values reduce gain and (in extreme cases) could prevent startup. C1 and C2 are typically in the 5-pF to 25-pF range and are chosen to match the requirements of a specific crystal or resonator. Be sure to take into account printed circuit board (PCB) capacitance and MCU pin capacitance when selecting C1 and C2. The crystal manufacturer typically specifies a load capacitance which is the series combination of C1 and C2 (which are usually the same size). As a first-order approximation, use 10 pF as an estimate of combined pin and PCB capacitance for each oscillator pin (EXTAL and XTAL). 2.2.3 RESET After a power-on reset (POR), the PTA5/IRQ/TCLK/RESET pin defaults to a general-purpose I/O port pin, PTA5. Setting RSTPE in SOPT1 configures the pin to be the RESET pin with an open-drain drive containing an internal pull-up device. After configured as RESET, the pin will remain RESET until the next POR. The RESET pin when enabled can be used to reset the MCU from an external source when the pin is driven low. Internal power-on reset and low-voltage reset circuitry typically make external reset circuitry unnecessary. This pin is normally connected to the standard 6-pin background debug connector so a development system can directly reset the MCU system. If desired, a manual external reset can be added by supplying a simple switch to ground (pull reset pin low to force a reset). Whenever any non-POR reset is initiated (whether from an external signal or from an internal system), the RESET pin if enabled is driven low for about 66 bus cycles. The reset circuitry decodes the cause of reset and records it by setting a corresponding bit in the system reset status register (SRS). NOTE This pin does not contain a clamp diode to VDD and should not be driven above VDD.
  • 33. Chapter 2 Pins and Connections MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 27 The voltage measured on the internally pulled up RESET pin will not be pulled to VDD. The internal gates connected to this pin are pulled to VDD. If the RESET pin is required to drive to a VDD level an external pullup should be used. NOTE In EMC-sensitive applications, an external RC filter is recommended on the RESET. See Figure 2-5 for an example. 2.2.4 Background / Mode Select (BKGD/MS) During a power-on-reset (POR) or background debug force reset (see Section 5.7.3, “System Background Debug Force Reset Register (SBDFR),” for more information), the PTA4/ACMPO/BKGD/MS pin functions as a mode select pin. Immediately after any reset, the pin functions as the background pin and can be used for background debug communication. When enabled as the BKGD/MS pin (BKGDPE = 1), an internal pullup device is automatically enabled. The background debug communication function is enabled when BKGDPE in SOPT1 is set. BKGDPE is set following any reset of the MCU and must be cleared to use the PTA4/ACMPO/BKGD/MS pin’s alternative pin function. If nothing is connected to this pin, the MCU will enter normal operating mode at the rising edge of the internal reset after a POR or force BDC reset. If a debug system is connected to the 6-pin standard background debug header, it can hold BKGD/MS low during a POR or immediately after issuing a background debug force reset, which will force the MCU to active background mode. The BKGD pin is used primarily for background debug controller (BDC) communications using a custom protocol that uses 16 clock cycles of the target MCU’s BDC clock per bit time. The target MCU’s BDC clock could be as fast as the maximum bus clock rate, so there must never be any significant capacitance connected to the BKGD/MS pin that could interfere with background serial communications. Although the BKGD pin is a pseudo open-drain pin, the background debug communication protocol provides brief, actively driven, high speedup pulses to ensure fast rise times. Small capacitances from cables and the absolute value of the internal pullup device play almost no role in determining rise and fall times on the BKGD pin. 2.2.5 General-Purpose I/O and Peripheral Ports The MC9S08SH8 series of MCUs support up to 17 general-purpose I/O pins and 1 output-only pin, which are shared with on-chip peripheral functions (timers, serial I/O, ADC, etc). When a port pin is configured as a general-purpose output or a peripheral uses the port pin as an output, software can select one of two drive strengths and enable or disable slew rate control. When a port pin is configured as a general-purpose input or a peripheral uses the port pin as an input, software can enable a pull-up device. Immediately after reset, all of these pins are configured as high-impedance general-purpose inputs with internal pull-up devices disabled.
  • 34. Chapter 2 Pins and Connections MC9S08SH8 MCU Series Data Sheet, Rev. 3 28 Freescale Semiconductor When an on-chip peripheral system is controlling a pin, data direction control bits still determine what is read from port data registers even though the peripheral module controls the pin direction by controlling the enable for the pin’s output buffer. For information about controlling these pins as general-purpose I/O pins, see Chapter 6, “Parallel Input/Output Control.” The MC9S08SH8 devices contain a ganged output drive feature that allows a safe and reliable method of allowing pins to be tied together externally to produce a higher output current drive. See Section 6.3, “Ganged Output” for more information for configuring the port pins for ganged output drive. NOTE To avoid extra current drain from floating input pins, the reset initialization routine in the application program should either enable on-chip pull-up devices or change the direction of unused pins to outputs so they do not float. When using the 8-pin devices, the user must either enable on-chip pullup devices or change the direction of non-bonded out port B and port C pins to outputs so the pins do not float. When using the 16-pin devices, the user must either enable on-chip pullup devices or change the direction of non-bonded out port C pins to outputs so the pins do not float.
  • 35. Chapter 2 Pins and Connections MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 29 Pin Number Priority 24-pin 20-pin 16-pin 8-pin Port Pin Alt 1 Alt 2 Alt 3 Alt 4 Alt5 1 3 3 3 VDD 2 — — — 3 4 4 4 VSS 4 5 5 — PTB7 SCL1 1 IIC pins can be repositioned using IICPS in SOPT2, default reset locations are on PTA2 and PTA3. EXTAL 5 6 6 — PTB6 SDA1 XTAL 6 7 7 — PTB5 TPM1CH12 2 TPM1CHx pins can be repositioned using TPM1PS in SOPT2, default reset locations are on PTA0 and PTB5. SS PTC03 3 This port pin is part of the ganged output feature. When pin is enabled for ganged output, it will have priority over all digital modules. The output data, drive strength and slew-rate control of this port pin will follow the configuration for the PTC0 pin, even in 16-pin packages where PTC0 doesn’t bond out. Ganged output not available in 8-pin packages. 7 8 8 — PTB4 TPM2CH1 MISO PTC03 8 9 — — PTC3 PTC03 ADP11 9 10 — — PTC2 PTC03 ADP10 10 11 — — PTC1 TPM1CH12 PTC03 ADP9 11 12 — — PTC0 TPM1CH02 PTC03 ADP8 12 13 9 — PTB3 PIB3 MOSI PTC03 ADP7 13 14 10 — PTB2 PIB2 SPSCK PTC03 ADP6 14 15 11 — PTB1 PIB1 TxD ADP5 15 16 12 — PTB0 PIB0 RxD ADP4 16 17 13 5 PTA3 PIA3 SCL1 ADP3 17 18 14 6 PTA2 PIA2 SDA1 ADP2 18 19 15 7 PTA1 PIA1 TPM2CH0 ADP14 4 If ACMP and ADC are both enabled, both will have access to the pin. ACMP–4 19 20 16 8 PTA0 PIA0 TPM1CH02 ADP04 ACMP+4 20 — — — 21 — — — 22 — — — 23 1 1 1 PTA55 IRQ TCLK RESET 24 2 2 2 PTA4 ACMPO BKGD MS 5 Pin is open-drain when configured as output driving high. Pin does not contain a clamp diode to VDD and should not be driven above VDD. The voltage measured on the internally pulled up RESET will not be pulled to VDD. The internal gates connected to this pin are pulled to VDD. Lowest Highest Table 2-1. Pin Availability by Package Pin-Count
  • 36. Chapter 2 Pins and Connections MC9S08SH8 MCU Series Data Sheet, Rev. 3 30 Freescale Semiconductor
  • 37. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 31 Chapter 3 Modes of Operation 3.1 Introduction The operating modes of the MC9S08SH8 are described in this chapter. Entry into each mode, exit from each mode, and functionality while in each of the modes are described. 3.2 Features • Active background mode for code development • Wait mode — CPU shuts down to conserve power; system clocks are running and full regulation is maintained • Stop modes — System clocks are stopped and voltage regulator is in standby — Stop3 — All internal circuits are powered for fast recovery — Stop2 — Partial power down of internal circuits, RAM content is retained 3.3 Run Mode This is the normal operating mode for the MC9S08SH8. This mode is selected upon the MCU exiting reset if the BKGD/MS pin is high. In this mode, the CPU executes code from internal memory with execution beginning at the address fetched from memory at 0xFFFE–0xFFFF after reset. 3.4 Active Background Mode The active background mode functions are managed through the background debug controller (BDC) in the HCS08 core. The BDC, together with the on-chip debug module (DBG), provide the means for analyzing MCU operation during software development. Active background mode is entered in any of the following ways: • When the BKGD/MS pin is low during POR or immediately after issuing a background debug force reset (see Section 5.7.3, “System Background Debug Force Reset Register (SBDFR)”) • When a BACKGROUND command is received through the BKGD/MS pin • When a BGND instruction is executed • When encountering a BDC breakpoint • When encountering a DBG breakpoint After entering active background mode, the CPU is held in a suspended state waiting for serial background commands rather than executing instructions from the user application program.
  • 38. Chapter 3 Modes of Operation MC9S08SH8 MCU Series Data Sheet, Rev. 3 32 Freescale Semiconductor Background commands are of two types: • Non-intrusive commands, defined as commands that can be issued while the user program is running. Non-intrusive commands can be issued through the BKGD/MS pin while the MCU is in run mode; non-intrusive commands can also be executed when the MCU is in the active background mode. Non-intrusive commands include: — Memory access commands — Memory-access-with-status commands — BDC register access commands — The BACKGROUND command • Active background commands, which can only be executed while the MCU is in active background mode. Active background commands include commands to: — Read or write CPU registers — Trace one user program instruction at a time — Leave active background mode to return to the user application program (GO) The active background mode is used to program a bootloader or user application program into the FLASH program memory before the MCU is operated in run mode for the first time. When the MC9S08SH8 is shipped from the Freescale Semiconductor factory, the FLASH program memory is erased by default unless specifically noted so there is no program that could be executed in run mode until the FLASH memory is initially programmed. The active background mode can also be used to erase and reprogram the FLASH memory after it has been previously programmed. For additional information about the active background mode, refer to the Development Support chapter. 3.5 Wait Mode Wait mode is entered by executing a WAIT instruction. Upon execution of the WAIT instruction, the CPU enters a low-power state in which it is not clocked. The I bit in CCR is cleared when the CPU enters the wait mode, enabling interrupts. When an interrupt request occurs, the CPU exits the wait mode and resumes processing, beginning with the stacking operations leading to the interrupt service routine. While the MCU is in wait mode, there are some restrictions on which background debug commands can be used. Only the BACKGROUND command and memory-access-with-status commands are available when the MCU is in wait mode. The memory-access-with-status commands do not allow memory access, but they report an error indicating that the MCU is in either stop or wait mode. The BACKGROUND command can be used to wake the MCU from wait mode and enter active background mode. 3.6 Stop Modes One of two stop modes is entered upon execution of a STOP instruction when STOPE in SOPT1. In any stop mode, the bus and CPU clocks are halted. The ICS module can be configured to leave the reference clocks running. See Chapter 10, “Internal Clock Source (S08ICSV2),” for more information.
  • 39. Chapter 3 Modes of Operation MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 33 Table 3-1 shows all of the control bits that affect stop mode selection and the mode selected under various conditions. The selected mode is entered following the execution of a STOP instruction. 3.6.1 Stop3 Mode Stop3 mode is entered by executing a STOP instruction under the conditions as shown in Table 3-1. The states of all of the internal registers and logic, RAM contents, and I/O pin states are maintained. Stop3 can be exited by asserting RESET if enabled, or by an interrupt from one of the following sources: the real-time counter (RTC), LVD system, ACMP, ADC, SCI, IRQ, or any pin interrupts. If stop3 is exited by means of the RESET pin, then the MCU is reset and operation will resume after taking the reset vector. Exit by means of one of the internal interrupt sources results in the MCU taking the appropriate interrupt vector. 3.6.1.1 LVD Enabled in Stop Mode The LVD system is capable of generating either an interrupt or a reset when the supply voltage drops below the LVD voltage. For configuring the LVD system for interrupt or reset, refer to 5.6, “Low-Voltage Detect (LVD) System”. If the LVD is enabled in stop (LVDE and LVDSE bits in SPMSC1 both set) at the time the CPU executes a STOP instruction, then the voltage regulator remains active during stop mode. For the ADC to operate in stop mode, the LVD must be enabled when entering stop3. For the ACMP to operate in stop mode with compare to internal bandgap option, the LVD must be enabled when entering stop3. 3.6.1.2 Active BDM Enabled in Stop Mode Entry into the active background mode from run mode is enabled if ENBDM in BDCSCR is set. This register is described in Chapter 17, “Development Support.” If ENBDM is set when the CPU executes a STOP instruction, the system clocks to the background debug logic remain active when the MCU enters stop mode. Because of this, background debug communication remains possible. In addition, the voltage regulator does not enter its low-power standby state but maintains full internal regulation. Table 3-1. Stop Mode Selection STOPE ENBDM 1 1 ENBDM is located in the BDCSCR, which is only accessible through BDC commands, see Section 17.4.1.1, “BDC Status and Control Register (BDCSCR)”. LVDE LVDSE PPDC Stop Mode 0 x x x Stop modes disabled; illegal opcode reset if STOP instruction executed 1 1 x x Stop3 with BDM enabled 2 2 When in Stop3 mode with BDM enabled, The SIDD will be near RIDD levels because internal clocks are enabled. 1 0 Both bits must be 1 0 Stop3 with voltage regulator active 1 0 Either bit a 0 0 Stop3 1 0 Either bit a 0 1 Stop2
  • 40. Chapter 3 Modes of Operation MC9S08SH8 MCU Series Data Sheet, Rev. 3 34 Freescale Semiconductor Most background commands are not available in stop mode. The memory-access-with-status commands do not allow memory access, but they report an error indicating that the MCU is in either stop or wait mode. The BACKGROUND command can be used to wake the MCU from stop and enter active background mode if the ENBDM bit is set. After entering background debug mode, all background commands are available. 3.6.2 Stop2 Mode Stop2 mode is entered by executing a STOP instruction under the conditions as shown in Table 3-1. Most of the internal circuitry of the MCU is powered off in stop2 with the exception of the RAM. Upon entering stop2, all I/O pin control signals are latched so that the pins retain their states during stop2. Exit from stop2 is performed by asserting the wake-up pin (PTA5/IRQ/TCLK/RESET) on the MCU. In addition, the real-time counter (RTC) can wake the MCU from stop2, if enabled. Upon wake-up from stop2 mode, the MCU starts up as from a power-on reset (POR): • All module control and status registers are reset • The LVD reset function is enabled and the MCU remains in the reset state if VDD is below the LVD trip point (low trip point selected due to POR) • The CPU takes the reset vector In addition to the above, upon waking up from stop2, the PPDF bit in SPMSC2 is set. This flag is used to direct user code to go to a stop2 recovery routine. PPDF remains set and the I/O pin states remain latched until a 1 is written to PPDACK in SPMSC2. To maintain I/O states for pins that were configured as general-purpose I/O before entering stop2, the user must restore the contents of the I/O port registers, which have been saved in RAM, to the port registers before writing to the PPDACK bit. If the port registers are not restored from RAM before writing to PPDACK, then the pins will switch to their reset states when PPDACK is written. For pins that were configured as peripheral I/O, the user must reconfigure the peripheral module that interfaces to the pin before writing to the PPDACK bit. If the peripheral module is not enabled before writing to PPDACK, the pins will be controlled by their associated port control registers when the I/O latches are opened. 3.6.3 On-Chip Peripheral Modules in Stop Modes When the MCU enters any stop mode, system clocks to the internal peripheral modules are stopped. Even in the exception case (ENBDM = 1), where clocks to the background debug logic continue to operate, clocks to the peripheral systems are halted to reduce power consumption. Refer to Section 3.6.2, “Stop2 Mode,” and Section 3.6.1, “Stop3 Mode,” for specific information on system behavior in stop modes.
  • 41. Chapter 3 Modes of Operation MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 35 Table 3-2. Stop Mode Behavior Peripheral Mode Stop2 Stop3 CPU Off Standby RAM Standby Standby FLASH Off Standby Parallel Port Registers Off Standby ADC Off Optionally On1 1 Requires the asynchronous ADC clock and LVD to be enabled, else in standby. ACMP Off Optionally On2 2 Requires the LVD to be enabled when compare to internal bangap reference option is enabled. BDM Off3 3 If ENBDM is set when entering stop2, the MCU will actually enter stop3.. Optionally On ICS Off Optionally On4 4 IRCLKEN and IREFSTEN set in ICSC1, else in standby. IIC Off Standby LVD/LVW Off5 5 If LVDSE is set when entering stop2, the MCU will actually enter stop3.. Optionally On MTIM Off Standby RTC Optionally On Optionally On SCI Off Standby SPI Off Standby TPM Off Standby Voltage Regulator Standby Optionally On6 6 Voltage regulator will be on if BDM is enabled or if LVD is enabled when entering stop3. XOSC Off Optionally On7 7 ERCLKEN and EREFSTEN set in ICSC2, else in standby. For high frequency range (RANGE in ICSC2 set) requires the LVD to also be enabled in stop3. I/O Pins States Held States Held
  • 42. Chapter 3 Modes of Operation MC9S08SH8 MCU Series Data Sheet, Rev. 3 36 Freescale Semiconductor
  • 43. MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 37 Chapter 4 Memory 4.1 MC9S08SH8 Memory Map As shown in Figure 4-1, on-chip memory in the MC9S08SH8 series of MCUs consists of RAM, FLASH program memory for nonvolatile data storage, and I/O and control/status registers. The registers are divided into three groups: • Direct-page registers (0x0000 through 0x007F) • High-page registers (0x1800 through 0x185F) • Nonvolatile registers (0xFFB0 through 0xFFBF) Figure 4-1. MC9S08SH8 Memory Map DIRECT PAGE REGISTERS RAM HIGH PAGE REGISTERS 512 BYTES 0x0000 0x007F 0x0080 0x027F 0x1800 0x17FF 0x185F 0xFFFF 0x0280 MC9S08SH8 FLASH 8192 BYTES 0x1860 MC9S08SH4 UNIMPLEMENTED 51,104 BYTES 0xE000 0xDFFF DIRECT PAGE REGISTERS RAM HIGH PAGE REGISTERS 256 BYTES 0x0000 0x007F 0x0080 0x1800 0x17FF 0x185F 0xFFFF FLASH 4096 BYTES 0x1860 0x017F 0x0180 0xF000 0xEFFF UNIMPLEMENTED 5504 BYTES 0x027F 0x0280 UNIMPLEMENTED 5504 BYTES RESERVED 256 BYTES UNIMPLEMENTED 51,104 BYTES 0xE000 0xDFFF RESERVED 4096 BYTES
  • 44. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 38 Freescale Semiconductor 4.2 Reset and Interrupt Vector Assignments Table 4-1 shows address assignments for reset and interrupt vectors. The vector names shown in this table are the labels used in the Freescale Semiconductor provided equate file for the MC9S08SH8. Table 4-1. Reset and Interrupt Vectors Address (High/Low) Vector Vector Name 0xFFC0:0xFFC1 Reserved — 0xFFC2:0xFFC3 ACMP Vacmp 0xFFC4:0xFFC5 Reserved — 0xFFC6:0xFFC7 Reserved — 0xFFC8:0xFFC9 Reserved — 0xFFCA:0xFFCB MTIM Overflow Vmtim 0xFFCC:0xFFCD RTC Vrtc 0xFFCE:0xFFCF IIC Viic 0xFFD0:0xFFD1 ADC Conversion Vadc 0xFFD2:0xFFD3 Reserved — 0xFFD4:0xFFD5 Port B Pin Interrupt Vportb 0xFFD6:0xFFD7 Port A Pin Interrupt Vporta 0xFFD8:0xFFD9 Reserved — 0xFFDA:0xFFDB SCI Transmit Vscitx 0xFFDC:0xFFDD SCI Receive Vscirx 0xFFDE:0xFFDF SCI Error Vscierr 0xFFE0:0xFFE1 SPI Vspi 0xFFE2:0xFFE3 TPM2 Overflow Vtpm2ovf 0xFFE4:0xFFE5 TPM2 Channel 1 Vtpm2ch1 0xFFE6:0xFFE7 TPM2 Channel 0 Vtpm2ch0 0xFFE8:0xFFE9 TPM1 Overflow Vtpm1ovf 0xFFEA:0xFFEB Reserved — 0xFFEC:0xFFED Reserved — 0xFFEE:0xFFEF Reserved — 0xFFF0:0xFFF1 Reserved — 0xFFF2:0xFFF3 TPM1 Channel 1 Vtpm1ch1 0xFFF4:0xFFF5 TPM1 Channel 0 Vtpm1ch0 0xFFF6:0xFFF7 Reserved — 0xFFF8:0xFFF9 Low Voltage Detect Vlvd 0xFFFA:0xFFFB IRQ Virq 0xFFFC:0xFFFD SWI Vswi 0xFFFE:0xFFFF Reset Vreset
  • 45. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 39 4.3 Register Addresses and Bit Assignments The registers in the MC9S08SH8 are divided into these groups: • Direct-page registers are located in the first 128 locations in the memory map; these are accessible with efficient direct addressing mode instructions. • High-page registers are used much less often, so they are located above 0x1800 in the memory map. This leaves more room in the direct page for more frequently used registers and RAM. • The nonvolatile register area consists of a block of 16 locations in FLASH memory at 0xFFB0–0xFFBF. Nonvolatile register locations include: — NVPROT and NVOPT are loaded into working registers at reset — An 8-byte backdoor comparison key that optionally allows a user to gain controlled access to secure memory Because the nonvolatile register locations are FLASH memory, they must be erased and programmed like other FLASH memory locations. Direct-page registers can be accessed with efficient direct addressing mode instructions. Bit manipulation instructions can be used to access any bit in any direct-page register. Table 4-2 is a summary of all user-accessible direct-page registers and control bits. The direct page registers in Table 4-2 can use the more efficient direct addressing mode, which requires only the lower byte of the address. Because of this, the lower byte of the address in column one is shown in bold text. In Table 4-3 and Table 4-4, the whole address in column one is shown in bold. In Table 4-2, Table 4-3, and Table 4-4, the register names in column two are shown in bold to set them apart from the bit names to the right. Cells that are not associated with named bits are shaded. A shaded cell with a 0 indicates this unused bit always reads as a 0. Shaded cells with dashes indicate unused or reserved bit locations that could read as 1s or 0s.
  • 46. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 40 Freescale Semiconductor Table 4-2. Direct-Page Register Summary (Sheet 1 of 3) Address Register Name Bit 7 6 5 4 3 2 1 Bit 0 0x0000 PTAD 0 0 PTAD5 PTAD4 PTAD3 PTAD2 PTAD1 PTAD0 0x0001 PTADD 0 0 PTADD5 PTADD4 PTADD3 PTADD2 PTADD1 PTADD0 0x0002 PTBD PTBD7 PTBD6 PTBD5 PTBD4 PTBD3 PTBD2 PTBD1 PTBD0 0x0003 PTBDD PTBDD7 PTBDD6 PTBDD5 PTBDD4 PTBDD3 PTBDD2 PTBDD1 PTBDD0 0x0004 PTCD 0 0 0 0 PTCD3 PTCD2 PTCD1 PTCD0 0x0005 PTCDD 0 0 0 0 PTCDD3 PTCDD2 PTCDD1 PTCDD0 0x0006– 0x000D Reserved — — — — — — — — — — — — — — — — 0x000E ACMPSC ACME ACBGS ACF ACIE ACO ACOPE ACMOD1 ACMOD0 0x000F Reserved — — — — — — — — 0x0010 ADSC1 COCO AIEN ADCO ADCH 0x0011 ADSC2 ADACT ADTRG ACFE ACFGT — — — — 0x0012 ADRH 0 0 0 0 0 0 ADR9 ADR8 0x0013 ADRL ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0 0x0014 ADCVH 0 0 0 0 0 0 ADCV9 ADCV8 0x0015 ADCVL ADCV7 ADCV6 ADCV5 ADCV4 ADCV3 ADCV2 ADCV1 ADCV0 0x0016 ADCFG ADLPC ADIV ADLSMP MODE ADICLK 0x0017 APCTL1 ADPC7 ADPC6 ADPC5 ADPC4 ADPC3 ADPC2 ADPC1 ADPC0 0x0018 APCTL2 0 0 0 0 ADPC11 ADPC10 ADPC9 ADPC8 0x0019 Reserved — — — — — — — — 0x001A IRQSC 0 IRQPDD IRQEDG IRQPE IRQF IRQACK IRQIE IRQMOD 0x001B Reserved — — — — — — — — 0x001C MTIMSC TOF TOIE TRST TSTP 0 0 0 0 0x001D MTIMCLK 0 0 CLKS PS 0x001E MTIMCNT CNT 0x001F MTIMMOD MOD 0x0020 TPM1SC TOF TOIE CPWMS CLKSB CLKSA PS2 PS1 PS0 0x0021 TPM1CNTH Bit 15 14 13 12 11 10 9 Bit 8 0x0022 TPM1CNTL Bit 7 6 5 4 3 2 1 Bit 0 0x0023 TPM1MODH Bit 15 14 13 12 11 10 9 Bit 8 0x0024 TPM1MODL Bit 7 6 5 4 3 2 1 Bit 0 0x0025 TPM1C0SC CH0F CH0IE MS0B MS0A ELS0B ELS0A 0 0 0x0026 TPM1C0VH Bit 15 14 13 12 11 10 9 Bit 8 0x0027 TPM1C0VL Bit 7 6 5 4 3 2 1 Bit 0 0x0028 TPM1C1SC CH1F CH1IE MS1B MS1A ELS1B ELS1A 0 0 0x0029 TPM1C1VH Bit 15 14 13 12 11 10 9 Bit 8 0x002A TPM1C1VL Bit 7 6 5 4 3 2 1 Bit 0 0x002B– 0x0037 Reserved — — — — — — — — — — — — — — — —
  • 47. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 41 0x0038 SCIBDH LBKDIE RXEDGIE 0 SBR12 SBR11 SBR10 SBR9 SBR8 0x0039 SCIBDL SBR7 SBR6 SBR5 SBR4 SBR3 SBR2 SBR1 SBR0 0x003A SCIC1 LOOPS SCISWAI RSRC M WAKE ILT PE PT 0x003B SCIC2 TIE TCIE RIE ILIE TE RE RWU SBK 0x003C SCIS1 TDRE TC RDRF IDLE OR NF FE PF 0x003D SCIS2 LBKDIF RXEDGIF 0 RXINV RWUID BRK13 LBKDE RAF 0x003E SCIC3 R8 T8 TXDIR TXINV ORIE NEIE FEIE PEIE 0x003F SCID Bit 7 6 5 4 3 2 1 Bit 0 0x0040– 0x0047 Reserved — — — — — — — — — — — — — — — — 0x0048 ICSC1 CLKS RDIV IREFS IRCLKEN IREFSTEN 0x0049 ICSC2 BDIV RANGE HGO LP EREFS ERCLKEN EREFSTEN 0x004A ICSTRM TRIM 0x004B ICSSC 0 0 0 IREFST CLKST OSCINIT FTRIM 0x004C– 0x004F Reserved — — — — — — — — — — — — — — — — 0x0050 SPIC1 SPIE SPE SPTIE MSTR CPOL CPHA SSOE LSBFE 0x0051 SPIC2 0 0 0 MODFEN BIDIROE 0 SPISWAI SPC0 0x0052 SPIBR 0 SPPR2 SPPR1 SPPR0 0 SPR2 SPR1 SPR0 0x0053 SPIS SPRF 0 SPTEF MODF 0 0 0 0 0x0054 Reserved 0 0 0 0 0 0 0 0 0x0055 SPID Bit 7 6 5 4 3 2 1 Bit 0 0x0056– 0x0057 Reserved — — — — — — — — — — — — — — — — 0x0058 IICA AD7 AD6 AD5 AD4 AD3 AD2 AD1 0 0x0059 IICF MULT ICR 0x005A IICC1 IICEN IICIE MST TX TXAK RSTA 0 0 0x005B IICS TCF IAAS BUSY ARBL 0 SRW IICIF RXAK 0x005C IICD DATA 0x005D IICC2 GCAEN ADEXT 0 0 0 AD10 AD9 AD8 0x005E– 0x005F Reserved — — — — — — — — — — — — — — — — 0x0060 TPM2SC TOF TOIE CPWMS CLKSB CLKSA PS2 PS1 PS0 0x0061 TPM2CNTH Bit 15 14 13 12 11 10 9 Bit 8 0x0062 TPM2CNTL Bit 7 6 5 4 3 2 1 Bit 0 0x0063 TPM2MODH Bit 15 14 13 12 11 10 9 Bit 8 0x0064 TPM2MODL Bit 7 6 5 4 3 2 1 Bit 0 0x0065 TPM2C0SC CH0F CH0IE MS0B MS0A ELS0B ELS0A 0 0 0x0066 TPM2C0VH Bit 15 14 13 12 11 10 9 Bit 8 0x0067 TPM2C0VL Bit 7 6 5 4 3 2 1 Bit 0 Table 4-2. Direct-Page Register Summary (Sheet 2 of 3) Address Register Name Bit 7 6 5 4 3 2 1 Bit 0
  • 48. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 42 Freescale Semiconductor 0x0068 TPM2C1SC CH1F CH1IE MS1B MS1A ELS1B ELS1A 0 0 0x0069 TPM2C1VH Bit 15 14 13 12 11 10 9 Bit 8 0x006A TPM2C1VL Bit 7 6 5 4 3 2 1 Bit 0 0x006B Reserved — — — — — — — — 0x006C RTCSC RTIF RTCLKS RTIE RTCPS 0x006D RTCCNT RTCCNT 0x006E RTCMOD RTCMOD 0x006F - 0x007F Reserved — — — — — — — — — — — — — — — — Table 4-2. Direct-Page Register Summary (Sheet 3 of 3) Address Register Name Bit 7 6 5 4 3 2 1 Bit 0
  • 49. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 43 High-page registers, shown in Table 4-3, are accessed much less often than other I/O and control registers so they have been located outside the direct addressable memory space, starting at 0x1800. Table 4-3. High-Page Register Summary (Sheet 1 of 2) Address Register Name Bit 7 6 5 4 3 2 1 Bit 0 0x1800 SRS POR PIN COP ILOP ILAD 0 LVD 0 0x1801 SBDFR 0 0 0 0 0 0 0 BDFR 0x1802 SOPT1 COPT STOPE 0 0 IICPS BKGDPE RSTPE 0x1803 SOPT2 COPCLKS COPW 0 ACIC 0 0 T1CH1PS T1CH0PS 0x1804 – 0x1805 Reserved — — — — — — — — — — — — — — — — 0x1806 SDIDH 0 — — — ID11 ID10 ID9 ID8 0x1807 SDIDL ID7 ID6 ID5 ID4 ID3 ID2 ID1 ID0 0x1808 Reserved — — — — — — — — 0x1809 SPMSC1 LVWF LVWACK LVWIE LVDRE LVDSE LVDE 0 BGBE 0x180A SPMSC2 0 0 LVDV LVWV PPDF PPDACK — PPDC 0x180B– 0x180F Reserved — — — — — — — — — — — — — — — — 0x1810 DBGCAH Bit 15 14 13 12 11 10 9 Bit 8 0x1811 DBGCAL Bit 7 6 5 4 3 2 1 Bit 0 0x1812 DBGCBH Bit 15 14 13 12 11 10 9 Bit 8 0x1813 DBGCBL Bit 7 6 5 4 3 2 1 Bit 0 0x1814 DBGFH Bit 15 14 13 12 11 10 9 Bit 8 0x1815 DBGFL Bit 7 6 5 4 3 2 1 Bit 0 0x1816 DBGC DBGEN ARM TAG BRKEN RWA RWAEN RWB RWBEN 0x1817 DBGT TRGSEL BEGIN 0 0 TRG3 TRG2 TRG1 TRG0 0x1818 DBGS AF BF ARMF 0 CNT3 CNT2 CNT1 CNT0 0x1819– 0x181F Reserved — — — — — — — — — — — — — — — — 0x1820 FCDIV DIVLD PRDIV8 DIV 0x1821 FOPT KEYEN FNORED 0 0 0 0 SEC 0x1822 Reserved — — — — — — — — 0x1823 FCNFG 0 0 KEYACC 0 0 0 0 0 0x1824 FPROT FPS FPDIS 0x1825 FSTAT FCBEF FCCF FPVIOL FACCERR 0 FBLANK 0 0 0x1826 FCMD FCMD 0x1827– 0x183F Reserved — — — — — — — — — — — — — — — — 0x1840 PTAPE 0 0 PTAPE5 PTAPE4 PTAPE3 PTAPE2 PTAPE1 PTAPE0 0x1841 PTASE 0 0 — PTASE4 PTASE3 PTASE2 PTASE1 PTASE0 0x1842 PTADS 0 0 — PTADS4 PTADS3 PTADS2 PTADS1 PTADS0 0x1843 Reserved — — — — — — — — 0x1844 PTASC 0 0 0 0 PTAIF PTAACK PTAIE PTAMOD
  • 50. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 44 Freescale Semiconductor 0x1845 PTAPS 0 0 0 PTAPS4 PTAPS3 PTAPS2 PTAPS1 PTAPS0 0x1846 PTAES 0 0 0 PTAES4 PTAES3 PTAES2 PTAES1 PTAES0 0x1847 Reserved — — — — — — — — 0x1848 PTBPE PTBPE7 PTBPE6 PTBPE5 PTBPE4 PTBPE3 PTBPE2 PTBPE1 PTBPE0 0x1849 PTBSE PTBSE7 PTBSE6 PTBSE5 PTBSE4 PTBSE3 PTBSE2 PTBSE1 PTBSE0 0x184A PTBDS PTBDS7 PTBDS6 PTBDS5 PTBDS4 PTBDS3 PTBDS2 PTBDS1 PTBDS0 0x184B Reserved — — — — — — — — 0x184C PTBSC 0 0 0 0 PTBIF PTBACK PTBIE PTBMOD 0x184D PTBPS 0 0 0 0 PTBPS3 PTBPS2 PTBPS1 PTBPS0 0x184E PTBES 0 0 0 0 PTBES3 PTBES2 PTBES1 PTBES0 0x184F Reserved — — — — — — — — 0x1850 PTCPE 0 0 0 0 PTCPE3 PTCPE2 PTCPE1 PTCPE0 0x1851 PTCSE 0 0 0 0 PTCSE3 PTCSE2 PTCSE1 PTCSE0 0x1852 PTCDS 0 0 0 0 PTCDS3 PTCDS2 PTCDS1 PTCDS0 0x1853 GNGC GNGPS7 GNGPS6 GNGPS5 GNGPS4 GNGPS3 GNGPS2 GNGPS1 GNGEN 0x1854– 0x185F Reserved — — — — — — — — — — — — — — — — Table 4-3. High-Page Register Summary (Sheet 2 of 2) Address Register Name Bit 7 6 5 4 3 2 1 Bit 0
  • 51. Chapter 4 Memory MC9S08SH8 MCU Series Data Sheet, Rev. 3 Freescale Semiconductor 45 Nonvolatile FLASH registers, shown in Table 4-4, are located in the FLASH memory. These registers include an 8-byte backdoor key, NVBACKKEY, which can be used to gain access to secure memory resources. During reset events, the contents of NVPROT and NVOPT in the nonvolatile register area of the FLASH memory are transferred into corresponding FPROT and FOPT working registers in the high-page registers to control security and block protection options. Provided the key enable (KEYEN) bit is 1, the 8-byte comparison key can be used to temporarily disengage memory security. This key mechanism can be accessed only through user code running in secure memory. (A security key cannot be entered directly through background debug commands.) This security key can be disabled completely by programming the KEYEN bit to 0. If the security key is disabled, the only way to disengage security is by mass erasing the FLASH if needed (normally through the background debug interface) and verifying that FLASH is blank. To avoid returning to secure mode after the next reset, program the security bits (SEC) to the unsecured state (1:0). Table 4-4. Nonvolatile Register Summary Address Register Name Bit 7 6 5 4 3 2 1 Bit 0 0xFFAE Reserved for storage of FTRIM 0 0 0 0 0 0 0 FTRIM 0xFFAF Reserved for storage of ICSTRIM TRIM 0xFFB0 – 0xFFB7 NVBACKKEY 8-Byte Comparison Key 0xFFB8 – 0xFFBC Reserved — — — — — — — — — — — — — — — — 0xFFBD NVPROT FPS FPDIS 0xFFBE Reserved — — — — — — — — 0xFFBF NVOPT KEYEN FNORED 0 0 0 0 SEC