Manuale UtenteSommarioRevision History4List of Chapters5Table of Contents7Chapter 1 General Description171.1 Introduction171.2 Features171.3 MCU Block Diagram181.4 Pin Assignments201.4.1 Power Supply Pins (VDD and VSS)221.4.2 Oscillator Pins (OSC1 and OSC2)221.4.3 External Reset Pin (RST)221.4.4 External Interrupt Pin (IRQ)221.4.5 CGM Power Supply Pins (VDDA and VSSAD)221.4.6 External Filter Capacitor Pin (CGMXFC)231.4.7 Analog Power Supply Pins (VDDAD and VSSAD)231.4.8 ADC Voltage Decoupling Capacitor Pin (VREFH)231.4.9 ADC Voltage Reference Low Pin (VREFL)231.4.10 Port A Input/Output (I/O) Pins (PTA7-PTA0)231.4.11 Port B I/O Pins (PTB7/ATD7-PTB0/ATD0)231.4.12 Port C I/O Pins (PTC6-PTC2 and PTC1/ATD9-PTC0/ATD8)231.4.13 Port D Input-Only Pins (PTD6/IS3-PTD4/IS1 and PTD3/FAULT4-PTD0/FAULT1)231.4.14 PWM Pins (PWM6-PWM1)231.4.15 PWM Ground Pin (PWMGND)241.4.16 Port E I/O Pins (PTE7/TCH3A-PTE3/TCLKA and PTE2/TCH1B-PTE0/TCLKB)241.4.17 Port F I/O Pins (PTF5/TxD-PTF4/RxD and PTF3/MISO-PTF0/SPSCK)24Chapter 2 Memory252.1 Introduction252.2 Unimplemented Memory Locations252.3 Reserved Memory Locations252.4 I/O Section262.5 Memory Map262.6 Monitor ROM372.7 Random-Access Memory (RAM)372.8 FLASH Memory (FLASH)382.8.1 FLASH Control Register382.8.2 FLASH Page Erase Operation392.8.3 FLASH Mass Erase Operation402.8.4 FLASH Program Operation412.8.5 FLASH Block Protection432.8.6 FLASH Block Protect Register432.8.7 Wait Mode442.8.8 Stop Mode44Chapter 3 Analog-to-Digital Converter (ADC)453.1 Introduction453.2 Features453.3 Functional Description453.3.1 ADC Port I/O Pins473.3.2 Voltage Conversion473.3.3 Conversion Time483.3.4 Continuous Conversion483.3.5 Result Justification483.3.6 Monotonicity493.4 Interrupts503.5 Wait Mode503.6 I/O Signals503.6.1 ADC Analog Power Pin (VDDAD)503.6.2 ADC Analog Ground Pin (VSSAD)503.6.3 ADC Voltage Reference Pin (VREFH)503.6.4 ADC Voltage Reference Low Pin (VREFL)503.6.5 ADC Voltage In (ADVIN)513.6.6 ADC External Connections513.6.6.1 VREFH and VREFL513.6.6.2 ANx513.6.6.3 Grounding513.7 I/O Registers513.7.1 ADC Status and Control Register523.7.2 ADC Data Register High543.7.3 ADC Data Register Low543.7.4 ADC Clock Register55Chapter 4 Clock Generator Module (CGM)574.1 Introduction574.2 Features574.3 Functional Description574.3.1 Crystal Oscillator Circuit594.3.2 Phase-Locked Loop Circuit (PLL)594.3.2.1 PLL Circuits594.3.2.2 Acquisition and Tracking Modes604.3.2.3 Manual and Automatic PLL Bandwidth Modes604.3.2.4 Programming the PLL614.3.2.5 Special Programming Exceptions624.3.3 Base Clock Selector Circuit624.3.4 CGM External Connections634.4 I/O Signals644.4.1 Crystal Amplifier Input Pin (OSC1)644.4.2 Crystal Amplifier Output Pin (OSC2)644.4.3 External Filter Capacitor Pin (CGMXFC)644.4.4 PLL Analog Power Pin (VDDA)644.4.5 Oscillator Enable Signal (SIMOSCEN)644.4.6 Crystal Output Frequency Signal (CGMXCLK)654.4.7 CGM Base Clock Output (CGMOUT)654.4.8 CGM CPU Interrupt (CGMINT)654.5 CGM Registers654.5.1 PLL Control Register664.5.2 PLL Bandwidth Control Register674.5.3 PLL Programming Register684.6 Interrupts694.7 Wait Mode694.8 Acquisition/Lock Time Specifications704.8.1 Acquisition/Lock Time Definitions704.8.2 Parametric Influences on Reaction Time704.8.3 Choosing a Filter Capacitor714.8.4 Reaction Time Calculation71Chapter 5 Configuration Register (CONFIG)735.1 Introduction735.2 Functional Description735.3 Configuration Register74Chapter 6 Computer Operating Properly (COP)756.1 Introduction756.2 Functional Description756.3 I/O Signals766.3.1 CGMXCLK766.3.2 COPCTL Write766.3.3 Power-On Reset766.3.4 Internal Reset766.3.5 Reset Vector Fetch766.3.6 COPD (COP Disable)776.4 COP Control Register776.5 Interrupts776.6 Monitor Mode776.7 Wait Mode776.8 Stop Mode77Chapter 7 Central Processor Unit (CPU)797.1 Introduction797.2 Features797.3 CPU Registers797.3.1 Accumulator807.3.2 Index Register807.3.3 Stack Pointer817.3.4 Program Counter817.3.5 Condition Code Register827.4 Arithmetic/Logic Unit (ALU)837.5 Low-Power Modes837.5.1 Wait Mode837.5.2 Stop Mode837.6 CPU During Break Interrupts837.7 Instruction Set Summary847.8 Opcode Map89Chapter 8 External Interrupt (IRQ)918.1 Introduction918.2 Features918.3 Functional Description918.4 IRQ Pin928.5 IRQ Status and Control Register94Chapter 9 Low-Voltage Inhibit (LVI)979.1 Introduction979.2 Features979.3 Functional Description979.3.1 Polled LVI Operation989.3.2 Forced Reset Operation989.3.3 False Reset Protection989.3.4 LVI Trip Selection989.4 LVI Status and Control Register999.5 LVI Interrupts999.6 Wait Mode999.7 Stop Mode100Chapter 10 Input/Output (I/O) Ports (PORTS)10110.1 Introduction10110.2 Port A10310.2.1 Port A Data Register10310.2.2 Data Direction Register A10310.3 Port B10410.3.1 Port B Data Register10410.3.2 Data Direction Register B10510.4 Port C10610.4.1 Port C Data Register10610.4.2 Data Direction Register C10610.5 Port D10710.6 Port E10810.6.1 Port E Data Register10810.6.2 Data Direction Register E10910.7 Port F11010.7.1 Port F Data Register11010.7.2 Data Direction Register F110Chapter 11 Power-On Reset (POR)11311.1 Introduction11311.2 Functional Description113Chapter 12 Pulse-Width Modulator for Motor Control (PWMMC)11512.1 Introduction11512.2 Features11512.3 Timebase12012.3.1 Resolution12012.3.2 Prescaler12212.4 PWM Generators12212.4.1 Load Operation12212.4.2 PWM Data Overflow and Underflow Conditions12512.5 Output Control12612.5.1 Selecting Six Independent PWMs or Three Complementary PWM Pairs12612.5.2 Dead-Time Insertion12712.5.3 Top/Bottom Correction with Motor Phase Current Polarity Sensing13012.5.4 Output Polarity13312.5.5 PWM Output Port Control13512.6 Fault Protection13712.6.1 Fault Condition Input Pins13712.6.1.1 Fault Pin Filter13912.6.1.2 Automatic Mode13912.6.1.3 Manual Mode14012.6.2 Software Output Disable14112.6.3 Output Port Control14112.7 Initialization and the PWMEN Bit14212.8 PWM Operation in Wait Mode14312.9 Control Logic Block14312.9.1 PWM Counter Registers14312.9.2 PWM Counter Modulo Registers14412.9.3 PWMx Value Registers14512.9.4 PWM Control Register 114612.9.5 PWM Control Register 214812.9.6 Dead-Time Write-Once Register15012.9.7 PWM Disable Mapping Write-Once Register15012.9.8 Fault Control Register15012.9.9 Fault Status Register15212.9.10 Fault Acknowledge Register15312.9.11 PWM Output Control Register15412.10 PWM Glossary155Chapter 13 Serial Communications Interface Module (SCI)15713.1 Introduction15713.2 Features15713.3 Functional Description15913.3.1 Data Format16013.3.2 Transmitter16113.3.2.1 Character Length16213.3.2.2 Character Transmission16213.3.2.3 Break Characters16213.3.2.4 Idle Characters16313.3.2.5 Inversion of Transmitted Output16313.3.2.6 Transmitter Interrupts16313.3.3 Receiver16313.3.3.1 Character Length16413.3.3.2 Character Reception16513.3.3.3 Data Sampling16513.3.3.4 Framing Errors16713.3.3.5 Receiver Wakeup16713.3.3.6 Receiver Interrupts16713.3.3.7 Error Interrupts16713.4 Wait Mode16813.5 SCI During Break Module Interrupts16813.6 I/O Signals16813.6.1 PTF5/TxD (Transmit Data)16813.6.2 PTF4/RxD (Receive Data)16913.7 I/O Registers16913.7.1 SCI Control Register 116913.7.2 SCI Control Register 217113.7.3 SCI Control Register 317313.7.4 SCI Status Register 117413.7.5 SCI Status Register 217613.7.6 SCI Data Register17713.7.7 SCI Baud Rate Register177Chapter 14 System Integration Module (SIM)18114.1 Introduction18114.2 SIM Bus Clock Control and Generation18214.2.1 Bus Timing18214.2.2 Clock Startup from POR or LVI Reset18214.2.3 Clocks in Wait Mode18314.3 Reset and System Initialization18314.3.1 External Pin Reset18314.3.2 Active Resets from Internal Sources18414.3.2.1 Power-On Reset (POR)18514.3.2.2 Computer Operating Properly (COP) Reset18514.3.2.3 Illegal Opcode Reset18614.3.2.4 Illegal Address Reset18614.3.2.5 Forced Monitor Mode Entry Reset (MENRST)18614.3.2.6 Low-Voltage Inhibit (LVI) Reset18614.4 SIM Counter18614.4.1 SIM Counter During Power-On Reset18614.4.2 SIM Counter and Reset States18614.5 Exception Control18714.5.1 Interrupts18714.5.1.1 Hardware Interrupts18914.5.1.2 Software Interrupt (SWI) Instruction19014.5.2 Reset19014.6 Low-Power Mode19014.6.1 Wait Mode19014.6.2 Stop Mode19114.7 SIM Registers19114.7.1 SIM Break Status Register19114.7.2 SIM Reset Status Register19214.7.3 SIM Break Flag Control Register193Chapter 15 Serial Peripheral Interface Module (SPI)19515.1 Introduction19515.2 Features19515.3 Pin Name Conventions19515.4 Functional Description19715.4.1 Master Mode19815.4.2 Slave Mode19915.5 Transmission Formats19915.5.1 Clock Phase and Polarity Controls19915.5.2 Transmission Format When CPHA = 020015.5.3 Transmission Format When CPHA = 120115.5.4 Transmission Initiation Latency20115.6 Error Conditions20315.6.1 Overflow Error20315.6.2 Mode Fault Error20415.7 Interrupts20615.8 Resetting the SPI20715.9 Queuing Transmission Data20715.10 Low-Power Mode20815.11 I/O Signals20815.11.1 MISO (Master In/Slave Out)20915.11.2 MOSI (Master Out/Slave In)20915.11.3 SPSCK (Serial Clock)20915.11.4 SS (Slave Select)20915.11.5 VSS (Clock Ground)21015.12 I/O Registers21015.12.1 SPI Control Register21015.12.2 SPI Status and Control Register21215.12.3 SPI Data Register214Chapter 16 Timer Interface A (TIMA)21516.1 Introduction21516.2 Features21516.3 Functional Description21916.3.1 TIMA Counter Prescaler21916.3.2 Input Capture21916.3.3 Output Compare22016.3.3.1 Unbuffered Output Compare22016.3.3.2 Buffered Output Compare22116.3.4 Pulse-Width Modulation (PWM)22116.3.4.1 Unbuffered PWM Signal Generation22216.3.4.2 Buffered PWM Signal Generation22316.3.4.3 PWM Initialization22316.4 Interrupts22416.5 Wait Mode22416.6 I/O Signals22516.6.1 TIMA Clock Pin (PTE3/TCLKA)22516.6.2 TIMA Channel I/O Pins (PTE4/TCH0A-PTE7/TCH3A)22516.7 I/O Registers22516.7.1 TIMA Status and Control Register22516.7.2 TIMA Counter Registers22716.7.3 TIMA Counter Modulo Registers22816.7.4 TIMA Channel Status and Control Registers22816.7.5 TIMA Channel Registers232Chapter 17 Timer Interface B (TIMB)23517.1 Introduction23517.2 Features23517.3 Functional Description23517.3.1 TIMB Counter Prescaler23817.3.2 Input Capture23817.3.3 Output Compare23917.3.3.1 Unbuffered Output Compare23917.3.3.2 Buffered Output Compare24017.3.4 Pulse-Width Modulation (PWM)24017.3.4.1 Unbuffered PWM Signal Generation24117.3.4.2 Buffered PWM Signal Generation24117.3.4.3 PWM Initialization24217.4 Interrupts24317.5 Wait Mode24317.6 I/O Signals24317.6.1 TIMB Clock Pin (PTE0/TCLKB)24317.6.2 TIMB Channel I/O Pins (PTE1/TCH0B-PTE2/TCH1B)24317.7 I/O Registers24417.7.1 TIMB Status and Control Register24417.7.2 TIMB Counter Registers24617.7.3 TIMB Counter Modulo Registers24617.7.4 TIMB Channel Status and Control Registers24717.7.5 TIMB Channel Registers250Chapter 18 Development Support25118.1 Introduction25118.2 Break Module (BRK)25118.2.1 Functional Description25118.2.1.1 Flag Protection During Break Interrupts25118.2.1.2 CPU During Break Interrupts25318.2.1.3 TIM1 and TIM2 During Break Interrupts25318.2.1.4 COP During Break Interrupts25318.2.2 Low-Power Modes25318.2.2.1 Wait Mode25318.2.2.2 Stop Mode25318.2.3 Break Module Registers25318.2.3.1 Break Status and Control Register25418.2.3.2 Break Address Registers25418.2.3.3 Break Status Register25518.2.3.4 TBreak Flag Control Register25518.3 Monitor ROM (MON)25518.3.1 Functional Description25618.3.1.1 Entering Monitor Mode25618.3.1.2 Normal Monitor Mode25618.3.1.3 Forced Monitor Mode25918.3.1.4 Data Format25918.3.1.5 Echoing26018.3.1.6 Break Signal26018.3.1.7 Commands26018.3.1.8 Baud Rate26318.3.2 Security263Chapter 19 Electrical Specifications26519.1 Introduction26519.2 Absolute Maximum Ratings26519.3 Functional Operating Range26619.4 Thermal Characteristics26619.5 DC Electrical Characteristics26719.6 FLASH Memory Characteristics26819.7 Control Timing26819.8 Serial Peripheral Interface Characteristics26919.9 TImer Interface Module Characteristics27219.10 Clock Generation Module Component Specifications27219.11 CGM Operating Conditions27219.12 CGM Acquisition/Lock Time Specifications27319.13 Analog-to-Digital Converter (ADC) Characteristics274Chapter 20 Ordering Information and Mechanical Specifications27520.1 Introduction27520.2 Order Numbers27520.3 64-Pin Plastic Quad Flat Pack (QFP)27620.4 56-Pin Shrink Dual In-Line Package (SDIP)277Appendix A MC68HC908MR16279Dimensioni: 1,83 MBPagine: 282Language: EnglishApri il manuale