MCF5272 ColdFire(R) Integrated Microprocessor User's Manual ColdFire(R) Microcontrollers MCF5272UM Rev. 3 03/2007 freescale.com Overview 1 ColdFire Core 2 Hardware Multiply/Accumulate (MAC) Unit 3 Local Memory 4 Debug Support 5 System Integration Module (SIM) 6 Interrupt Controller 7 Chip-Select Module 8 SDRAM Controller 9 DMA Controller Module 10 Ethernet Module 11 Universal Serial Bus (USB) 12 Physical Layer Interface Controller (PLIC) 13 Queued Serial Peripheral Interface (QSPI) Module 14 Timer Module 15 UART Modules 16 General-Purpose I/O Module 17 Pulse-Width Modulation (PWM) Module 18 Signal Descriptions 19 Bus Operation 20 IEEE 1149.1 Test Access Port (JTAG) 21 Mechanical Data 22 Electrical Characteristics 23 Appendix A: List of Memory Maps A Appendix B: Buffering and Impedence Matching B Index IND 1 Overview 2 ColdFire Core 3 Hardware Multiply/Accumulate (MAC) Unit 4 Local Memory 5 Debug Support 6 System Integration Module (SIM) 7 Interrupt Controller 8 Chip-Select Module 9 SDRAM Controller 10 DMA Controller Module 11 Ethernet Module 12 Universal Serial Bus (USB) 13 Physical Layer Interface Controller (PLIC) 14 Queued Serial Peripheral Interface (QSPI) Module 15 Timer Module 16 UART Modules 17 General-Purpose I/O Module 18 Pulse-Width Modulation (PWM) Module 19 Signal Descriptions 20 Bus Operation 21 IEEE 1149.1 Test Access Port (JTAG) 22 Mechanical Data 23 Electrical Characteristics A Appendix A: List of Memory Maps B Appendix B: Buffering and Impedence Matching IND Index List of Figures Figure Number 1-1 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 2-9 2-10 3-1 3-2 4-1 4-2 4-3 4-4 4-5 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9 5-10 5-11 5-12 5-13 5-14 5-15 5-16 5-17 5-18 5-19 5-20 5-21 5-22 Title Page Number MCF5272 Block Diagram ........................................................................................................ 1-2 ColdFire Pipeline..................................................................................................................... 2-2 ColdFire Multiply-Accumulate Functionality Diagram.............................................................. 2-3 ColdFire Programming Model ................................................................................................. 2-5 Condition Code Register (CCR).............................................................................................. 2-6 Status Register (SR) ............................................................................................................... 2-8 Vector Base Register (VBR) ................................................................................................... 2-8 Organization of Integer Data Formats in Data Registers ...................................................... 2-10 Organization of Integer Data Formats in Address Registers................................................. 2-10 Memory Operand Addressing ............................................................................................... 2-11 Exception Stack Frame Form................................................................................................ 2-27 ColdFire MAC Multiplication and Accumulation ...................................................................... 3-1 MAC Programming Model....................................................................................................... 3-2 SRAM Base Address Register (RAMBAR) ............................................................................. 4-3 ROM Base Address Register (ROMBAR).............................................................................. 4-5 Instruction Cache Block Diagram............................................................................................ 4-8 Cache Control Register (CACR) ........................................................................................... 4-12 Access Control Register Format (ACRn) .............................................................................. 4-14 Processor/Debug Module Interface......................................................................................... 5-1 PSTCLK Timing ...................................................................................................................... 5-2 Example JMP Instruction Output on PST/DDATA .................................................................. 5-5 Debug Programming Model .................................................................................................... 5-6 Address Attribute Trigger Register (AATR)............................................................................. 5-7 Address Breakpoint Registers (ABLR, ABHR)........................................................................ 5-9 Configuration/Status Register (CSR) .................................................................................... 5-10 Data Breakpoint/Mask Registers (DBR and DBMR) ............................................................. 5-12 Program Counter Breakpoint Register (PBR) ....................................................................... 5-13 Program Counter Breakpoint Mask Register (PBMR)........................................................... 5-13 Trigger Definition Register (TDR).......................................................................................... 5-14 BDM Serial Interface Timing ................................................................................................. 5-17 Receive BDM Packet ............................................................................................................ 5-18 Transmit BDM Packet ........................................................................................................... 5-18 BDM Command Format ........................................................................................................ 5-20 Command Sequence Diagram.............................................................................................. 5-21 RAREG/RDREG Command Format .......................................................................................... 5-22 RAREG/RDREG Command Sequence...................................................................................... 5-22 WAREG/WDREG Command Format ......................................................................................... 5-23 WAREG/WDREG Command Sequence .................................................................................... 5-23 READ Command/Result Formats ........................................................................................... 5-24 READ Command Sequence ................................................................................................... 5-24 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor v List of Figures (Continued) Figure Number 5-23 5-24 5-25 5-26 5-27 5-28 5-29 5-30 5-31 5-32 5-33 5-34 5-35 5-36 5-37 5-38 5-39 5-40 5-41 6-1 6-2 6-3 6-4 6-5 6-6 6-7 6-8 6-9 6-10 6-11 7-1 7-2 7-3 7-4 7-5 7-6 7-7 7-8 7-9 8-1 8-2 9-1 9-2 9-3 Title Page Number WRITE Command Format....................................................................................................... 5-25 WRITE Command Sequence .................................................................................................. 5-26 DUMP Command/Result Formats.......................................................................................... 5-27 DUMP Command Sequence................................................................................................... 5-27 FILL Command Format ......................................................................................................... 5-28 FILL Command Sequence...................................................................................................... 5-29 GO Command Format............................................................................................................ 5-29 GO Command Sequence....................................................................................................... 5-29 NOP Command Format.......................................................................................................... 5-30 NOP Command Sequence ..................................................................................................... 5-30 RCREG Command/Result Formats......................................................................................... 5-30 RCREG Command Sequence ................................................................................................. 5-31 WCREG Command/Result Formats ........................................................................................ 5-31 WCREG Command Sequence ................................................................................................ 5-31 RDMREG BDM Command/Result Formats .............................................................................. 5-32 RDMREG Command Sequence............................................................................................... 5-32 WDMREG BDM Command Format.......................................................................................... 5-33 WDMREG Command Sequence .............................................................................................. 5-33 Recommended BDM Connector ........................................................................................... 5-41 SIM Block Diagram ................................................................................................................. 6-1 Module Base Address Register (MBAR)................................................................................. 6-4 System Configuration Register (SCR) .................................................................................... 6-5 System Protection Register (SPR).......................................................................................... 6-6 Power Management Register (PMR) ...................................................................................... 6-7 Activate Low-Power Register (ALPR) ................................................................................... 6-10 Device Identification Register (DIR) ...................................................................................... 6-11 Watchdog Reset Reference Register (WRRR) ..................................................................... 6-12 Watchdog Interrupt Reference Register (WIRR)................................................................... 6-12 Watchdog Counter Register (WCR)...................................................................................... 6-13 Watchdog Event Register (WER).......................................................................................... 6-13 Interrupt Controller Block Diagram.......................................................................................... 7-2 Interrupt Control Register 1 (ICR1) ......................................................................................... 7-4 Interrupt Control Register 2 (ICR2) ......................................................................................... 7-5 Interrupt Control Register 3 (ICR3) ......................................................................................... 7-5 Interrupt Control Register 4(ICR4) .......................................................................................... 7-5 Interrupt Source Register (ISR)............................................................................................... 7-6 Programmable Interrupt Transition Register (PITR) ............................................................... 7-7 Programmable Interrupt Wakeup Register (PIWR)................................................................. 7-8 Programmable Interrupt Vector Register (PIVR)..................................................................... 7-9 Chip Select Base Registers (CSBRn) ..................................................................................... 8-3 Chip Select Option Registers (CSORn) ................................................................................. 8-5 SDRAM Controller Signals...................................................................................................... 9-2 54-Pin TSOP SDRAM Pin Definition....................................................................................... 9-3 SDRAM Configuration Register (SDCR)................................................................................. 9-6 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 vi Freescale Semiconductor List of Figures (Continued) Figure Number 9-4 9-5 9-6 9-7 9-8 9-9 9-10 9-11 9-12 9-13 9-14 9-15 10-1 10-2 10-3 10-4 10-5 11-1 11-2 11-3 11-4 11-5 11-6 11-7 11-8 11-9 11-10 11-11 11-12 11-13 11-14 11-15 11-16 11-17 11-18 11-19 11-20 11-21 11-22 11-23 11-24 11-25 11-26 11-27 Title Page Number SDRAM Timing Register (SDTR)............................................................................................ 9-8 Example Setup Time Violation on SDRAM Data Input during Write ..................................... 9-12 Timing Refinement with Inverted SDCLK.............................................................................. 9-13 Timing Refinement with True CAS Latency and Inverted SDCLK ........................................ 9-13 Timing Refinement with Effective CAS Latency.................................................................... 9-14 SDRAM Burst Read, 32-Bit Port, Page Miss, Access = 9-1-1-1 ........................................... 9-16 SDRAM Burst Read, 32-Bit Port, Page Hit, Access = 5-1-1-1 .............................................. 9-17 SDRAM Burst Write, 32-Bit Port, Page Miss, Access = 7-1-1-1 ........................................... 9-18 SDRAM Burst Write, 32-Bit Port, Page Hit, Access = 3-1-1-1 .............................................. 9-19 SDRAM Refresh Cycle.......................................................................................................... 9-20 Enter SDRAM Self-Refresh Mode......................................................................................... 9-21 Exit SDRAM Self-Refresh Mode ........................................................................................... 9-22 DMA Mode Register (DMR) .................................................................................................. 10-2 DMA Interrupt Register (DIR)................................................................................................ 10-4 DMA Source Address Register (DSAR)................................................................................ 10-5 DMA Destination Address Register (DDAR) ......................................................................... 10-6 DMA Byte Count Register (DBCR) ....................................................................................... 10-6 Ethernet Block Diagram ........................................................................................................ 11-2 Fast Ethernet Module Block Diagram ................................................................................... 11-2 Ethernet Frame Format......................................................................................................... 11-4 Ethernet Address Recognition Flowchart.............................................................................. 11-7 Ethernet Control Register (ECR)......................................................................................... 11-11 Interrupt Event Register (EIR)............................................................................................. 11-12 Interrupt Mask Register (EIMR) ......................................................................................... 11-13 Interrupt Vector Status Register (IVSR) .............................................................................. 11-14 Receive Descriptor Active Register (RDAR) ....................................................................... 11-15 Transmit Descriptor Active Register (TDAR) ...................................................................... 11-16 MII Management Frame Register (MMFR) ......................................................................... 11-17 MII Speed Control Register (MSCR).................................................................................. 11-18 FIFO Receive Bound Register (FRBR) .............................................................................. 11-19 FIFO Receive Start Register (FRSR)................................................................................. 11-20 Transmit FIFO Watermark (TFWR).................................................................................... 11-21 FIFO Transmit Start Register (TFSR) ................................................................................. 11-22 Receive Control Register (RCR) ......................................................................................... 11-23 Maximum Frame Length Register (MFLR).......................................................................... 11-24 Transmit Control Register (TCR) ........................................................................................ 11-25 RAM Perfect Match Address Low (MALR).......................................................................... 11-26 RAM Perfect Match Address High (MAUR) ........................................................................ 11-27 Hash Table High (HTUR) ................................................................................................... 11-28 Hash Table Low (HTLR) .................................................................................................... 11-29 Pointer-to-Receive Descriptor Ring (ERDSR)..................................................................... 11-30 Pointer-to-Transmit Descriptor Ring (ETDSR) .................................................................... 11-31 Receive Buffer Size (EMRBR) ............................................................................................ 11-32 Receive Buffer Descriptor (RxBD) ...................................................................................... 11-35 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor vii List of Figures (Continued) Figure Number 11-28 12-1 12-2 12-3 12-4 12-5 12-6 12-7 12-8 12-9 12-10 12-11 12-12 12-13 12-14 12-15 12-16 12-17 12-18 12-19 12-20 12-21 12-22 12-23 12-24 12-25 13-1 13-2 13-3 13-4 13-5 13-6 13-7 13-8 13-9 13-10 13-11 13-12 13-13 13-14 13-15 13-16 13-17 Title Page Number Transmit Buffer Descriptor (TxBD)..................................................................................... 11-37 The USB "Tiered Star" Topology........................................................................................... 12-2 USB Module Block Diagram.................................................................................................. 12-3 USB Frame Number Register (FNR) .................................................................................... 12-9 USB Frame Number Match Register (FNMR)....................................................................... 12-9 USB Real-Time Frame Monitor Register (RFMR)............................................................... 12-10 USB Real-Time Frame Monitor Match Register (RFMMR)................................................. 12-11 USB Function Address Register (FAR)............................................................................... 12-11 USB Alternate Settings Register (ASR) .............................................................................. 12-12 USB Device Request Data 1 Register (DRR1) ................................................................... 12-13 USB Device Request Data 2 Register (DRR2) ................................................................... 12-13 USB Specification Number Register (SPECR) ................................................................... 12-14 USB Endpoint 0 Status Register (EP0SR).......................................................................... 12-14 USB Endpoint 0 IN Configuration Register (IEP0CFG) ...................................................... 12-15 USB Endpoint 0 OUT Configuration Register ..................................................................... 12-16 USB Endpoint 1-7 Configuration Register.......................................................................... 12-16 USB Endpoint 0 Control Register (EP0CTL)....................................................................... 12-17 USB Endpoint 1-7 Control Register (EPnCTL) ................................................................... 12-20 USB Endpoint 0 Interrupt Mask (EP0IMR) and General/Endpoint 0 Interrupt Registers (EP0ISR) ....................................................... 12-22 USB Endpoints 1-7 Interrupt Status Registers (EPnISR)................................................... 12-25 USB Endpoint 1-7 Interrupt Mask Registers (EPnIMR) ...................................................... 12-26 USB Endpoint 0-7 Data Registers (EPnDR) ....................................................................... 12-27 USB Endpoint 0-7 Data Present Registers (EPnDPR) ....................................................... 12-28 Example USB Configuration Descriptor Structure .............................................................. 12-29 Recommended USB Line Interface..................................................................................... 12-36 USB Protection Circuit ........................................................................................................ 12-37 PLIC System Diagram........................................................................................................... 13-2 GCI/IDL Receive Data Flow .................................................................................................. 13-3 GCI/IDL B-Channel Receive Data Register Demultiplexing.................................................. 13-4 GCI/IDL Transmit Data Flow ................................................................................................. 13-4 GCI/IDL B Data Transmit Register Multiplexing.................................................................... 13-5 B-Channel Unencoded and HDLC Encoded Data ................................................................ 13-6 D-Channel HDLC Encoded and Unencoded Data. ............................................................... 13-7 D-Channel Contention .......................................................................................................... 13-8 GCI/IDL Loopback Mode ...................................................................................................... 13-9 Periodic Frame Interrupt ..................................................................................................... 13-10 PLIC Internal Timing Signal Routing ................................................................................... 13-12 PLIC Clock Generator ......................................................................................................... 13-12 B1 Receive Data Registers P0B1RR-P3B1RR .................................................................. 13-15 B2 Receive Data Registers P0B2RR - P3B2RR ................................................................ 13-16 D Receive Data Registers P0DRR-P3DRR ....................................................................... 13-16 B1 Transmit Data Registers P0B1TR-P3B1TR.................................................................. 13-17 B2 Transmit Data Registers P0B2TR-P3B2TR.................................................................. 13-17 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 viii Freescale Semiconductor List of Figures (Continued) Figure Number 13-18 13-19 13-20 13-21 13-22 13-23 13-24 13-25 13-26 13-27 13-28 13-29 13-30 13-31 13-32 13-33 13-34 13-35 13-36 13-37 13-38 13-39 13-40 13-41 13-42 14-1 14-2 14-3 14-4 14-5 14-6 14-7 14-8 14-9 14-10 14-11 15-1 15-2 15-3 15-4 15-5 15-6 16-1 16-2 Title Page Number D Transmit Data Registers P0DTR-P3DTR ....................................................................... 13-18 Port Configuration Registers (P0CR-P3CR) ...................................................................... 13-18 Loopback Control Register (PLCR)..................................................................................... 13-20 Interrupt Configuration Registers (P0ICR-P3ICR).............................................................. 13-20 Periodic Status Registers (P0PSR-P3PSR)....................................................................... 13-22 Aperiodic Status Register (PASR) ...................................................................................... 13-23 GCI Monitor Channel Receive Registers (P0GMR-P3GMR) ............................................. 13-24 GCI Monitor Channel Transmit Registers (P0GMT-P3GMT) ............................................. 13-25 GCI Monitor Channel Transmit Abort Register (PGMTA) ................................................... 13-26 GCI Monitor Channel Transmit Status Register (PGMTS).................................................. 13-27 GCI C/I Channel Receive Registers (P0GCIR-P3GCIR) ................................................... 13-28 GCI C/I Channel Transmit Registers (P0GCIT-P3GCIT) ................................................... 13-29 GCI C/I Channel Transmit Status Register (PGCITSR)...................................................... 13-30 D-Channel Status Register (PDCSR) ................................................................................. 13-31 D-Channel Request Registers (PDRQR) ............................................................................ 13-32 Sync Delay Registers (P0SDR-P3SDR) ............................................................................ 13-33 Clock Select Register (PCSR) ............................................................................................ 13-34 Port 1 Configuration Register (P1CR)................................................................................. 13-36 Port 1 Interrupt Configuration Register (P1ICR) ................................................................. 13-37 ISDN SOHO PABX Example .............................................................................................. 13-38 Standard IDL2 10-Bit Mode ................................................................................................ 13-39 ISDN SOHO PABX Example .............................................................................................. 13-40 Standard IDL2 10-Bit Mode ................................................................................................ 13-41 Two-Line Remote Access ................................................................................................... 13-41 Standard IDL2 8-Bit Mode .................................................................................................. 13-42 QSPI Block Diagram ............................................................................................................. 14-2 QSPI RAM Model.................................................................................................................. 14-5 QSPI Mode Register (QMR) ................................................................................................. 14-9 QSPI Clocking and Data Transfer Example........................................................................ 14-10 SPI Modes Timing............................................................................................................... 14-11 QSPI Delay Register (QDLYR) ........................................................................................... 14-11 QSPI Wrap Register (QWR) ............................................................................................... 14-12 QSPI Interrupt Register (QIR) ............................................................................................. 14-13 QSPI Address Register ....................................................................................................... 14-14 QSPI Data Register ............................................................................................................ 14-14 Command RAM Registers (QCR0-QCR15) ....................................................................... 14-15 Timer Block Diagram............................................................................................................. 15-2 Timer Mode Registers (TMR0-TMR3).................................................................................. 15-3 Timer Reference Registers (TRR0-TRR3) ........................................................................... 15-4 Timer Capture Registers (TCAP0-TCAP3) .......................................................................... 15-4 Timer Counter (TCN0-TCN3) ............................................................................................... 15-4 Timer Event Registers (TER0-TER3)................................................................................... 15-5 Simplified Block Diagram ...................................................................................................... 16-1 UART Mode Registers 1 (UMR1n)........................................................................................ 16-4 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor ix List of Figures (Continued) Figure Number 16-3 16-4 16-5 16-6 16-7 16-8 16-9 16-10 16-11 16-12 16-13 16-14 16-15 16-16 16-17 16-18 16-19 16-20 16-21 16-22 16-23 16-24 16-25 16-26 16-27 16-28 16-29 16-30 16-31 17-1 17-2 17-3 17-4 17-5 17-6 17-7 18-1 18-2 18-3 18-4 19-1 20-1 20-2 20-3 Title Page Number UART Mode Register 2 (UMR2n) ......................................................................................... 16-6 UART Status Registers (USRn) ............................................................................................ 16-7 UART Clock-Select Registers (UCSRn) ............................................................................... 16-8 UART Command Registers (UCRn) ..................................................................................... 16-9 UART Receiver Buffer (URBn)............................................................................................ 16-10 UART Transmitter Buffers (UTBn) ...................................................................................... 16-11 UART Input Port Change Registers (UIPCRn) ................................................................... 16-11 UART Auxiliary Control Registers (UACRn) ....................................................................... 16-12 UART Interrupt Status/Mask Registers (UISRn/UIMRn)..................................................... 16-13 UART Divider Upper Registers (UDUn) .............................................................................. 16-14 UART Divider Lower Registers (UDLn)............................................................................... 16-14 UART Autobaud Upper Registers (UABUn)........................................................................ 16-14 UART Autobaud Lower Registers (UABLn) ........................................................................ 16-14 UART Transmitter FIFO Registers (UTFn) ......................................................................... 16-15 UART Receiver FIFO Registers (URFn) ............................................................................. 16-16 UART Fractional Precision Divider Control Registers (UFPDn).......................................... 16-17 UART Input Port Registers (UIPn) ...................................................................................... 16-17 UART Output Port Command Registers (UOP1/UOP0) ..................................................... 16-18 UART Block Diagram Showing External and Internal Interface Signals ............................. 16-18 UART/RS-232 Interface ...................................................................................................... 16-19 Clocking Source Diagram ................................................................................................... 16-20 Transmitter and Receiver Functional Diagram.................................................................... 16-22 Transmitter Timing .............................................................................................................. 16-23 Receiver Timing .................................................................................................................. 16-24 Automatic Echo ................................................................................................................... 16-27 Local Loop-Back ................................................................................................................. 16-27 Remote Loop-Back ............................................................................................................. 16-28 Multidrop Mode Timing Diagram ......................................................................................... 16-29 UART Mode Programming Flowchart (Sheet 1 of 5) .......................................................... 16-30 Port A Control Register (PACNT).......................................................................................... 17-3 Port B Control Register (PBCNT).......................................................................................... 17-5 Port D Control Register (PDCNT) ......................................................................................... 17-8 Port A Data Direction Register (PADDR) ............................................................................ 17-10 Port B Data Direction Register (PBDDR) ............................................................................ 17-10 Port C Data Direction Register (PCDDR)............................................................................ 17-11 Port x Data Register (PADAT, PBDAT, and PCDAT) ......................................................... 17-11 PWM Block Diagram (3 Identical Modules)........................................................................... 18-1 PWM Control Registers (PWCRn) ........................................................................................ 18-3 PWM Width Register (PWWDn)............................................................................................ 18-4 PWM Waveform Examples (PWCRn[EN] = 1)...................................................................... 18-4 MCF5272 Block Diagram with Signal Interfaces................................................................... 19-2 Internal Operand Representation.......................................................................................... 20-5 MCF5272 Interface to Various Port Sizes............................................................................. 20-5 Longword Read; EBI = 00; 32-Bit Port; Internal Termination................................................ 20-8 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 x Freescale Semiconductor List of Figures (Continued) Figure Number 20-4 20-5 20-6 20-7 20-8 20-9 20-10 20-11 20-12 20-13 20-14 20-15 20-16 20-17 20-18 20-19 20-20 20-21 20-22 20-23 20-24 21-1 21-2 21-3 21-4 21-5 21-6 21-7 21-8 22-1 22-2 23-1 23-2 23-3 23-4 23-5 23-6 23-7 23-8 23-9 23-10 23-11 Title Page Number Word Write; EBI = 00; 16-/32-Bit Port; Internal Termination ................................................. 20-9 Longword Read with Address Setup; EBI = 00; 32-Bit Port; Internal Termination................ 20-9 Longword Write with Address Setup; EBI = 00; 32-Bit Port; Internal Termination .............. 20-10 Longword Read with Address Hold; EBI = 00; 32-Bit Port; Internal Termination................ 20-10 Longword Write with Address Hold; EBI = 00; 32-Bit Port; Internal Termination ................ 20-11 Longword Read; EBI = 00; 32-Bit Port; Terminated by TA with One Wait State ................ 20-11 Longword Read; EBI=11; 32-Bit Port; Internal Termination................................................ 20-12 Word Write; EBI=11; 16/32-Bit Port; Internal Termination .................................................. 20-13 Read with Address Setup; EBI=11; 32-Bit Port; Internal Termination................................. 20-14 Longword Write with Address Setup; EBI=11; 32-Bit Port; Internal Termination ................ 20-14 Read with Address Hold; EBI=11; 32-Bit Port; Internal Termination................................... 20-15 Longword Write with Address Hold; EBI=11; 32-Bit Port; Internal Termination .................. 20-15 Longword Read with Address Setup and Address Hold; EBI = 11; 32-Bit Port, Internal Termination ......................................................................... 20-16 Longword Write with Address Setup and Address Hold; EBI = 11; 32-Bit Port, Internal Termination ......................................................................... 20-17 Example of a Misaligned Longword Transfer...................................................................... 20-18 Example of a Misaligned Word Transfer ............................................................................. 20-18 Longword Write Access To 32-Bit Port Terminated with TEA Timing................................. 20-20 Master Reset Timing ........................................................................................................... 20-22 Normal Reset Timing .......................................................................................................... 20-23 Software Watchdog Timer Reset Timing ............................................................................ 20-24 Soft Reset Timing ............................................................................................................... 20-25 Test Access Port Block Diagram........................................................................................... 21-2 TAP Controller State Machine............................................................................................... 21-3 Output Cell (O.Cell) (BC-1) .................................................................................................. 21-4 Input Cell (I.Cell). Observe only (BC-4)................................................................................ 21-5 Output Control Cell (En.Cell) (BC-4) .................................................................................... 21-5 Bidirectional Cell (IO.Cell) (BC-6)......................................................................................... 21-6 General Arrangement for Bidirectional Pins.......................................................................... 21-6 Bypass Register .................................................................................................................... 21-8 MCF5272 Pinout (196 MAPBGA) ......................................................................................... 22-1 196 MAPBGA Package Dimensions (Case No. 1128A-01) .................................................. 22-2 Clock Input Timing Diagram.................................................................................................. 23-5 General Input Timing Requirements ..................................................................................... 23-7 Read/Write SRAM Bus Timing.............................................................................................. 23-9 SRAM Bus Cycle Terminated by TA ................................................................................... 23-10 SRAM Bus Cycle Terminated by TEA................................................................................. 23-11 Reset and Mode Select/HIZ Configuration Timing.............................................................. 23-12 Real-Time Trace AC Timing................................................................................................ 23-13 BDM Serial Port AC Timing................................................................................................. 23-13 SDRAM Signal Timing ........................................................................................................ 23-15 SDRAM Self-Refresh Cycle Timing .................................................................................... 23-16 MII Receive Signal Timing Diagram.................................................................................... 23-17 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xi List of Figures (Continued) Figure Number 23-12 23-13 23-14 23-15 23-16 23-17 23-18 23-19 23-20 23-21 23-22 23-23 23-24 23-25 B-1 Title Page Number MII Transmit Signal Timing Diagram................................................................................... 23-18 MII Async Inputs Timing Diagram ....................................................................................... 23-19 MII Serial Management Channel Timing Diagram .............................................................. 23-20 Timer Timing ....................................................................................................................... 23-21 UART Timing....................................................................................................................... 23-22 IDL Master Timing............................................................................................................... 23-23 IDL Slave Timing................................................................................................................. 23-25 GCI Slave Mode Timing ...................................................................................................... 23-26 GCI Master Mode Timing .................................................................................................... 23-27 General-Purpose I/O Port Timing........................................................................................ 23-28 USB Interface Timing .......................................................................................................... 23-29 IEEE 1149.1 (JTAG) Timing................................................................................................ 23-30 QSPI Timing........................................................................................................................ 23-31 PWM Timing........................................................................................................................ 23-32 Buffering and Termination.......................................................................................................B-2 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xii Freescale Semiconductor Table of Contents Paragraph Number Title Page Number Chapter 1 Overview 1.1 MCF5272 Key Features ................................................................................................................. 1-1 1.2 MCF5272 Architecture .................................................................................................................. 1-4 1.2.1 Version 2 ColdFire Core ..................................................................................................... 1-4 1.2.2 System Integration Module (SIM) ...................................................................................... 1-5 1.2.2.1 External Bus Interface .......................................................................................... 1-5 1.2.2.2 Chip Select and Wait State Generation ................................................................. 1-5 1.2.2.3 System Configuration and Protection ................................................................... 1-5 1.2.2.4 Power Management .............................................................................................. 1-6 1.2.2.5 Parallel Input/Output Ports ................................................................................... 1-6 1.2.2.6 Interrupt Inputs ..................................................................................................... 1-6 1.2.3 UART Module .................................................................................................................... 1-6 1.2.4 Timer Module ..................................................................................................................... 1-7 1.2.5 Test Access Port ................................................................................................................. 1-7 1.3 System Design .............................................................................................................................. 1-7 1.3.1 System Bus Configuration .................................................................................................. 1-7 1.4 MCF5272-Specific Features .......................................................................................................... 1-7 1.4.1 Physical Layer Interface Controller (PLIC) ....................................................................... 1-7 1.4.2 Pulse-Width Modulation (PWM) Unit ............................................................................... 1-8 1.4.3 Queued Serial Peripheral Interface (QSPI) ........................................................................ 1-8 1.4.4 Universal Serial Bus (USB) Module .................................................................................. 1-8 Chapter 2 ColdFire Core 2.1 Features and Enhancements ........................................................................................................... 2-1 2.1.1 Decoupled Pipelines ........................................................................................................... 2-1 2.1.1.1 Instruction Fetch Pipeline (IFP) ............................................................................ 2-2 2.1.1.2 Operand Execution Pipeline (OEP) ...................................................................... 2-2 2.1.1.2.1 Illegal Opcode Handling .............................................................................. 2-3 2.1.1.2.2 Hardware Multiply/Accumulate (MAC) Unit.............................................. 2-3 2.1.1.2.3 Hardware Divide Unit.................................................................................. 2-4 2.1.2 Debug Module Enhancements ............................................................................................ 2-4 2.2 Programming Model ...................................................................................................................... 2-4 2.2.1 User Programming Model .................................................................................................. 2-4 2.2.1.1 Data Registers (D0-D7) ....................................................................................... 2-5 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xiii Table of Contents (Continued) Paragraph Number 2.3 2.4 2.5 2.6 2.7 2.8 Title Page Number 2.2.1.2 Address Registers (A0-A6) .................................................................................. 2-5 2.2.1.3 Stack Pointer (A7, SP) .......................................................................................... 2-5 2.2.1.4 Program Counter (PC) .......................................................................................... 2-6 2.2.1.5 Condition Code Register (CCR) ........................................................................... 2-6 2.2.1.6 MAC Programming Model ................................................................................... 2-7 2.2.2 Supervisor Programming Model ........................................................................................ 2-7 2.2.2.1 Status Register (SR) .............................................................................................. 2-8 2.2.2.2 Vector Base Register (VBR) ................................................................................. 2-8 2.2.2.3 Cache Control Register (CACR) .......................................................................... 2-9 2.2.2.4 Access Control Registers (ACR0-ACR1) ............................................................ 2-9 2.2.2.5 ROM Base Address Register (ROMBAR) ........................................................... 2-9 2.2.2.6 RAM Base Address Register (RAMBAR) ........................................................... 2-9 2.2.2.7 Module Base Address Register (MBAR) ............................................................. 2-9 Integer Data Formats ..................................................................................................................... 2-9 Organization of Data in Registers ................................................................................................ 2-10 2.4.1 Organization of Integer Data Formats in Registers .......................................................... 2-10 2.4.2 Organization of Integer Data Formats in Memory ........................................................... 2-11 Addressing Mode Summary ........................................................................................................ 2-12 Instruction Set Summary ............................................................................................................. 2-13 2.6.1 Instruction Set Summary .................................................................................................. 2-15 Instruction Timing ........................................................................................................................ 2-19 2.7.1 MOVE Instruction Execution Times ................................................................................ 2-20 2.7.2 Execution Timings--One-Operand Instructions .............................................................. 2-22 2.7.3 Execution Timings--Two-Operand Instructions .............................................................. 2-22 2.7.4 Miscellaneous Instruction Execution Times ..................................................................... 2-24 2.7.5 Branch Instruction Execution Times ................................................................................ 2-25 Exception Processing Overview .................................................................................................. 2-25 2.8.1 Exception Stack Frame Definition ................................................................................... 2-27 2.8.2 Processor Exceptions ........................................................................................................ 2-28 Chapter 3 Hardware Multiply/Accumulate (MAC) Unit 3.1 Overview ........................................................................................................................................ 3-1 3.1.1 MAC Programming Model ................................................................................................. 3-2 3.1.2 General Operation .............................................................................................................. 3-3 3.1.3 MAC Instruction Set Summary .......................................................................................... 3-4 3.1.4 Data Representation ............................................................................................................ 3-4 3.2 MAC Instruction Execution Timings ............................................................................................. 3-4 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xiv Freescale Semiconductor Table of Contents (Continued) Paragraph Number Title Page Number Chapter 4 Local Memory 4.1 4.2 4.3 Interactions between Local Memory Modules .............................................................................. 4-1 Local Memory Registers ................................................................................................................ 4-2 SRAM Overview ........................................................................................................................... 4-2 4.3.1 SRAM Operation ................................................................................................................ 4-2 4.3.2 SRAM Programming Model .............................................................................................. 4-2 4.3.2.1 SRAM Base Address Register (RAMBAR) ......................................................... 4-3 4.3.2.2 SRAM Initialization ............................................................................................. 4-4 4.3.2.3 Programming RAMBAR for Power Management ............................................... 4-4 4.4 ROM Overview .............................................................................................................................. 4-5 4.4.1 ROM Operation .................................................................................................................. 4-5 4.4.2 ROM Programming Model ................................................................................................. 4-5 4.4.2.1 ROM Base Address Register (ROMBAR) ........................................................... 4-5 4.4.2.2 Programming ROMBAR for Power Management ............................................... 4-6 4.5 Instruction Cache Overview .......................................................................................................... 4-7 4.5.1 Instruction Cache Physical Organization ........................................................................... 4-7 4.5.2 Instruction Cache Operation ............................................................................................... 4-8 4.5.2.1 Interaction with Other Modules ............................................................................ 4-8 4.5.2.2 Cache Coherency and Invalidation ....................................................................... 4-8 4.5.2.3 Caching Modes ..................................................................................................... 4-9 4.5.2.3.1 Cacheable Accesses ..................................................................................... 4-9 4.5.2.3.2 Cache-Inhibited Accesses ............................................................................ 4-9 4.5.2.4 Reset ................................................................................................................... 4-10 4.5.2.5 Cache Miss Fetch Algorithm/Line Fills ............................................................. 4-10 4.5.3 Instruction Cache Programming Model ........................................................................... 4-12 4.5.3.1 Cache Control Register (CACR) ........................................................................ 4-12 4.5.3.2 Access Control Registers (ACR0 and ACR1) .................................................... 4-14 Chapter 5 Debug Support 5.1 Overview ........................................................................................................................................ 5-1 5.2 Signal Description .......................................................................................................................... 5-2 5.3 Real-Time Trace Support ............................................................................................................... 5-3 5.3.1 Begin Execution of Taken Branch (PST = 0x5) ................................................................. 5-4 5.4 Programming Model ...................................................................................................................... 5-5 5.4.1 Revision A Shared Debug Resources ................................................................................. 5-7 5.4.2 Address Attribute Trigger Register (AATR) ...................................................................... 5-7 5.4.3 Address Breakpoint Registers (ABLR, ABHR) ................................................................. 5-9 5.4.4 Configuration/Status Register (CSR) ............................................................................... 5-10 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xv Table of Contents (Continued) Paragraph Number 5.5 5.6 5.7 5.8 Title Page Number 5.4.5 Data Breakpoint/Mask Registers (DBR, DBMR) ............................................................ 5-12 5.4.6 Program Counter Breakpoint/Mask Registers (PBR, PBMR) ............................................................................................................................ 5-13 5.4.7 Trigger Definition Register (TDR) ................................................................................... 5-14 Background Debug Mode (BDM) ............................................................................................... 5-15 5.5.1 CPU Halt .......................................................................................................................... 5-16 5.5.2 BDM Serial Interface ....................................................................................................... 5-17 5.5.2.1 Receive Packet Format ....................................................................................... 5-18 5.5.2.2 Transmit Packet Format ...................................................................................... 5-18 5.5.3 BDM Command Set ......................................................................................................... 5-19 5.5.3.1 ColdFire BDM Command Format ...................................................................... 5-20 5.5.3.1.1 Extension Words as Required .................................................................... 5-20 5.5.3.2 Command Sequence Diagrams ........................................................................... 5-21 5.5.3.3 Command Set Descriptions ................................................................................ 5-22 5.5.3.3.1 Read A/D Register (RAREG/RDREG)........................................................... 5-22 5.5.3.3.2 Write A/D Register (WAREG/WDREG) ........................................................ 5-23 5.5.3.3.3 Read Memory Location (READ) ................................................................. 5-24 5.5.3.3.4 Write Memory Location (WRITE)............................................................... 5-25 5.5.3.3.5 Dump Memory Block (DUMP) ................................................................... 5-27 5.5.3.3.6 Fill Memory Block (FILL) .......................................................................... 5-28 5.5.3.3.7 Resume Execution (GO) ............................................................................. 5-29 5.5.3.3.8 No Operation (NOP).................................................................................... 5-30 5.5.3.3.9 Read Control Register (RCREG).................................................................. 5-30 5.5.3.3.10 Write Control Register (WCREG).............................................................. 5-31 5.5.3.3.11 Read Debug Module Register (RDMREG)................................................. 5-32 5.5.3.3.12 Write Debug Module Register (WDMREG)............................................... 5-33 Real-Time Debug Support ........................................................................................................... 5-33 5.6.1 Theory of Operation .......................................................................................................... 5-34 5.6.1.1 Emulator Mode ................................................................................................... 5-35 5.6.2 Concurrent BDM and Processor Operation ...................................................................... 5-35 Processor Status, DDATA Definition ........................................................................................... 5-36 5.7.1 User Instruction Set .......................................................................................................... 5-36 5.7.2 Supervisor Instruction Set ................................................................................................ 5-40 Freescale-Recommended BDM Pinout ....................................................................................... 5-41 Chapter 6 System Integration Module (SIM) 6.1 Features .......................................................................................................................................... 6-1 6.2 Programming Model ...................................................................................................................... 6-2 6.2.1 SIM Register Memory Map ................................................................................................ 6-2 6.2.2 Module Base Address Register (MBAR) ........................................................................... 6-3 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xvi Freescale Semiconductor Table of Contents (Continued) Paragraph Number 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 Title Page Number System Configuration Register (SCR) ............................................................................... 6-5 System Protection Register (SPR) ...................................................................................... 6-6 Power Management Register (PMR) .................................................................................. 6-7 Activate Low-Power Register (ALPR) ............................................................................ 6-10 Device Identification Register (DIR) ............................................................................... 6-11 Software Watchdog Timer ................................................................................................ 6-11 6.2.8.1 Watchdog Reset Reference Register (WRRR) ................................................... 6-12 6.2.8.2 Watchdog Interrupt Reference Register (WIRR) ................................................ 6-12 6.2.8.3 Watchdog Counter Register (WCR) ................................................................... 6-13 6.2.8.4 Watchdog Event Register (WER) ....................................................................... 6-13 Chapter 7 Interrupt Controller 7.1 Overview ........................................................................................................................................ 7-1 7.2 Interrupt Controller Registers ........................................................................................................ 7-2 7.2.1 Interrupt Controller Registers ............................................................................................. 7-3 7.2.2 Interrupt Control Registers (ICR1-ICR4) .......................................................................... 7-4 7.2.2.1 Interrupt Control Register 1 (ICR1) ..................................................................... 7-4 7.2.2.2 Interrupt Control Register 2 (ICR2) ..................................................................... 7-5 7.2.2.3 Interrupt Control Register 3 (ICR3) ..................................................................... 7-5 7.2.2.4 Interrupt Control Register 4 (ICR4) ..................................................................... 7-5 7.2.3 Interrupt Source Register (ISR) .......................................................................................... 7-6 7.2.4 Programmable Interrupt Transition Register (PITR) .......................................................... 7-7 7.2.5 Programmable Interrupt Wakeup Register (PIWR) ............................................................ 7-8 7.2.6 Programmable Interrupt Vector Register (PIVR) ............................................................... 7-9 Chapter 8 Chip Select Module 8.1 Overview ........................................................................................................................................ 8-1 8.1.1 Features ............................................................................................................................... 8-1 8.1.2 Chip Select Usage ............................................................................................................... 8-1 8.1.3 Boot CS0 Operation ........................................................................................................... 8-2 8.2 Chip Select Registers ..................................................................................................................... 8-2 8.2.1 Chip Select Base Registers (CSBR0-CSBR7) ................................................................... 8-3 8.2.2 Chip Select Option Registers (CSOR0-CSOR7) ............................................................... 8-5 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xvii Table of Contents (Continued) Paragraph Number Title Page Number Chapter 9 SDRAM Controller 9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 9.10 Overview ........................................................................................................................................ 9-1 SDRAM Controller Signals ........................................................................................................... 9-1 Interface to SDRAM Devices ........................................................................................................ 9-4 SDRAM Banks, Page Hits, and Page Misses ................................................................................ 9-6 SDRAM Registers ......................................................................................................................... 9-6 9.5.1 SDRAM Configuration Register (SDCR) .......................................................................... 9-6 9.5.2 SDRAM Timing Register (SDTR) ..................................................................................... 9-8 Auto Initialization .......................................................................................................................... 9-9 Power-Down and Self-Refresh ...................................................................................................... 9-9 Performance ................................................................................................................................. 9-10 Solving Timing Issues with SDCR[INV] .................................................................................... 9-12 SDRAM Interface ...................................................................................................................... 9-14 9.10.1 SDRAM Read Accesses ................................................................................................. 9-15 9.10.2 SDRAM Write Accesses ................................................................................................ 9-18 9.10.3 SDRAM Refresh Timing ................................................................................................ 9-20 Chapter 10 DMA Controller 10.1 DMA Data Transfer Types ......................................................................................................... 10-1 10.2 DMA Address Modes ................................................................................................................ 10-2 10.3 DMA Controller Registers ......................................................................................................... 10-2 10.3.1 DMA Mode Register (DMR) ......................................................................................... 10-2 10.3.2 DMA Interrupt Register (DIR) ....................................................................................... 10-4 10.3.3 DMA Source Address Register (DSAR) ........................................................................ 10-5 10.3.4 DMA Destination Address Register (DDAR) ................................................................ 10-6 10.3.5 DMA Byte Count Register (DBCR) ............................................................................... 10-6 Chapter 11 Ethernet Module 11.1 Overview .................................................................................................................................... 11-1 11.1.1 Features ........................................................................................................................... 11-1 11.2 Module Operation ...................................................................................................................... 11-1 11.3 Transceiver Connection ............................................................................................................. 11-3 11.4 FEC Frame Transmission ........................................................................................................... 11-4 11.4.1 FEC Frame Reception .................................................................................................... 11-5 11.4.2 CAM Interface ................................................................................................................ 11-6 11.4.3 Ethernet Address Recognition ........................................................................................ 11-6 11.4.4 Hash Table Algorithm ..................................................................................................... 11-8 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xviii Freescale Semiconductor Table of Contents (Continued) Paragraph Number Title Page Number 11.4.5 Interpacket Gap Time ..................................................................................................... 11-8 11.4.6 Collision Handling .......................................................................................................... 11-8 11.4.7 Internal and External Loopback ..................................................................................... 11-8 11.4.8 Ethernet Error-Handling Procedure ................................................................................ 11-9 11.4.8.1 Transmission Errors .......................................................................................... 11-9 11.4.8.2 Reception Errors ............................................................................................... 11-9 11.5 Programming Model ................................................................................................................ 11-10 11.5.1 Ethernet Control Register (ECR) ...................................................................................11-11 11.5.2 Interrupt Event Register (EIR) ..................................................................................... 11-12 11.5.3 Interrupt Mask Register (EIMR) .................................................................................. 11-13 11.5.4 Interrupt Vector Status Register (IVSR) ....................................................................... 11-14 11.5.5 Receive Descriptor Active Register (RDAR) ............................................................... 11-15 11.5.6 Transmit Descriptor Active Register (TDAR) ............................................................. 11-16 11.5.7 MII Management Frame Register (MMFR) ................................................................. 11-17 11.5.8 MII Speed Control Register (MSCR) ........................................................................... 11-18 11.5.9 FIFO Receive Bound Register (FRBR) ........................................................................ 11-19 11.5.10 FIFO Receive Start Register (FRSR) ......................................................................... 11-20 11.5.11 Transmit FIFO Watermark (TFWR) ........................................................................... 11-21 11.5.12 FIFO Transmit Start Register (TFSR) ........................................................................ 11-22 11.5.13 Receive Control Register (RCR) ................................................................................ 11-23 11.5.14 Maximum Frame Length Register (MFLR) ............................................................... 11-24 11.5.15 Transmit Control Register (TCR) ............................................................................... 11-25 11.5.16 RAM Perfect Match Address Low (MALR) .............................................................. 11-26 11.5.16.1 RAM Perfect Match Address High (MAUR) ............................................... 11-27 11.5.17 Hash Table High (HTUR) ........................................................................................... 11-28 11.5.18 Hash Table Low (HTLR) ............................................................................................ 11-29 11.5.19 Pointer-to-Receive Descriptor Ring (ERDSR) ........................................................... 11-30 11.5.20 Pointer-to-Transmit Descriptor Ring (ETDSR) .......................................................... 11-31 11.5.21 Receive Buffer Size Register (EMRBR) .................................................................... 11-32 11.5.22 Initialization Sequence ............................................................................................... 11-33 11.5.22.1 Hardware Initialization ................................................................................. 11-33 11.5.23 User Initialization (Prior to Asserting ETHER_EN) .................................................. 11-33 11.5.24 FEC Initialization ....................................................................................................... 11-34 11.5.24.1 User Initialization (after setting ETHER_EN) .............................................. 11-34 11.6 Buffer Descriptors .................................................................................................................... 11-34 11.6.1 FEC Buffer Descriptor Tables ...................................................................................... 11-35 11.6.1.1 Ethernet Receive Buffer Descriptor (RxBD) .................................................. 11-35 11.6.1.2 Ethernet Transmit Buffer Descriptor .............................................................. 11-37 11.7 Differences between MCF5272 FEC and MPC860T FEC ...................................................... 11-39 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xix Table of Contents (Continued) Paragraph Number Title Page Number Chapter 12 Universal Serial Bus (USB) 12.1 12.2 Introduction ................................................................................................................................ 12-1 Module Operation ...................................................................................................................... 12-2 12.2.1 USB Module Architecture .............................................................................................. 12-2 12.2.1.1 USB Transceiver Interface ................................................................................ 12-3 12.2.1.2 Clock Generator ................................................................................................ 12-4 12.2.1.3 USB Control Logic ........................................................................................... 12-4 12.2.1.4 Endpoint Controllers ......................................................................................... 12-5 12.2.1.5 USB Request Processor .................................................................................... 12-5 12.3 Register Description and Programming Model ......................................................................... 12-7 12.3.1 USB Memory Map ......................................................................................................... 12-7 12.3.2 Register Descriptions ...................................................................................................... 12-9 12.3.2.1 USB Frame Number Register (FNR) ............................................................... 12-9 12.3.2.2 USB Frame Number Match Register (FNMR) ................................................. 12-9 12.3.2.3 USB Real-Time Frame Monitor Register (RFMR) ........................................ 12-10 12.3.2.4 USB Real-Time Frame Monitor Match Register (RFMMR) ......................... 12-11 12.3.2.5 USB Function Address Register (FAR) .......................................................... 12-11 12.3.2.6 USB Alternate Settings Register (ASR) ......................................................... 12-12 12.3.2.7 USB Device Request Data 1 and 2 Registers (DRR1/ 2) ............................... 12-13 12.3.2.8 USB Specification Number Register (SPECR) .............................................. 12-14 12.3.2.9 USB Endpoint 0 Status Register (EP0SR) ...................................................... 12-14 12.3.2.10 USB Endpoint 0 IN Configuration Register (IEP0CFG) ............................. 12-15 12.3.2.11 USB Endpoint 0 OUT Configuration Register (OEP0CFG) ........................ 12-16 12.3.2.12 USB Endpoint 1-7 Configuration Register (EPnCFG) ................................ 12-16 12.3.2.13 USB Endpoint 0 Control Register (EP0CTL) .............................................. 12-17 12.3.2.14 USB Endpoint 1-7 Control Register (EPnCTL) .......................................... 12-20 12.3.2.15 USB Endpoint 0 Interrupt Mask (EP0IMR) and General/Endpoint 0 Interrupt Registers (EP0ISR) .......................................................................................................... 12-22 12.3.2.16 USB Endpoints 1-7 Status / Interrupt Registers (EPnISR) .......................... 12-25 12.3.2.17 USB Endpoint 1-7 Interrupt Mask Registers (EPnIMR) ............................. 12-26 12.3.2.18 USB Endpoint 0-7 Data Registers (EPnDR) ................................................ 12-27 12.3.2.19 USB Endpoint 0-7 Data Present Registers (EPnDPR) ................................. 12-28 12.3.3 Configuration RAM ...................................................................................................... 12-28 12.3.3.1 Configuration RAM Content .......................................................................... 12-28 12.3.3.2 USB Device Configuration Example .............................................................. 12-29 12.3.4 USB Module Access Times .......................................................................................... 12-30 12.3.4.1 Registers ......................................................................................................... 12-30 12.3.4.2 Endpoint FIFOs .............................................................................................. 12-30 12.3.4.3 Configuration RAM ........................................................................................ 12-30 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xx Freescale Semiconductor Table of Contents (Continued) Paragraph Number Title Page Number 12.4 Software Architecture and Application Notes ......................................................................... 12-31 12.4.1 USB Module Initialization ........................................................................................... 12-31 12.4.2 USB Configuration and Interface Changes .................................................................. 12-31 12.4.3 FIFO Configuration ...................................................................................................... 12-32 12.4.4 Data Flow ..................................................................................................................... 12-32 12.4.4.1 Control, Bulk, and Interrupt Endpoints .......................................................... 12-33 12.4.4.1.1 IN Endpoints .......................................................................................... 12-33 12.4.4.1.2 OUT Endpoints ...................................................................................... 12-33 12.4.4.2 Isochronous Endpoints .................................................................................... 12-33 12.4.4.2.1 IN Endpoints .......................................................................................... 12-34 12.4.4.2.2 OUT Endpoints ...................................................................................... 12-34 12.4.5 Class- and Vendor-Specific Request Operation ............................................................ 12-34 12.4.6 remote wakeup and resume Operation ......................................................................... 12-35 12.4.7 Endpoint Halt Feature ................................................................................................... 12-35 12.5 Line Interface ........................................................................................................................... 12-36 12.5.1 Attachment Detection ................................................................................................... 12-36 12.5.2 PCB Layout Recommendations ................................................................................... 12-36 12.5.3 Recommended USB Protection Circuit ........................................................................ 12-37 Chapter 13 Physical Layer Interface Controller (PLIC) 13.1 13.2 Introduction ................................................................................................................................ 13-1 GCI/IDL Block .......................................................................................................................... 13-3 13.2.1 GCI/IDL B- and D-Channel Receive Data Registers ..................................................... 13-3 13.2.2 GCI/IDL B- and D-Channel Transmit Data Registers ................................................... 13-4 13.2.3 GCI/IDL B- and D-Channel Bit Alignment ................................................................... 13-5 13.2.3.1 B-Channel Unencoded Data ............................................................................. 13-5 13.2.3.2 B-Channel HDLC Encoded Data ...................................................................... 13-6 13.2.3.3 D-Channel HDLC Encoded Data ..................................................................... 13-6 13.2.3.4 D-Channel Unencoded Data ............................................................................. 13-7 13.2.3.5 GCI/IDL D-Channel Contention ..................................................................... 13-8 13.2.4 GCI/IDL Looping Modes ............................................................................................... 13-8 13.2.4.1 Automatic Echo Mode ...................................................................................... 13-9 13.2.4.2 Local Loopback Mode ...................................................................................... 13-9 13.2.4.3 Remote Loopback Mode ................................................................................... 13-9 13.2.5 GCI/IDL Interrupts ......................................................................................................... 13-9 13.2.5.1 GCI/IDL Periodic Frame Interrupt ................................................................... 13-9 13.2.5.2 GCI Aperiodic Status Interrupt ...................................................................... 13-10 13.2.5.3 Interrupt Control ............................................................................................. 13-11 13.3 PLIC Timing Generator ........................................................................................................... 13-11 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxi Table of Contents (Continued) Paragraph Number Title Page Number 13.3.1 Clock Synthesis ............................................................................................................ 13-11 13.3.2 Super Frame Sync Generation ...................................................................................... 13-13 13.3.3 Frame Sync Synthesis ................................................................................................... 13-13 13.4 PLIC Register Memory Map ................................................................................................... 13-13 13.5 PLIC Registers ......................................................................................................................... 13-15 13.5.1 B1 Data Receive Registers (P0B1RR-P3B1RR) ......................................................... 13-15 13.5.2 B2 Data Receive Registers (P0B2RR-P3B2RR) ......................................................... 13-16 13.5.3 D Data Receive Registers (P0DRR-P3DRR) .............................................................. 13-16 13.5.4 B1 Data Transmit Registers (P0B1TR-P3B1TR) ......................................................... 13-17 13.5.5 B2 Data Transmit Registers (P0B2TR-P3B2TR) ........................................................ 13-17 13.5.6 D Data Transmit Registers (P0DTR-P3DTR) ............................................................. 13-18 13.5.7 Port Configuration Registers (P0CR-P3CR) ............................................................... 13-18 13.5.8 Loopback Control Register (PLCR) ............................................................................. 13-20 13.5.9 Interrupt Configuration Registers (P0ICR-P3ICR) ..................................................... 13-20 13.5.10 Periodic Status Registers (P0PSR-P3PSR) ................................................................ 13-22 13.5.11 Aperiodic Status Register (PASR) .............................................................................. 13-23 13.5.12 GCI Monitor Channel Receive Registers (P0GMR-P3GMR) ................................... 13-24 13.5.13 GCI Monitor Channel Transmit Registers (P0GMT-P3GMT) .................................. 13-25 13.5.14 GCI Monitor Channel Transmit Abort Register (PGMTA) ....................................... 13-26 13.5.15 GCI Monitor Channel Transmit Status Register (PGMTS) ....................................... 13-27 13.5.16 GCI C/I Channel Receive Registers (P0GCIR-P3GCIR) .......................................... 13-28 13.5.17 GCI C/I Channel Transmit Registers (P0GCIT-P3GCIT) ......................................... 13-29 13.5.18 GCI C/I Channel Transmit Status Register (PGCITSR) ............................................ 13-30 13.5.19 D-Channel Status Register (PDCSR) ......................................................................... 13-31 13.5.20 D-Channel Request Register (PDRQR) ..................................................................... 13-32 13.5.21 Sync Delay Registers (P0SDR-P3SDR) .................................................................... 13-33 13.5.22 Clock Select Register (PCSR) .................................................................................... 13-34 13.6 Application Examples .............................................................................................................. 13-35 13.6.1 Introduction .................................................................................................................. 13-35 13.6.2 PLIC Initialization ........................................................................................................ 13-35 13.6.2.1 Port Configuration Example ........................................................................... 13-35 13.6.2.2 Interrupt Configuration Example .................................................................... 13-37 13.6.3 Example 1: ISDN SOHO PBX with Ports 0, 1, 2, and 3 .............................................. 13-38 13.6.4 Example 2: ISDN SOHO PBX with Ports 1, 2, and 3 .................................................. 13-40 13.6.5 Example 3: Two-Line Remote Access with Ports 0 and 1 ........................................... 13-41 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxii Freescale Semiconductor Table of Contents (Continued) Paragraph Number Title Page Number Chapter 14 Queued Serial Peripheral Interface (QSPI) Module 14.1 Overview .................................................................................................................................... 14-1 14.2 Features ...................................................................................................................................... 14-1 14.3 Module Description ................................................................................................................... 14-1 14.3.1 Interface and Pins ........................................................................................................... 14-3 14.3.2 Internal Bus Interface ..................................................................................................... 14-3 14.4 Operation ................................................................................................................................... 14-3 14.4.1 QSPI RAM ..................................................................................................................... 14-4 14.4.1.1 Receive RAM ................................................................................................... 14-5 14.4.1.2 Transmit RAM .................................................................................................. 14-6 14.4.1.3 Command RAM ............................................................................................... 14-6 14.4.2 Baud Rate Selection ....................................................................................................... 14-6 14.4.3 Transfer Delays ............................................................................................................... 14-7 14.4.4 Transfer Length .............................................................................................................. 14-8 14.4.5 Data Transfer .................................................................................................................. 14-8 14.5 Programming Model .................................................................................................................. 14-9 14.5.1 QSPI Mode Register (QMR) .......................................................................................... 14-9 14.5.2 QSPI Delay Register (QDLYR) ................................................................................... 14-11 14.5.3 QSPI Wrap Register (QWR) ........................................................................................ 14-12 14.5.4 QSPI Interrupt Register (QIR) ...................................................................................... 14-13 14.5.5 QSPI Address Register (QAR) ..................................................................................... 14-14 14.5.6 QSPI Data Register (QDR) .......................................................................................... 14-14 14.5.7 Command RAM Registers (QCR0-QCR15) ............................................................... 14-15 14.5.8 Programming Example ................................................................................................. 14-16 Chapter 15 Timer Module 15.1 Overview .................................................................................................................................... 15-1 15.2 Timer Operation ......................................................................................................................... 15-1 15.3 General-Purpose Timer Registers .............................................................................................. 15-3 15.3.1 Timer Mode Registers (TMR0-TMR3) .......................................................................... 15-3 15.3.2 Timer Reference Registers (TRR0-TRR3) .................................................................... 15-4 15.3.3 Timer Capture Registers (TCAP0-TCAP3) ................................................................... 15-4 15.3.4 Timer Counters (TCN0-TCN3) ..................................................................................... 15-4 15.3.5 Timer Event Registers (TER0-TER3) ........................................................................... 15-5 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxiii Table of Contents (Continued) Paragraph Number Title Page Number Chapter 16 UART Modules 16.1 Overview .................................................................................................................................... 16-1 16.2 Serial Module Overview ............................................................................................................ 16-2 16.3 Register Descriptions ................................................................................................................. 16-2 16.3.1 UART Mode Registers 1 (UMR1n) ............................................................................... 16-4 16.3.2 UART Mode Register 2 (UMR2n) ................................................................................. 16-6 16.3.3 UART Status Registers (USRn) ..................................................................................... 16-7 16.3.4 UART Clock-Select Registers (UCSRn) ........................................................................ 16-8 16.3.5 UART Command Registers (UCRn) .............................................................................. 16-9 16.3.6 UART Receiver Buffers (URBn) ................................................................................. 16-10 16.3.7 UART Transmitter Buffers (UTBn) ............................................................................. 16-11 16.3.8 UART Input Port Change Registers (UIPCRn) ............................................................ 16-11 16.3.9 UART Auxiliary Control Registers (UACRn) ............................................................. 16-12 16.3.10 UART Interrupt Status/Mask Registers (UISRn/UIMRn) .......................................... 16-12 16.3.11 UART Divider Upper/Lower Registers (UDUn/UDLn) ............................................ 16-14 16.3.12 UART Autobaud Registers (UABUn/UABLn) .......................................................... 16-14 16.3.13 UART Transmitter FIFO Registers (UTFn) ............................................................... 16-15 16.3.14 UART Receiver FIFO Registers (URFn) ................................................................... 16-16 16.3.15 UART Fractional Precision Divider Control Registers (UFPDn) .............................. 16-17 16.3.16 UART Input Port Registers (UIPn) ............................................................................ 16-17 16.3.17 UART Output Port Command Registers (UOP1n/UOP0n) ....................................... 16-18 16.4 UART Module Signal Definitions ........................................................................................... 16-18 16.5 Operation ................................................................................................................................. 16-19 16.5.1 Transmitter/Receiver Clock Source .............................................................................. 16-19 16.5.1.1 Programmable Divider .................................................................................... 16-20 16.5.1.2 Calculating Baud Rates ................................................................................... 16-20 16.5.1.2.1 CLKIN Baud Rates ................................................................................ 16-20 16.5.1.2.2 External Clock........................................................................................ 16-21 16.5.1.2.3 Autobaud Detection ............................................................................... 16-21 16.5.2 Transmitter and Receiver Operating Modes ................................................................. 16-22 16.5.2.1 Transmitting ................................................................................................... 16-22 16.5.2.2 Receiver .......................................................................................................... 16-24 16.5.2.3 Transmitter FIFO ............................................................................................ 16-25 16.5.2.4 Receiver FIFO ............................................................................................... 16-25 16.5.3 Looping Modes ............................................................................................................. 16-26 16.5.3.1 Automatic Echo Mode .................................................................................... 16-27 16.5.3.2 Local Loop-Back Mode .................................................................................. 16-27 16.5.3.3 Remote Loop-Back Mode ............................................................................... 16-27 16.5.4 Multidrop Mode ............................................................................................................ 16-28 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxiv Freescale Semiconductor Table of Contents (Continued) Paragraph Number Title Page Number 16.5.5 Bus Operation ............................................................................................................... 16-29 16.5.5.1 Read Cycles .................................................................................................... 16-29 16.5.5.2 Write Cycles ................................................................................................... 16-29 16.5.5.3 Interrupt Acknowledge Cycles ....................................................................... 16-29 16.5.6 Programming ................................................................................................................ 16-30 16.5.6.1 UART Module Initialization Sequence .......................................................... 16-30 Chapter 17 General Purpose I/O Module 17.1 17.2 Overview .................................................................................................................................... 17-1 Port Control Registers ................................................................................................................ 17-2 17.2.1 Port A Control Register (PACNT) .................................................................................. 17-3 17.2.2 Port B Control Register (PBCNT) .................................................................................. 17-5 17.2.3 Port C Control Register .................................................................................................. 17-8 17.2.4 Port D Control Register (PDCNT) ................................................................................. 17-8 17.3 Data Direction Registers .......................................................................................................... 17-10 17.3.1 Port A Data Direction Register (PADDR) .................................................................... 17-10 17.3.2 Port B Data Direction Register (PBDDR) .................................................................... 17-10 17.3.3 Port C Data Direction Register (PCDDR) .................................................................... 17-11 17.4 Port Data Registers .................................................................................................................. 17-11 17.4.1 Port Data Register (PxDAT) ......................................................................................... 17-11 Chapter 18 Pulse-Width Modulation (PWM) Module 18.1 Overview .................................................................................................................................... 18-1 18.2 PWM Operation ......................................................................................................................... 18-2 18.3 PWM Programming Model ....................................................................................................... 18-2 18.3.1 PWM Control Register (PWCRn) .................................................................................. 18-3 18.3.2 PWM Width Register (PWWDn) ................................................................................... 18-4 Chapter 19 Signal Descriptions 19.1 MCF5272 Block Diagram with Signal Interfaces ..................................................................... 19-1 19.2 Signal List .................................................................................................................................. 19-3 19.3 Address Bus (A[22:0]/SDA[13:0]) .......................................................................................... 19-19 19.4 Data Bus (D[31:0]) .................................................................................................................. 19-19 19.4.1 Dynamic Data Bus Sizing ............................................................................................ 19-19 19.5 Chip Selects (CS7/SDCS, CS[6:0]) ......................................................................................... 19-19 19.6 Bus Control Signals ................................................................................................................. 19-20 19.6.1 Output Enable/Read (OE/RD) ...................................................................................... 19-20 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxv Table of Contents (Continued) Paragraph Number Title Page Number 19.6.2 Byte Strobes (BS[3:0]) ................................................................................................. 19-20 19.6.3 Read/Write (R/W) ......................................................................................................... 19-21 19.6.4 Transfer Acknowledge (TA/PB5) ................................................................................. 19-22 19.6.5 Hi-Z .............................................................................................................................. 19-22 19.6.6 Bypass ........................................................................................................................... 19-22 19.6.7 SDRAM Row Address Strobe (RAS0) ........................................................................ 19-22 19.6.8 SDRAM Column Address Strobe (CAS0) ................................................................... 19-22 19.6.9 SDRAM Clock (SDCLK) ............................................................................................. 19-22 19.6.10 SDRAM Write Enable (SDWE) ................................................................................. 19-22 19.6.11 SDRAM Clock Enable (SDCLKE) ............................................................................ 19-22 19.6.12 SDRAM Bank Selects (SDBA[1:0]) .......................................................................... 19-23 19.6.13 SDRAM Row Address 10 (A10)/A10 Precharge (A10_PRECHG) .......................... 19-23 19.7 CPU Clock and Reset Signals .................................................................................................. 19-23 19.7.1 RSTI ............................................................................................................................. 19-23 19.7.2 DRESETEN .................................................................................................................. 19-23 19.7.3 CPU External Clock (CLKIN) ..................................................................................... 19-23 19.7.4 Reset Output (RSTO) ................................................................................................... 19-23 19.8 Interrupt Request Inputs (INT[6:1]) ......................................................................................... 19-23 19.9 General-Purpose I/O (GPIO) Ports .......................................................................................... 19-24 19.10 UART0 Module Signals and PB[4:0] .................................................................................... 19-24 19.10.1 Transmit Serial Data Output (URT0_TxD/PB0) ........................................................ 19-24 19.10.2 Receive Serial Data Input (URT0_RxD/PB1) ............................................................ 19-25 19.10.3 Clear-to-Send (URT0_CTS/PB2) ............................................................................... 19-25 19.10.4 Request to Send (URT0_RTS/PB3) ............................................................................ 19-25 19.10.5 Clock (URT0_CLK/PB4) ........................................................................................... 19-25 19.11 USB Module Signals and PA[6:0] ......................................................................................... 19-25 19.11.1 USB Transmit Serial Data Output (USB_TP/PA0) .................................................... 19-25 19.11.2 USB Receive Serial Data Input (USB_RP/PA1) ........................................................ 19-25 19.11.3 USB Receive Data Negative (USB_RN/PA2) ............................................................ 19-25 19.11.4 USB Transmit Data Negative (USB_TN/PA3) ........................................................... 19-26 19.11.5 USB Suspend Driver (USB_SUSP/PA4) .................................................................... 19-26 19.11.6 USB Transmitter Output Enable (USB_TxEN/PA5) .................................................. 19-26 19.11.7 USB Rx Data Output (USB_RxD/PA6) ..................................................................... 19-26 19.11.8 USB_D+ and USB_D- ................................................................................................ 19-26 19.11.9 USB_CLK .................................................................................................................. 19-26 19.11.10 INT1/USB Wake-on-Ring (USB_WOR) ................................................................. 19-26 19.12 Timer Module Signals ............................................................................................................ 19-27 19.12.1 Timer Input 0 (TIN0) .................................................................................................. 19-27 19.12.2 Timer Output (TOUT0)/PB7 ...................................................................................... 19-27 19.12.3 Timer Input 1 (TIN1)/PWM Mode Output 2 (PWM_OUT2) .................................... 19-27 19.12.4 Timer Output 1 (TOUT1)/PWM Mode Output 1 (PWM_OUT1) .............................. 19-27 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxvi Freescale Semiconductor Table of Contents (Continued) Paragraph Number Title Page Number 19.13 Ethernet Module Signals ........................................................................................................ 19-27 19.13.1 Transmit Clock (E_TxCLK) ....................................................................................... 19-27 19.13.2 Transmit Data (E_TxD0) ............................................................................................ 19-28 19.13.3 Collision (E_COL) ..................................................................................................... 19-28 19.13.4 Receive Data Valid (E_RxDV) ................................................................................... 19-28 19.13.5 Receive Clock (E_RxCLK) ........................................................................................ 19-28 19.13.6 Receive Data (E_RxD0) ............................................................................................. 19-28 19.13.7 Transmit Enable (E_TxEN) ........................................................................................ 19-28 19.13.8 Transmit Data (E_TxD[3:1]/PB[10:8]) ...................................................................... 19-28 19.13.9 Receive Data (E_RxD[3:1]/PB[13:11]) ...................................................................... 19-28 19.13.10 Receive Error (E_RxER/PB14) ................................................................................ 19-29 19.13.11 Management Data Clock (E_MDC/PB15) ............................................................... 19-29 19.13.12 Management Data (E_MDIO) .................................................................................. 19-29 19.13.13 Transmit Error (E_TxER) ......................................................................................... 19-29 19.13.14 Carrier Receive Sense (E_CRS) ............................................................................... 19-29 19.14 PWM Module Signals (PWM_OUT0-PWM_OUT2]) ......................................................... 19-29 19.15 Queued Serial Peripheral Interface (QSPI) Signals ............................................................... 19-29 19.15.1 QSPI Synchronous Serial Data Output (QSPI_Dout/WSEL) .................................... 19-30 19.15.2 QSPI Synchronous Serial Data Input (QSPI_Din) ..................................................... 19-30 19.15.3 QSPI Serial Clock (QSPI_CLK/BUSW1) .................................................................. 19-30 19.15.4 Synchronous Peripheral Chip Select 0 (QSPI_CS0/BUSW0) ................................... 19-30 19.15.5 Synchronous Peripheral Chip Select 1 (QSPI_CS1/PA11) ........................................ 19-30 19.15.6 Synchronous Peripheral Chip Select 2 (QSPI_CS2/URT1_CTS) .............................. 19-30 19.15.7 Synchronous Peripheral Chip Select 3 (PA7/DOUT3/QSPI_CS3) ............................ 19-30 19.16 Physical Layer Interface Controller TDM Ports and UART 1 .............................................. 19-31 19.16.1 GCI/IDL TDM Port 0. ................................................................................................ 19-31 19.16.1.1 Frame Sync (FSR0/FSC0/PA8) .................................................................... 19-31 19.16.1.2 D-Channel Grant (DGNT0/PA9) .................................................................. 19-31 19.16.1.3 Data Clock (DCL0/URT1_CLK) .................................................................. 19-31 19.16.1.4 Serial Data Input (DIN0/URT1_RxD) .......................................................... 19-31 19.16.1.5 UART1 CTS (URT1_CTS/QSPI_CS2) ........................................................ 19-32 19.16.1.6 UART1 RTS (URT1_RTS/INT5) ................................................................. 19-32 19.16.1.7 Serial Data Output (DOUT0/URT1_TxD) ................................................... 19-32 19.16.1.8 D-Channel Request(DREQ0/PA10) ............................................................. 19-32 19.16.1.9 QSPI Chip Select 1 (QSPI_CS1/PA11) ........................................................ 19-32 19.16.2 GCI/IDL TDM Port 1 ................................................................................................. 19-32 19.16.2.1 GCI/IDL Data Clock (DCL1/GDCL1_OUT) ............................................... 19-32 19.16.2.2 GCI/IDL Data Out (DOUT1) ....................................................................... 19-33 19.16.2.3 GCI/IDL Data In (DIN1) .............................................................................. 19-33 19.16.2.4 GCI/IDL Frame Sync (FSC1/FSR1/DFSC1) ............................................... 19-33 19.16.2.5 D-Channel Request (DREQ1/PA14) ............................................................ 19-33 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxvii Table of Contents (Continued) Paragraph Number Title Page Number 19.16.2.6 D-Channel Grant (DGNT1_INT6/PA15_INT6) ........................................... 19-33 19.16.3 GCI/IDL TDM Ports 2 and 3 ...................................................................................... 19-34 19.16.3.1 GCI/IDL Delayed Frame Sync 2 (DFSC2/PA12) ......................................... 19-34 19.16.3.2 GCI/IDL Delayed Frame Sync 3 (DFSC3/PA13) ......................................... 19-34 19.16.3.3 QSPI_CS3, Port 3 GCI/IDL Data Out 3, PA7 (PA7/DOUT3/QSPI_CS3) ... 19-34 19.16.3.4 INT4 and Port 3 GCI/IDL Data In (INT4/DIN3) ......................................... 19-35 19.17 JTAG Test Access Port and BDM Debug Port ...................................................................... 19-35 19.17.1 Test Clock (TCK/PSTCLK) ........................................................................................ 19-35 19.17.2 Test Mode Select and Force Breakpoint (TMS/BKPT) .............................................. 19-35 19.17.3 Test and Debug Data Out (TDO/DSO) ...................................................................... 19-36 19.17.4 Test and Debug Data In (TDI/DSI) ............................................................................ 19-36 19.17.5 JTAG TRST and BDM Data Clock (TRST/DSCLK) ................................................ 19-36 19.17.6 Freescale Test Mode Select (MTMOD) ..................................................................... 19-36 19.17.7 Debug Transfer Error Acknowledge (TEA) ............................................................... 19-36 19.17.8 Processor Status Outputs (PST[3:0]) .......................................................................... 19-36 19.17.9 Debug Data (DDATA[3:0]) ........................................................................................ 19-37 19.17.10 Device Test Enable (TEST) ...................................................................................... 19-37 19.18 Operating Mode Configuration Pins ...................................................................................... 19-37 19.19 Power Supply Pins ................................................................................................................. 19-38 Chapter 20 Bus Operation 20.1 Features ...................................................................................................................................... 20-1 20.2 Bus and Control Signals ............................................................................................................ 20-1 20.2.1 Address Bus (A[22:0]) ................................................................................................... 20-2 20.2.2 Data Bus (D[31:0]) ......................................................................................................... 20-2 20.2.3 Read/Write (R/W) ........................................................................................................... 20-2 20.2.4 Transfer Acknowledge (TA) ........................................................................................... 20-2 20.2.5 Transfer Error Acknowledge (TEA) ............................................................................... 20-3 20.3 Bus Exception: Double Bus Fault .............................................................................................. 20-3 20.4 Bus Characteristics .................................................................................................................... 20-3 20.5 Data Transfer Mechanism .......................................................................................................... 20-4 20.5.1 Bus Sizing ....................................................................................................................... 20-4 20.6 External Bus Interface Types ..................................................................................................... 20-7 20.6.1 Interface for FLASH/SRAM Devices with Byte Strobes ............................................... 20-8 20.6.2 Interface for FLASH/SRAM Devices without Byte Strobes ........................................ 20-12 20.7 Burst Data Transfers ................................................................................................................ 20-17 20.8 Misaligned Operands ............................................................................................................... 20-18 20.9 Interrupt Cycles ........................................................................................................................ 20-19 20.10 Bus Errors .............................................................................................................................. 20-19 20.11 Bus Arbitration ....................................................................................................................... 20-21 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxviii Freescale Semiconductor Table of Contents (Continued) Paragraph Number Title Page Number 20.12 Reset Operation ...................................................................................................................... 20-21 20.12.1 Master Reset ............................................................................................................... 20-22 20.12.2 Normal Reset .............................................................................................................. 20-23 20.12.3 Software Watchdog Timer Reset Operation ............................................................... 20-24 20.12.4 Soft Reset Operation ................................................................................................... 20-25 Chapter 21 IEEE 1149.1 Test Access Port (JTAG) 21.1 21.2 21.3 21.4 21.5 21.6 21.7 Overview .................................................................................................................................... 21-1 JTAG Test Access Port and BDM Debug Port .......................................................................... 21-2 TAP Controller ........................................................................................................................... 21-3 Boundary Scan Register ............................................................................................................. 21-4 Instruction Register .................................................................................................................... 21-7 Restrictions ................................................................................................................................ 21-8 Non-IEEE 1149.1 Operation ...................................................................................................... 21-8 Chapter 22 Mechanical Data 22.1 22.2 Pinout ......................................................................................................................................... 22-1 Package Dimensions .................................................................................................................. 22-2 Chapter 23 Electrical Characteristics 23.1 23.2 23.3 23.4 23.5 23.6 Maximum Ratings ...................................................................................................................... 23-1 23.1.1 Supply, Input Voltage, and Storage Temperature ........................................................... 23-1 23.1.2 Operating Temperature ................................................................................................... 23-2 23.1.3 Resistance ....................................................................................................................... 23-2 DC Electrical Specifications ...................................................................................................... 23-3 23.2.1 Output Driver Capability and Loading ........................................................................... 23-3 AC Electrical Specifications ...................................................................................................... 23-5 23.3.1 Clock Input and Output Timing Specifications .............................................................. 23-5 23.3.2 Processor Bus Input Timing Specifications .................................................................... 23-6 23.3.3 Processor Bus Output Timing Specifications ................................................................. 23-8 Debug AC Timing Specifications ............................................................................................ 23-13 SDRAM Interface Timing Specifications ................................................................................ 23-14 Fast Ethernet AC Timing Specifications ................................................................................. 23-17 23.6.1 MII Receive Signal Timing (E_RxD[3:0], E_RxDV, E_RxER, and E_RxCLK) ........ 23-17 23.6.2 MII Transmit Signal Timing (E_TxD[3:0], E_TxEN, E_TxER, E_TxCLK) .............. 23-18 23.6.3 MII Async Inputs Signal Timing (CRS and COL) ....................................................... 23-19 23.6.4 MII Serial Management Channel Timing (MDIO and MDC) ..................................... 23-20 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxix Table of Contents (Continued) Paragraph Number 23.7 23.8 23.9 23.10 23.11 23.12 23.13 23.14 Title Page Number Timer Module AC Timing Specifications ................................................................................ 23-21 UART Modules AC Timing Specifications ............................................................................. 23-22 PLIC Module: IDL and GCI Interface Timing Specifications ................................................ 23-23 General-Purpose I/O Port AC Timing Specifications ............................................................ 23-28 USB Interface AC Timing Specifications .............................................................................. 23-29 IEEE 1149.1 (JTAG) AC Timing Specifications ................................................................... 23-30 QSPI Electrical Specifications ............................................................................................... 23-31 PWM Electrical Specifications .............................................................................................. 23-32 Appendix A List of Memory Maps A.1 List of Memory Map Tables............................................................................................................ A-1 Appendix B Buffering and Impedance Matching Index 1 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxx Freescale Semiconductor List of Tables Table Number 2-1 2-2 2-3 2-4 2-5 2-6 2-7 2-8 2-9 2-10 2-11 2-12 2-13 2-14 2-15 2-16 2-17 2-18 2-19 2-20 2-21 3-1 4-1 4-2 4-3 4-4 4-5 4-6 4-7 4-8 4-9 5-1 5-2 5-3 5-4 5-5 5-6 5-7 5-8 5-9 Title Page Number CCR Field Descriptions .......................................................................................................... 2-6 MOVEC Register Map............................................................................................................. 2-7 Status Field Descriptions ........................................................................................................ 2-8 Integer Data Formats .............................................................................................................. 2-9 ColdFire Effective Addressing Modes .................................................................................. 2-12 Notational Conventions ........................................................................................................ 2-13 User-Mode Instruction Set Summary .................................................................................... 2-15 Supervisor-Mode Instruction Set Summary ......................................................................... 2-18 Misaligned Operand References.......................................................................................... 2-19 Move Byte and Word Execution Times ................................................................................. 2-20 Move Long Execution Times................................................................................................ 2-21 Move Execution Times......................................................................................................... 2-21 One-Operand Instruction Execution Times ........................................................................... 2-22 Two-Operand Instruction Execution Times ........................................................................... 2-22 Miscellaneous Instruction Execution Times .......................................................................... 2-24 General Branch Instruction Execution Times........................................................................ 2-25 Bcc Instruction Execution Times .......................................................................................... 2-25 Exception Vector Assignments ............................................................................................. 2-26 Format Field Encoding .......................................................................................................... 2-27 Fault Status Encodings ......................................................................................................... 2-28 MCF5272 Exceptions .......................................................................................................... 2-28 MAC Instruction Summary ...................................................................................................... 3-4 Memory Map of Instruction Cache Registers .......................................................................... 4-2 RAMBAR Field Description ..................................................................................................... 4-3 Examples of Typical RAMBAR Settings.................................................................................. 4-4 ROMBAR Field Description..................................................................................................... 4-6 Examples of Typical ROMBAR Settings ................................................................................. 4-6 Instruction Cache Operation as Defined by CACR[CENB,CEIB].......................................... 4-11 Memory Map of Instruction Cache Registers ........................................................................ 4-12 CACR Field Descriptions ...................................................................................................... 4-13 ACRn Field Descriptions ....................................................................................................... 4-14 Debug Module Signals ............................................................................................................ 5-2 Processor Status Encoding..................................................................................................... 5-3 BDM/Breakpoint Registers...................................................................................................... 5-6 Rev. A Shared BDM/Breakpoint Hardware ............................................................................. 5-7 AATR Field Descriptions ......................................................................................................... 5-7 ABLR Field Description ........................................................................................................... 5-9 ABHR Field Description .......................................................................................................... 5-9 CSR Field Descriptions ......................................................................................................... 5-10 DBR Field Descriptions ......................................................................................................... 5-12 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxxi List of Tables (Continued) Table Number 5-10 5-11 5-12 5-13 5-14 5-15 5-16 5-17 5-18 5-19 5-20 5-21 5-22 5-23 6-1 6-2 6-3 6-4 6-5 6-6 6-7 6-8 6-9 6-10 6-11 7-1 7-2 7-3 7-4 7-5 7-6 7-7 7-8 8-1 8-2 8-3 8-4 8-5 9-1 9-2 9-3 9-4 9-5 9-6 Title Page Number DBMR Field Descriptions ...................................................................................................... 5-12 Access Size and Operand Data Location ............................................................................. 5-12 PBR Field Descriptions ......................................................................................................... 5-13 PBMR Field Descriptions ...................................................................................................... 5-13 TDR Field Descriptions ......................................................................................................... 5-14 Receive BDM Packet Field Description ................................................................................ 5-18 Transmit BDM Packet Field Description ............................................................................... 5-18 BDM Command Summary .................................................................................................... 5-19 BDM Field Descriptions......................................................................................................... 5-20 Control Register Map ............................................................................................................ 5-30 Definition of DRc Encoding--Read ....................................................................................... 5-32 DDATA[3:0]/CSR[BSTAT] Breakpoint Response ................................................................. 5-34 PST/DDATA Specification for User-Mode Instructions ......................................................... 5-37 PST/DDATA Specification for Supervisor-Mode Instructions................................................ 5-40 SIM Registers ......................................................................................................................... 6-3 MBAR Field Descriptions ....................................................................................................... 6-4 SCR Field Descriptions ........................................................................................................... 6-5 SPR Field Descriptions ........................................................................................................... 6-6 PMR Field Descriptions........................................................................................................... 6-8 USB and USART Power Down Modes ................................................................................... 6-9 Exiting Sleep and Stop Modes .............................................................................................. 6-10 DIR Field Descriptions .......................................................................................................... 6-11 WRRR Field Descriptions ..................................................................................................... 6-12 WIRR Field Descriptions ....................................................................................................... 6-13 WER Field Descriptions ........................................................................................................ 6-13 Interrupt Controller Registers .................................................................................................. 7-2 Interrupt and Power Management Register Mnemonics......................................................... 7-3 ICR Field Descriptions ............................................................................................................ 7-4 ISR Field Descriptions............................................................................................................. 7-6 PITR Field Descriptions .......................................................................................................... 7-7 PIWR Field Descriptions ......................................................................................................... 7-8 PIVR Field Descriptions .......................................................................................................... 7-9 MCF5272 Interrupt Vector Table........................................................................................... 7-10 CSCR and CSOR Values after Reset ..................................................................................... 8-2 CSBRn Field Descriptions....................................................................................................... 8-3 Output Read/Write Strobe Levels versus Chip Select EBI Code ............................................ 8-4 Chip Select Memory Address Decoding Priority ..................................................................... 8-5 CSORn Field Descriptions ...................................................................................................... 8-5 SDRAM Controller Signal Descriptions................................................................................... 9-2 Connecting BS[3:0] to DQMx .................................................................................................. 9-4 Configurations for 16-Bit Data Bus.......................................................................................... 9-4 Configurations for 32-Bit Data Bus.......................................................................................... 9-4 Internal Address Multiplexing (16-Bit Data Bus) ..................................................................... 9-5 Internal Address Multiplexing (32-Bit Data Bus) ..................................................................... 9-5 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxxii Freescale Semiconductor List of Tables (Continued) Table Number Title Page Number 9-7 SDCR Field Descriptions ........................................................................................................ 9-7 9-8 SDTR Field Descriptions......................................................................................................... 9-8 9-9 SDRAM Controller Performance, 32-Bit Port, (RCD = 0, RP = 1) or (RCD = 1, RP = 0) ...... 9-10 9-10 SDRAM Controller Performance, 32-Bit Port, (RCD = 0, RP = 0)........................................ 9-10 9-11 SDRAM Controller Performance (RCD = 1, RP = 1), 16-Bit Port.......................................... 9-11 9-12 SDRAM Controller Performance, 16-Bit Port, (RCD=0, RP=1) or (RCD=1, RP = 0)9-11 9-13 SDRAM Controller Performance, 16-Bit Port, (RCD=0, RP=0)............................................. 9-12 10-1 DMA Data Transfer Matrix .................................................................................................... 10-1 10-2 DMR Field Descriptions ........................................................................................................ 10-2 10-3 DIR Field Descriptions .......................................................................................................... 10-4 11-1 MII Mode ............................................................................................................................... 11-3 11-2 Seven-Wire Mode Configuration ........................................................................................... 11-4 11-3 Ethernet Address Recognition .............................................................................................. 11-7 11-4 Transmission Errors .............................................................................................................. 11-9 11-5 Reception Errors ................................................................................................................... 11-9 11-6 FEC Register Memory Map................................................................................................. 11-10 11-7 ECR Field Descriptions ....................................................................................................... 11-11 11-8 EIR Field Descriptions......................................................................................................... 11-12 11-9 EIMR Register Field Descriptions ....................................................................................... 11-13 11-10 IVSR Field Descriptions ...................................................................................................... 11-14 11-11 RDAR Register Field Descriptions ...................................................................................... 11-15 11-12 TDAR Field Descriptions..................................................................................................... 11-16 11-13 MMFR Field Descriptions.................................................................................................... 11-17 11-14 MSCR Field Descriptions .................................................................................................... 11-18 11-15 Programming Examples for MSCR Register....................................................................... 11-19 11-16 FRBR Field Descriptions..................................................................................................... 11-19 11-17 FRSR Field Descriptions..................................................................................................... 11-20 11-18 TFWR Field Descriptions .................................................................................................... 11-21 11-19 TFSR Field Descriptions ..................................................................................................... 11-22 11-20 RCR Field Descriptions....................................................................................................... 11-23 11-21 MFLR Field Descriptions..................................................................................................... 11-24 11-22 TCR Field Descriptions ....................................................................................................... 11-25 11-23 MALR Field Descriptions..................................................................................................... 11-26 11-24 MAUR Field Descriptions .................................................................................................... 11-27 11-25 HTUR Field Descriptions..................................................................................................... 11-28 11-26 HTLR Field Descriptions ..................................................................................................... 11-29 11-27 ERDSR Field Descriptions .................................................................................................. 11-30 11-28 ETDSR Field Descriptions .................................................................................................. 11-31 11-29 EMRBR Field Descriptions.................................................................................................. 11-32 11-30 Hardware Initialization......................................................................................................... 11-33 11-31 ETHER_EN = 0................................................................................................................... 11-33 11-32 User Initialization Process (before ETHER_EN) ................................................................. 11-33 11-33 User Initialization (after ETHER_EN) .................................................................................. 11-34 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxxiii List of Tables (Continued) Table Number 11-34 11-35 12-1 12-2 12-3 12-4 12-5 12-6 12-7 12-8 12-9 12-10 12-11 12-12 12-13 12-14 12-15 12-16 12-17 12-18 12-19 12-20 13-1 13-2 13-3 13-4 13-5 13-6 13-7 13-8 13-9 13-10 13-11 13-12 13-13 13-14 13-15 13-16 13-17 14-1 14-2 14-3 14-4 14-5 Title Page Number RxBD Field Descriptions ..................................................................................................... 11-36 TxBD Field Descriptions...................................................................................................... 11-37 USB Device Requests........................................................................................................... 12-5 USB Memory Map................................................................................................................. 12-7 FNR Field Descriptions ......................................................................................................... 12-9 FNMR Field Descriptions ...................................................................................................... 12-9 RFMR Field Descriptions .................................................................................................... 12-10 RFMMR Field Descriptions ................................................................................................. 12-11 FAR Field Descriptions ....................................................................................................... 12-11 ASR Field Descriptions ....................................................................................................... 12-12 SPECR Field Descriptions .................................................................................................. 12-14 EP0SR Field Descriptions................................................................................................... 12-14 IEP0CFG Field Descriptions ............................................................................................... 12-15 EP0CTL Field Descriptions ................................................................................................. 12-17 EPnCTL Field Descriptions ................................................................................................. 12-20 EP0IMR and EP0ISR Field Descriptions ............................................................................ 12-22 EPnISR Field Descriptions.................................................................................................. 12-25 EPnIMR Field Descriptions ................................................................................................. 12-26 EPnDR Field Descriptions................................................................................................... 12-27 EPnDPR Field Descriptions ................................................................................................ 12-28 USB FIFO Access Timing ................................................................................................... 12-30 Example FIFO Setup .......................................................................................................... 12-32 PLIC Module Memory Map ................................................................................................. 13-13 P0CR-P3CR Field Descriptions ......................................................................................... 13-19 PLCR Field Description....................................................................................................... 13-20 P0ICR-P3ICR Field Descriptions ....................................................................................... 13-21 P0PSR-P3PSR Field Descriptions ..................................................................................... 13-22 PASR Field Descriptions..................................................................................................... 13-23 P0GMR-P3GMR Field Descriptions ................................................................................... 13-24 P0GMT-P3GMT Field Descriptions.................................................................................... 13-25 PGMTA Field Descriptions.................................................................................................. 13-26 PGMTS Field Descriptions.................................................................................................. 13-27 P0GCIR-P3GCIR Field Descriptions.................................................................................. 13-28 P0GCIT-P3GCIT Field Descriptions................................................................................... 13-29 PGCITSR Field Descriptions............................................................................................... 13-30 PDCSR Field Descriptions .................................................................................................. 13-31 PDRQR Field Descriptions.................................................................................................. 13-32 P0SDR-P3SDR Field Descriptions..................................................................................... 13-33 PCSR Field Descriptions..................................................................................................... 13-34 QSPI Input and Output Signals and Functions ..................................................................... 14-3 QSPI_CLK Frequency as Function of CPU Clock and Baud Rate ....................................... 14-7 QMR Field Descriptions ........................................................................................................ 14-9 QDLYR Field Descriptions .................................................................................................. 14-11 QWR Field Descriptions...................................................................................................... 14-12 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxxiv Freescale Semiconductor List of Tables (Continued) Table Number Title Page Number 14-6 QIR Field Descriptions ........................................................................................................ 14-13 14-7 QCR0-QCR15 Field Descriptions....................................................................................... 14-15 15-1 TMRn Field Descriptions....................................................................................................... 15-3 15-2 TERn Field Descriptions ....................................................................................................... 15-5 16-1 UART Module Programming Model ...................................................................................... 16-3 16-2 UMR1n Field Descriptions .................................................................................................... 16-5 16-3 UMR2n Field Descriptions .................................................................................................... 16-6 16-4 USRn Field Descriptions ....................................................................................................... 16-7 16-5 UCSRn Field Descriptions .................................................................................................... 16-8 16-6 UCRn Field Descriptions....................................................................................................... 16-9 16-7 UIPCRn Field Descriptions ................................................................................................. 16-11 16-8 UACRn Field Descriptions .................................................................................................. 16-12 16-9 UISRn/UIMRn Field Descriptions........................................................................................ 16-13 16-10 UTFn Field Descriptions...................................................................................................... 16-15 16-11 URFn Field Descriptions ..................................................................................................... 16-16 16-12 UFPDn Field Descriptions................................................................................................... 16-17 16-13 UIPn Field Descriptions....................................................................................................... 16-17 16-14 UOP1/UOP0 Field Descriptions .......................................................................................... 16-18 16-15 UART Module Signals......................................................................................................... 16-19 16-16 Transmitter FIFO Status Bits............................................................................................... 16-25 16-17 Receiver FIFO Status Bits................................................................................................... 16-26 17-1 GPIO Signal Multiplexing ...................................................................................................... 17-1 17-2 GPIO Port Register Memory Map ......................................................................................... 17-2 17-3 PACNT Field Descriptions .................................................................................................... 17-3 17-4 Port A Control Register Function Bits ................................................................................... 17-5 17-5 PBCNT Field Descriptions .................................................................................................... 17-6 17-6 Port B Control Register Function Bits ................................................................................... 17-7 17-7 PDCNT Field Descriptions .................................................................................................... 17-8 17-8 Port D Control Register Function Bits ................................................................................... 17-9 17-9 PADDR Field Descriptions .................................................................................................. 17-10 18-1 PWM Module Memory Map................................................................................................... 18-2 18-2 PWCRn Field Descriptions.................................................................................................... 18-3 18-3 PWWDn Field Descriptions................................................................................................... 18-4 19-1 Signal Descriptions Sorted by Function ................................................................................ 19-3 19-2 Signal Name and Description by Pin Number..................................................................... 19-11 19-3 Byte Strobe Operation for 32-Bit Data Bus ......................................................................... 19-20 19-4 Byte Strobe Operation for 16-Bit Data Bus--SRAM Cycles19-21 19-5 Byte Strobe Operation for 16-Bit Data Bus--SDRAM Cycles19-21 19-6 Connecting BS[3:0] to DQMx .............................................................................................. 19-21 19-7 Processor Status Encoding................................................................................................. 19-37 19-8 MCF5272 Bus Width Selection19-38 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxxv List of Tables (Continued) Table Number Title Page Number 19-9 MCF5272 CS0 Memory Bus Width Selection19-38 19-10 MCF5272 High Impedance Mode Selection19-38 20-1 ColdFire Bus Signal Summary ............................................................................................. 20-1 20-2 Chip Select Memory Address Decoding Priority20-4 20-3 Byte Strobe Operation for 32-Bit Data Bus ........................................................................... 20-6 20-4 Byte Strobe Operation for 16-Bit Data Bus--SRAM Cycles20-6 20-5 Byte Strobe Operation for 16-Bit Data Bus--SDRAM Cycles20-6 20-6 Data Bus Requirement for Read/Write Cycles...................................................................... 20-7 20-7 External Bus Interface Codes for CSBRs ............................................................................. 20-8 21-1 JTAG Signals ........................................................................................................................ 21-2 21-2 Instructions............................................................................................................................ 21-7 23-1 Maximum Supply, Input Voltage and Storage Temperature ................................................. 23-1 23-2 Operating Temperature......................................................................................................... 23-2 23-3 Thermal Resistance .............................................................................................................. 23-2 23-4 DC Electrical Specifications ................................................................................................. 23-3 23-5 I/O Driver Capability .............................................................................................................. 23-3 23-6 Clock Input and Output Timing Specifications ...................................................................... 23-5 23-7 Processor Bus Input Timing Specifications........................................................................... 23-6 23-8 Processor Bus Output Timing Specifications ........................................................................ 23-8 23-9 Debug AC Timing Specification .......................................................................................... 23-13 23-10 SDRAM Interface Timing Specifications ............................................................................. 23-14 23-11 MII Receive Signal Timing .................................................................................................. 23-17 23-12 MII Transmit Signal Timing ................................................................................................. 23-18 23-13 MII Async Inputs Signal Timing........................................................................................... 23-19 23-14 MII Serial Management Channel Timing............................................................................. 23-20 23-15 Timer Module AC Timing Specifications ............................................................................. 23-21 23-16 UART Modules AC Timing Specifications........................................................................... 23-22 23-17 IDL Master Mode Timing, PLIC Ports 1, 2, and 3 ............................................................... 23-23 23-18 IDL Slave Mode Timing, PLIC Ports 0-3 ............................................................................ 23-24 23-19 GCI Slave Mode Timing, PLIC Ports 0-3............................................................................ 23-25 23-20 GCI Master Mode Timing, PLIC PORTs 1, 2, 3 .................................................................. 23-26 23-21 General-Purpose I/O Port AC Timing Specifications .......................................................... 23-28 23-22 USB Interface AC Timing Specifications............................................................................. 23-29 23-23 IEEE 1149.1 (JTAG) AC Timing Specifications .................................................................. 23-30 23-24 QSPI Modules AC Timing Specifications ............................................................................ 23-31 23-25 PWM Modules AC Timing Specifications............................................................................ 23-32 A-1 On-Chip Module Base Address Offsets from MBAR...............................................................A-1 A-2 CPU Space Registers Memory Map .......................................................................................A-2 A-3 On-Chip Peripherals and Configuration Registers Memory Map ............................................A-2 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxxvi Freescale Semiconductor List of Tables (Continued) Table Number A-4 A-5 A-6 A-7 A-8 A-9 A-10 A-11 A-12 A-13 A-14 A-15 A-16 Title Page Number Interrupt Control Register Memory Map..................................................................................A-2 Chip Select Register Memory Map .........................................................................................A-3 GPIO Port Register Memory Map ...........................................................................................A-3 QSPI Module Memory Map.....................................................................................................A-4 PWM Module Memory Map.....................................................................................................A-4 DMA Module Memory Map .....................................................................................................A-4 UART0 Module Memory Map..................................................................................................A-5 UART1 Module Memory Map..................................................................................................A-6 SDRAM Controller Memory Map.............................................................................................A-7 Timer Module Memory Map ....................................................................................................A-7 PLIC Module Memory Map .....................................................................................................A-8 Ethernet Module Memory Map................................................................................................A-9 USB Module Memory Map ....................................................................................................A-10 MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxxvii MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xxxviii Freescale Semiconductor MCF5272 ColdFire(R) Integrated Microprocessor User's Manual To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify you have the latest information available, refer to: http://www.freescale.com/ The following revision history table summarizes changes contained in this document. For your convenience, the page number designators have been linked to the appropriate location. Document Revision History Rev. No. 2.1 3 Substantive Change(s) Updated to meet Freescale identity guidelines. * Formatting, layout, spelling, and grammar corrections. * Corrected the TxFIFO bit description In Table 16-9 (was "Once set, this bit is cleared by reading UTBn", is "After being set, this bit is cleared by writing UTBn"). * Corrected Figure 20-12 (OE signal was asserting on the third SDCLK clock cycle, is asserting on the second SDCLK clock cycle). * Corrected Figure 20-13 (R/W and BS signals were asserting on the third SDCLK clock cycle, are asserting on the second SDCLK clock cycle). * Corrected Figure 20-16 (OE signal was asserting on the third SDCLK clock cycle, is asserting on the second SDCLK clock cycle). * Corrected Figure 20-17 (R/W and BS signals were asserting on the third SDCLK clock cycle, are asserting on the second SDCLK clock cycle). FreescaleTM and the Freescale logo are trademarks of Freescale Semiconductor, Inc. (c) Freescale Semiconductor, Inc., 2005. All rights reserved. MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xxxix About This Book The primary objective of this user's manual is to define the functionality of the MCF5272 processors for use by software and hardware developers. The information in this book is subject to change without notice, as described in the disclaimers on the title page of this book. As with any technical documentation, it is the readers' responsibility to be sure he is using the most recent version of the documentation. To locate any published errata or updates for this document, refer to the world-wide web at http://www.freescale.com. Audience This manual is intended for system software and hardware developers and applications programmers who want to develop products with the MCF5272. It is assumed that the reader understands operating systems, microprocessor system design, basic principles of software and hardware, and basic details of the ColdFire(R) architecture. Organization Following is a summary and brief description of the major sections of this manual: * Chapter 1, "Overview," includes general descriptions of the modules and features incorporated in the MCF5272, focussing in particular on new features. * Chapter 2, "ColdFire Core," provides an overview of the microprocessor core of the MCF5272. The chapter describes the organization of the Version 2 (V2) ColdFire 5200 processor core and an overview of the program-visible registers (the programming model) as they are implemented on the MCF5272. It also includes a full description of exception handling and a table of instruction timings. * Chapter 3, "Hardware Multiply/Accumulate (MAC) Unit," describes the MCF5272 multiply/accumulate unit, which executes integer multiply, multiply-accumulate, and miscellaneous register instructions. The MAC is integrated into the operand execution pipeline (OEP). * Chapter 4, "Local Memory." This chapter describes the MCF5272 implementation of the ColdFire V2 local memory specification. It consists of three major sections, as follows. -- Section 4.3, "SRAM Overview," describes the MCF5272 on-chip static RAM (SRAM) implementation. It covers general operations, configuration, and initialization. It also provides information and examples of how to minimize power consumption when using the SRAM. -- Section 4.4, "ROM Overview," describes the MCF5272 on-chip static ROM. The ROM module contains tabular data that the ColdFire core can access in a single cycle. -- Section 4.5, "Instruction Cache Overview," describes the MCF5272 cache implementation, including organization, configuration, and coherency. It describes cache operations and how the cache interacts with other memory structures. MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xl Freescale Semiconductor * * * * * * * * * * * * * Chapter 5, "Debug Support," describes the Revision A hardware debug support in the MCF5272. Chapter 6, "System Integration Module (SIM)," describes the SIM programming model, bus arbitration, power management, and system-protection functions for the MCF5272. Chapter 7, "Interrupt Controller," describes operation of the interrupt controller portion of the SIM. Includes descriptions of the registers in the interrupt controller memory map and the interrupt priority scheme. Chapter 8, "Chip Select Module," describes the MCF5272 chip-select implementation, including the operation and programming model, which includes the chip-select address, mask, and control registers. Chapter 9, "SDRAM Controller," describes configuration and operation of the synchronous DRAM controller component of the SIM, including a general description of signals involved in SDRAM operations. It provides interface information for memory configurations using most common SDRAM devices for both 16- and 32-bit-wide data buses. The chapter concludes with signal timing diagrams. Chapter 10, "DMA Controller," provides an overview of the MCF5272's one-channel DMA controller intended for memory-to-memory block data transfers. This chapter describes in detail its signals, registers, and operating modes. Chapter 11, "Ethernet Module," describes the MCF5272 fast Ethernet media access controller (MAC). This chapter begins with a feature-set overview, a functional block diagram, and transceiver connection information for both MII and seven-wire serial interfaces. The chapter concludes with detailed descriptions of operation and the programming model. Chapter 12, "Universal Serial Bus (USB)," provides an overview of the USB module of the MCF5272, including detailed operation information and the USB programming model. Connection examples and circuit board layout considerations are also provided. The USB Specification, Revision 1.1 is a recommended supplement to this chapter. It can be downloaded from http://www.usb.org. Chapter 2 of this specification, Terms and Abbreviations, provides definitions of many of the words found here. Chapter 13, "Physical Layer Interface Controller (PLIC)," provides detailed information about the MCF5272's physical layer interface controller, a module intended to support ISDN applications. The chapter begins with a description of operation and a series of related block diagrams starting with a high-level overview. Each successive diagram depicts progressively more internal detail. The chapter then describes timing generation and the programming model and concludes with three application examples. Chapter 14, "Queued Serial Peripheral Interface (QSPI) Module," provides a feature-set overview and description of operation, including details of the QSPI's internal RAM organization. The chapter concludes with the programming model and a timing diagram. Chapter 15, "Timer Module," describes configuration and operation of the four general-purpose timer modules, timer 0, 1, 2 and 3. Chapter 16, "UART Modules," describes the use of the universal asynchronous/synchronous receiver/transmitters (UARTs) implemented on the MCF5272, including example register values for typical configurations. MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xli * * * * * * * Chapter 17, "General Purpose I/O Module," describes the operation and programming model of the three general purpose I/O (GPIO) ports on the MCF5272. The chapter details pin assignment, direction-control, and data registers. Chapter 18, "Pulse-Width Modulation (PWM) Module," describes the configuration and operation of the pulse-width modulation (PWM) module. It includes a block diagram, programming model, and timing diagram. Chapter 19, "Signal Descriptions," provides a listing and brief description of all the MCF5272 signals. Specifically, it shows which are inputs or outputs, how they are multiplexed, and the state of each signal at reset. The first listing is organized by function, with signals appearing alphabetically within each functional group. This is followed by a second listing sorted by pin number. Chapter 20, "Bus Operation," describes the functioning of the bus for data-transfer operations, error conditions, bus arbitration, and reset operations. It includes detailed timing diagrams showing signal interaction. Operation of the bus is defined for transfers initiated by the MCF5272 as a bus master. The MCF5272 does not support external bus masters. Note that Chapter 9, "SDRAM Controller," describes DRAM cycles. Chapter 21, "IEEE 1149.1 Test Access Port (JTAG)," describes configuration and operation of the MCF5272 Joint Test Action Group (JTAG) implementation. It describes those items required by the IEEE 1149.1 standard and provides additional information specific to the MCF5272. For internal details and sample applications, see the IEEE 1149.1 document. Chapter 22, "Mechanical Data," provides a functional pin listing and package diagram for the MCF5272. Chapter 23, "Electrical Characteristics," describes AC and DC electrical specifications and thermal characteristics for the MCF5272. Because additional speeds may have become available since the publication of this book, consult Freescale's ColdFire web page, http://www.freescale.com, to confirm that this is the latest information. This manual includes the following two appendixes: * Appendix A, "List of Memory Maps," provides the entire address-map for MCF5272 memory-mapped registers. * Appendix B, "Buffering and Impedance Matching," provides some suggestions regarding interface circuitry between the MCF5272 and SDRAMs. This manual also includes an index. MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xlii Freescale Semiconductor Suggested Reading This section lists additional reading that provides background for the information in this manual as well as general information about the ColdFire architecture. General Information The following documentation provides useful information about the ColdFire architecture and computer architecture in general: ColdFire Documentation The ColdFire documentation is available from the sources listed on the back cover of this manual. Document order numbers are included in parentheses for ease in ordering. * ColdFire Programmers Reference Manual, R1.0 (MCF5200PRM/AD) * User's manuals--These books provide details about individual ColdFire implementations and are intended to be used in conjunction with The ColdFire Programmers Reference Manual. These include the following: -- ColdFire MCF5102 User's Manual (MCF5102UM/AD) -- ColdFire MCF5202 User's Manual (MCF5202UM/AD) -- ColdFire MCF5204 User's Manual (MCF5204UM/AD) -- ColdFire MCF5206 User's Manual (MCF5206EUM/AD) -- ColdFire MCF5206E User's Manual (MCF5206EUM/AD) -- ColdFire MCF5307 User's Manual (MCF5307UM/AD) -- ColdFire MCF5407 User's Manual (MCF5407UM/AD) * ColdFire Programmers Reference Manual, R1.0 (MCF5200PRM/AD) * Using Microprocessors and Microcomputers: The Motorola Family, William C. Wray, Ross Bannatyne, Joseph D. Greenfield Additional literature on ColdFire implementations is being released as new processors become available. For a current list of ColdFire documentation, refer to the World Wide Web at http://www.freescale.com. MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xliii Conventions This document uses the following notational conventions: MNEMONICS In text, instruction mnemonics are shown in uppercase. mnemonics In code and tables, instruction mnemonics are shown in lowercase. italics Italics indicate variable command parameters. Book titles in text are set in italics. 0x0 Prefix to denote hexadecimal number 0b0 Prefix to denote binary number REG[FIELD] Abbreviations for registers are shown in uppercase. Specific bits, fields, or ranges appear in brackets. For example, RAMBAR[BA] identifies the base address field in the RAM base address register. nibble A 4-bit data unit byte An 8-bit data unit word A 16-bit data unit1 longword A 32-bit data unit x In some contexts, such as signal encodings, x indicates a don't care. n Used to express an undefined numerical value NOT logical operator & AND logical operator | OR logical operator 1. The only exceptions to this appear in the discussion of serial communication modules that support variable-length data transmission units. To simplify the discussion these units are referred to as words regardless of length. MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xliv Freescale Semiconductor Acronyms and Abbreviations Table i lists acronyms and abbreviations used in this document. Table i. Acronyms and Abbreviated Terms Term Meaning ADC Analog-to-digital conversion ALU Arithmetic logic unit AVEC Autovector BDM Background debug mode BIST Built-in self test BSDL Boundary-scan description language CODEC Code/decode DAC Digital-to-analog conversion DMA Direct memory access DSP Digital signal processing EA Effective address EDO Extended data output (DRAM) FIFO First-in, first-out GPIO General-purpose I/O I 2C IEEE Inter-integrated circuit Institute for Electrical and Electronics Engineers IFP Instruction fetch pipeline IPL Interrupt priority level JEDEC Joint Electron Device Engineering Council JTAG Joint Test Action Group LIFO Last-in, first-out LRU Least recently used LSB Least-significant byte lsb MAC MBAR Least-significant bit Multiply accumulate unit, also Media access controller Memory base address register MSB Most-significant byte msb Most-significant bit Mux Multiplex NOP No operation MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xlv Table i. Acronyms and Abbreviated Terms (continued) Term OEP Meaning Operand execution pipeline PC Program counter PCLK Processor clock PLIC Physical layer interface controller PLL Phase-locked loop PLRU Pseudo least recently used POR Power-on reset PQFP Plastic quad flat pack PWM Pulse-width modulation QSPI Queued serial peripheral interface RISC Reduced instruction set computing Rx Receive SIM System integration module SOF Start of frame TAP Test access port TTL Transistor transistor logic Tx Transmit UART Universal asynchronous/synchronous receiver transmitter USB Universal serial bus MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 xlvi Freescale Semiconductor Terminology Conventions Table ii shows terminology conventions used throughout this document. Table ii. Notational Conventions Instruction Operand Syntax Opcode Wildcard cc Logical condition (example: NE for not equal) Register Specifications An Ay,Ax Any address register n (example: A3 is address register 3) Source and destination address registers, respectively Dn Any data register n (example: D5 is data register 5) Dy,Dx Source and destination data registers, respectively Rc Any control register (example VBR is the vector base register) Rm MAC registers (ACC, MAC, MASK) Rn Any address or data register Rw Destination register w (used for MAC instructions only) Ry,Rx Xi Any source and destination registers, respectively index register i (can be an address or data register: Ai, Di) Register Names ACC MAC accumulator register CCR Condition code register (lower byte of SR) MACSR MAC status register MASK MAC mask register PC Program counter SR Status register Port Name DDATA PST Debug data port Processor status port Miscellaneous Operands # Immediate data following the 16-bit operation word of the instruction Effective address MCF5272 ColdFire(R) Integrated Microprocessor User's Manual, Rev. 3 Freescale Semiconductor xlvii Table ii. Notational Conventions (continued) Instruction y,x