The MCF52223 is a member of the ColdFire® family of
reduced instruction set computing (RISC) microprocessors.
This document provides an overview of the 32-bit MCF52223
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
• Universal Serial Bus On-The-Go (USBOTG)
• USB Transceiver
• 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 capture/output compare timers with
DMA support (DTIM)
• Four-channel general-purpose timer (GPT) capable of
input capture/output compare, pulse width modulation
(PWM), and pulse accumulation
The full debug/trace interface is available only on the 100-pin packages. A reduced debug interface is
bonded on smaller packages.
Freescale Semiconductor3
1
MCF52223 ColdFire Microcontroller, Rev. 2
••
••
••
••
81 MAPBGA
81 MAPBGA
100 LQFP
MCF52223 Family Configurations
Arbiter
Interrupt
Controller
UART
0
QSPI
UART
1
UART
2
I2C
DTIM0DTIM1DTIM2DTIM
3
V2 ColdFire CPU
IFPOEPMAC
4 CH DMA
MUX
JTAG
TAP
To/From PADI
32 Kbytes
SRAM
(4K×16)×4
256 Kbytes
Flash
(32K×16)×4
PORTS
(GPIO)
CIM
RSTI
RSTO
UTXDn
URXDn
U
RTSn
DTINn/DTOUTn
JTAG_EN
ADCAN[7:0]
V
RHVRL
PLL OCO
CLKGEN
Edge
Port
USB OTG
EXTALXTALCLKOUT
PIT0PIT1GPTPWM
To/From Interrupt Controller
U
CTSn
PMM
V
STBY
PADI – Pin Muxing
EzPort
EzPCS
CLKMOD0 CLKMOD1
QSPI_CLK,
QSPI_CSn
PWMn
QSPI_DIN,
QSPI_DOUT
GPTn
EzPCK
EzPD
EzPQ
SWT
1.1Block Diagram
Figure 1 shows a top-level block diagram of the MCF52223. Package options for this family are described later in this
document.
Figure 1. MCF52223 Block Diagram
1.2Features
This document contains information on a new product under development. Freescale reserves the right to change or discontinue
this product without notice. Specifications and information herein are subject to change without notice.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor4
1.2.1Feature Overview
The MCF52223 family includes the following features:
— Interrupt control logic with maskable interrupts
— 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
— Error-detection capabilities
— Modem support includes request-to-send (RTS) and clear-to-send (CTS) lines for two UARTs
— Transmit and receive FIFO buffers
2
•I
C module
— Interchip bus interface for EEPROMs, LCD controllers, A/D converters, and keypads
— Fully compatible with industry-standard I
— Master and slave modes support multiple masters
2
C bus
MCF52223 Family Configurations
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor5
MCF52223 Family Configurations
— Automatic interrupt generation with programmable level
•Queued serial peripheral interface (QSPI)
— Full-duplex, three-wire synchronous 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-programmed 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 limit
— Unused analog channels can be used as digital I/O
•Four 32-bit timers with 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 programmable trigger edge on input pin
— Output compare with programmable mode for the output pin
— Free run and restart modes
— Maskable interrupts on input capture or output compare
— DMA trigger capability on input 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 modulator (PWM) 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 resolution
— 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.
— Programmable center or left aligned outputs on individual 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
•Real-Time Clock (RTC)
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor6
MCF52223 Family Configurations
— Maintains system time-of-day clock
— Provides stopwatch and alarm interrupt functions
•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 relaxation 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 oscillator or relaxation oscillator
— Low power modes supported
n
—2
(n ≤ 0 ≤ 15) low-power divider for extremely low frequency operation
•Interrupt controller
— Uniquely programmable vectors for all interrupt sources
— Fully programmable level and priority for all peripheral interrupt sources
— Seven external interrupt signals with fixed level and priority
— Unique vector number for each interrupt source
— Ability to mask any individual interrupt source or all interrupt sources (global mask-all)
— Support for hardware 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 capability, 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)
— System configuration during reset
— Selects one of six clock modes
— Configures output pad drive strength
— Unique part identification number and part revision number
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor7
MCF52223 Family Configurations
•General purpose I/O interface
— Up to 56 bits of general purpose I/O
— Bit manipulation supported via set/clear functions
— Programmable drive strengths
— Unused peripheral pins may be used as extra GPIO
•JTAG support for system level board testing
1.2.2V2 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 instructions to assist in bit processing. Additionally, the MCF52223 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.2.3Integrated 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 processor’s supervisor mode programming model. The breakpoint
registers can be configured to generate triggers by combining the address, data, and PC conditions 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 MCF52223 implements revision B+ of the ColdFire Debug Architecture.
The MCF52223’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 PSTCLK output provide execution status, captured operand data, and branch target addresses defining
processor activity at the CPU’s clock rate. The MCF52223 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.
1.2.4JTAG
The MCF52223 supports circuit board test strategies based on the Test Technology Committee of IEEE and the Joint Test Action
Group (JTAG). The test logic includes a test access port (TAP) consisting of a 16-state controller, an instruction register, and
three test registers (a 1-bit bypass register, a 112-bit boundary-scan register, and a 32-bit ID register). The boundary scan register
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor8
MCF52223 Family Configurations
links the device’s pins into one shift register. Test logic, implemented using static logic design, is independent of the device
system logic.
The MCF52223 implementation can:
•Perform boundary-scan operations to test circuit board electrical continuity
•Sample MCF52223 system pins during operation and transparently shift out the result in the boundary scan register
•Bypass the MCF52223 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.2.5On-Chip Memories
1.2.5.1SRAM
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.2.5.2Flash Memory
The ColdFire flash module (CFM) is a non-volatile memory (NVM) module that connects to the processor’s high-speed local
bus. The CFM is constructed with four banks of 32-Kbyte×16-bit flash memory arrays to generate 256 Kbytes of 32-bit flash
memory. These electrically erasable and programmable arrays serve as non-volatile 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.2.6Power Management
The MCF52223 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.
1.2.7USB On-The-Go Controller
The MCF52223 includes a Universal Serial Bus On-The-Go (USB OTG) dual-mode controller. USB is a popular standard for
connecting peripherals and portable consumer electronic devices such as digital cameras and handheld computers to host PCs.
The OTG supplement to the USB specification extends USB to peer-to-peer application, enabling devices to connect directly
to each other without the need for a PC. The dual-mode controller on the MCF52223 can act as a USB OTG host and as a USB
device. It also supports full-speed and low-speed modes.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor9
MCF52223 Family Configurations
1.2.8UARTs
The MCF52223 has three full-duplex UARTs that function 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 UART is multiplexed with other digital
I/O functions.
1.2.9I2C 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.2.10QSPI
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.2.11Fast 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 stopped.
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 inputs 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 the limit registers) or at several different zero crossing conditions.
1.2.12DMA Timers (DTIM0–DTIM3)
There are four independent, DMA transfer capable 32-bit timers (DTIM0, DTIM1, DTIM2, and DTIM3) on the MCF52223.
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 (output) compare mode.
Timer events may optionally cause interrupt requests or DMA transfers.
1.2.13General 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 allow simultaneous input waveform measurements and output waveform
generation. The input capture function can capture the time of a selected transition edge. The output compare function can
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor10
MCF52223 Family Configurations
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.2.14Periodic Interrupt Timers (PIT0 and PIT1)
The two periodic interrupt timers (PIT0 and PIT1) are 16-bit timers that provide interrupts at regular intervals 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.2.15Real-Time Clock (RTC)
The Real-Time Clock (RTC) module maintains the system (time-of-day) clock and provides stopwatch, alarm, and interrupt
functions. It includes full clock features: seconds, minutes, hours, days and supports a host of time-of-day interrupt functions
along with an alarm interrupt.
1.2.16Pulse-Width Modulation (PWM) Timers
The MCF52223 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 programmable polarity, 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.2.17Software Watchdog Timer
The watchdog timer is a 32-bit timer that facilitates recovery from runaway code. The watchdog counter is a free-running
down-counter that generates a reset on underflow. To prevent a reset, software must periodically restart the countdown.
1.2.18Phase-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 oscillator have their own power supply inputs: VDDPLL and VSSPLL. All other circuits are
powered by the normal supply pins, VDD and VSS.
1.2.19Interrupt Controller (INTC)
The MCF52223 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.2.20DMA 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.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor11
MCF52223 Family Configurations
1.2.21Reset
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.2.22GPIO
Nearly all pins on the MCF52223 have general purpose I/O capability and are grouped into 8-bit ports. Some ports do not use
all eight bits. Each port has registers that configure, monitor, and control the port pins.
1.2.23Part 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.
Part Number Summary
Part NumberFlash / SRAMKey FeaturesPackageSpeed
2
MCF52221128 Kbytes / 16 Kbytes3 UARTs, I
USBOTG, 16-/32-bit/PWM Timers
MCF52223256 Kbytes / 32 Kbytes3 UARTs, I
USBOTG, 16-/32-bit/PWM Timers
C, QSPI, A/D, DMA,
2
C, QSPI, A/D, DMA,
64 LQFP
81 MAPBGA
81 MAPBGA
100 LQFP
66, 80 MHz
66, 80 MHz
Figure 2 shows the pinout configuration for the 100 LQFP.
Table 2. Pin Functions by Primary and Alternate Purpose (continued)
Pin
Group
Primary
Function
Secondary
Function
Ter tia r y
Function
Quaternary
Function
Drive
Strength /
Control
1
Slew Rate /
Control
1
Pull-up /
Pull-down
2
100 LQFP
Pin on
Pin on 81
MAPBGA
Pin on 64
LQFP/QFN
UART 0UCTS0—USB_VBUSEGPIOPDSR[11]PSRR[11]—6C14
URTS0
—USB_VBUSDGPIOPDSR[10]PSRR[10]—9D37
URXD0—USB_RCVGPIOPDSR[9]PSRR[9]—7D15
UTXD0—USB_SUSPE
GPIOPDSR[8]PSRR[8]—8D26
ND
UART 1UCTS1
MCF52223 ColdFire Microcontroller, Rev. 2
URTS1
URXD1—USB_OE
SYNCAURXD2GPIOPDSR[15]PSRR[15]—98C361
SYNCBUTXD2GPIOPDSR[14]PSRR[14]—4B12
GPIOPDSR[13]PSRR[13]—100B263
UTXD1—USB_SPEEDGPIOPDSR[12]PSRR[12]—99A262
UART 2UCTS2—USB_VBUSCHGGPIOPDSR[27]PSRR[27]—27——
URTS2
—USB_VBUSDISGPIOPDSR[26]PSRR[26]—30——
URXD2—USB_DATAGPIOPDSR[25]PSRR[25]—28——
UTXD2—USB_SE0GPIOPDSR[24]PSRR[24]—29——
VSTBYVSTBY———N/AN/A—55F837
USBVDDUSB———N/AN/A—62D843
VSSUSB———N/AN/A—59F740
USB_DM———N/AN/A—61D942
USB_DP———N/AN/A—60E941
VDDVDD———N/AN/A—1,2,14,22,
D5,E3–E7, F51,10,20,39,5
23,34,41,
57,68,81,93
VSSVSS———N/AN/A—3,15,24,25,3
5,42,56,
A1,A9,D4,D
6,F4,F6,J1
11,21,38,
53,64
67,75,82,92
1
The 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.
2
All signals have a pull-up in GPIO mode.
MCF52223 Family Configurations
2
3
These signals are multiplexed on other pins.
4
For primary and GPIO functions only.
5
Only when JTAG mode is enabled.
6
CLKMOD0 and CLKMOD1 have internal pull-down resistors; however, the use of external resistors is very strongly recommended.
7
When these pins are configured for USB signals, they should use the USB transceiver’s internal pull-up/pull-down resistors (see the description of the
MCF52223 Family Configurations
OTG_CTRL register). If these pins are not configured for USB signals, each pin should be pulled down externally using a 10 kΩ resistor.
8
For secondary and GPIO functions only.
9
RSTI 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.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor20
1.3Reset Signals
Table 3 describes signals used to reset the chip or as a reset indication.
Table 3. Reset Signals
Signal NameAbbreviationFunctionI/O
MCF52223 Family Configurations
Reset InRSTI
Reset OutRSTO
Primary reset input to the device. Asserting RSTI for at least 8 CPU
clock cycles immediately resets the CPU and peripherals.
Driven low for 1024 CPU clocks after the reset source has deasserted.O
1.4PLL and Clock Signals
Table 4 describes signals used to support the on-chip clock generation circuitry.
Table 4. PLL and Clock Signals
Signal NameAbbreviationFunctionI/O
External Clock InEXTALCrystal oscillator or external clock input except when the on-chip
relaxation oscillator is used.
CrystalXTALCrystal oscillator output except when CLKMOD1=1, then sampled as
part of the clock mode selection mechanism.
Clock OutCLKOUTThis output signal reflects the internal system clock.O
1.5Mode Selection
Table 5 describes signals used in mode selection; Table 6 describes the particular clocking modes.
Table 5. Mode Selection Signals
Signal NameAbbreviationFunctionI/O
I
I
O
Clock Mode SelectionCLKMOD[1:0] Selects the clock boot mode.I
Reset ConfigurationRCONThe 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.
TestTESTReserved for factory testing only and in normal modes of operation
should be connected to VSS to prevent unintentional activation of
test functions.
Table 6. Clocking Modes
CLKMOD[1:0]XTALConfigure the clock mode.
000PLL disabled, clock driven by external oscillator
001PLL disabled, clock driven by on-chip oscillator
01N/APLL disabled, clock driven by crystal
100PLL in normal mode, clock driven by external oscillator
101PLL in normal mode, clock driven by on-chip oscillator
11N/APLL in normal mode, clock driven by crystal
MCF52223 ColdFire Microcontroller, Rev. 2
I
Freescale Semiconductor21
MCF52223 Family Configurations
1.6External Interrupt Signals
Table 7 describes the external interrupt signals.
Table 7. External Interrupt Signals
Signal NameAbbreviationFunctionI/O
External InterruptsIRQ
[7:1]External interrupt sources. I
1.7Queued Serial Peripheral Interface (QSPI)
Table 8 describes the QSPI signals.
Table 8. Queued Serial Peripheral Interface (QSPI) Signals
Signal NameAbbreviationFunctionI/O
QSPI Synchronous
Serial Output
QSPI Synchronous
Serial Data Input
QSPI Serial ClockQSPI_CLKProvides the serial clock from the QSPI. The polarity and phase of
Synchronous Peripheral
Chip Selects
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.
QSPI_DINProvides the serial data to the QSPI and can be programmed to be
sampled on the rising or falling edge of QSPI_CLK.
QSPI_CLK are programmable.
QSPI_CS[3:0] QSPI peripheral chip select; can be programmed to be active high or
low.
1.8USB On-the-Go
This device is compliant with industry standard USB 2.0 specification.
1.9I2C I/O Signals
O
I
O
O
Table 9 describes the I2C serial interface module signals.
Table 9. I2C I/O Signals
Signal NameAbbreviationFunctionI/O
Serial ClockSCLOpen-drain clock signal for the for the I
In master mode, this clock is driven by the I
is in slave mode, this clock becomes the clock input.
Serial DataSDAOpen-drain signal that serves as the data input/output for the I
interface.
MCF52223 ColdFire Microcontroller, Rev. 2
2
C interface. When the bus is
2
C module; when the bus
2
C
Freescale Semiconductor22
I/O
I/O
1.10UART Module Signals
Table 10 describes the UART module signals.
Table 10. UART Module Signals
Signal NameAbbreviationFunctionI/O
MCF52223 Family Configurations
Transmit Serial Data
Output
Receive Serial Data
Input
Clear-to-SendUCTS
Request-to-SendURTS
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.
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.
nIndication to the UART modules that they can begin data
transmission.
nAutomatic 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.
1.11DMA Timer Signals
Table 11 describes the signals of the four DMA timer modules.
Table 11. DMA Timer Signals
Signal NameAbbreviationFunctionI/O
DMA Timer InputDTINEvent input to the DMA timer modules.I
DMA Timer OutputDTOUTProgrammable output from the DMA timer modules.O
O
I
I
O
1.12ADC Signals
Table 12 describes the signals of the Analog-to-Digital Converter.
Table 12. ADC Signals
Signal NameAbbreviationFunctionI/O
Analog InputsAN[7:0]Inputs to the analog-to-digital converter.I
Analog ReferenceV
Analog SupplyV
ADC Sync InputsSYNCA /
RH
V
RL
DDA
V
SSA
SYNCB
MCF52223 ColdFire Microcontroller, Rev. 2
Reference voltage high and low inputs.I
Isolate the ADC circuitry from power supply noise.—
These signals can initiate an analog-to-digital conversion
process.
I
—
I
Freescale Semiconductor23
MCF52223 Family Configurations
1.13General Purpose Timer Signals
Table 13 describes the general purpose timer signals.
Table 13. GPT Signals
Signal NameAbbreviationFunctionI/O
General Purpose Timer
Input/Output
GPT[3:0]Inputs to or outputs from the general purpose timer module.I/O
1.14Pulse Width Modulator Signals
Table 14 describes the PWM signals.
Table 14. PWM Signals
Signal NameAbbreviationFunctionI/O
PWM Output ChannelsPWM[7:0]Pulse width modulated output for PWM channels.O
1.15Debug Support Signals
These signals are used as the interface to the on-chip JTAG controller and the BDM logic.
Table 15. Debug Support Signals
Signal NameAbbreviationFunctionI/O
JTAG EnableJTAG_ENSelect between debug module and JTAG signals at reset.I
Test ResetTRSTThis active-low signal is used to initialize the JTAG logic
asynchronously.
Test ClockTCLKUsed to synchronize the JTAG logic.I
Test Mode SelectTMSUsed to sequence the JTAG state machine. TMS is sampled on the
rising edge of TCLK.
I
I
Test Data InputTDISerial input for test instructions and data. TDI is sampled on the rising
edge of TCLK.
Test Data OutputTDOSerial output for test instructions and data. TDO is tri-stateable and is
actively driven in the shift-IR and shift-DR controller states. TDO
changes on the falling edge of TCLK.
Development Serial
Clock
BreakpointBKPT
DSCLKDevelopment Serial Clock - Internally synchronized input. (The logic
level on DSCLK is validated if it has the same value on two
consecutive rising bus clock edges.) Clocks the serial communication
port to the debug module during packet transfers. Maximum frequency
is PSTCLK/5. At the synchronized rising edge of DSCLK, the data
input on DSI is sampled and DSO changes state.
Breakpoint - Input used to request a manual breakpoint. Assertion of
puts the processor into a halted state after the current
BKPT
instruction completes. Halt status is reflected on processor
status/debug data signals (PST[3:0] and PSTDDATA[7:0]) as the
value 0xF. If CSR[BKD] is set (disabling normal BKPT
asserting BKPT
processor.
MCF52223 ColdFire Microcontroller, Rev. 2
generates a debug interrupt exception in the
functionality),
Freescale Semiconductor24
I
O
I
I
MCF52223 Family Configurations
Table 15. Debug Support Signals (continued)
Signal NameAbbreviationFunctionI/O
Development Serial
Input
Development Serial
Output
Debug DataDDATA[3:0]Display captured processor data and breakpoint status. The CLKOUT
Processor Status ClockPSTCLKProcessor Status Clock - Delayed version of the processor clock. Its
Processor Status
Outputs
All Processor Status
Outputs
DSIDevelopment Serial Input - Internally synchronized input that provides
data input for the serial communication port to the debug module, after
the DSCLK has been seen as high (logic 1).
DSODevelopment Serial Output - Provides serial output communication for
debug module responses. DSO is registered internally. The output is
delayed from the validation of DSCLK high.
signal can be used by the development system to know when to
sample DDATA[3:0].
rising edge appears in the center of valid PST and DDATA output.
PSTCLK indicates when the development system should sample PST
and DDATA values.
If real-time trace is not used, setting CSR[PCD] keeps PSTCLK, and
PST and DDATA outputs from toggling without disabling triggers.
Non-quiescent operation can be reenabled by clearing CSR[PCD],
although the external development systems must resynchronize with
the PST and DDATA outputs.
PSTCLK starts clocking only when the first non-zero PST value (0xC,
0xD, or 0xF) occurs during system reset exception processing.
PST[3:0]Indicate core status. Debug mode timing is synchronous with the
processor clock; status is unrelated to the current bus transfer. The
CLKOUT signal can be used by the development system to know
when to sample PST[3:0].
ALLPSTLogical AND of PST[3:0]. The CLKOUT signal can be used by the
development system to know when to sample ALLPST.
I
O
O
O
O
O
1.16EzPort Signal Descriptions
Table contains a list of EzPort external signals.
Table 16. EzPort Signal Descriptions
Signal NameAbbreviationFunctionI/O
EzPort ClockEZPCKShift clock for EzPort transfers.I
EzPort Chip SelectEZPCSChip select for signalling the start and end of
EzPort Serial Data InEZPDEZPD is sampled on the rising edge of
EzPort Serial Data OutEZPQEZPQ transitions on the falling edge of
MCF52223 ColdFire Microcontroller, Rev. 2
I
serial transfers.
I
EZPCK.
O
EZPCK.
Freescale Semiconductor25
Electrical Characteristics
1.17Power and Ground Pins
The pins described in Table 17 provide system power and ground to the chip. Multiple pins are provided for adequate current
capability. All power supply pins must have adequate bypass capacitance for high-frequency noise suppression.
Table 17. Power and Ground Pins
Signal NameAbbreviationFunction
PLL Analog SupplyVDDPLL,
VSSPLL
USB Power SupplyV
USB Ground SupplyV
Positive SupplyVDDThese pins supply positive power to the core logic.
GroundVSSThis pin is the negative supply (ground) to the chip.
USBThis pin supplies power to the USB Module.
DD
USBThis pin is the negative (ground) supply pin for the USB Module.
SS
Dedicated power supply signals to isolate the sensitive PLL analog
circuitry from the normal levels of noise present on the digital power
supply.
2Electrical Characteristics
This section contains electrical specification tables and reference timing diagrams for the MCF52223 microcontroller unit,
including detailed information on power considerations, DC/AC electrical characteristics, and AC timing specifications.
NOTE
The parameters specified in this data sheet supersede any values found in the module
specifications.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor26
2.1Maximum Ratings
Table 18. Absolute Maximum Ratings
RatingSymbolValueUnit
1, 2
Electrical Characteristics
Supply voltageV
Clock synthesizer supply voltageV
DDPLL
RAM standby supply voltageV
USB standby supply voltageV
Digital input voltage
3
EXTAL pin voltageV
DDUSB
EXTAL
XTAL pin voltageV
Instantaneous maximum current
Single pin limit (applies to all pins)
4, 5
Operating temperature range (packaged)T
DD
STBY
V
IN
XTAL
I
DD
A
–0.3 to +4.0V
–0.3 to +4.0V
–0.3 to +4.0V
–0.3 to +4.0V
–0.3 to +4.0V
0 to 3.3 V
0 to 3.3V
25mA
–40 to 85°C
(TL - TH)
Storage temperature rangeT
1
Functional operating conditions are given in DC Electrical Specifications. Absolute Maximum Ratings
stg
–65 to 150°C
are stress ratings only, and functional operation at the maxima is not guaranteed. Stress beyond
those listed may affect device reliability or cause permanent damage to the device.
2
This device contains circuitry protecting against damage due to high static voltage or electrical fields;
however, it is advised that normal precautions be taken to avoid application of any voltages higher
than maximum-rated voltages to this high-impedance circuit. Reliability of operation is enhanced if
unused inputs are tied to an appropriate logic voltage level (V
3
Input must be current limited to the IDD value specified. To determine the value of the required
or VDD).
SS
current-limiting resistor, calculate resistance values for positive and negative clamp voltages, then
use the larger of the two values.
4
All functional non-supply pins are internally clamped to VSS and VDD.
5
The power supply must maintain regulation within operating VDD range during instantaneous and
operating maximum current conditions. If positive injection current (Vin > VDD) is greater than IDD, the
injection current may flow out of V
and could result in the external power supply going out of
DD
regulation. Ensure that the external VDD load shunts current greater than maximum injection current.
This is the greatest risk when the MCU is not consuming power (e.g., no clock).
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor27
Electrical Characteristics
2.2Current Consumption
Table 19, Table 20, and Figure 5 show the typical current consumption in low-power modes.
Table 19. Current Consumption in Low-Power Mode, Code From Flash Memory
All values are measured with a 3.30V power supply. Tests performed at room temperature.
2
Refer to the Power Management chapter in the MCF52223 Reference Manual for more information on
low-power modes.
3
CLKOUT, PST/DDATA signals, and all peripheral clocks except UART0 and CFM off before entering
low-power mode. CLKOUT is disabled.
4
See the description of the Low-Power Control Register (LPCR) in the MCF52223 Reference Manual for
more information on stop modes 0–3.
5
Results are identical to STOP 00 for typical values because they only differ by CLKOUT power
consumption. CLKOUT is already disabled in this instance prior to entering low-power mode.
4
4
4,5
5
0.070mA
2.9
3.63.966.7
3.63.966.7
1,2,3
Table 20. Current Consumption in Low-Power Mode, Code From SRAM
All values are measured with a 3.30V power supply. Tests performed at room temperature.
2
Refer to the Power Management chapter in the MCF52223 Reference Manual for more information on
low-power modes.
3
CLKOUT, PST/DDATA signals, and all peripheral clocks except UART0 off before entering low-power
mode. CLKOUT is disabled. Code executed from SRAM with flash memory shut off by writing 0x0 to the
FLASHBAR register.
4
See the description of the Low-Power Control Register (LPCR) in the MCF52223 Reference Manual for
more information on stop modes 0–3.
5
Results are identical to STOP 00 for typical values because they only differ by CLKOUT power
consumption. CLKOUT is already disabled in this instance prior to entering low-power mode.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor28
Figure 5. Plot of Current Consumption in Low-Power Modes
Table 21. Typical Active Current Consumption Specifications
Electrical Characteristics
CharacteristicSymbol
8 MHz core & I/OI
DD
Typica l1
Active
(SRAM)
Typical
1
Active
(Flash)
81118mA
Peak
Active
(Flash)
2
16 MHz core & I/O111933
64 MHz core & I/O354482
80 MHz core & I/O435298
RAM standby supply current
• Normal operation: V
• Transient condition: V
• Standby operation: V
DD
STBY
DD
> V
STBY
- 0.3 V > V
< V
SS
- 0.3 V
+ 0.5 V
DD
> V
SS
+ 0.5 V
Analog supply current
• Normal operation
• Standby mode
• Powered down
USB supply currentI
PLL supply currentI
1
Tested at room temperature with CPU polling a status register. All clocks were off except the UART and CFM (when
I
STBY
I
DDA
DDUSB
DDPLL
—
—
—
(see note 3)
2
—
—
0.4
TBD
16
13
TBD
0
—2mA
—6
(see note 4)
running from flash memory).
2
Peak current measured with all modules active, CPU polling a status register, and default drive strength with matching
load.
3
Tested using Auto Power Down (APD), which powers down the ADC between conversions; ADC running at 4 MHz in
Once Parallel mode with a sample rate of 3 kHz.
4
Tested with the PLL MFD set to 7 (max value). Setting the MFD to a lower value results in lower current consumption.
Unit
μA
mA
mA
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor29
Electrical Characteristics
2.3Thermal Characteristics
Table 22 lists thermal resistance values.
Table 22. Thermal Characteristics
CharacteristicSymbolValueUnit
100 LQFPJunction to ambient, natural convectionSingle layer board (1s)θ
Junction to ambient, natural convectionFour layer board (2s2p)θ
Junction to ambient, (@200 ft/min)Single layer board (1s)θ
Junction to ambient, (@200 ft/min)Four layer board (2s2p)θ
Junction to board—θ
Junction to case—θ
Junction to top of packageNatural convectionΨ
Maximum operating junction temperature—T
81 MAPBGA Junction to ambient, natural convectionSingle layer board (1s)θ
Junction to ambient, natural convectionFour layer board (2s2p)θ
Junction to ambient, (@200 ft/min)Single layer board (1s)θ
Junction to ambient, (@200 ft/min)Four layer board (2s2p)θ
Junction to board—θ
Junction to case—θ
Junction to top of packageNatural convectionΨ
Maximum operating junction temperature—T
64 LQFPJunction to ambient, natural convectionSingle layer board (1s)θ
Junction to ambient, natural convectionFour layer board (2s2p)θ
Junction to ambient (@200 ft/min)Single layer board (1s)θ
Junction to ambient (@200 ft/min)Four layer board (2s2p)θ
Junction to board—θ
Junction to case—θ
Junction to top of packageNatural convectionΨ
Maximum operating junction temperature—T
1
θJA and Ψjt parameters are simulated in conformance with EIA/JESD Standard 51-2 for natural convection. Freescale
JA
JA
JMA
JMA
JB
JC
jt
j
JA
JA
JMA
JMA
JB
JC
jt
j
JA
JA
JMA
JMA
JB
JC
jt
j
recommends the use of θJA and power dissipation specifications in the system design to prevent device junction
temperatures from exceeding the rated specification. System designers should be aware that device junction temperatures
can be significantly influenced by board layout and surrounding devices. Conformance to the device junction temperature
specification can be verified by physical measurement in the customer’s system using the Ψ
parameter, the device power
jt
dissipation, and the method described in EIA/JESD Standard 51-2.
2
Per JEDEC JESD51-2 with the single-layer board (JESD51-3) horizontal.
3
Per JEDEC JESD51-6 with the board JESD51-7) horizontal.
4
Thermal resistance between the die and the printed circuit board in conformance with JEDEC JESD51-8. Board
temperature is measured on the top surface of the board near the package.
5
Thermal resistance between the die and the case top surface as measured by the cold plate method (MIL SPEC-883
Method 1012.1).
53
39
42
33
61
35
50
31
62
43
50
36
1,2
25
9
2
105
20
12
2
105
26
9
2
105
1,3
1,3
1,3
4
5
6
1,2
2,3
2,3
2,3
4
5
6
1,2
1,3
1,3
1,3
4
5
6
°C / W
°C / W
°C / W
°C / W
°C / W
°C / W
°C / W
o
C
°C / W
°C / W
°C / W
°C / W
°C / W
°C / W
°C / W
o
C
°C / W
°C / W
°C / W
°C / W
°C / W
°C / W
°C / W
o
C
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor30
Electrical Characteristics
TJTAPDΘ
JMA
×()+=
PDKTJ273°C+()÷=
6
Thermal characterization parameter indicating the temperature difference between package top and the junction
temperature per JEDEC JESD51-2. When Greek letters are not available, the thermal characterization parameter is written
in conformance with Psi-JT.
= power dissipation on input and output pins — user determined, watts
< P
I/O
and can be ignored. An approximate relationship between PD and TJ (if P
INT
(2)
Solving equations 1 and 2 for K gives:
2
K = P
× (TA + 273 °C) + Θ
D
JMA
× P
(3)
D
where K is a constant pertaining to the particular part. K can be determined from equation (3) by measuring P
for a known T
any value of T
. Using this value of K, the values of PD and TJ can be obtained by solving equations (1) and (2) iteratively for
A
.
A
2.4Flash Memory Characteristics
The flash memory characteristics are shown in Table 23 and Table 24.
Table 23. SGFM Flash Program and Erase Characteristics
(V
= 2.7 to 3.6 V)
DDF
is neglected) is:
I/O
(at equilibrium)
D
ParameterSymbolMinTypMaxUnit
System clock (read only)f
System clock (program/erase)
1
Depending on packaging; see Ta bl e .
2
Refer to the flash memory section for more information
2
sys(R)
f
sys(P/E)
0—66.67 or 80
0.15—66.67 or 80
1
MHz
1
MHz
Table 24. SGFM Flash Module Life Characteristics
(V
= 2.7 to 3.6 V)
DDF
ParameterSymbolValueUnit
Maximum number of guaranteed program/erase cycles
1
before failure
P/E10,000
Data retention at average operating temperature of 85°CRetention10Years
1
A program/erase cycle is defined as switching the bits from 1 → 0 → 1.
2
Reprogramming of a flash memory array block prior to erase is not required.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor31
2
Cycles
Electrical Characteristics
2.5ESD Protection
Table 25. ESD Protection Characteristics1,
2
Characteristics
SymbolValueUnits
ESD target for Human Body ModelHBM2000V
ESD target for Machine ModelMM200V
HBM circuit descriptionR
series
1500Ω
C100pF
MM circuit description R
series
0Ω
C200pF
Number of pulses per pin (HBM)
• Positive pulses
• Negative pulses
Number of pulses per pin (MM)
• Positive pulses
• Negative pulses
—
—
—
—
1
1
3
3
—
—
Interval of pulses—1sec
1
All ESD testing is in conformity with CDF-AEC-Q100 Stress Test Qualification for
Automotive Grade Integrated Circuits.
2
A device is defined as a failure if after exposure to ESD pulses the device no longer
meets the device specification requirements. Complete DC parametric and functional
testing is performed per applicable device specification at room temperature followed by
hot temperature, unless specified otherwise in the device specification.
2.6DC Electrical Specifications
CharacteristicSymbolMinMaxUnit
Supply voltageV
Standby voltageV
Input high voltageV
Input low voltageV
Input hysteresisV
Low-voltage detect trip voltage (VDD falling)V
Low-voltage detect hysteresis (VDD rising)V
Input leakage current
V
= VDD or VSS, digital pins
in
Output high voltage (all input/output and all output pins)
= –2.0 mA
I
OH
Output low voltage (all input/output and all output pins)
= 2.0mA
I
OL
Table 26. DC Electrical Specifications
DD
STBY
IH
IL
HYS
LV D
LV DH Y S
I
in
V
OH
V
OL
1
3.03.6V
3.03.6V
0.7 × V
DD
V
– 0.30.35 × V
SS
0.06 × V
DD
4.0V
DD
—mV
2.152.3V
60120mV
–1.01.0μA
V
– 0.5—V
DD
—0.5V
V
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor32
Electrical Characteristics
Table 26. DC Electrical Specifications (continued)
CharacteristicSymbolMinMaxUnit
Output high voltage (high drive)
= -5 mA
I
OH
Output low voltage (high drive)
= 5 mA
I
OL
Output high voltage (low drive)
= -2 mA
I
OH
Output low voltage (low drive)
= 2 mA
I
OL
Weak internal pull Up device current, tested at VIL Max.
Input Capacitance
3
2
V
V
V
V
I
APU
C
• All input-only pins
• All input/output (three-state) pins
1
Refer to Table 27 for additional PLL specifications.
2
Refer to Ta bl e 2 for pins having internal pull-up devices.
3
This parameter is characterized before qualification rather than 100% tested.
Loss of Reference Frequency is the reference frequency detected internally, which transitions the PLL into self clocked mode.
4
Self clocked mode frequency is the frequency at which the PLL operates when the reference frequency falls below f
oco
–1.51.5% f
–0.750.75% f
—
—
10
.01
% f
7.848.16MHz
LOR
default MFD/RFD settings.
5
This parameter is characterized before qualification rather than 100% tested.
6
Proper PC board layout procedures must be followed to achieve specifications.
7
This specification applies to the period required for the PLL to relock after changing the MFD frequency control bits in the
synthesizer control register (SYNCR).
8
Jitter is the average deviation from the programmed frequency measured over the specified interval at maximum f
sys
.
Measurements are made with the device powered by filtered supplies and clocked by a stable external clock signal. Noise
injected into the PLL circuitry via V
DDPLL
and V
and variation in crystal oscillator frequency increase the C
SSPLL
percentage
jitter
for a given interval.
9
Based on slow system clock of 40 MHz measured at f
sys
max.
2.8General Purpose I/O Timing
ref
ref
sys
with
GPIO can be configured for certain pins of the QSPI, DDR Control, timer, UART, Interrupt and USB interfaces. When in
GPIO mode, the timing specification for these pins is given in Table 28 and Figure 6.
The GPIO timing is met under the following load test conditions:
•50pF/50Ω for high drive
•25pF/25Ω for low drive
Table 28. GPIO Timing
NUMCharacteristicSymbolMinMaxUnit
G1CLKOUT High to GPIO Output Validt
G2CLKOUT High to GPIO Output Invalidt
G3GPIO Input Valid to CLKOUT Hight
G4CLKOUT High to GPIO Input Invalidt
CHPOV
CHPOI
PVCH
CHPI
—10ns
1.5—ns
9—ns
1.5—ns
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor34
Electrical Characteristics
G1
CLKOUT
GPIO Outputs
G2
G3G4
GPIO Inputs
1R1
R2
CLKOUT
RSTI
RSTO
R3
R4R4
Figure 6. GPIO Timing
2.9Reset Timing
Table 29. Reset and Configuration Override Timing
(V
= 2.7 to 3.6 V, V
DD
SS
= 0 V, T
= TL to TH)
A
NUMCharacteristicSymbolMinMaxUnit
1
R1RSTI
R2CLKOUT High to RSTI
R3RSTI
R4CLKOUT High to RSTO Val i d t
1
All AC timing is shown with respect to 50% VDD levels unless otherwise noted.
2
During low power STOP, the synchronizers for the RSTI input are bypassed and RSTI is asserted asynchronously to the
system. Thus, RSTI
input valid to CLKOUT Hight
Input invalidt
input valid time
2
must be held a minimum of 100 ns.
RVCH
CHRI
t
RIVT
CHROV
9—ns
1.5—ns
5—t
—10ns
Figure 7. RSTI and Configuration Override Timing
CYC
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor35
Electrical Characteristics
2.10I2C Input/Output Timing Specifications
Table 30 lists specifications for the I2C input timing parameters shown in Figure 8.
Table 30. I2C Input Timing Specifications between I2C_SCL and I2C_SDA
NumCharacteristicMinMaxUnits
11Start condition hold time2 × t
I2Clock low period8 × t
I3SCL/SDA rise time (V
I4Data hold time0—ns
I5SCL/SDA fall time (VIH= 2.4 V to VIL= 0.5 V)—1ms
I6Clock high time4 × t
I7Data setup time0—ns
I8Start condition setup time (for repeated start condition only)2 × t
I9Stop condition setup time2 × t
Table 31 lists specifications for the I
1
2
3
Table 31. I2C Output Timing Specifications between I2C_SCL and I2C_SDA
NumCharacteristicMinMaxUnits
1
11
Start condition hold time6 × t
1
Clock low period10 × t
I2
2
I2C_SCL/I2C_SDA rise time
I3
= 0.5 V to VIH= 2.4 V)
(V
IL
1
I4
Data hold time7 × t
3
I5
I2C_SCL/I2C_SDA fall time
= 2.4 V to VIL= 0.5 V)
(V
IH
1
I6
Clock high time10 × t
1
Data setup time2 × t
I7
1
I8
Start condition setup time (for repeated start
condition only)
1
Stop condition setup time10 × t
I9
Output numbers depend on the value programmed into the IFDR; an IFDR programmed with the
maximum frequency (IFDR = 0x20) results in minimum output timings as shown in Ta bl e 3 1. The I2C
interface is designed to scale the actual data transition time to move it to the middle of the SCL low
period. The actual position is affected by the prescale and division values programmed into the IFDR;
however, the numbers given in Ta b l e 31 are minimum values.
Because SCL and SDA are open-collector-type outputs, which the processor can only actively drive
low, the time SCL or SDA take to reach a high level depends on external signal capacitance and pull-up
resistor values.
Specified at a nominal 50-pF load.
CYC
CYC
= 0.5 V to VIH= 2.4 V)—1ms
IL
CYC
CYC
CYC
2
C output timing parameters shown in Figure 8.
—ns
CYC
CYC
—ns
—ns
—ns
—ns
—ns
—ns
——µs
CYC
—ns
—3ns
—ns
—ns
—ns
—ns
20 × t
CYC
CYC
CYC
CYC
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor36
Figure 8 shows timing for the values in Table 30 and Table 31.
I2I6
I1I4
I7
I8I9
I5
I3
SCL
SDA
Electrical Characteristics
Figure 8. I
2
C Input/Output Timings
2.11Analog-to-Digital Converter (ADC) Parameters
Table 32 lists specifications for the analog-to-digital converter.
Table 32. ADC Parameters
NameCharacteristicMinTypicalMaxUnit
V
V
V
V
REFL
REFH
DDA
ADIN
Low reference voltageV
High reference voltageV
ADC analog supply voltage3.03.33.6V
Input voltagesV
RESResolution12—12Bits
INLIntegral non-linearity (full input signal range)
INLIntegral non-linearity (10% to 90% input signal range)
2
4
DNLDifferential non-linearity—–1 < DNL < +1<+1LSB
MonotonicityGUARANTEED
f
ADIC
R
t
ADPU
t
REC
t
ADC
t
ADS
C
X
I
ADI
I
VREFHVREFH
V
OFFSET
E
GAIN
V
OFFSET
ADC internal clock0.1—5.0MHz
Conversion rangeV
AD
ADC power-up time
5
Recovery from auto standby—01t
Conversion time—6—t
Sample time—1—t
Input capacitance—See Figure 9—pF
ADI
Input impedance—See Figure 9—W
IN
Input injection current7, per pin——3mA
current—0—m
Offset voltage internal reference—±8±15mV
Gain error (transfer path).9911.01—
Offset voltage external reference—±3TBDmV
SNRSignal-to-noise ratio—62 to 66—dB
1
SS
REFL
REFL
—V
—V
—V
REFH
DDA
REFH
V
V
V
—±2.5±3LSB
—±2.5±3LSB
REFL
—V
REFH
—613t
AIC
AIC
AIC
AIC
V
cycles
cycles
cycles
cycles
3
6
Freescale Semiconductor37
MCF52223 ColdFire Microcontroller, Rev. 2
Electrical Characteristics
1
2
3
Analog Input
4
S1
S2
S3
C1
C2
S/H
C1 = C2 = 1pF
(V
REFH
- V
REFL
)/ 2
125W ESD Resistor
8pF noise damping capacitor
1
(ADC Clock Rate) × (1.4×10
-12
)
Table 32. ADC Parameters1 (continued)
NameCharacteristicMinTypicalMaxUnit
THDTotal harmonic distortion—−75—dB
SFDRSpurious free dynamic range—67 to 70.3—dB
SINADSignal-to-noise plus distortion—61 to 63.9—dB
ENOBEffective number of bits9.110.6—Bits
1
All measurements are made at VDD = 3.3V, V
2
INL measured from VIN = V
3
LSB = Least Significant Bit
4
INL measured from VIN = 0.1V
5
Includes power-up of ADC and V
6
ADC clock cycles
7
Current that can be injected or sourced from an unselected ADC signal input without impacting the performance of the ADC
REFL
REFH
to VIN = V
to VIN = 0.9V
REF
REFH
= 3.3V, and V
REFH
REFH
REFL
= ground
2.12Equivalent Circuit for ADC Inputs
Figure 10-17 shows the ADC input circuit during sample and hold. S1 and S2 are always open/closed at the same time that S3
is closed/open. When S1/S2 are closed & S3 is open, one input of the sample and hold circuit moves to (V
REFH-VREFL
the other charges to the analog input voltage. When the switches are flipped, the charge on C1 and C2 are averaged via S3, with
the result that a single-ended analog input is switched to a differential voltage centered about (V
REFH-VREFL
)/2. The switches
switch on every cycle of the ADC clock (open one-half ADC clock, closed one-half ADC clock). There are additional
capacitances associated with the analog input pad, routing, etc., but these do not filter into the S/H output voltage, as S1 provides
isolation during the charge-sharing phase. One aspect of this circuit is that there is an on-going input current, which is a function
of the analog input voltage, V
and the ADC clock frequency.
REF
)/2, while
1. Parasitic capacitance due to package, pin-to-pin and pin-to-package base coupling; 1.8pF
2. Parasitic capacitance due to the chip bond pad, ESD protection devices and signal routing; 2.04pF
3. Equivalent resistance for the channel select mux; 100 Ωs
4. Sampling capacitor at the sample and hold circuit. Capacitor C1 is normally disconnected from the input and is only
connected to it at sampling time; 1.4pF
5. Equivalent input impedance, when the input is selected =
Figure 9. Equivalent Circuit for A/D Loading
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor38
2.13DMA Timers Timing Specifications
QSPI_CS[3:0]
QSPI_CLK
QSPI_DOUT
QS5
QS1
QSPI_DIN
QS3
QS4
QS2
Table 33 lists timer module AC timings.
Table 33. Timer Module AC Timing Specifications
Electrical Characteristics
NameCharacteristic
T1DTIN0 / DTIN1 / DTIN2 / DTIN3 cycle time3 × t
T2DTIN0 / DTIN1 / DTIN2 / DTIN3 pulse width1 × t
1
All timing references to CLKOUT are given to its rising edge.
1
MinMaxUnit
CYC
CYC
—ns
—ns
2.14QSPI Electrical Specifications
Table 34 lists QSPI timings.
Table 34. QSPI Modules AC Timing Specifications
NameCharacteristic MinMaxUnit
QS1QSPI_CS[3:0] to QSPI_CLK1510t
QS2 QSPI_CLK high to QSPI_DOUT valid—10ns
QS3 QSPI_CLK high to QSPI_DOUT invalid (Output hold)2—ns
QS4QSPI_DIN to QSPI_CLK (Input setup)9—ns
QS5QSPI_DIN to QSPI_CLK (Input hold)9—ns
The values in Table 34 correspond to Figure 10.
CYC
Figure 10. QSPI Timing
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor39
Electrical Characteristics
TCLK
V
IL
V
IH
J3J3
J4J4
J2
(input)
2.15JTAG and Boundary Scan Timing
Table 35. JTAG and Boundary Scan Timing
NumCharacteristics
J1TCLK frequency of operationf
J2TCLK cycle periodt
J3TCLK clock pulse widtht
J4TCLK rise and fall timest
J5Boundary scan input data setup time to TCLK riset
J6Boundary scan input data hold time after TCLK riset
J7TCLK low to boundary scan output data validt
J8TCLK low to boundary scan output high Zt
J9TMS, TDI input data setup time to TCLK rise t
J10TMS, TDI Input data hold time after TCLK rise t
J11TCLK low to TDO data validt
J12TCLK low to TDO high Zt
J13TRST
J14TRST
1
JTAG_EN is expected to be a static signal. Hence, it is not associated with any timing.
assert timet
setup time (negation) to TCLK hight
1
SymbolMinMaxUnit
JCYC
JCYC
JCW
JCRF
BSDST
BSDHT
BSDV
BSDZ
TAPBST
TAPBHT
TDODV
TDODZ
TRSTAT
TRSTST
DC1/4f
4 × t
CYC
—ns
sys/2
26—ns
03ns
4—ns
26—ns
033ns
033ns
4—ns
10—ns
026ns
08ns
100—ns
10—ns
MCF52223 ColdFire Microcontroller, Rev. 2
Figure 11. Test Clock Input Timing
Freescale Semiconductor40
Electrical Characteristics
Input Data Valid
Output Data Valid
Output Data Valid
TCLK
Data Inputs
Data Outputs
Data Outputs
Data Outputs
V
IL
V
IH
J5J6
J7
J8
J7
Input Data Valid
Output Data Valid
Output Data Valid
TCLK
TDI
TDO
TDO
TDO
TMS
V
IL
V
IH
J9J10
J11
J12
J11
TCLK
TRST
14
13
Figure 12. Boundary Scan (JTAG) Timing
Figure 13. Test Access Port Timing
Figure 14. TRST Timing
Freescale Semiconductor41
MCF52223 ColdFire Microcontroller, Rev. 2
Electrical Characteristics
CLKOUT
PST[3:0]
D2D1
DDATA[3:0]
2.16Debug AC Timing Specifications
Table 36 lists specifications for the debug AC timing parameters shown in Figure 16.
Table 36. Debug AC Timing Specification
NumCharacteristic
MinMax
D1PST, DDATA to CLKOUT setup4—ns
D2CLKOUT to PST, DDATA hold1.5—ns
D3
DSI-to-DSCLK setup1 × t
1
D4
DSCLK-to-DSO hold4 × t
D5DSCLK cycle time5 × t
D6BKPT
D7BKPT
input data setup time to CLKOUT rise 4—ns
input data hold time to CLKOUT rise 1.5 —ns
66/80 MHz
CYC
CYC
CYC
Units
—ns
—ns
—ns
D8CLKOUT high to BKPT
1
DSCLK and DSI are synchronized internally. D4 is measured from the synchronized DSCLK input relative to
high Z0.010.0ns
the rising edge of CLKOUT.
Figure 15 shows real-time trace timing for the values in Tab le 36.
Figure 15. Real-Time Trace AC Timing
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor42
Figure 16 shows BDM serial port AC timing for the values in Table 36.
DSI
DSO
CurrentNext
CLKOUT
PastCurrent
DSCLK
D3
D4
D5
Figure 16. BDM Serial Port AC Timing
Electrical Characteristics
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor43
Mechanical Outline Drawings
3Mechanical Outline Drawings
This section describes the physical properties of the MCF52223 and its derivatives.
3.164-pin LQFP Package
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor44
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor45
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor46
3.264 QFN Package
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor47
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor48
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor49
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor50
3.381 MAPBGA Package
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor51
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor52
3.4100-pin LQFP Package
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor53
Mechanical Outline Drawings
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor54
4Revision History
Table 37. Revision History
RevisionDescription
2 • Formatting, layout, spelling, and grammar corrections.
• Removed the “Preliminary” label.
• Added missing current consumption data (Section 2.2).
• Added revision history.
• Corrected signal names in block diagram to match those in the signal description table.
• Added an entry for standby voltage (V
• Deleted the PSTCLK cycle time row in the “Debug AC timing specifications” table.
• Changed the frequency above the “Min” and “Max” column headings in the “Debug AC timing
specifications” table (was 166 MHz, is 66/80 MHz).
• Added the following signals to the “Pin functions by primary and alternate purpose” table (alternates to
IRQ1-6, respectively): USB_ALT_CLK, USB_SESSVLD, USB_SESSEND, USB_PULLUP,
USB_VBUSVLD, and USB_ID.
• Changed the minimum value for SNR, THD, SFDR, and SINAD in the “ADC parameters” table (was
TBD, is “—”).
• Added values for I
• Added load test condition information to the “General Purpose I/O Timing” section.
• Synchronized the “Pin Functions by Primary and Alternate Purpose” table in this document and the
reference manual.
• Added a specification for V
• Added specifications for V
• Deleted entries for the nonexistent 64 QFN package from the “Thermal Resistances” table.
and IOL to the “DC electrical specifications” table.
OH
DDUSB
and V
LV D
STBY
to the “Absolute maximum ratings” table.
LV DH Y S
Revision History
) to the “DC electrical specifications” table.
to the “DC electrical specifications” table.
MCF52223 ColdFire Microcontroller, Rev. 2
Freescale Semiconductor55
How to Reach Us:
Home Page:
www.freescale.com
Web Support:
http://www.freescale.com/support
USA/Europe or Locations Not Listed:
Freescale Semiconductor, Inc.
Technical Information Center, EL516
2100 East Elliot Road
Tempe, Arizona 85284
+1-800-521-6274 or +1-480-768-2130
www.freescale.com/support
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
Japan
0120 191014 or +81 3 5437 9125
support.japan@freescale.com
Asia/Pacific:
Freescale Semiconductor Hong Kong Ltd.
Technical Information Center
2 Dai King Street
Tai Po Industrial Estate
Tai Po, N.T., Hong Kong
+800 2666 8080
support.asia@freescale.com
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
1-800-441-2447 or 303-675-2140
Fax: 303-675-2150
LDCForFreescaleSemiconductor@hibbertgroup.com
Information in this document is provided solely to enable system and software
implementers to use Freescale Semiconductor products. There are no express or
implied copyright licenses granted hereunder to design or fabricate any integrated
circuits or integrated circuits based on the information in this document.
Freescale Semiconductor reserves the right to make changes without further notice to
any products herein. Freescale Semiconductor makes no warranty, representation or
guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor assume any liability arising out of the application or use of any
product or circuit, and specifically disclaims any and all liability, including without
limitation consequential or incidental damages. “Typical” parameters that may be
provided in Freescale Semiconductor data sheets and/or specifications can and do vary
in different applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer application by
customer’s technical experts. Freescale Semiconductor does not convey any license
under its patent rights nor the rights of others. Freescale Semiconductor products are
not designed, intended, or authorized for use as components in systems intended for
surgical implant into the body, or other applications intended to support or sustain life,
or for any other application in which the failure of the Freescale Semiconductor product
could create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended or
unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and
its officers, employees, subsidiaries, affiliates, and distributors harmless against all
claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale
Semiconductor was negligent regarding the design or manufacture of the part.
RoHS-compliant and/or Pb-free versions of Freescale products have the functionality
and electrical characteristics as their non-RoHS-compliant and/or non-Pb-free
counterparts. For further information, see http://www.freescale.com or contact your
Freescale sales representative.
For information on Freescale’s Environmental Products program, go to