Freescale Semiconductor
Data Sheet
Document Number: MCF5213EC
Rev. 3, 05/2007
© Freescale Semiconductor, Inc., 2007. All rights reserved.
This document contains information on a product under development. Freescale reserves the
right to change or discontinue this product without notice.
MCF5213
LQFP–64
10 mm x 10 mm
MAPBGA–81
10 mm x 10 mm
LQFP–100
14 mm x 14 mm
QFN–64
9mmx9mm
The MCF5213 is a member of the ColdFire® family of
reduced instruction set computing (R ISC) microprocessors.
This document provides an overview of the 32-bit MCF5213
microcontroller , focusing on its highly integrated and diverse
feature set.
This 32-bit device is based on the Version 2 ColdFire core
operating at a frequency up to 80 MHz, offering high
performance and low power consumption. On-chip memories
connected tightly to the processor core include up to
256 Kbytes of flash memory and 32 Kbytes of static random
access memory (SRAM). On-chip modules include:
V2 ColdFire core delivering 76 MIPS (Dhrystone 2.1) at
80 MHz running from internal flash memory with Multiply
Accumulate (MAC) Unit and hardware divider
FlexCAN controller area network (CAN) module
Three universal asynchronous/synchronous
receiver/transmitters (UARTs)
Inter-integrated circuit (I2C™) bus controller
Queued serial peripheral interface (QSPI) module
Eight-channel 12-bit fast analog-to-digital converter
(ADC)
Four -channel direct memory access (DMA) controller
Four 32-bit input captu re/output compare timers with
DMA support (DTIM)
Four-channel general-purpose timer (GPT) capable of
input capture/output com pare, pulse width modulation
(PWM), and pulse accumulation
Eight-channel/Four-channel, 8-bit/16-bit pulse width
modulation timer
Two 16-bit periodic interrupt timers (PITs)
Programmable software watchdog timer
Interrupt controller capable of handling 57 sources
Clock module with 8 MHz on-chip relaxation oscillator
and integrated phase-locked loop (PLL)
Test access/debug port (JTAG, BDM)
MCF5213 ColdFire
Microcontroller
Supports MCF5213,
MCF5212, & MCF5211
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor2
Table of Contents
1 MCF5213 Family Configurations . . . . . . . . . . . . . . . . . . . . . . .3
1.1 Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
1.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
1.3 Reset Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
1.4 PLL and Clock Signals . . . . . . . . . . . . . . . . . . . . . . . . .20
1.5 Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
1.6 External Interrupt Signals . . . . . . . . . . . . . . . . . . . . . . .21
1.7 Queued Serial Peripheral Interface (QSPI). . . . . . . . . .21
1.8 I2C I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
1.9 UART Module Signals. . . . . . . . . . . . . . . . . . . . . . . . . .22
1.10 DMA Timer Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
1.11 ADC Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
1.12 General Purpose Timer Signals . . . . . . . . . . . . . . . . . .23
1.13 Pulse Width Modulator Signals . . . . . . . . . . . . . . . . . . .23
1.14 Debug Support Signals . . . . . . . . . . . . . . . . . . . . . . . . .23
1.15 EzPort Signal Descriptions . . . . . . . . . . . . . . . . . . . . . .24
1.16 Power and Ground Pins . . . . . . . . . . . . . . . . . . . . . . . .25
2 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
2.1 Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
2.2 Current Consumption . . . . . . . . . . . . . . . . . . . . . . . . . .27
2.3 Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . .28
2.4 Flash Memory Characteristics . . . . . . . . . . . . . . . . . . .30
2.5 ESD Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
2.6 DC Electrical Specifications . . . . . . . . . . . . . . . . . . . . .31
2.7 Clock Source Electrical Specifications . . . . . . . . . . . . .32
2.8 General Purpose I/O Timing . . . . . . . . . . . . . . . . . . . . .33
2.9 Reset Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
2.10 I2C Input/Output Timing Specifications . . . . . . . . . . . . .35
2.11 Analog-to-Digital Converter (ADC) Parameters . . . . . .36
2.12 Equivalent Circuit for ADC Inputs . . . . . . . . . . . . . . . . .37
2.13 DMA Timers Timing Specifications . . . . . . . . . . . . . . . .38
2.14 QSPI Electrical Specifications. . . . . . . . . . . . . . . . . . . .38
2.15 JTAG and Boundary Scan Timing. . . . . . . . . . . . . . . . .39
2.16 Debug AC Timing Specifications. . . . . . . . . . . . . . . . . .41
3 Mechanical Outline Drawings . . . . . . . . . . . . . . . . . . . . . . . . .43
3.1 64-pin LQFP Package. . . . . . . . . . . . . . . . . . . . . . . . . .43
3.2 64 QFN Package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
3.3 81 MAPBGA Package. . . . . . . . . . . . . . . . . . . . . . . . . .50
3.4 100-pin LQFP Package. . . . . . . . . . . . . . . . . . . . . . . . .52
4 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
List of Figures
Figure 1.MCF5213 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 2.100 LQFP Pin Assignments . . . . . . . . . . . . . . . . . . . . 13
Figure 3.81 MAPBGA Pin Assignments . . . . . . . . . . . . . . . . . . 14
Figure 4.64 LQFP and 64 QFN Pin Assignments . . . . . . . . . . . 15
Figure 5.GPIO Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 6.RSTI and Configuration Override Timing . . . . . . . . . . 34
Figure 7.I2C Input/Output Timings . . . . . . . . . . . . . . . . . . . . . . 36
Figure 8.Equivalent Circuit for A/D Loading. . . . . . . . . . . . . . . . 37
Figure 9.QSPI Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 10.Test Clock Input Timing . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 11.Boundary Scan (JTAG) Timing . . . . . . . . . . . . . . . . . 40
Figure 12.Test Access Port Timing . . . . . . . . . . . . . . . . . . . . . . 40
Figure 13.TRST Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 14.Real-Time Trace AC Timing. . . . . . . . . . . . . . . . . . . . 41
Figure 15.BDM Serial Port AC Timing . . . . . . . . . . . . . . . . . . . . 42
List of Tables
Table 1. MCF5213 Family Configurations . . . . . . . . . . . . . . . . . . 3
Table 2. Orderable Part Number Summary. . . . . . . . . . . . . . . . 12
Table 3. Pin Functions by Primary and Alternate Purpose . . . . 16
Table 4. Reset Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 5. PLL and Clock Signals . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 6. Mode Selection Signals . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 7. Clocking Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 8. External Interrupt Signals . . . . . . . . . . . . . . . . . . . . . . 21
Table 9. Queued Serial Peripheral Interface (QSPI) Signals. . . 21
Table 10.I2C I/O Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 11.UART Module Signals . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 12.DMA Timer Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 13.ADC Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 14.GPT Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 15.PWM Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 16.Debug Support Signals . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 17.EzPort Signal Descriptions . . . . . . . . . . . . . . . . . . . . . 24
Table 18.Power and Ground Pins. . . . . . . . . . . . . . . . . . . . . . . . 25
Table 19.Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . 26
Table 20.Current Consumption in Low-Power Mode,. . . . . . . . . 27
Table 21.Typical Active Current Consumption Specifications. . . 28
Table 22.Thermal Characteristics. . . . . . . . . . . . . . . . . . . . . . . . 28
Table 23.SGFM Flash Program and Erase Characteristics . . . . 30
Table 24.SGFM Flash Module Life Characteristics . . . . . . . . . . 30
Table 25.ESD Protection Characteristics, . . . . . . . . . . . . . . . . . 31
Table 26.DC Electrical Specifications . . . . . . . . . . . . . . . . . . . . 31
Table 27.PLL Electrical Specifications . . . . . . . . . . . . . . . . . . . . 32
Table 28.GPIO Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 29.Reset and Configuration Override Timing . . . . . . . . . . 34
Table 30.I2C Input Timing Specifications between I2C_SCL
and I2C_SDA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 31.I2C Output Timing Specifications between I2C_SCL
and I2C_SDA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 32.ADC Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table 33.Timer Module AC Timing Specifications . . . . . . . . . . . 38
Table 34.QSPI Modules AC Timing Specifications. . . . . . . . . . . 38
Table 35.JTAG and Boundary Scan Timing . . . . . . . . . . . . . . . . 39
Table 36.Debug AC Timing Specification . . . . . . . . . . . . . . . . . . 41
Table 37.Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 3
1 MCF5213 Family Configurations
Table 1. MCF5213 Family Configurations
Figure 1 shows a top-level block diagram of the MCF5213. Package options for this family are described later in this document.
Module 5211 5212 5213
ColdFire Version 2 Core with MAC
(Multiply-Accumulate Unit) ••
System Clock 66, 80 MHz
Performance (Dhrystone 2.1 MIPS) 63 up to 76
Flash / Static RAM (SRAM) 128/16 Kbytes 256/32 Kbytes
Interrupt Controller (INTC) ••
Fast Analog-to-Digital Converter (ADC) ••
FlexCAN 2.0B Module See note1
1FlexCAN is available on the MCF5211 only in the 64 QFN package.
Four-channel Direct-Memory Access (DMA) ••
Watchdog Timer Module (WDT) ••
Programmable Interval Timer Module (PIT) 2 2 2
Four-Channel General-Purpose Timer 3 3 3
32-bit DMA Timers 4 4 4
QSPI ••
UARTs 3 3 3
I2C••
PWM 8 8 8
General Purpose I/O Module (GPIO) ••
Chip Configuration and Reset Controller Module ••
Background Debug Mode (BDM) ••
JTAG - IEEE 1149.1 Test Access Port2
2The full debug/trace interface is available only on the 100-pin packages. A reduced debug interface is
bonded on smaller packages.
••
Package 64 LQFP
64 QFN
81 MAPBGA
64 LQFP
81 MAPBGA
81 MAPBGA
100 LQFP
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor4
Figure 1. MCF5213 Block Diagram
1.1 Features
This document contains information on a new product under development. Freescale reserves the right to change or discontinue
this product without notice. Sp ecifi cations and information herein are subject to change withou t not ice.
1.1.1 Feature Overview
The MCF5213 family includes the following features:
Arbiter Interrupt
Controller
UART
0QSPI
UART
1UART
2I2C
DTIM
0DTIM
1DTIM
2DTIM
3
V2 ColdFire CPU
IFP OEP MAC
4 CH DMA
MUX
JTAG
TAP
To/From PADI
32 Kbytes
SRAM
(4K×16)×4
256 Kbytes
Flash
(32K×16)×4PORTS
(GPIO) CIM RSTI
RSTO
UTXDn
URXDn
URTSn
DTINn/DTOUTn
CANRX
JTAG_EN
ADCAN[7:0]
VRH VRL
PLL OCO
CLKGEN
Edge
Port
FlexCAN
EXTAL XTAL CLKOUT
PIT0 PIT1 GPT PWM
To/From Interrupt Controller
CANTX
UCTSn
PMM
VSTBY
PADI – Pin Muxing
EzPort EzPCS
CLKMOD0 CLKMOD1
QSPI_CLK,
QSPI_CSn
PWMn
QSPI_DIN,
QSPI_DOUT
GPTn
EzPCK
EzPD
EzPQ
SWT
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 5
Version 2 ColdFire variabl e -length RISC processor core
Static operation
32-bit address and data paths on-chip
Up to 80 MHz processor core frequency
Sixteen general-purpose, 32-bit data and address registers
Implements ColdFire ISA_A with extensions to support the user stack pointer register and four new instructions
for improved bit processin g (IS A_A+)
Multiply-Accumulate (MAC) unit with 32-bit accumulator to support 16×16 32 or 32×32 32 operations
Illegal instruction decode that allows for 68-Kbyte emulation support
System debug support
Real-time trace for determining dynamic execution path
Background debug mode (BDM) for in-circuit debugging (DEBUG_B+)
Real-time debug support, with six hardware breakpoints (4 PC, 1 address and 1 data) configurable into a 1- or
2-level trigger
On-chip memories
32-Kbyte dual-ported SRAM on CPU internal bus, supporting core and DMA access with standby power supply
support
256 Kbytes of interleaved flash memory supporting 2-1-1-1 accesses
Power management
Fully static operation with processor sleep and whole chip stop modes
Rapid response to interrupts from the low-power sleep mode (wake-up feature)
Clock enable/disable for each peripheral when not used
FlexCAN 2.0B module
Based on and includes all existing features of the Freescale TouCAN module
Full implement a tio n of the CAN protocol specification version 2.0B
Standard data and remote frames (up to 109 bits long)
Extended data and remote frames (up to 127 bits lo ng)
Zero to eight bytes data length
Programmable bit rate up to 1 Mbit/sec
Flexible message buffers (MBs), totalling up to 16 message buffers of 0–8 byte data length each, configurable as
Rx or Tx, all supporting standard and extended messages
Unused MB space can be used as general purpose RAM space
Listen-only mode capability
Content-related addressing
No read/write semaphores
Three programmable mask registers: global for MBs 0-13, special for MB14, and special for MB15
Programmable transmit-first scheme: lowest ID or lowest buffer number
Time stamp based on 16-bit free-running timer
Global network time, synch ron ized by a specific message
Maskable interrupts
Three universal asynchronous/synchronous receiver transmitters (UARTs)
16-bit divider for clock generation
Interrupt control logic with maskable interrup ts
DMA support
Data formats can be 5, 6, 7 or 8 bits with even, odd , or no parity
Up to two stop bits in 1/16 increments
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor6
Error-detection capabilities
Modem support includ es req uest-to-send (RTS) and clear-to-send (CTS) lines for two UARTs
Transmit and receive FIFO buffers
•I
2C module
Interchip bus interface for EEPROMs, LCD controllers, A/D converters, and keypads
Fully compatible with industry-standard I2C bus
Master and slave modes support multiple masters
Automatic interrupt generation with programmable level
Queued serial peripheral interface (QSPI)
Full-duplex, three-wire synchrono us transfers
Up to four chip selects available
Master mode operation only
Programmable bit rates up to half the CPU clock frequency
Up to 16 pre-programme d transfers
Fast analog-to-digital converter (ADC)
Eight analog input channels
12-bit resolution
Minimum 1.125 μs conversion time
Simultaneous sampling of two channels for motor control applications
Single-scan or continuous operation
Optional interrupts on conversion complete, zero crossing (sign change), or under/over low/high lim it
Unused analog channels can be used as digital I/O
Four 32-bit timers wit h DMA support
12.5 ns resolution at 80 MHz
Programmable sources for clock input, including an external clock option
Programmable prescaler
Input capture capability with pro gram mable trigger edge on input pin
Output compare with programmable mode fo r the output pin
Free run and restart modes
Maskable interrupts on inpu t capture or output compare
DMA trigger capability on inp ut capture or output compare
Four-channel general purpose timer
16-bit architecture
Programmable prescaler
Output pulse-widths variable from microseconds to seconds
Single 16-bit input pulse accumulator
Toggle-on-overflow feature for pulse-width mo dul ator (PW M) generation
One dual-mode pulse accumulation channel
Pulse-width modulation timer
Operates as eight channels with 8-bit resolution or four channels with 16-bit resoluti on
Programmable period and duty cycle
Programmable enable/disable for each channel
Software selectable polarity for each channel
Period and duty cycle are double buffered. Change takes effect when the end of the current period is reached
(PWM counter reaches zero) or when the channel is disabled.
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 7
Programmable center or left aligned outputs on indi vid ual channels
Four clock sources (A, B, SA, and SB) provide for a wide range of frequencies
Emergency shutdown
Two periodic interrupt timers (PITs)
16-bit counter
Selectable as free running or count down
Software watchdog timer
32-bit counter
Low-power mode support
Clock generation features
One to 48 MHz crystal, 8 MHz on-chip relaxation oscillator, or external oscillator reference options
Trimmed relaxa tion oscillator
Two to 10 MHz reference frequency for normal PLL mode with a pre-divider programmable from 1 to 8
System can be clocked from PLL or directly from crystal oscillato r or relaxati on oscil lator
Low power modes supported
—2
n (n 015) low-power divider for extremely low frequency operation
Interrupt controller
Uniquely programmable vectors for all interrupt sources
Fully programmable level and priorit y for all peri pheral interrupt sources
Seven external interrupt signals with fixed level and priority
Unique vector number for each interrupt source
Ability to mask any individu al int erru pt source or all interrupt sources (global mask-all)
Support for hardwar e and software interrupt acknowledge (IACK) cycles
Combinatorial path to provide wake-up from low-power modes
DMA controller
Four fully programmable channels
Dual-address transfer support with 8-, 16-, and 32-bit data capabili ty, along with support for 16-byte (4×32-bit)
burst transfers
Source/destination address pointers that can increment or remain constant
24-bit byte transfer counter per channel
Auto-alignment transfers supported for efficient block movement
Bursting and cycle steal support
Software-programmable DMA requesters for the UARTs (3) and 32-bit timers (4)
Reset
Separate reset in and reset out signals
Seven sources of reset:
Power-on reset (POR)
External
–Software
Watchdog
Loss of clock
Loss of lock
Low-voltage detection (LVD)
Status flag indication of source of last reset
Chip integration module (CIM)
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor8
System configuration during reset
Selects one of six clock modes
Configures output pad drive strength
Unique part identification number and part revision number
General purpose I/O interface
Up to 56 bits of general purpose I/O
Bit manipulation supp orted via set/clear functions
Programmable drive strengths
Unused peri ph eral pins may be used as extra GPIO
JTAG support for system level board testing
1.1.2 V2 Core Overview
The version 2 ColdFire processor core is comprised of two separate pipelines decoupled by an instruction buffer . The two-stage
instruction fetch pipeline (IFP) is responsible for instruction-address generation and instruction fetch. The instruction buffer is
a first-in-first-out (FIFO) buffer that holds prefetched instructions awaiting execution in the operand execution pipeline (OEP).
The OEP includes two pipeline stages. The first stage decodes instructions and selects operands (DSOC); the second stage
(AGEX) performs instruction execution and calculates operand effective addresses, if needed.
The V2 core implements the ColdFire instruction set architecture revision A+ with added support for a separate user stack
pointer register and four new instruction s to assist in bit processing. Additionally, the MCF5 213 core includes the
multiply-accumulate (MAC) unit for improved signal processing capabilities. The MAC implements a three-stage arithmetic
pipeline, optimized for 16×16 bit operations, with support for one 32-bit accumulator. Supported operands include 16- and
32-bit signed and unsigned integers, signed fractional operands, and a complete set of instructions to process these data types.
The MAC provides support for execution of DSP operations within the context of a single processor at a minimal hardware cost.
1.1.3 Integrated Debug Module
The ColdFire processor core debug interface is provided to support system debugging with low-cost debug and emulator
development tools. Through a standard debug interface, access to debug information and real-time tracing capability is provided
on 100-lead packages. This allows the processor and system to be debugged at full speed without the need for costly in-circuit
emulators.
The on-chip breakpoint resources include a total of nine programmable 32-bit registers: an address and an address mask register ,
a data and a data mask register, four PC registers, and one PC mask register. These registers can be accessed through the
dedicated debug serial communication channel or from the processors supervisor mode programming model. The breakpoint
registers can be configured to generate triggers by combining the address, data, and PC conditio ns in a variety of single- or
dual-level definitions. The trigger event can be programmed to generate a processor halt or initiate a debug interrupt exception.
The MCF5213 implements revision B+ of the ColdFire Debug Architecture.
The MCF5213’s interrupt servicing options during emulator mode allow real-time critical interrupt service routines to be
serviced while processing a debug interrupt event. This ensures the system continues to operate even during debugging.
To support program trace, the V2 debug module provides processor status (PST[3:0]) and debug data (DDATA[3:0]) ports.
These buses and the PST CLK output provi d e execution status, captured operand data, and branch target addresses defining
processor activity at the CPU’ s clock rate. The MCF5213 includes a new debug signal, ALLPST . This signal is the logical AND
of the processor status (PST[3:0]) signals and is useful for detecting when the processor is in a halted state (PST[3:0] = 1111).
The full debug/trace interface is available only on the 100-pin packages. However, every product features the dedicated debug
serial communication channel (DSI, DSO, DSCLK) and the ALLPST signal.
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 9
1.1.4 JTAG
The MCF5213 supports circuit board test strategies based on the T est Technology Committee of IEEE and the Joint T e st Action
Group (JTAG). The test log ic inclu des a test access port (TAP) consisting of a 16-state controller, an instruction register, and
three test registers (a 1-bit bypass register, a 256-bit boundary-scan register, and a 32-bit ID register). The boundary scan register
links the device’s pins into one shift register. Te st logic, implemented using static logic design, is independent of the device
system logic.
The MCF5213 implementation can:
Perform boundary-scan operations to test circuit board electrical continuity
Sample MCF5213 system pins during operation and transparently shift out the result in the boundary scan register
Bypass the MCF5213 for a given circuit board test by effectively reducing the boundary-scan register to a single bit
Disable the output drive to pins during circuit-board testing
Drive output pins to stable levels
1.1.5 On-Chip Memories
1.1.5.1 SRAM
The dual-ported SRAM module provides a general-purpose 32-Kbyte memory block that the ColdFire core can access in a
single cycle. The location of the memory block can be set to any 32-Kbyte boundary within the 4-Gbyte address space. This
memory is ideal for storing critical code or data structures and for use as the system stack. Because the SRAM module is
physically connected to the processor's high-speed local bus, it can quickly service core-initiated accesses or
memory-referencing commands from the debug module.
The SRAM module is also accessible by the DMA. The dual-ported nature of the SRAM makes it ideal for implementing
applications with double-buffer schemes, where the processor and a DMA device operate in alternate regions of the SRAM to
maximize system performance.
1.1.5.2 Flash Memory
The ColdFire flash module (CFM) is a non-volatile memory (NVM) module that connects to the processors high-speed local
bus. The CFM is constructed with four banks of 32-Kbyte×16-b it flash memory arrays to generate 256 Kbytes of 32-bit flash
memory. These electrically erasable and programmable arrays serve as non-volatil e program and data memory. The flash
memory is ideal for program and data storage for single-chip applications, allowing for field reprogramming without requiring
an external high voltage source. The CFM interfaces to the ColdFire core through an optimized read-only memory controller
that supports interleaved accesses from the 2-cycle flash memory arrays. A backdoor mapping of the flash memory is used for
all program, erase, and verify operations, as well as providing a read datapath for the DMA. Flash memory may also be
programmed via the EzPort, which is a serial flash memory programming interface that allows the flash memory to be read,
erased and programmed by an external controller in a format compatible with most SPI bus flash memory chips.
1.1.6 Power Management
The MCF5213 incorporates several low-power modes of operation entered under program control and exited by several external
trigger events. An integrated power-on reset (POR) circuit monitors the input supply and forces an MCU reset as the supply
voltage rises. The low voltage detector (LVD) monitors the supply voltage and is configurable to force a reset or interrupt
condition if it falls below the LVD trip point. The RAM standby switch provides power to RAM when the supply voltage to the
chip falls below the standby battery voltage.
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor10
1.1.7 FlexCAN
The FlexCAN module is a communication controller implementing version 2.0 of the CAN protocol parts A and B. The CAN
protocol can be used as an industrial control serial data bus, meeting the specific requirements of reliable operation in a harsh
EMI environment with high bandwidth. This instantiation of FlexCAN has 16 message buffers.
1.1.8 UARTs
The MCF5213 has three full-duplex UARTs that functi on independently. The three UARTs can be clocked by the system bus
clock, eliminating the need for an external clock source. On smaller packages, the third UAR T is multiplexed with other digital
I/O functio ns.
1.1.9 I2C Bus
The I2C bus is a two-wire, bidirectional serial bus that provides a simple, efficient method of data exchange and minimizes the
interconnection between devices. This bus is suitable for applications requiring occasional communications over a short
distance between many devices.
1.1.10 QSPI
The queued serial peripheral interface (QSPI) provides a synchronous serial peripheral interface with queued transfer capability.
It allows up to 16 transfers to be queued at once, minimizing the need for CPU intervention between transfers.
1.1.11 Fast ADC
The fast ADC consists of an eight-channel input select multiplexer and two independent sample and hold (S/H) circuits feeding
separate 12-bit ADCs. The two separate converters store their results in accessible buffers for further processing.
The ADC can be configured to perform a single scan and halt, a scan when triggered, or a programmed scan sequence repeatedly
until manually st opped.
The ADC can be configured for sequential or simultaneous conversion. When configured for sequential conversions, up to eight
channels can be sampled and stored in any order specified by the channel list register. Both ADCs may be required during a
scan, depending on the input s to be sampled.
During a simultaneous conversion, both S/H circuits are used to capture two different channels at the same time. This
configuration requires that a single channel may not be sampled by both S/H circuits simultaneously.
Optional interrupts can be generated at the end of the scan sequence if a channel is out of range (measures below the low
threshold limit or above the high threshold limit set in th e limit registers) or at several different zero crossing conditions.
1.1.12 DMA Timers (DTIM0–DTIM3)
There are four independent, DMA transfer capable 32-bit timers (DTIM0, DTIM1, DTIM2, and DTIM3) on the MCF5213.
Each module incorporates a 32-bit timer with a separate register set for configuration and control. The timers can be configured
to operate from the system clock or from an external clock source using one of the DTINn signals. If the system clock is selected,
it can be divided by 16 or 1. The input clock is further divided by a user-programmable 8-bit prescaler that clocks the actual
timer counter register (TCRn). Each of these timers can be configured for input capture or reference (ou tput) compare mode.
Timer events may optionally cause interrupt requests or DMA transfers.
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 11
1.1.13 General Purpose Timer (GPT)
The general purpose timer (GPT) is a four-channel timer module consisting of a 16-bit programmable counter driven by a
seven-stage programmable prescaler. Each of the four channels can be configured for input capture or output compare.
Additionally, channel three, can be configured as a pulse accumulator.
A timer overflow function allows software to extend the timing capability of the system beyond the 16-bit range of the counter .
The input capture and output compare functions all ow simultaneous input waveform measurements and output wav eform
generation. The input capture function can capture the time of a selected transition edge. The output compare function can
generate output waveforms and timer software delays. The 16-bit pulse accumulator can operate as a simple event counter or a
gated time accumulator.
1.1.14 Periodic Interrupt Timers (PIT0 and PIT1)
The two periodic interrupt timers (PIT0 and PIT1) are 16-bit tim ers that provide interrupts at regular interv als with minimal
processor intervention. Each timer can count down from the value written in its PIT modulus register or it can be a free-running
down-counter.
1.1.15 Pulse-Width Modulation (PWM) Timers
The MCF5213 has an 8-channel, 8-bit PWM timer. Each channel has a programmable period and duty cycle as well as a
dedicated counter. Each of the modulators can create independent continuous waveforms with software-selectable duty rates
from 0% to 100%. The PWM outputs have programma ble po larity, and can be programmed as left aligned outputs or center
aligned outputs. For higher period and duty cycle resolution, each pair of adjacent channels ([7:6], [5:4], [3:2], and [1:0]) can
be concatenated to form a single 16-bit channel. The module can, therefore, be configured to support 8/0, 6/1, 4/2, 2/3, or 0/4
8-/16-bit channels.
1.1.16 Software Watchdog Timer
The watchdog timer is a 32-bit timer that facilitates recovery from runaway code. The watchdog counter is a free-runni ng
down-counter that generates a reset on underflow. To prevent a reset, software must perio dically restart the countdown.
1.1.17 Phase-Locked Loop (PLL)
The clock module contains a crystal oscillator, 8 MHz on-chip relaxation oscillator (OCO), phase-locked loop (PLL), reduced
frequency divider (RFD), low-power divider status/control registers, and control logic. To improve noise immunity, the PLL,
crystal oscillator, and relaxation oscillato r have their own power supply inputs: VDDPLL and VSSPLL. All other circuits are
powered by the normal supply pins, VDD and VSS.
1.1.18 Interrupt Controller (INTC)
The MCF5213 has a single interrupt controller that supports up to 63 interrupt sources. There are 56 programmable sources, 49
of which are assigned to unique peripheral interrupt requests. The remaining seven sources are unassigned and may be used for
software interrupt requests.
1.1.19 DMA Controller
The direct memory access (DMA) controller provides an efficient way to move blocks of data with minimal processor
intervention. It has four channels that allow byte, word, longword, or 16-byte burst line transfers. These transfers are triggered
by software explicitly setting a DCRn[START] bit or by the occurrence of certain UART or DMA timer events.
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor12
1.1.20 Reset
The reset controller determines the source of reset, asserts the appropriate reset signals to the system, and keeps track of what
caused the last reset. There are seven sources of reset:
External reset input
Power-on reset (POR)
Watchdog timer
Phase locked-loop (PLL) loss of lock
PLL loss of clock
•Software
Low-voltage detector (LVD)
Control of the LVD and its associated reset and interrupt are managed by the reset controller . Other registers provide status flags
indicating the last source of reset and a control bit for software assertion of the RSTO pin.
1.1.21 GPIO
Nearly all pins on the MCF5213 have general purpose I/O capability and are grouped into 8-bit ports. Some ports do not use all
eight bits. Each port has reg isters that configure, monitor, and control the port pins.
1.1.22 Part Numbers and Packaging
This product is RoHS-compliant. Refer to the product page at freescale.com or contact your sales office for up-to-date RoHS
information.
Table 2. Orderable Part Number Summary
Freescale Part
Number Description Speed Package Temperature
MCF5211CAE66 MCF5211 ColdFire Microcontroller 66 MHz 64 LQFP -40 to +85 °C
MCF5211CEP66 MCF5211 ColdFire Microcontroller, FlexCAN 66 MHz 64 QFN -40 to +85 °C
MCF5211LCEP66 MCF5211 ColdFire Microcontroller 66 MHz 64 QFN -40 to +85 °C
MCF5211LCVM66 MCF5211 ColdFire Microcontroller 66 MHz 81 MAPBGA -40 to +85 °C
MCF5211LCVM80 MCF5211 ColdFire Microcontroller 80 MHz 81 MAPBGA -40 to +85 °C
MCF5212CAE66 MCF5212 ColdFire Microcontroller 66 MHz 64 LQFP -40 to +85 °C
MCF5212LCVM66 MCF5212 ColdFire Microcontroller 66 MHz 81 MAPBGA -40 to +85 °C
MCF5212LCVM80 MCF5212 ColdFire Microcontroller 80 MHz 81 MAPBGA -40 to +85 °C
MCF5213CAF66 MCF5213 ColdFire Microcontroller, FlexCAN 66 MHz 100 LQFP -40 to +85 °C
MCF5213CAF80 MCF5213 ColdFire Microcontroller, FlexCAN 80 MHz 100 LQFP -40 to +85 °C
MCF5213LCVM66 MCF5213 ColdFire Microcontroller, FlexCAN 66 MHz 81 MAPBGA -40 to +85 °C
MCF5213LCVM80 MCF5213 ColdFire Microcontroller, FlexCAN 80 MHz 81 MAPBGA -40 to +85 °C
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 13
Figure 2 shows the pinout configuration for the 100 LQFP.
Figure 2. 100 LQFP Pin Assignments
AN5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
VDD
VDD
VSS
URTS1
TEST
UCTS0
UTXD0
URTS0
SCL
SDA
QSPI_CS3
QSPI_CS2
VDD
VSS
QSPI_DIN
QSPI_DOUT
QSPI_CLK
QSPI_CS1
QSPI_CS0
RCON
VDD
VDD
VSS
100 LQFP
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
VSS
VDDPLL
EXTAL
XTAL
VSSPLL
PST3
PST2
VDD
VSS
PST1
PST0
PSTCLK
PWM7
GPT3
GPT2
PWM5
GPT1
GPT0
VDD
VSS
VSTBY
AN6
AN7
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
URXD1
UTXD1
UCTS1
RSTO
RSTI
IRQ7
IRQ6
VDD
VSS
IRQ5
IRQ4
IRQ3
IRQ2
IRQ1
ALLPST
DDATA3
DDATA2
VSS
VDD
DSO
DSI
DDATA1
DDATA0
BKPT
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
JTAG_EN
UCTS2
URXD2
UTXD2
URTS2
DTIN2
DTIN3
PWM3
VDD
VSS
DTIN0
DTIN1
PWM1
CLKMOD1
CLKMOD0
VDD
VSS
AN0
AN1
AN2
AN3
VSSA
VRL
VRH
VDDA
VSS
URXD0
AN4
DSCLK
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor14
Figure 3 shows the pinout configur ation for the 81 MAPBGA.
Figure 3. 81 MAPBGA Pin Assignments
V
SS
UTXD1 RSTI IRQ5 IRQ3 ALLPST TDO TMS V
SS
A
123456789
URTS1 URXD1 RSTO IRQ6 IRQ2 TRST TDI V
DD
PLL EXTALB
UCTS0 TEST UCTS1 IRQ7 IRQ4 IRQ1 TCLK V
SS
PLL XTALC
URXD0 UTXD0 URTS0 V
SS
V
DD
V
SS
PWM7 GPT3 GPT2D
SCL SDA V
DD
V
DD
V
DD
V
DD
V
DD
PWM5 GPT1E
QSPI_CS3 QSPI_CS2 QSPI_DIN V
SS
V
DD
V
SS
GPT0 V
STBY
AN4F
QSPI_DOUT QSPI_CLK RCON DTIN1 CLKMOD0 AN2 AN3 AN5 AN6G
QSPI_CS0 QSPI_CS1 DTIN3 DTIN0 CLKMOD1 AN1 V
SSA
V
DDA
AN7H
V
SS
JTAG_EN DTIN2 PWM3 PWM1 AN0 V
RL
V
RH
V
SSA
J
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 15
Figure 4 shows the pinout config urat ion for the 64 LQFP and 64 QFN.
Figure 4. 64 LQFP and 64 QFN Pin Assignments
Table 3 shows the pin functions by primary and alternate purpose, and illustrates which packages contain each pin.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VDD
URTS1
TEST
UCTS0
URXD0
UTXD0
SCL
SDA
VDD
VSS
QSPI_DIN
QSPI_DOUT
QSPI_CLK
QSPI_CS0
RCON
64-Pin Packages
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
VSS
URXD1
UTXD1
UCTS1
RSTO
RSTI
IRQ7
IRQ4
IRQ1
ALLPST
DSCLK
VSS
VDD
DSO
DSI
BKPT
URTS0
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
JTAG_EN
DTIN2
DTIN3
VDD
VSS
DTIN0
DTIN1
CLKMOD0
AN0
AN1
AN2
AN3
VSSA
VRL
VRH
VDDA
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
VDDPLL
EXTAL
XTAL
VSSPLL
PSTCLK
GPT3
GPT2
GPT1
GPT0
VDD
VSS
VSTBY
AN4
AN5
AN6
AN7
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor16
MCF5213 Family Configurations
Table 3. Pin Functions by Primary and Alternate Purpose
Pin
Group
Primary
Function
Secondary
Function
Tertiary
Function
Quaternary
Function
Drive
Strength /
Control1
Slew Rate /
Control1
Pull-up /
Pull-down2
Pin on
100 LQFP
Pin on 81
MAPBGA
Pin on 64
LQFP/QFN
ADC AN7 GPIO Low FAST 51 H9 33
AN6 GPIO Low FAST 52 G9 34
AN5 GPIO Low FAST 53 G8 35
AN4 GPIO Low FAST 54 F9 36
AN3 GPIO Low FAST 46 G7 28
AN2 GPIO Low FAST 45 G6 27
AN1 GPIO Low FAST 44 H6 26
AN0 GPIO Low FAST 43 J6 25
SYNCA3 N/AN/A———
SYNCB3 N/AN/A———
VDDA N/A N/A 50 H8 32
VSSA N/A N/A 47 H7, J9 29
VRH N/A N/A 49 J8 31
VRL N/A N/A 48 J7 30
Clock
Generation
EXTAL N/A N/A 73 B9 47
XTAL N/A N/A 72 C9 46
VDDPLL N/A N/A 74 B8 48
VSSPLL N/A N/A 71 C8 45
Debug Data ALLPST High FAST 86 A6 55
DDATA[3:0] GPIO High FAST 84,83,78,77
PST[3:0] GPIO High FAST 70,69,66,65
I2C SCL CANTX4UTXD2 GPIO PDSR[0] PSRR[0] pull-up510 E1 8
SDA CANRX3URXD2 GPIO PDSR[0] PSRR[0] pull-up511 E2 9
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 17
Interrupts IRQ7 GPIO Low FAST pull-up 95 C4 58
IRQ6 GPIO Low FAST pull-up 94 B4
IRQ5 GPIO Low FAST pull-up 91 A4
IRQ4 GPIO Low FAST pull-up 90 C5 57
IRQ3 GPIO Low FAST pull-up 89 A5
IRQ2 GPIO Low FAST pull-up 88 B5
IRQ1 SYNCA PWM1 GPIO High FAST pull-up587 C6 56
JTAG/BDM JTAG_EN N/A N/A pull-down 26 J2 17
TCLK/
PSTCLK
CLKOUT High FAST pull-up664 C7 44
TDI/DSI N/A N/A pull-up679 B7 50
TDO/DSO HighFAST80A751
TMS
/BKPT
N/A N/A pull-up676 A8 49
TRST
/DSCLK
N/A N/A pull-up685 B6 54
Mode
Selection7
CLKMOD0 N/A N/A pull-down740 G5 24
CLKMOD1 N/A N/A pull-down739 H5
RCON/
EZPCS
N/A N/A pull-up 21 G3 16
PWM PWM7 GPIO PDSR[31] PSRR[31] 63 D7
PWM5 GPIO PDSR[30] PSRR[30] 60 E8
PWM3 GPIO PDSR[29] PSRR[29] 33 J4
PWM1 GPIO PDSR[28] PSRR[28] 38 J5
Table 3. Pin Functions by Primary and Alternate Purpose (continued)
Pin
Group
Primary
Function
Secondary
Function
Tertiary
Function
Quaternary
Function
Drive
Strength /
Control1
Slew Rate /
Control1
Pull-up /
Pull-down2
Pin on
100 LQFP
Pin on 81
MAPBGA
Pin on 64
LQFP/QFN
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor18
MCF5213 Family Configurations
QSPI QSPI_DIN/
EZPD
CANRX4URXD1 GPIO PDSR[2] PSRR[2] 16 F3 12
QSPI_DOUT/
EZPQ
CANTX4UTXD1 GPIO PDSR[1] PSRR[1] 17 G1 13
QSPI_CLK/
EZPCK
SCL URTS1 GPIO PDSR[3] PSRR[3] pull-up818 G2 14
QSPI_CS3 SYNCA SYNCB GPIO PDSR[7] PSRR[7] 12 F1
QSPI_CS2 GPIO PDSR[6] PSRR[6] 13 F2
QSPI_CS1 GPIO PDSR[5] PSRR[5] 19 H2
QSPI_CS0 SDA UCTS1 GPIO PDSR[4] PSRR[4] pull-up820 H1 15
Reset9RSTI N/A N/A pull-up996 A3 59
RSTO highFAST97B360
Test TEST N/A N/A pull-down 5 C2 3
Timers, 16-bit GPT3 PWM7 GPIO PDSR[23] PSRR[23] pull-up10 62 D8 43
GPT2 PWM5 GPIO PDSR[22] PSRR[22] pull-up10 61 D9 42
GPT1 PWM3 GPIO PDSR[21] PSRR[21] pull-up10 59 E9 41
GPT0 PWM1 GPIO PDSR[20] PSRR[20] pull-up10 58 F7 40
Timers, 32-bit DTIN3 DTOUT3 PWM6 GPIO PDSR[19] PSRR[19] 32 H3 19
DTIN2 DTOUT2 PWM4 GPIO PDSR[18] PSRR[18] 31 J3 18
DTIN1 DTOUT1 PWM2 GPIO PDSR[17] PSRR[17] 37 G4 23
DTIN0 DTOUT0 PWM0 GPIO PDSR[16] PSRR[16] 36 H4 22
UART 0 UCTS0 CANRX GPIO PDSR[11] PSRR[11] 6 C1 4
URTS0 CANTX GPIO PDSR[10] PSRR[10] 9 D3 7
URXD0 GPIO PDSR[9] PSRR[9] 7 D1 5
UTXD0 GPIO PDSR[8] PSRR[8] 8 D2 6
Table 3. Pin Functions by Primary and Alternate Purpose (continued)
Pin
Group
Primary
Function
Secondary
Function
Tertiary
Function
Quaternary
Function
Drive
Strength /
Control1
Slew Rate /
Control1
Pull-up /
Pull-down2
Pin on
100 LQFP
Pin on 81
MAPBGA
Pin on 64
LQFP/QFN
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 19
UART 1 UCTS1 SYNCA URXD2 GPIO PDSR[15] PSRR[15] 98 C3 61
URTS1 SYNCB UTXD2 GPIO PDSR[14] PSRR[14] 4 B1 2
URXD1 GPIO PDSR[13] PSRR[13] 100 B2 63
UTXD1 GPIO PDSR[12] PSRR[12] 99 A2 62
UART 2 UCTS2 GPIO PDSR[27] PSRR[27] 27
URTS2 GPIO PDSR[26] PSRR[26] 30
URXD2 GPIO PDSR[25] PSRR[25] 28
UTXD2 GPIO PDSR[24] PSRR[24] 29
FlexCAN CANRX4,11 N/AN/A———
CANTX4,11 N/AN/A———
VSTBY VSTBY N/A N/A 55 F8 37
VDD VDD N/A N/A 1,2,14,22,
23,34,41,
57,68,81,93
D5,E3–E7,
F5
1,10,20,39,5
2
VSS VSS N/A N/A 3,15,24,25,3
5,42,56,
67,75,82,92
A1,A9,D4,D
6,F4,F6,J1
11,21,38,
53,64
1The PDSR and PSSR registers are described in the General Purpose I/O chapter. All programmable signals default to 2 mA drive and FAST slew rate in
normal (single-chip) mode.
2All signals have a pull-up in GPIO mode.
3These signals are multiplexed on other pins.
4The multiplexed CANTX and CANRX signals are not available on the MCF5211 or MCF5212.
5For primary and GPIO functions only.
6Only when JTAG mode is enabled.
7CLKMOD0 and CLKMOD1 have internal pull-down resistors; however, the use of external resistors is very strongly recommended.
8For secondary and GPIO functions only.
9RSTI has an internal pull-up resistor; however, the use of an external resistor is very strongly recommended.
10 For GPIO function. Primary Function has pull-up control within the GPT module.
11 CANTX and CANRX are secondary functions only.
Table 3. Pin Functions by Primary and Alternate Purpose (continued)
Pin
Group
Primary
Function
Secondary
Function
Tertiary
Function
Quaternary
Function
Drive
Strength /
Control1
Slew Rate /
Control1
Pull-up /
Pull-down2
Pin on
100 LQFP
Pin on 81
MAPBGA
Pin on 64
LQFP/QFN
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor20
1.2 Reset Signals
Table 4 describes signals used to reset the chip or as a reset indication.
1.3 PLL and Clock Signals
Table 5 describes signals used to support the on-chip clock generatio n circuitry.
1.4 Mode Selection
Table 6 describes signals used in mode selection; Table 7 describes the particular clocking modes.
Table 4. Reset Signals
Signal Name Abbreviation Function I/O
Reset In RSTI Primary reset input to the device. Asserting RSTI for at least 8 CPU
clock cycles immediately resets the CPU and peripherals.
I
Reset Out RSTO Driven low for 1024 CPU clocks after the reset source has deasserted. O
Table 5. PLL and Clock Signals
Signal Name Abbreviation Function I/O
External Clock In EXTAL Crystal oscillator or external clock input except when the on-chip
relaxation oscillator is used.
I
Crystal XTAL Crystal oscillator output except when CLKMOD1=1, then sampled as
part of the clock mode selection mechanism.
O
Clock Out CLKOUT This output signal reflects the internal system clock. O
Table 6. Mode Selection Signals
Signal Name Abbreviation Function I/O
Clock Mode Selection CLKMOD[1:0] Selects the clock boot mode. I
Reset Configuration RCON The Serial Flash Programming mode is entered by asserting the
RCON pin (with the TEST pin negated) as the chip comes out of
reset. During this mode, the EzPort has access to the flash memory
which can be programmed from an external device.
Test TEST Reserved for factory testing only and in normal modes of operation
should be connected to VSS to prevent unintentional activation of
test functions.
I
Table 7. Clocking Modes
CLKMOD[1:0] XTAL Configure the clock mode.
00 0 PLL disabled, clock driven by external oscillator
00 1 PLL disabled, clock driven by on-chip oscillator
01 N/A PLL disabled, clock driven by crystal
10 0 PLL in normal mode, clock driven by external oscillator
10 1 PLL in normal mode, clock driven by on-chip oscillator
11 N/A PLL in normal mode, clock driven by crystal
MCF5213 Family Configurations
MCF5213 ColdFire Microcontroller, Rev. 3
Freescale Semiconductor 21
1.5 External Interrupt Signals
Table 8 describes the external interrupt signals.
1.6 Queued Serial Peripheral Interface (QSPI)
Table 9 describes the QSPI signals.
1.7 I2C I/O Signals
Table 10 describes the I2C serial interface module signals.
Table 8. External Interrupt Signals
Signal Name Abbreviation Function I/O
External Interrupts IRQ[7:1] External interrupt sources. I
Table 9. Queued Serial Peripheral Interface (QSPI) Signals
Signal Name Abbreviation Function I/O
QSPI Synchronous
Serial Output
QSPI_DOUT Provides the serial data from the QSPI and can be programmed to be
driven on the rising or falling edge of QSPI_CLK.
O
QSPI Synchronous
Serial Data Input
QSPI_DIN Provides the serial data to the QSPI and can be programmed to be
sampled on the rising or falling edge of QSPI_CLK.
I
QSPI Serial Clock QSPI_CLK Provides the serial clock from the QSPI. The polarity and phase of
QSPI_CLK are programmable.
O
Synchronous Peripheral
Chip Selects
QSPI_CS[3:0] QSPI peripheral chip select; can be programmed to be active high or
low.
O
Table 10. I2C I/O Signals
Signal Name Abbreviation Function I/O
Serial Clock SCL Open-drain clock signal for the for the I2C interface. When the bus is
In master mode, this clock is driven by the I2C module; when the bus
is in slave mode, this clock becomes the clock input.
I/O
Serial Data SDA Open-drain signal that serves as the data input/output for the I2C
interface.
I/O
MCF5213 ColdFire Microcontroller, Rev. 3
MCF5213 Family Configurations
Freescale Semiconductor22
1.8 UART Module Signals
Table 11 describes the UART module signals.
1.9 DMA Timer Signals
Table 12 describes the signals of the four DMA timer modul es.
1.10 ADC Signals
Table 13 describes the signals of the Analog-to-Di gital Converter.
Table 11. UART Module Signals
Signal Name Abbreviation Function I/O
Transmit Serial Data
Output
UTXDnTransmitter serial data outputs for the UART modules. The output is
held high (mark condition) when the transmitter is disabled, idle, or in
the local loopback mode. Data is shifted out, LSB first, on this pin at
the falling edge of the serial clock source.
O
Receive Serial Data
Input
URXDnReceiver serial data inputs for the UART modules. Data is received on
this pin LSB first. When the UART clock is stopped for power-down
mode, any transition on this pin restarts the clock.
I
Clear-to-Send UCTSnIndication to the UART modules that they can begin data
transmission.
I
Request-to-Send URTSnAutomatic request-to-send outputs from the UART modules. This
signal can also be configured to be asserted and negated as a
function of the RxFIFO level.
O
Table 12. DMA Timer Signals
Signal Name Abbreviation Function I/O
DMA Timer Input DTIN Event input to the DMA timer modules. I
DMA Timer Output DTOUT Programmable output from the DMA timer modules. O
Table 13. ADC Signals
Signal Name Abbreviation Function I/O
Analog Inputs AN[7:0] Inputs to the analog-to-digital converter. I
Analog Reference VRH Reference voltage high and low inputs. I
VRL I
Analog Supply VDDA Isolate the ADC circuitry from power supply noise.
VSSA
ADC Sync Inputs SYNCA /
SYNCB
These signals can initiate an analog-to-digital conversion
process.
I