用户手册目录Chapter 1 Overview171.1 MCF52211 Family Configurations181.2 Block Diagram191.3 Part Numbers and Packaging191.2 Features201.2.1 V2 Core Overview241.2.2 Integrated Debug Module241.2.3 JTAG251.2.4 On-Chip Memories261.2.5 Power Management261.2.6 USB On-The-Go Controller261.2.7 UARTs271.2.8 I2C Bus271.2.9 QSPI271.2.10 Fast ADC271.2.11 DMA Timers (DTIM0-DTIM3)271.2.12 General Purpose Timer (GPT)281.2.13 Periodic Interrupt Timers (PIT0 and PIT1)281.2.14 Real-Time Clock (RTC)281.2.15 Pulse-Width Modulation (PWM) Timers281.2.16 Software Watchdog Timer281.2.17 Backup Watchdog Timer291.2.18 Phase-Locked Loop (PLL)291.2.19 Interrupt Controller (INTC)291.2.20 DMA Controller291.2.21 Reset291.2.22 GPIO30Chapter 2 Signal Descriptions312.1 Introduction312.2 Overview312.3 Pin Functions322.4 Reset Signals382.5 PLL and Clock Signals382.6 Mode Selection382.7 External Interrupt Signals392.8 Queued Serial Peripheral Interface (QSPI)392.9 I2C I/O Signals402.10 UART Module Signals402.11 DMA Timer Signals402.12 ADC Signals412.13 General Purpose Timer Signals412.14 Pulse-Width Modulator Signals412.15 Debug Support Signals412.16 EzPort Signal Descriptions432.17 Power and Ground Pins43Chapter 3 ColdFire Core453.1 Introduction453.1.1 Overview453.2 Memory Map/Register Description463.2.1 Data Registers (D0-D7)483.2.2 Address Registers (A0-A6)483.2.3 Supervisor/User Stack Pointers (A7 and OTHER_A7)483.2.4 Condition Code Register (CCR)493.2.5 Program Counter (PC)503.2.6 Vector Base Register (VBR)503.2.7 Status Register (SR)513.2.8 Memory Base Address Registers (RAMBAR, FLASHBAR)523.3 Functional Description523.3.1 Version 2 ColdFire Microarchitecture523.3.2 Instruction Set Architecture (ISA_A+)573.3.3 Exception Processing Overview583.3.4 Processor Exceptions613.3.5 Instruction Execution Timing69Chapter 4 Multiply-Accumulate Unit (MAC)774.1 Introduction774.1.1 Overview774.2 Memory Map/Register Definition784.2.1 MAC Status Register (MACSR)784.2.2 Mask Register (MASK)804.2.3 Accumulator Register (ACC)814.3 Functional Description824.3.1 Fractional Operation Mode834.3.2 MAC Instruction Set Summary844.3.3 MAC Instruction Execution Times854.3.4 Data Representation854.3.5 MAC Opcodes85Chapter 5 Static RAM (SRAM)915.1 Introduction915.1.1 Overview915.1.2 Features915.2 Memory Map/Register Description915.2.1 SRAM Base Address Register (RAMBAR)925.3 Initialization/Application Information935.3.1 SRAM Initialization Code945.3.2 Power Management94Chapter 6 Clock Module956.1 Introduction956.2 Features956.3 Modes of Operation956.3.1 Backup Watchdog Timer Mode956.3.2 RTC Mode966.3.3 Normal PLL Mode966.3.4 1:1 PLL Mode966.3.5 External Clock Mode966.4 Low-Power Mode Operation966.5 Block Diagram976.6 Signal Descriptions996.6.1 EXTAL996.6.2 XTAL996.6.3 CLKOUT996.6.4 CLKMOD[1:0]996.6.5 RSTO1006.7 Memory Map and Registers1006.7.1 Register Descriptions1006.8 Functional Description1116.8.1 System Clock Modes1116.8.2 Clock Operation During Reset1116.8.3 System Clock Generation1126.8.4 PLL Operation112Chapter 7 Backup Watchdog Timer (BWT) Module1237.1 Introduction1237.1.1 Overview1237.1.2 Modes of Operation1237.2 Memory Map and Register Definition1247.2.1 Memory Map1247.2.2 Register Descriptions1257.3 Functional Description128Chapter 8 Power Management1298.1 Introduction1298.1.1 Features1298.2 Memory Map/Register Definition1298.2.1 Peripheral Power Management Registers (PPMRH, PPMRL)1308.2.2 Low-Power Interrupt Control Register (LPICR)1338.2.3 Peripheral Power Management Set Register (PPMRS)1358.2.4 Peripheral Power Management Clear Register (PPMRC)1368.2.5 Low-Power Control Register (LPCR)1368.3 IPS Bus Timeout Monitor1378.4 Functional Description1388.4.1 Low-Power Modes1388.4.2 Peripheral Behavior in Low-Power Modes1408.4.3 Summary of Peripheral State During Low-Power Modes143Chapter 9 Chip Configuration Module (CCM)1459.1 Introduction1459.1.1 Features1459.2 External Signal Descriptions1459.2.1 RCON1469.2.2 CLKMOD[1:0]1469.2.3 JTAG_EN1469.2.4 TEST1469.3 Memory Map/Register Definition1469.3.1 Programming Model1469.3.2 Memory Map1479.3.3 Register Descriptions147Chapter 10 Reset Controller Module15110.1 Introduction15110.2 Features15110.3 Block Diagram15110.4 Signals15210.4.1 RSTI15210.4.2 RSTO15210.5 Memory Map and Registers15210.5.1 Reset Control Register (RCR)15310.5.2 Reset Status Register (RSR)15410.6 Functional Description15510.6.1 Reset Sources15510.6.2 Reset Control Flow15710.6.3 Concurrent Resets159Chapter 11 Real-Time Clock16111.1 Introduction16111.1.1 Overview16111.1.2 Features16111.1.3 Modes of Operation16211.2 Memory Map/Register Definition16211.2.1 Register Descriptions16211.3 Functional Description17311.3.1 Prescaler and Counter17311.3.2 Alarm17411.3.3 Minute Stopwatch17411.4 Initialization/Application Information17411.4.1 Flow Chart of RTC Operation17411.4.2 Code Example for Initializing the Real-Time Clock175Chapter 12 System Control Module (SCM)17712.1 Introduction17712.2 Overview17712.3 Features17712.4 Memory Map and Register Definition17812.5 Register Descriptions17912.5.1 Internal Peripheral System Base Address Register (IPSBAR)17912.5.2 Memory Base Address Register (RAMBAR)18012.5.3 Core Reset Status Register (CRSR)18212.5.4 Core Watchdog Control Register (CWCR)18312.5.5 Core Watchdog Service Register (CWSR)18412.6 Internal Bus Arbitration18512.6.1 Overview18512.6.2 Arbitration Algorithms18612.6.3 Bus Master Park Register (MPARK)18612.7 System Access Control Unit (SACU)18812.7.1 Overview18812.7.2 Features18812.7.3 Memory Map/Register Definition189Chapter 13 General Purpose I/O Module19513.1 Introduction19513.2 Overview19613.3 Features19613.4 Signal Descriptions19613.5 Memory Map/Register Definition19613.5.1 Ports Memory Map19613.6 Register Descriptions19813.6.1 Port Output Data Registers (PORTn)19813.6.2 Port Data Direction Registers (DDRn)19913.6.3 Port Pin Data/Set Data Registers (PORTnP/SETn)20113.6.4 Port Clear Output Data Registers (CLRn)20313.6.5 Pin Assignment Registers20413.6.6 Pad Control Registers20713.7 Ports Interrupts209Chapter 14 Interrupt Controller Module21114.1 68K/ColdFire Interrupt Architecture Overview21114.1.1 Interrupt Controller Theory of Operation21214.2 Memory Map21414.3 Register Descriptions21514.3.1 Interrupt Pending Registers (IPRHn, IPRLn)21614.3.2 Interrupt Mask Register (IMRHn, IMRLn)21714.3.3 Interrupt Force Registers (INTFRCHn, INTFRCLn)21814.3.4 Interrupt Request Level Register (IRLRn)22014.3.5 Interrupt Acknowledge Level and Priority Register (IACKLPRn)22014.3.6 Interrupt Control Registers (ICRnx)22114.3.7 Software and Level m IACK Registers (SWIACKn, LmIACKn)22514.3.8 Global Level m IACK Registers (GLmIACK)22614.4 Low-Power Wakeup Operation226Chapter 15 Universal Serial Bus, OTG Capable Controller22915.1 Introduction22915.1.1 USB22915.1.2 USB On-The-Go23115.1.3 USB-FS Features23215.2 Functional Description23215.2.1 Data Structures23215.3 Programmers Interface23215.3.1 Buffer Descriptor Table23215.3.2 Rx vs. Tx as a USB Target Device or USB Host23315.3.3 Addressing Buffer Descriptor Table Entries23315.3.4 Buffer Descriptor Formats23415.3.5 USB Transaction23615.4 Memory Map/Register Definitions23715.4.1 Capability Registers23815.5 OTG and Host Mode Operation26115.6 Host Mode Operation Examples26215.7 On-The-Go Operation26415.7.1 OTG Dual Role A Device Operation26415.7.2 OTG Dual Role B Device Operation26615.7.3 Power26715.7.4 USB Suspend State268Chapter 16 Edge Port Module (EPORT)26916.1 Introduction26916.2 Low-Power Mode Operation27016.3 Interrupt/GPIO Pin Descriptions27016.4 Memory Map/Register Definition27016.4.1 EPORT Pin Assignment Register (EPPAR)27116.4.2 EPORT Data Direction Register (EPDDR)27216.4.3 Edge Port Interrupt Enable Register (EPIER)27216.4.4 Edge Port Data Register (EPDR)27316.4.5 Edge Port Pin Data Register (EPPDR)27316.4.6 Edge Port Flag Register (EPFR)274Chapter 17 DMA Controller Module27517.1 Introduction27517.1.1 Overview27517.1.2 Features27617.2 DMA Transfer Overview27717.3 Memory Map/Register Definition27717.3.1 DMA Request Control (DMAREQC)27817.3.2 Source Address Registers (SARn)27917.3.3 Destination Address Registers (DARn)27917.3.4 Byte Count Registers (BCRn) and DMA Status Registers (DSRn)28017.3.5 DMA Control Registers (DCRn)28217.4 Functional Description28517.4.1 Transfer Requests (Cycle-Steal and Continuous Modes)28617.4.2 Dual-Address Data Transfer Mode28617.4.3 Channel Initialization and Startup28717.4.4 Data Transfer28817.4.5 Termination289Chapter 18 ColdFire Flash Module (CFM)29118.1 Introduction29118.1.1 Overview29118.1.2 Features29218.2 External Signal Description29318.3 Memory Map and Register Definition29318.3.1 Memory Map29318.3.2 Flash Base Address Register (FLASHBAR)29418.3.3 Register Descriptions29718.4 Functional Description30618.4.1 General30618.4.2 Flash Normal Mode30718.4.3 Flash Security Operation320Chapter 19 EzPort32319.1 Features32319.2 Modes of Operation32319.3 External Signal Description32419.3.1 Overview32419.3.2 Detailed Signal Descriptions32419.4 Command Definition32519.4.1 Command Descriptions32619.5 Functional Description32919.6 Initialization/Application Information330Chapter 20 Programmable Interrupt Timers (PIT0-PIT1)33120.1 Introduction33120.1.1 Overview33120.1.2 Block Diagram33120.1.3 Low-Power Mode Operation33120.2 Memory Map/Register Definition33220.2.1 PIT Control and Status Register (PCSRn)33320.2.2 PIT Modulus Register (PMRn)33420.2.3 PIT Count Register (PCNTRn)33520.3 Functional Description33520.3.1 Set-and-Forget Timer Operation33520.3.2 Free-Running Timer Operation33620.3.3 Timeout Specifications33620.3.4 Interrupt Operation336Chapter 21 General Purpose Timer Module (GPT)33921.1 Introduction33921.2 Features33921.3 Block Diagram34021.4 Low-Power Mode Operation34121.5 Signal Description34121.5.1 GPT[2:0]34121.5.2 GPT334121.5.3 SYNCn34221.6 Memory Map and Registers34221.6.1 GPT Input Capture/Output Compare Select Register (GPTIOS)34321.6.2 GPT Compare Force Register (GPCFORC)34421.6.3 GPT Output Compare 3 Mask Register (GPTOC3M)34421.6.4 GPT Output Compare 3 Data Register (GPTOC3D)34521.6.5 GPT Counter Register (GPTCNT)34521.6.6 GPT System Control Register 1 (GPTSCR1)34621.6.7 GPT Toggle-On-Overflow Register (GPTTOV)34721.6.8 GPT Control Register 1 (GPTCTL1)34721.6.9 GPT Control Register 2 (GPTCTL2)34821.6.10 GPT Interrupt Enable Register (GPTIE)34821.6.11 GPT System Control Register 2 (GPTSCR2)34921.6.12 GPT Flag Register 1 (GPTFLG1)35021.6.13 GPT Flag Register 2 (GPTFLG2)35021.6.14 GPT Channel Registers (GPTCn)35121.6.15 Pulse Accumulator Control Register (GPTPACTL)35121.6.16 Pulse Accumulator Flag Register (GPTPAFLG)35221.6.17 Pulse Accumulator Counter Register (GPTPACNT)35321.6.18 GPT Port Data Register (GPTPORT)35421.6.19 GPT Port Data Direction Register (GPTDDR)35421.7 Functional Description35421.7.1 Prescaler35521.7.2 Input Capture35521.7.3 Output Compare35521.7.4 Pulse Accumulator35621.7.5 Event Counter Mode35621.7.6 Gated Time Accumulation Mode35621.7.7 General-Purpose I/O Ports35721.8 Reset35921.9 Interrupts35921.9.1 GPT Channel Interrupts (CnF)35921.9.2 Pulse Accumulator Overflow (PAOVF)35921.9.3 Pulse Accumulator Input (PAIF)36021.9.4 Timer Overflow (TOF)360Chapter 22 DMA Timers (DTIM0-DTIM3)36122.1 Introduction36122.1.1 Overview36122.1.2 Features36222.2 Memory Map/Register Definition36222.2.1 DMA Timer Mode Registers (DTMRn)36322.2.2 DMA Timer Extended Mode Registers (DTXMRn)36422.2.3 DMA Timer Event Registers (DTERn)36522.2.4 DMA Timer Reference Registers (DTRRn)36622.2.5 DMA Timer Capture Registers (DTCRn)36722.2.6 DMA Timer Counters (DTCNn)36722.3 Functional Description36822.3.1 Prescaler36822.3.2 Capture Mode36822.3.3 Reference Compare36822.3.4 Output Mode36822.4 Initialization/Application Information36922.4.1 Code Example36922.4.2 Calculating Time-Out Values370Chapter 23 Queued Serial Peripheral Interface (QSPI)37123.1 Introduction37123.1.1 Block Diagram37123.1.2 Overview37223.1.3 Features37223.1.4 Modes of Operation37223.2 External Signal Description37223.3 Memory Map/Register Definition37323.3.1 QSPI Mode Register (QMR)37323.3.2 QSPI Delay Register (QDLYR)37523.3.3 QSPI Wrap Register (QWR)37623.3.4 QSPI Interrupt Register (QIR)37623.3.5 QSPI Address Register (QAR)37723.3.6 QSPI Data Register (QDR)37823.3.7 Command RAM Registers (QCR0-QCR15)37823.4 Functional Description37923.4.1 QSPI RAM38123.4.2 Baud Rate Selection38223.4.3 Transfer Delays38323.4.4 Transfer Length38423.4.5 Data Transfer38423.5 Initialization/Application Information385Chapter 24 UART Modules38724.1 Introduction38724.1.1 Overview38724.1.2 Features38824.2 External Signal Description38924.3 Memory Map/Register Definition38924.3.1 UART Mode Registers 1 (UMR1n)39124.3.2 UART Mode Register 2 (UMR2n)39224.3.3 UART Status Registers (USRn)39324.3.4 UART Clock Select Registers (UCSRn)39524.3.5 UART Command Registers (UCRn)39524.3.6 UART Receive Buffers (URBn)39724.3.7 UART Transmit Buffers (UTBn)39824.3.8 UART Input Port Change Registers (UIPCRn)39824.3.9 UART Auxiliary Control Register (UACRn)39924.3.10 UART Interrupt Status/Mask Registers (UISRn/UIMRn)39924.3.11 UART Baud Rate Generator Registers (UBG1n/UBG2n)40124.3.12 UART Input Port Register (UIPn)40124.3.13 UART Output Port Command Registers (UOP1n/UOP0n)40224.4 Functional Description40224.4.1 Transmitter/Receiver Clock Source40224.4.2 Transmitter and Receiver Operating Modes40424.4.3 Looping Modes40824.4.4 Multidrop Mode41024.4.5 Bus Operation41224.5 Initialization/Application Information41224.5.1 Interrupt and DMA Request Initialization41224.5.2 UART Module Initialization Sequence414Chapter 25 I2C Interface42125.1 Introduction42125.1.1 Block Diagram42225.1.2 Overview42225.1.3 Features42325.2 Memory Map/Register Definition42325.2.1 I2C Address Registers (I2ADRn)42425.2.2 I2C Frequency Divider Registers (I2FDRn)42425.2.3 I2C Control Registers (I2CRn)42525.2.4 I2C Status Registers (I2SRn)42725.2.5 I2C Data I/O Registers (I2DRn)42825.3 Functional Description42825.3.1 START Signal42825.3.2 Slave Address Transmission42925.3.3 Data Transfer42925.3.4 Acknowledge43025.3.5 STOP Signal43025.3.6 Repeated START43025.3.7 Clock Synchronization and Arbitration43225.3.8 Handshaking and Clock Stretching43325.4 Initialization/Application Information43325.4.1 Initialization Sequence43325.4.2 Generation of START43325.4.3 Post-Transfer Software Response43425.4.4 Generation of STOP43425.4.5 Generation of Repeated START43525.4.6 Slave Mode43525.4.7 Arbitration Lost435Chapter 26 Analog-to-Digital Converter (ADC)43726.1 Introduction43726.2 Features43726.3 Block Diagram43826.4 Memory Map and Register Definition43826.4.1 Control 1 Register (CTRL1)43926.4.2 Control 2 Register (CTRL2)44126.4.3 Zero Crossing Control Register (ADZCC)44426.4.4 Channel List 1 and 2 Registers (ADLST1 and ADLST2)44426.4.5 Sample Disable Register (ADSDIS)44626.4.6 Status Register (ADSTAT)44726.4.7 Limit Status Register (ADLSTAT)44926.4.8 Zero Crossing Status Register (ADZCSTAT)45026.4.9 Result Registers (ADRSLTn)45026.4.10 Low and High Limit Registers (ADLLMTn and ADHLMTn)45126.4.11 Offset Registers (ADOFSn)45326.4.12 Power Control Register (POWER)45326.4.13 Voltage Reference Register (CAL)45626.5 Functional Description45726.5.1 Input MUX Function45926.5.2 ADC Sample Conversion46126.5.3 ADC Data Processing46326.5.4 Sequential vs. Parallel Sampling46426.5.5 Scan Sequencing46526.5.6 Scan Configuration and Control46626.5.7 Interrupt Sources46826.5.8 Power Management46826.5.9 ADC Clock47026.5.10 Voltage Reference Pins VREFH and VREFL47326.5.11 Supply Pins VDDA and VSSA474Chapter 27 Pulse-Width Modulation (PWM) Module47527.1 Introduction47527.1.1 Overview47527.2 Memory Map/Register Definition47627.2.1 PWM Enable Register (PWME)47727.2.2 PWM Polarity Register (PWMPOL)47827.2.3 PWM Clock Select Register (PWMCLK)47827.2.4 PWM Prescale Clock Select Register (PWMPRCLK)47927.2.5 PWM Center Align Enable Register (PWMCAE)48027.2.6 PWM Control Register (PWMCTL)48127.2.7 PWM Scale A Register (PWMSCLA)48227.2.8 PWM Scale B Register (PWMSCLB)48327.2.9 PWM Channel Counter Registers (PWMCNTn)48327.2.10 PWM Channel Period Registers (PWMPERn)48427.2.11 PWM Channel Duty Registers (PWMDTYn)48527.2.12 PWM Shutdown Register (PWMSDN)48627.3 Functional Description48727.3.1 PWM Clock Select48727.3.2 PWM Channel Timers489Chapter 28 Debug Module49728.1 Introduction49728.1.1 Block Diagram49728.1.2 Overview49728.2 Signal Descriptions49828.3 Real-Time Trace Support49928.3.1 Begin Execution of Taken Branch (PST = 0x5)50128.4 Memory Map/Register Definition50228.4.1 Shared Debug Resources50328.4.2 Configuration/Status Register (CSR)50328.4.3 BDM Address Attribute Register (BAAR)50628.4.4 Address Attribute Trigger Register (AATR)50628.4.5 Trigger Definition Register (TDR)50828.4.6 Program Counter Breakpoint/Mask Registers (PBR0-3, PBMR)51128.4.7 Address Breakpoint Registers (ABLR, ABHR)51328.4.8 Data Breakpoint and Mask Registers (DBR, DBMR)51428.5 Background Debug Mode (BDM)51528.5.1 CPU Halt51528.5.2 BDM Serial Interface51628.5.3 BDM Command Set51828.6 Real-Time Debug Support53528.6.1 Theory of Operation53528.6.2 Concurrent BDM and Processor Operation53728.7 Processor Status, Debug Data Definition53828.7.1 User Instruction Set53828.7.2 Supervisor Instruction Set54328.8 Freescale-Recommended BDM Pinout543Chapter 29 IEEE 1149.1 Test Access Port (JTAG)54529.1 Introduction54529.1.1 Block Diagram54529.1.2 Features54629.1.3 Modes of Operation54629.2 External Signal Description54629.2.1 JTAG Enable (JTAG_EN)54629.2.2 Test Clock Input (TCLK)54729.2.3 Test Mode Select/Breakpoint (TMS/BKPT)54729.2.4 Test Data Input/Development Serial Input (TDI/DSI)54729.2.5 Test Reset/Development Serial Clock (TRST/DSCLK)54829.2.6 Test Data Output/Development Serial Output (TDO/DSO)54829.3 Memory Map/Register Definition54829.3.1 Instruction Shift Register (IR)54829.3.2 IDCODE Register54829.3.3 Bypass Register54929.3.4 JTAG_CFM_CLKDIV Register54929.3.5 TEST_CTRL Register54929.3.6 Boundary Scan Register54929.4 Functional Description55029.4.1 JTAG Module55029.4.2 TAP Controller55029.4.3 JTAG Instructions55129.5 Initialization/Application Information55429.5.1 Restrictions55429.5.2 Nonscan Chain Operation554Appendix A Register Memory Map Quick Reference555Appendix B Revision History575B.1 Changes between Rev. 1 and Rev. 2575B.2 Changes between Rev. 0 and Rev. 1576文件大小: 6.5 MB页数: 576Language: English打开用户手册