MC68HC908MR32 MC68HC908MR16
Page
MC68HC908MR32 MC68HC908MR16
Data Sheet
MC68HC908MR32 MC68HC908MR16 Data Sheet, Rev
Date Revision Description Level Numbers
Revision History
Revision History
List of Chapters
List of Chapters MC68HC908MR32 MC68HC908MR16 Data Sheet, Rev
Table of Contents
Chapter Clock Generator Module CGM
Table of Contents
Chapter Analog-to-Digital Converter ADC
Chapter Computer Operating Properly COP
Chapter Configuration Register Config
Chapter Low-Voltage Inhibit LVI
Chapter Central Processor Unit CPU
Chapter External Interrupt IRQ
Chapter Pulse-Width Modulator for Motor Control Pwmmc
Chapter Power-On Reset POR
Chapter Input/Output I/O Ports Ports
Chapter Serial Communications Interface Module SCI
Chapter Serial Peripheral Interface Module SPI
Chapter System Integration Module SIM
Chapter Timer Interface a Tima
Chapter Development Support
Chapter Timer Interface B Timb
Chapter Ordering Information and Mechanical Specifications
Chapter Electrical Specifications
Introduction
Features
Chapter General Description
General Description
MCU Block Diagram
MCU Block
Diagram
Pin QFP Pin Assignments
Pin Assignments
Pin Assignments
Pin Sdip Pin Assignments
CGM Power Supply Pins Vdda and Vssad
Power Supply Pins VDD and VSS
Oscillator Pins OSC1 and OSC2
External Reset Pin RST
Port C I/O Pins PTC6-PTC2 and PTC1/ATD9-PTC0/ATD8
Analog Power Supply Pins Vddad and Vssad
Port a Input/Output I/O Pins PTA7-PTA0
Port B I/O Pins PTB7/ATD7-PTB0/ATD0
PWM Ground Pin Pwmgnd
Port F I/O Pins PTF5/TxD-PTF4/RxD and PTF3/MISO-PTF0/SPSCK
Reserved Memory Locations
Chapter Memory
Unimplemented Memory Locations
Memory
I/O Section
Memory Map
Memory Map
MC68HC908MR32 Memory Map
Memory Addr
Control, Status, and Data Registers Summary Sheet 1
Memory Map Addr Register Name Bit
Control, Status, and Data Registers Summary Sheet 2
Memory Addr Register Name
Control, Status, and Data Registers Summary Sheet 3
Control, Status, and Data Registers Summary Sheet 4
Memory Addr Register Name Bit
Control, Status, and Data Registers Summary Sheet 5
Addr Register Name
Control, Status, and Data Registers Summary Sheet 6
Control, Status, and Data Registers Summary Sheet 7
Control, Status, and Data Registers Summary Sheet 8
Address Vector Low
Vector Addresses
Address Vector
Random-Access Memory RAM
Monitor ROM
Monitor ROM
Flash Control Register
Flash Memory Flash
Erase Erase Control Bit
Hven High-Voltage Enable Bit
Flash Page Erase Operation
Mass Mass Erase Control Bit
Flash Mass Erase Operation
Only bytes which are currently $FF may be programmed
Flash Program Operation
Flash Programming Flowchart
Flash Block Protect Register
Flash Block Protection
Examples of Protect Start Address
Wait Mode
Stop Mode
Functional Description
Chapter Analog-to-Digital Converter ADC
Analog-to-Digital Converter ADC
Block Diagram Highlighting ADC Block and Pins
Functional Description
ADC Port I/O Pins
Voltage Conversion
Result Justification
Conversion Time
Continuous Conversion
Monotonicity
Bit Truncation Mode Error
Interrupts
Wait Mode
I/O Signals
6.2 ANx
I/O Registers
ADC Voltage In Advin
ADC External Connections
ADC Status and Control Register
Aien ADC Interrupt Enable Bit
Input Select
Mux Channel Select
ADC Data Register Low
ADC Data Register High
ADC Clock Rate
ADC Clock Register
ADC Clock Divide Ratio
Analog-to-Digital Converter ADC
Cgmvclk
Chapter Clock Generator Module CGM
Clock Generator Module CGM
CGM Block Diagram
PLL Circuits
Phase-Locked Loop Circuit PLL
Crystal Oscillator Circuit
Manual and Automatic PLL Bandwidth Modes
Acquisition and Tracking Modes
Variable Definition
Programming the PLL
Variable Definitions
Special Programming Exceptions
Base Clock Selector Circuit
CGM External Connections
CGM External Connections
Crystal Amplifier Output Pin OSC2
PLL Analog Power Pin Vdda
Oscillator Enable Signal Simoscen
Crystal Amplifier Input Pin OSC1
CGM CPU Interrupt Cgmint
Crystal Output Frequency Signal Cgmxclk
CGM Registers
CGM Base Clock Output Cgmout
BCS Base Clock Select Bit
PLL Control Register
Pllf PLL Interrupt Flag
Pllon PLL On Bit
PCTL30 Unimplemented Bits
Lock Lock Indicator Bit
ACQ Acquisition Mode Bit
PLL Bandwidth Control Register
VCO Frequency Multiplier N Selection
PLL Programming Register
XLD Crystal Loss Detect Bit
PBWC30 Reserved for Test
Interrupts
VRS74 VCO Range Select Bits
Parametric Influences on Reaction Time
Acquisition/Lock Time Specifications
Acquisition/Lock Time Definitions
Reaction Time Calculation
Acquisition/Lock Time Specifications
Choosing a Filter Capacitor
Frequency
Chapter Configuration Register Config
Configuration Register
Chapter Computer Operating Properly COP
COP Block Diagram
Copctl Write
Power-On Reset
Internal Reset
Reset Vector Fetch
COP Control Register
Monitor Mode
Stop Mode
Copd COP Disable
Freescale Semiconductor
CPU Registers
Chapter Central Processor Unit CPU
Central Processor Unit CPU
Accumulator
Index Register
CPU Registers
Stack Pointer
Program Counter
Negative Flag
Condition Code Register
Half-Carry Flag
Interrupt Mask
Zero Flag
Low-Power Modes
Arithmetic/Logic Unit ALU
CPU During Break Interrupts
Instruction Set Summary Sheet 1
Instruction Set Summary
Source Operation Description On CCR Form
Instruction Set Summary Sheet 2
Instruction Set Summary
Dbnz opr,rel
Instruction Set Summary Sheet 3
JMP ,X
Instruction Set Summary Sheet 4
Operation Description On CCR Form
Instruction Set Summary Sheet 5
Opcode Map
Opcode Map
Instruction Set Summary Sheet 6
9ED 9EE
Opcode Map
Chapter External Interrupt IRQ
IRQ Module Block Diagram
External Interrupt IRQ
IRQ Pin
IRQ Pin
IRQ Interrupt Flowchart
IRQ Status and Control Register Iscr
IRQ Status and Control Register
IRQ Status and Control Register
Irqf IRQ Flag
Freescale Semiconductor
Chapter Low-Voltage Inhibit LVI
LVI Module Block Diagram
LVI Trip Selection
Forced Reset Operation
False Reset Protection
Polled LVI Operation
LVI Status and Control Register
LVI Status and Control Register
LVI Interrupts
Lviout Bit Indication
100 Freescale Semiconductor
I/O Port Register Summary
Chapter Input/Output I/O Ports Ports
Input/Output I/O Ports Ports Addr Register Name
Port a
Port a
Port a Data Register
Data Direction Register a
Input/Output I/O Ports Ports
Port B
Port B Data Register
Port a Pin Functions
Port B
Data Direction Register B
Port B Pin Functions
Data Direction Register C
Port C
Port C Data Register
PTC60
Port D
Port C Pin Functions
Port D
Port D Pin Functions
PTD Bit Pin Mode Accesses to PTD Read
Port E
Port E Data Register
Port E
Ddre Bit PTE Bit Pin Mode Accesses to Ddre Accesses to PTE
Data Direction Register E
Port E Pin Functions
Data Direction Register F
Port F
Port F Data Register
Port F
Port F Pin Functions
112 Freescale Semiconductor
Chapter Power-On Reset POR
114 Freescale Semiconductor
Chapter Pulse-Width Modulator for Motor Control Pwmmc
Pulse-Width Modulator for Motor Control Pwmmc
Block Diagram Highlighting Pwmmc Block and Pins
Features
PWM Module Block Diagram
Register Summary Sheet 2
Register Summary Sheet 3
Features Addr Register Name Bit
Timebase
Resolution
Timebase
Edge-Aligned PWM Positive Polarity
PWM Prescaler
PWM Generators
Prescaler
Load Operation
PWM Interrupt Requests
Reload Frequency Change
Center-Aligned PWM Value Loading
PWMVALxHPWMVALxL Condition PWM Value Used
PWM Data Overflow and Underflow Conditions
PWM Data Overflow and Underflow Conditions
Output Control
12. Complementary Pairing
Output Control
Dead-Time Insertion
14. Dead-Time Generators
15. Effects of Dead-Time Insertion
17. Dead-Time and Small Pulse Widths
Current Voltage On Current
Current Sense Pins
Current Correction Bits Correction Method ISENS1 and ISENS0
Correction Methods
20. Top/Bottom Correction for PWMs 1
Output Polarity
21. PWM Polarity
OUTx Bits
OUTx Bit Complementary Mode Independent Mode
PWM Output Port Control
23. Dead-Time Insertion During Outctl =
Fault Protection
Fault Protection
Fault Condition Input Pins
26. PWM Disabling Scheme
Automatic Mode
Fault Pin Filter
Manual Mode
28. PWM Disabling in Automatic Mode
Output Port Control
Software Output Disable
Initialization and the Pwmen Bit
32. Pwmen and PWM Pins
PWM Counter Registers
PWM Operation in Wait Mode
PWM Operation in Wait Mode
Control Logic Block
35. PWM Counter Modulo Register High Pmodh
PWM Counter Modulo Registers
Control Logic Block
PWMx Value Registers
Pwmf PWM Reload Flag
Disy Software Disable Bit for Bank Y Bit
Pwmint PWM Interrupt Enable Bit
PWM Control Register
LDOK- Load OK Bit
Pwmen PWM Module Enable Bit
IPOL1 Top/Bottom Correction Bit for PWM Pair 1 PWMs 1
PRSC1 and PRSC0 PWM Prescaler Bits
IPOL2 Top/Bottom Correction Bit for PWM Pair 2 PWMs 3
IPOL3 Top/Bottom Correction Bit for PWM Pair 3 PWMs 5
Dead-Time Write-Once Register
PWM Disable Mapping Write-Once Register
Fault Control Register
FINT1 Fault 1 Interrupt Enable Bit
FINT3 Fault 3 Interrupt Enable Bit
FINT2 Fault 2 Interrupt Enable Bit
Fault Status Register
Fault Acknowledge Register
10. OUTx Bits
PWM Output Control Register
DT2 Dead-Time 2 Bit
DT1 Dead-Time 1 Bit
PWM Glossary
PWM Glossary
48. PWM Load Cycle/Frequency Definition
Chapter Serial Communications Interface Module SCI
Serial Communications Interface Module SCI
Block Diagram Highlighting SCI Block and Pins
SCI Module Block Diagram
Serial Communications Interface Module SCI Addr
Data Format
SCI Transmitter
Transmitter
Break Characters
Character Length
Character Transmission
Transmitter Interrupts
Receiver
Idle Characters
Inversion of Transmitted Output
SCI Receiver Block Diagram
Data Sampling
Character Reception
Start Bit Verification
Data Bit Recovery
Stop Bit Recovery
Receiver Interrupts
Framing Errors
Error Interrupts
Receiver Wakeup
13.6.1 PTF5/TxD Transmit Data
13.6 I/O Signals
SCI During Break Module Interrupts
SCI Control Register
13.7 I/O Registers
13.6.2 PTF4/RxD Receive Data
Txinv Transmit Inversion Bit
Ensci Enable SCI Bit
Mode Character Length Bit
PEN Parity Enable Bit
Start Data Parity Stop
Tcie Transmission Complete Interrupt Enable Bit
Character Format Selection
Control Bits Character Format
RE Receiver Enable Bit
Scrie SCI Receive Interrupt Enable Bit
Ilie Idle Line Interrupt Enable Bit
TE Transmitter Enable Bit
Peie Receiver Parity Error Interrupt Enable Bit
Orie Receiver Overrun Interrupt Enable Bit
Neie Receiver Noise Error Interrupt Enable Bit
Feie Receiver Framing Error Interrupt Enable Bit
Scrf SCI Receiver Full Bit
SCI Status Register
TC Transmission Complete Bit
Or Receiver Overrun Bit
Idle Receiver Idle Bit
NF Receiver Noise Flag Bit
FE Receiver Framing Error Bit
PE Receiver Parity Error Bit
SCI Baud Rate Prescaling
SCI Data Register
SCI Baud Rate Register
RPF -Reception-in-Progress Flag
Baud Rate Divisor BD
SCI Baud Rate Selection
Baud Rate Divisor PD Divisor BD
SCI Baud Rate Selection Examples
180 Freescale Semiconductor
Chapter System Integration Module SIM
Signal Name Conventions
Signal Name Description
System Integration Module SIM
Clock Startup from POR or LVI Reset
SIM Bus Clock Control and Generation
Bus Timing
Reset and System Initialization
Reset and System Initialization
Clocks in Wait Mode
External Pin Reset
PIN Bit Set Timing
Active Resets from Internal Sources
Reset Type Number of Cycles Required to Set PIN
Computer Operating Properly COP Reset
Power-On Reset POR
SIM Counter
SIM Counter During Power-On Reset
SIM Counter and Reset States
Exception Control
Exception Control
Interrupts
Interrupt Processing
Hardware Interrupts
Interrupt Recovery
Software Interrupt SWI Instruction
Low-Power Mode
Reset
SIM Registers
SIM Registers
SIM Break Status Register
Ilad Illegal Address Reset Bit opcode fetches only
SIM Reset Status Register
PIN External Reset Bit
Ilop Illegal Opcode Reset Bit
SIM Break Flag Control Register
194 Freescale Semiconductor
Pin Name Conventions
Chapter Serial Peripheral Interface Module SPI
Pin Name Conventions
Serial Peripheral Interface Module SPI
Block Diagram Highlighting SPI Block and Pins
SPI Module Block Diagram
Serial Peripheral Interface Module SPI Addr
Master Mode
Transmission Formats
Slave Mode
Clock Phase and Polarity Controls
Transmission Formats
Transmission Format Cpha =
Transmission Format When Cpha =
Transmission Initiation Latency
Transmission Start Delay Master
Error Conditions
Error Conditions
Overflow Error
10. Clearing Sprf When Ovrf Interrupt Is Not Enabled
Mode Fault Error
Freescale Semiconductor 205
Flag Request
SPI Interrupts
Queuing Transmission Data
Resetting the SPI
Resetting the SPI
12. SPRF/SPTE CPU Interrupt Timing
15.11 I/O Signals
Spsck Serial Clock
Signals
Miso Master In/Slave Out
Mosi Master Out/Slave
VSS Clock Ground
SPI Configuration
SPI Configuration State of SS Logic
15.12 I/O Registers
Cpol Clock Polarity Bit
Cpha Clock Phase Bit
Spwom SPI Wired-OR Mode Bit
Spmstr SPI Master Bit
SPI Status and Control Register
SPE SPI Enable Bit
SPTIE- SPI Transmit Interrupt Enable Bit
Errie Error Interrupt Enable Bit
Spte SPI Transmitter Empty Bit
Modf Mode Fault Bit
Modfen Mode Fault Enable Bit
Ovrf Overflow Bit
SPI Master Baud Rate Selection
SPI Data Register
2is a block diagram of the Tima
Chapter Timer Interface a Tima
Timer Interface a Tima
Block Diagram Highlighting Tima Block and Pins
Tima Block Diagram
TIM I/O Register Summary
Timer Interface a Tima Addr Register Name Bit
Input Capture
Tima Counter Prescaler
Unbuffered Output Compare
Output Compare
Buffered Output Compare
Pulse-Width Modulation PWM
PWM Period and Pulse Width
Unbuffered PWM Signal Generation
PWM Initialization
Buffered PWM Signal Generation
224 Freescale Semiconductor
Tima Clock Pin PTE3/TCLKA
16.6 I/O Signals
Tima Channel I/O Pins PTE4/TCH0A-PTE7/TCH3A
16.7 I/O Registers
Tstop Tima Stop Bit
Toie Tima Overflow Interrupt Enable Bit
Trst Tima Reset Bit
PS20 Tima Clock Source
Tima Counter Registers
PS20 Prescaler Select Bits
Prescaler Selection
Tima Channel Status and Control Registers
Tima Counter Modulo Registers
CHxIE Channel x Interrupt Enable Bit
ELSxB and ELSxA Edge/Level Select Bits
MSxB Mode Select Bit B
MSxA Mode Select Bit a
CHxMAX Channel x Maximum Duty Cycle Bit
MSxBMSxA ELSxBELSxA Mode Configuration
Mode, Edge, and Level Selection
TOVx Toggle-On-Overflow Bit
10. Tima Channel Registers
Tima Channel Registers
10. Tima Channel Registers TACH0H/L-TACH3H/L
234 Freescale Semiconductor
Timb module is not available in the 56-pin Sdip
Chapter Timer Interface B Timb
Timer Interface B Timb
Block Diagram Highlighting Timb Block and Pins
Timb Block Diagram
Timb Counter Prescaler
Timer Interface B Timb Addr Register Name Bit
Freescale Semiconductor 239
240 Freescale Semiconductor
Freescale Semiconductor 241
242 Freescale Semiconductor
Timb Clock Pin PTE0/TCLKB
17.6 I/O Signals
Timb Channel I/O Pins PTE1/TCH0B-PTE2/TCH1B
Timb Status and Control Register
Toie Timb Overflow Interrupt Enable Bit
17.7 I/O Registers
PS20 Timb Clock Source
Trst Timb Reset Bit
Tstop Timb Stop Bit
Timb Counter Modulo Registers
Timb Counter Registers
Timb Channel Status and Control Registers
248 Freescale Semiconductor
PWM
10. Timb Channel Registers TBCH0H/L-TBCH1H/L
Timb Channel Registers
Flag Protection During Break Interrupts
Chapter Development Support
Break Module BRK
Functional Description
Development Support
Break Module Block Diagram
Break Module Registers
Low-Power Modes
Break Address Registers
Break Status and Control Register
Brka Break Active Bit
Monitor ROM MON
Monitor ROM MON
Break Status Register
Break Flag Control Register
Normal Monitor Mode
Entering Monitor Mode
Mode Differences
Monitor Mode Circuit
$FFFF
Monitor Mode Signal Requirements and Options
Data Format
Forced Monitor Mode
Echoing
Break Signal
Commands
Command Sequence
Read Read Memory Command
Write Write Memory Command
Iread Indexed Read Command
RUN Run User Program Command
Iwrite Indexed Write Command
Readsp Read Stack Pointer Command
Monitor Baud Rate Selection
Security
Baud Rate
13. Monitor Mode Entry Timing
Absolute Maximum Ratings
Chapter Electrical Specifications
Characteristic1 Symbol Value Unit
Functional Operating Range
Thermal Characteristics
Electrical Specifications
Characteristic Symbol Value Unit
Characteristic1 Symbol Min Typ2 Max Unit
DC Electrical Characteristics
DC Electrical Characteristics
Control Timing
Flash Memory Characteristics
Characteristic Symbol Min Typ Max Unit
Characteristic Symbol Min Max Unit
Diagram Characteristic2 Symbol Min Max Unit Number1
Serial Peripheral Interface Characteristics
Serial Peripheral Interface Characteristics
SPI Master Timing
SPI Slave Timing
CGM Operating Conditions
TImer Interface Module Characteristics
Clock Generation Module Component Specifications
Characteristic Symbol Min Typ Max
Description Symbol Min Typ Max
CGM Acquisition/Lock Time Specifications
CGM Acquisition/Lock Time Specifications
3FF
Analog-to-Digital Converter ADC Characteristics
MC Order Number Operating
Chapter Ordering Information and Mechanical Specifications
Order Numbers
Order Numbers
20.3 64-Pin Plastic Quad Flat Pack QFP
Ordering Information and Mechanical Specifications
Pin Shrink Dual In-Line Package Sdip
20.4 56-Pin Shrink Dual In-Line Package Sdip
278 Freescale Semiconductor
Appendix a MC68HC908MR16
MC68HC908MR16
Figure A-1. MC68HC908MR16 Memory Map
Page
How to Reach Us