用户手册目录Revision History4List of Sections5Table of Contents7List of Figures21List of Tables27Section 1. General Description291.1 Contents291.2 Introduction301.3 Features301.4 MCU Block Diagram311.5 Pin Assignments331.5.1 Power Supply Pins (VDD and VSS)351.5.2 Oscillator Pins (OSC1 and OSC2)351.5.3 External Reset Pin (RST)351.5.4 External Interrupt Pin (IRQ)361.5.5 CGM Power Supply Pins (VDDA and VSSA)361.5.6 External Filter Capacitor Pin (CGMXFC)361.5.7 Analog Power Supply Pins (VDDA and VSSA)361.5.8 ADC Voltage Decoupling Capacitor Pin (VREFH)361.5.9 ADC Voltage Reference Low Pin (VREFL)361.5.10 Port A Input/Output (I/O) Pins (PTA7–PTA0)371.5.11 Port B I/O Pins (PTB7/ATD7–PTB0/ATD0)371.5.12 Port C I/O Pins (PTC6–PTC2 and PTC1/ATD9–PTC0/ATD8)371.5.13 Port D Input-Only Pins (PTD6/IS3–PTD4/IS1 and PTD3/FAULT4–PTD0/FAULT1)371.5.14 PWM Pins (PWM6–PWM1)371.5.15 PWM Ground Pin (PWMGND)381.5.16 Port E I/O Pins (PTE7/TCH3A–PTE3/TCLKA and PTE2/TCH1B–PTE0/TCLKB)381.5.17 Port F I/O Pins (PTF5/TxD–PTF4/RxD and PTF3/MISO–PTF0/SPSCK)38Section 2. Memory Map392.1 Contents392.2 Introduction392.3 Unimplemented Memory Locations392.4 Reserved Memory Locations402.5 I/O Section402.6 Monitor ROM53Section 3. Random-Access Memory (RAM)553.1 Contents553.2 Introduction553.3 Functional Description55Section 4. FLASH Memory574.1 Contents574.2 Introduction574.3 Functional Description584.4 FLASH Control Register594.5 FLASH Page Erase Operation604.6 FLASH Mass Erase Operation614.7 FLASH Program/Read Operation624.8 FLASH Block Protection644.9 FLASH Block Protect Register654.10 Wait Mode664.11 Stop Mode66Section 5. Configuration Register (CONFIG)675.1 Contents675.2 Introduction675.3 Functional Description675.4 Configuration Register68Section 6. Central Processor Unit (CPU)716.1 Contents716.2 Introduction716.3 Features726.4 CPU Registers726.4.1 Accumulator736.4.2 Index Register736.4.3 Stack Pointer746.4.4 Program Counter756.4.5 Condition Code Register756.5 Arithmetic/Logic Unit (ALU)776.6 Low-Power Modes776.6.1 Wait Mode786.6.2 Stop Mode786.7 CPU During Break Interrupts786.8 Instruction Set Summary796.9 Opcode Map86Section 7. System Integration Module (SIM)897.1 Contents897.2 Introduction907.3 SIM Bus Clock Control and Generation927.3.1 Bus Timing937.3.2 Clock Startup from POR or LVI Reset937.3.3 Clocks in Wait Mode937.4 Reset and System Initialization937.4.1 External Pin Reset947.4.2 Active Resets from Internal Sources957.4.2.1 Power-On Reset (POR)967.4.2.2 Computer Operating Properly (COP) Reset977.4.2.3 Illegal Opcode Reset977.4.2.4 Illegal Address Reset977.4.2.5 Forced Monitor Mode Entry Reset (MENRST)987.4.2.6 Low-Voltage Inhibit (LVI) Reset987.5 SIM Counter987.5.1 SIM Counter During Power-On Reset987.5.2 SIM Counter and Reset States987.6 Exception Control997.6.1 Interrupts997.6.1.1 Hardware Interrupts1017.6.1.2 Software Interrupt (SWI) Instruction1027.6.2 Reset1027.7 Low-Power Mode1027.7.1 Wait Mode1027.7.2 Stop Mode1047.8 SIM Registers1047.8.1 SIM Break Status Register1047.8.2 SIM Reset Status Register1067.8.3 SIM Break Flag Control Register107Section 8. Clock Generator Module (CGM)1098.1 Contents1098.2 Introduction1108.3 Features1108.4 Functional Description1118.4.1 Crystal Oscillator Circuit1118.4.2 Phase-Locked Loop Circuit (PLL)1138.4.2.1 PLL Circuits1138.4.2.2 Acquisition and Tracking Modes1158.4.2.3 Manual and Automatic PLL Bandwidth Modes1158.4.2.4 Programming the PLL1178.4.2.5 Special Programming Exceptions1198.4.3 Base Clock Selector Circuit1198.4.4 CGM External Connections1198.5 I/O Signals1218.5.1 Crystal Amplifier Input Pin (OSC1)1218.5.2 Crystal Amplifier Output Pin (OSC2)1218.5.3 External Filter Capacitor Pin (CGMXFC)1218.5.4 PLL Analog Power Pin (VDDA)1228.5.5 Oscillator Enable Signal (SIMOSCEN)1228.5.6 Crystal Output Frequency Signal (CGMXCLK)1228.5.7 CGM Base Clock Output (CGMOUT)1228.5.8 CGM CPU Interrupt (CGMINT)1228.6 CGM Registers1238.6.1 PLL Control Register1248.6.2 PLL Bandwidth Control Register1268.6.3 PLL Programming Register1288.7 Interrupts1298.8 Wait Mode1308.9 Acquisition/Lock Time Specifications1308.9.1 Acquisition/Lock Time Definitions1308.9.2 Parametric Influences on Reaction Time1328.9.3 Choosing a Filter Capacitor1338.9.4 Reaction Time Calculation133Section 9. Pulse-Width Modulator for Motor Control (PWMMC)1359.1 Contents1359.2 Introduction1369.3 Features1379.4 Timebase1419.4.1 Resolution1419.4.2 Prescaler1439.5 PWM Generators1439.5.1 Load Operation1439.5.2 PWM Data Overflow and Underflow Conditions1479.6 Output Control1479.6.1 Selecting Six Independent PWMs or Three Complementary PWM Pairs1479.6.2 Dead-Time Insertion1499.6.3 Top/Bottom Correction with Motor Phase Current Polarity Sensing1539.6.4 Output Polarity1579.6.5 PWM Output Port Control1589.7 Fault Protection1609.7.1 Fault Condition Input Pins1619.7.1.1 Fault Pin Filter1619.7.1.2 Automatic Mode1639.7.1.3 Manual Mode1649.7.2 Software Output Disable1659.7.3 Output Port Control1669.8 Initialization and the PWMEN Bit1669.9 PWM Operation in Wait Mode1689.10 Control Logic Block1689.10.1 PWM Counter Registers1689.10.2 PWM Counter Modulo Registers1699.10.3 PWMx Value Registers1709.10.4 PWM Control Register 11719.10.5 PWM Control Register 21739.10.6 Dead-Time Write-Once Register1769.10.7 PWM Disable Mapping Write-Once Register1769.10.8 Fault Control Register1779.10.9 Fault Status Register1799.10.10 Fault Acknowledge Register1809.10.11 PWM Output Control Register1829.11 PWM Glossary183Section 10. Monitor ROM (MON)18510.1 Contents18510.2 Introduction18510.3 Features18610.4 Functional Description18610.4.1 Entering Monitor Mode18810.4.1.1 Normal Monitor Mode18810.4.1.2 Forced Monitor Mode19010.4.2 Data Format19110.4.3 Echoing19110.4.4 Break Signal19210.4.5 Commands19210.4.6 Baud Rate19610.5 Security196Section 11. Timer Interface A (TIMA)19911.1 Contents19911.2 Introduction20011.3 Features20011.4 Functional Description20411.4.1 TIMA Counter Prescaler20411.4.2 Input Capture20411.4.3 Output Compare20611.4.3.1 Unbuffered Output Compare20611.4.3.2 Buffered Output Compare20711.4.4 Pulse-Width Modulation (PWM)20811.4.4.1 Unbuffered PWM Signal Generation20911.4.4.2 Buffered PWM Signal Generation21011.4.4.3 PWM Initialization21111.5 Interrupts21211.6 Wait Mode21211.7 I/O Signals21311.7.1 TIMA Clock Pin (PTE3/TCLKA)21311.7.2 TIMA Channel I/O Pins (PTE4/TCH0A–PTE7/TCH3A)21311.8 I/O Registers21411.8.1 TIMA Status and Control Register21411.8.2 TIMA Counter Registers21611.8.3 TIMA Counter Modulo Registers21711.8.4 TIMA Channel Status and Control Registers21711.8.5 TIMA Channel Registers222Section 12. Timer Interface B (TIMB)22512.1 Contents22512.2 Introduction22612.3 Features22612.4 Functional Description22612.4.1 TIMB Counter Prescaler22712.4.2 Input Capture22912.4.3 Output Compare23012.4.3.1 Unbuffered Output Compare23012.4.3.2 Buffered Output Compare23112.4.4 Pulse-Width Modulation (PWM)23212.4.4.1 Unbuffered PWM Signal Generation23312.4.4.2 Buffered PWM Signal Generation23412.4.4.3 PWM Initialization23412.5 Interrupts23612.6 Wait Mode23612.7 I/O Signals23612.7.1 TIMB Clock Pin (PTE4/ATD12)23712.7.2 TIMB Channel I/O Pins (PTE1/TCH0B–PTE2/TCH1B)23712.8 I/O Registers23712.8.1 TIMB Status and Control Register23812.8.2 TIMB Counter Registers24012.8.3 TIMB Counter Modulo Registers24112.8.4 TIMB Channel Status and Control Registers24212.8.5 TIMB Channel Registers245Section 13. Serial Peripheral Interface Module (SPI)24713.1 Contents24713.2 Introduction24813.3 Features24813.4 Pin Name Conventions24813.5 Functional Description24913.5.1 Master Mode24913.5.2 Slave Mode25213.6 Transmission Formats25313.6.1 Clock Phase and Polarity Controls25313.6.2 Transmission Format When CPHA = 025313.6.3 Transmission Format When CPHA=125513.6.4 Transmission Initiation Latency25613.7 Error Conditions25813.7.1 Overflow Error25813.7.2 Mode Fault Error26013.8 Interrupts26213.9 Resetting the SPI26413.10 Queuing Transmission Data26413.11 Low-Power Mode26613.12 I/O Signals26613.12.1 MISO (Master In/Slave Out)26713.12.2 MOSI (Master Out/Slave In)26713.12.3 SPSCK (Serial Clock)26713.12.4 SS (Slave Select)26813.12.5 VSS (Clock Ground)26913.13 I/O Registers26913.13.1 SPI Control Register27013.13.2 SPI Status and Control Register27213.13.3 SPI Data Register275Section 14. Serial Communications Interface Module (SCI)27714.1 Contents27714.2 Introduction27814.3 Features27814.4 Functional Description27914.4.1 Data Format28114.4.2 Transmitter28114.4.2.1 Character Length28114.4.2.2 Character Transmission28114.4.2.3 Break Characters28314.4.2.4 Idle Characters28314.4.2.5 Inversion of Transmitted Output28414.4.2.6 Transmitter Interrupts28414.4.3 Receiver28414.4.3.1 Character Length28414.4.3.2 Character Reception28614.4.3.3 Data Sampling28614.4.3.4 Framing Errors28814.4.3.5 Receiver Wakeup28814.4.3.6 Receiver Interrupts28914.4.3.7 Error Interrupts29014.5 Wait Mode29014.6 SCI During Break Module Interrupts29114.7 I/O Signals29114.7.1 PTF5/TxD (Transmit Data)29114.7.2 PTF4/RxD (Receive Data)29214.8 I/O Registers29214.8.1 SCI Control Register 129214.8.2 SCI Control Register 229514.8.3 SCI Control Register 329814.8.4 SCI Status Register 129914.8.5 SCI Status Register 230314.8.6 SCI Data Register30414.8.7 SCI Baud Rate Register304Section 15. Input/Output (I/O) Ports30715.1 Contents30715.2 Introduction30715.3 Port A31015.3.1 Port A Data Register31015.3.2 Data Direction Register A31015.4 Port B31215.4.1 Port B Data Register31215.4.2 Data Direction Register B31215.5 Port C31415.5.1 Port C Data Register31415.5.2 Data Direction Register C31415.6 Port D31615.7 Port E31715.7.1 Port E Data Register31715.7.2 Data Direction Register E31815.8 Port F31915.8.1 Port F Data Register31915.8.2 Data Direction Register F320Section 16. Computer Operating Properly (COP)32316.1 Contents32316.2 Introduction32316.3 Functional Description32416.4 I/O Signals32516.4.1 CGMXCLK32516.4.2 COPCTL Write32516.4.3 Power-On Reset32516.4.4 Internal Reset32616.4.5 Reset Vector Fetch32616.4.6 COPD (COP Disable)32616.5 COP Control Register32616.6 Interrupts32616.7 Monitor Mode32716.8 Wait Mode32716.9 Stop Mode327Section 17. External Interrupt (IRQ)32917.1 Contents32917.2 Introduction32917.3 Features32917.4 Functional Description33017.5 IRQ Pin33317.6 IRQ Status and Control Register334Section 18. Low-Voltage Inhibit (LVI)33518.1 Contents33518.2 Introduction33518.3 Features33518.4 Functional Description33618.4.1 Polled LVI Operation33718.4.2 Forced Reset Operation33718.4.3 False Reset Protection33718.4.4 LVI Trip Selection33818.5 LVI Status and Control Register33818.6 LVI Interrupts33918.7 Wait Mode33918.8 Stop Mode340Section 19. Analog-to-Digital Converter (ADC)34119.1 Contents34119.2 Introduction34219.3 Features34219.4 Functional Description34219.4.1 ADC Port I/O Pins34319.4.2 Voltage Conversion34419.4.3 Conversion Time34419.4.4 Continuous Conversion34519.4.5 Result Justification34519.4.6 Monotonicity34619.5 Interrupts34619.6 Wait Mode34719.7 I/O Signals34719.7.1 ADC Analog Power Pin (VDDAD)34719.7.2 ADC Analog Ground Pin (VSSAD)34719.7.3 ADC Voltage Reference Pin (VREFH)34719.7.4 ADC Voltage Reference Low Pin (VREFL)34819.7.5 ADC Voltage In (ADVIN)34819.7.6 ADC External Connections34819.7.6.1 VREFH and VREFL34819.7.6.2 ANx34819.7.6.3 Grounding34919.8 I/O Registers34919.8.1 ADC Status and Control Register34919.8.2 ADC Data Register High35219.8.3 ADC Data Register Low35319.8.4 ADC Clock Register354Section 20. Power-On Reset (POR)35720.1 Contents35720.2 Introduction35720.3 Functional Description357Section 21. Break Module (BRK)35921.1 Contents35921.2 Introduction35921.3 Features36021.4 Functional Description36021.4.1 Flag Protection During Break Interrupts36221.4.2 CPU During Break Interrupts36221.4.3 TIM1 and TIM2 During Break Interrupts36221.4.4 COP During Break Interrupts36221.5 Low-Power Modes36221.5.1 Wait Mode36221.5.2 Stop Mode36321.6 Break Module Registers36321.6.1 Break Status and Control Register36321.6.2 Break Address Registers36421.6.3 Break Status Register36521.6.4 Break Flag Control Register366Section 22. Electrical Specifications36722.1 Contents36722.2 Introduction36722.3 Absolute Maximum Ratings36822.4 Functional Operating Range36922.5 Thermal Characteristics36922.6 DC Electrical Characteristics (VDD = 5.0 Vdc ± 10%)37022.7 FLASH Memory Characteristics37122.8 Control Timing (VDD = 5.0 Vdc ± 10%)37222.9 Serial Peripheral Interface Characteristics (VDD = 5.0 Vdc ± 10%)37322.10 TImer Interface Module Characteristics37622.11 Clock Generation Module Component Specifications37622.12 CGM Operating Conditions37622.13 CGM Acquisition/Lock Time Specifications37722.14 Analog-to-Digital Converter (ADC) Characteristics378Section 23. Mechanical Specifications37923.1 Contents37923.2 Introduction37923.3 64-Pin Plastic Quad Flat Pack (QFP)38023.4 56-Pin Shrink Dual In-Line Package (SDIP)381Section 24. Ordering Information38324.1 Contents38324.2 Introduction38324.3 Order Numbers383Appendix A. MC68HC908MR16385A.1 Contents385A.2 Introduction385A.3 Memory Map386文件大小: 4.2 MB页数: 388Language: English打开用户手册