|
Part Number |
MC68HC908MR24 |
|
Manufacturer |
Freescale Semiconductor |
|
Semiconductor DataSheet |
|
DataSheet View |
|
www.DataSheet4U.com
68HC908MR24 Advance Information
M68HC08 Microcontrollers
Rev. 4.1 MC68HC908MR24/D August 1, 2005
freescale.com
Advance Information — MC68HC908MR24
List of Sections
Section 1. General Description . . . . . . . . . . . . . . . . . . . . 29 Section 2. Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Section 3. Random-Access Memory (RAM) . . . . . . . . . . 55 Section 4. FLASH Memory . . . . . . . . . . . . . . . . . . . . . . . . 57 Section 5. Configuration Register (CONFIG) . . . . . . . . . 69 Section 6. Central Processor Unit (CPU) . . . . . . . . . . . . 73 Section 7. System Integration Module (SIM) . . . . . . . . . 91 Section 8. Clock Generator Module (CGM) . . . . . . . . . . 109 Section 9. Pulse-Width Modulator for Motor Control (PWMMC) . . . . . . . . . . . . . . . . . . 135 Section 10. Monitor ROM (MON) . . . . . . . . . . . . . . . . . . 191 Section 11. Timer Interface A (TIMA). . . . . . . . . . . . . . . 203 Section 12. Timer Interface B (TIMB). . . . . . . . . . . . . . . 231 Section 13. Serial Peripheral Interface Module (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255 Section 14. Serial Communications Interface Module (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Section 15. Input/Output (I/O) Ports . . . . . . . . . . . . . . . 321 Section 16. Computer Operating Properly (COP) . . . . 337 Section 17. External Interrupt (IRQ) . . . . . . . . . . . . . . . 343 Section 18. Low-Voltage Inhibit (LVI) . . . . . . . . . . . . . . 349 Section 19. Analog-to-Digital Converter (ADC) . . . . . . 355 Section 20. Power-On Reset (POR) . . . . . . . . . . . . . . . . 371
MC68HC908MR24 — Rev. 4.1 Freescale Semiconductor List of Sections Advance Information 3
List of Sections Section 21. Electrical Specifications. . . . . . . . . . . . . . . 373 Section 22. Mechanical Specifications . . . . . . . . . . . . . 385 Section 23. Ordering Information . . . . . . . . . . . . . . . . . 389 Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
Advance Information 4 List of Sections
MC68HC908MR24 — Rev. 4.1 Freescale Semiconductor
Advance Information — MC68HC908MR24
Table of Contents
Section 1. General Description
1.1 1.2 1.3 1.4 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 MCU Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1.5 Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 1.5.1 Power Supply Pins (VDD and VSS) . . . . . . . . . . . . . . . . . . . . 35 1.5.2 Oscillator Pins (OSC1 and OSC2) . . . . . . . . . . . . . . . . . . . . 35 1.5.3 External Reset Pin (RST) . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.5.4 External Interrupt Pin (IRQ) . . . . . . . . . . . . . . . . . . . . . . . . . 36 1.5.5 CGM Power Supply Pins (VDDA and VSSA) . . . . . . . . . . . . . 36 1.5.6 External Filter Capacitor Pin (CGMXFC) . . . . . . . . . . . . . . . 36 1.5.7 Analog Power Supply Pins (VDDAD and VSSAD). . . . . . . . . . 36 1.5.8 ADC Voltage Decoupling Capacitor Pin (VREFH) . . . . . . . . . 36 1.5.9 ADC Voltage Reference Low Pin (VREFL) . . . . . . . . . . . . . . 37 1.5.10 Port A Input/Output (I/O) Pins (PTA7–PTA0) . . . . . . . . . . . . 37 1.5.11 Port B I/O Pins (PTB7/ATD7–PTB0/ATD0) . . . . . . . . . . . . . 37 1.5.12 Port C I/O Pins (PTC6–PTC2 and PTC1/ATD9–PTC0/ATD8) . . . . . . . . . . . . . . . . . . . . . . . 37 1.5.13 Port D Input-Only Pins (PTD6/IS3–PTD4/IS1 and PTD3/FAULT4–PTD0/FAULT1) . . . . . . . . . . . . . . . . 37 1.5.14 PWM Pins (PWM6–PWM1) . . . . . . . . . . . . . . . . . . . . . . . . . 38 1.5.15 PWM Ground Pin (PWMGND) . . . . . . . . . . . . . . . . . . . . . . . 38 1.5.16 Port E I/O Pins (PTE7/TCH3A–PTE3/TCLKA and PTE2/TCH1B–PTE0/TCLKB). . . . . . . . . . . . . . . . . . 38 1.5.17 Port F I/O Pins (PTF5/TxD–PTF4/RxD and PTF3/MISO–PTF0/SPSCK) . . . . . . . . . . . . . . . . . . . 38
MC68HC908MR24 — Rev. 4.1 Freescale Semiconductor Table of Contents
Advance Information 5
Table of Contents Section 2. Memory Map
2.1 2.2 2.3 2.4 2.5 2.6 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Unimplemented Memory Locations . . . . . . . . . . . . . . . . . . . . . 39 Reserved Memory Locations . . . . . . . . . . . . . . . . . . . . . . . . . . 40 I/O Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Monitor ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53
Section 3. Random-Access Memory (RAM)
3.1 3.2 3.3 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
Section 4. FLASH Memory
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 FLASH Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 FLASH Charge Pump Frequency Control . . . . . . . . . . . . . . . . 60 FLASH Erase Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 FLASH Program/Margin Read Operation . . . . . . . . . . . . . . . . . 62 FLASH Block Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 FLASH Block Protect Register . . . . . . . . . . . . . . . . . . . . . . . . . 66 Wait Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Advance Information 6 Table of Contents
MC68HC908MR24 — Rev. 4.1 Freescale Semiconductor
Table of Contents
Section 5. Configuration Register (CONFIG)
5.1 5.2 5.3 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
Section 6. Central Processor Unit (CPU)
6.1 6.2 6.3 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
6.4 CPU Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 6.4.1 Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 6.4.2 Index Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 6.4.3 Stack Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 6.4.4 Program Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 6.4.5 Condition Code Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.5 6.6 6.7 Arithmetic/Logic Unit (ALU) . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Instruction Set Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Opcode Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Section 7. System Integration Module (SIM)
7.1 7.2 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
7.3 SIM Bus Clock Control and Generation . . . . . . . . . . . . . . . . . . 94 7.3.1 Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 7.3.2 Clock Startup from POR or LVI Reset . . . . . . . . . . . . . . . . . 94 7.3.3 Clocks in Wait Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 7.4 Reset and System Initialization. . . . . . . . . . . . . . . . . . . . . . . . . 95 7.4.1 External Pin Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 7.4.2 Active Resets from Internal Sources . . . . . . . . . . . . . . . . . . 97
MC68HC908MR24 — Rev. 4.1 Freescale Semiconductor Table of Contents
Advance Information 7
Table of Contents
7.4.2.1 7.4.2.2 7.4.2.3 7.4.2.4 7.4.2.5 Power-On Reset (POR) . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Computer Operating Properly (COP) Reset. . . . . . . . . . . 99 Illegal Opcode Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Illegal Address Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 Low-Voltage Inhibit (LVI) Reset . . . . . . . . . . . . . . . . . . . 100
7.5 SIM Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 7.5.1 SIM Counter During Power-On Reset . . . . . . . . . . . . . . . . 100 7.5.2 SIM Counter and Reset States. . . . . . . . . . . . . . . . . . . . . . 100 7.6 Exception Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 7.6.1 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 7.6.1.1 Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 7.6.1.2 Software Interrupt (SWI) Instruction. . . . . . . . . . . . . . . . 104 7.6.2 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 7.7 Low-Power Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 7.7.1 Wait Mode . . . |