This addendum document describes corrections to the
MPC5510 Microcontroller Reference Manual, order
number MPC5510RM. For convenience, the addenda
items are grouped by revision. Please check our website
at http://www.freescale.com/powerarchitecture for the
latest updates.
The current version available of the MPC5510 Microcontroller Reference Manual is Revision 1.0.
Added a note just above “MPC5510 Signal Properties” table:
“Please note that analog input pins (ANx) are directly connected to the eQADC and that they are not routed
through the PCRx register; thus, changes in the PCR register does not affect these inputs.”
Updated the paragraph:
To optimize system power consumption, the MPC5510 supports system-level clock dividers, static clock
gating using peripheral-level module disable (MDIS) bits and a system-level halt mechanism. Figure 3-2
shows the device-level clock gating mechanism for the MPC5510. Figure 3-3 shows a more detailed
implementation of the MDIS and halt mechanism connections for a given peripheral. These features are
detailed in subsequent sections.
Added a new NOTE:
While combining DMA with peripheral modules (for example eSCI), the user has to use LPCLKDIVx = 0
(no divide) to ensure that the DMA.DONE (same as DMA ACK) is correctly acknowledged by the
peripheral. Otherwise, DMA.DONE may not be sampled correctly , leading to data loss. In the case of eSCI
peripheral, BERR flag will be set and the peripheral behavior will be unexpected if LPCLKDIV4 > 0.
Added a note:
SIU_HLT is not delayed by any pending interrupt for specific modules to be serviced. If any interrupt is
raised after the SIU_HLT request, it may cause the interrupt to hang. To avoid this, it is advised that all
interrupts are disabled before entering the SIU_HLT state and then, re-enabled once SIU_HLT is exited.
The result is that any interrupt will be flagged, but not triggered within its specific interrupt service routine.
Once the SIU_HLT has been enabled, any pending interrupt will be taken as normal. In the case of STOP
mode exit, an external interrupt may be required. In this case, the specific exit interrupt may be enabled,
but software must ensure the interrupt does not occur simultaneously with SIU_HLT being enabled.
Updated “The system clock source should be set to the 16 MHz IRC prior to ... ” to “The system cloc k source
needs be set to the 16 MHz IRC (with the default divide by 1 system clock configuration) prior to ...”.
Updated point 1. The updated text is as follows:
“If any reset request has negated and the device is still in the resulting reset, and then an external reset is
requested, both the original reset type and external reset status bits will be set. In this case, the device
started the reset sequence due to a non-external reset request but ended the reset sequence after an
external reset request.”
Updated figure note 3 of Figure 6-3, “Reset Status Register (SIU_RSR”. The updated text is as follows:
“The ERS bit is also set if the RESET pin is held low to extend the reset sequence.”
Aligned table 6-27 “LPCLKDIV Module Groups”, as mentioned below.
Section 24.1.1
“Block Diagram”
Section 24.3.2.3
“eSCI Data
Register
(ESCIx_DR)”
Added a figure note for peripheral clock in the “eSCI
Refer to Section 3.3, “ System Clock Architecture Block Diagram”.
Added a note:
eSCI transmission delay will depend on the actual Tx load into the Data Register referenced with the
internal clock, if the load occurs before 45% of a bit time has passed, the Tx load will be transmitted in less
than a bit time. Otherwise, the Tx will take up to 1.5 of a bit time.
MPC5510 Reference Manual Addendum, Rev. 1
Block Diagram” figure:
Freescale Semiconductor4
Page 6
Table 1. MPC5510RM Rev 1.0 Addendum
LocationDescription
Revision History
Section 31.4.3.3
”External Trigger
Input Multiplexing”
• Updated the title from “External Trigger from eTPU to eMIOS Channels“ to “External Trigger Input
Multiplexing”.
• Updated the text of this section to:
The four eQADC external trigger inputs can be connected to two different external pins or one of two PIT
channels. The input source for each eQADC external trigger is individually specified in the IMUX Select
Register 0 (SIU_ISEL0). Figure 6-50 gives an example of the multiplexing of an eQADC external trigger
input. As shown in the figure, the ETRIG[0] input of the eQADC can be connected to the PC4 pin, the PG4
pin, the PIT7 channel, or the PIT8 channel. Remaining ETRIG inputs are multiplexed in the same manner.
The eQADC trigger numbers specified by SIU_ETISR[TSEL(0-3)] correspond to CFIFO numbers 0-3. To
calculate the CFIFO number that each trigger is connected to, divide the eDMA channel number by 2.
2Revision History
Table 2 provides a revision history for this document.
Table 2. Revision History Table
Rev. NumberSubstantive ChangesDate of Release
1.0First release. 04/2012
MPC5510 Reference Manual Addendum, Rev. 1
Freescale Semiconductor5
Page 7
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
[email protected]
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
[email protected]
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
1-800-441-2447 or 303-675-2140
Fax: 303-675-2150
[email protected]
Information in this document is provided solely to enable system and
software implementers to use F reescale S emiconductor prod ucts. There ar e
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 Semiconducto r reserves the right to mak e changes without further
notice to any products herein. F reescale Se miconductor m akes no w arranty,
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 produ ct or circuit, an d specific ally
disclaims any and all liability, including without limitation consequential or
incidental damages. “Typical” param eters that ma y be pro vided in F r eescale
Semiconductor data sheets and/or speci fications can and do v ary in differ ent
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 Semicondu ctor products are not de signed, 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 Freescal e Semiconductor products f or an y such unintended
or unauthorized application, B uyer sha ll 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.
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
[email protected]
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
[email protected]
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
1-800-441-2447 or +1-303-675-2140
Fax: +1-303-675-2150
[email protected]
Information in this document is provided solely to enable system and
software implementers to use F reescale Se miconductor products . There are
no express or implied copyright licenses granted hereunder to design or
fabricate any integrated circ uits or in te g rated circuits based on the
information in this document.
Freescale Semiconductor reserves the right to mak e changes without further
notice to any products herein. F reescale Semico nductor mak es no warr anty,
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, an d specif ically
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 spec ifications can and d o vary in diff erent
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 Semiconduct or products are not des igned, intended, or a uthorized
for use as components in systems intended for surgical implant into the bo dy ,
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 exp enses, 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 al leges th at Freescale Semiconductor was negligent
regarding the design or manufacture of the part.
Freescale™ and the Freescale logo are trademarks of Freescale
Semiconductor, Inc. The Power Architecture and Power.org word marks and
the Power and P owe r .org logos and r elated marks are trade marks and service
marks licensed by Power.org.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
xviFreescale Semiconductor
Preliminary
Page 26
Chapter 1
Overview
1.1Introduction
The MPC5510 is a family of next generation microcontrollers built on the Power Architecture™ embedded
category. This document describes the proposed features of the family and potential options available
within the planned family members, and highlights the important electrical and physical characteristics of
the device. This is a preliminary document for a product family that is still in development. Its purpose is
to communicate information on the intended features of the family members. Information contained within
this document is subject to change without notice.
NOTE: Bit and Field Numbering Conventions
In this reference manual, register bits and fields are generally numbered
according to the convention used in the Power Architecture standard
(MSB=0); however, in some instances the bit/field numbering may appear
to be reversed. This is due to the fact that some of the modules were
designed for use on devices that use either the MSB=0 numbering
convention or the alternative convention (LSB=0), for example, the HC12
and 68K families, and simple reversing of bit/field numbers is not possible.
In the Nexus standard, register bits are numbered according to the
alternative convention (LSB=0). As the CPU core on the MPC5510 family
cannot access Nexus registers directly (they are accessed thought external
tools), register bits are numbered according to the LSB=0 convention in the
Nexus chapter.
The MPC5510 family of 32-bit microcontrollers is Freescale Semiconductor’s latest achievement in
integrated automotive application controllers. It belongs to an expanding family of automotive-focused
products designed to address the next wave of central body and gateway applications within the vehicle.
Freescale’ s advanced and cost-efficient host processor core of the MPC5510 automotive controller family
is compatible with the Power Architecture Book E architecture. It operates at speeds of up to 80 MHz and
offers high-performance processing optimized for low-power consumption. It capitalizes on the available
development infrastructure of the current Power Architecture devices and will be supported with software
drivers, operating systems, and configuration code to assist with user implementations.
The MPC5510 platform has a single level of memory hierarchy and can support up to 80 KB of on-chip
static random access memory (SRAM) and 1.5 MB of internal flash memory. Refer to Table 1-1 for
specific memory and feature sets of the proposed roadmap product members.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor1-1
Preliminary
Page 27
Overview
32-bit
Private
Instruction Bus
Port 0
Port 1
Data Bus
1.5-Mbyte
Flash
Array
80-Kbyte
SRAM
Instruction Bus
32-bit
Clocks
Bus Clocks
CRP
8x
eSCI
6x
FlexCAN
Interrupt
Request
Test Controller
Nexus Port
Controller
32-bit
32-bit
4x
DSPI
I2CBAM
DMA
Mux
eMIOS
200
PIT/
RTI
eQADC
AMUX
FlexRay
External Interrupt
Request
Reset Controller
IMUX
Interrupt
Requests
from
Peripheral
Blocks
DMA
Requests
from
Peripheral
Blocks
SIU
32-bit
32-bit
Mx = AXBS Master Port #
Sx = AXBS Slave Port #
EBI
32-bit
S3S0
M4M0M3M5M2M1
Nexus Port
JTAG Port
32-bit
32-bit
GPIO and Pad Control
I/O
32-bit
32-bit
32-bit
e200z1 Core
Integer
Execution
Unit
Multiply
Unit
Instruction
Unit
PPC and VLE
General Purpose
Registers
(32x 32-bit)
Timers
Memory
Management
Unit
Load/Store
Unit
Branch Unit
Flash
Control
SRAM
Control
AIPS-lite Peripheral Bridge
Peripherals
Flash Configuration
Misc. Control Module
Semaphores
Port Splitter
Interrupt
Controller
eDMA
6x2 32-bit AXBS-lite
16 Region MPU
Nexus 2+
e200z0
Note: The e200z1 is called Processor 0, and the e200z0 is called Processor 1 throughout this document
MLB
32-bit
(FMPLL)
(16 MHz IRC)
1.2Block Diagram
Figure 1-1 illustrates the functionality and interdependence of major blocks of the MPC5516.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Figure 1-1. MPC5516 Block Diagram
1-2Freescale Semiconductor
Preliminary
Page 28
Overview
1.3MPC5510 Family Comparison
Table 1-1 provides a summary of the different members of the MPC5510 family and their proposed
features. This information is intended to provide an understanding of the range of functionality offered by
this family.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor1-3
Preliminary
Page 29
Preliminary
1-4Freescale Semiconductor
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Table 1-1. MPC5510 Family Comparison, Maximum Feature Set
For devices with four DSPI modules, in the 144-pin package, it is not possible to bring out all 24 DSPI chip selects. Hence, three modules can ha ve six chip selects, but one module can have only five.
7
MLB is emulated in software and requires the following resources: I/O Processor, 2xDSPI, 4x eDMA channels, RAM, SoftMLB Interface Logic.
8
In the 208-pin package, there can be up to 24 address bits with 32-bit data and four chip selects. In the 144-pin and 176-pin packages, there are 24 address bits with 16-bit data and four chip selects.
9
16-bit or 32-bit multiplexed data bus supported. EBI multiplexed with other functions shown as available.
10
16-bit multiplexed data bus supported. EBI multiplexed with other functions shown as available.
11
Estimated I/O count for proposed packages based on multiplexing with peripherals.
The MPC5510 family supports multiple functions on most of the pins. This allows flexibility in the
positioning and the availability of device features. It is the user’s choice what trade-offs are made between
the feature set used for the available pin count through this device pin multiplexing. The available features
implemented on silicon will be incrementally added as the family functionality increases. Table 1-2
provides a summary of the flash array address space supported by the different device memory sizes.
Table 1-3 provides a summary of the RAM array address space supported by the different device memory
sizes. Table 1-4 provides a summary of the available peripheral functionality of each family member.
Evaluation of the pin list for each device will be necessary as it may not be possible to retain all modules
sequentially, depending on the selected pin multiplexing trade-offs on each device.
NOTE
The RAppID™ initialization tool provides a pin allocation wizard that
allows users to graphically configure I/O to meet the requirements of the
peripheral functions. More information on this tool can be found at
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor1-5
Preliminary
Page 31
Overview
1.4Chip-Level Features
On-chip modules available within the family include the following features:
•Single issue, 32-bit CPU core complex (e200z1)
— Compliant with the Power Architecture embedded category
— Includes an instruction set enhancement allowing variable length encoding (VLE) for code size
footprint reduction. With the optional encoding of mixed 16-bit and 32-bit instructions, it is
possible to achieve significant code-size footprint reduction.
•Up to 1.5 MB of on-chip flash with flash control unit (FCU)
•Up to 80 KB on-chip SRAM
•Memory protection unit (MPU) with up to 16 region descriptors and 32-byte region granularity
•Interrupt controller (INTC) capable of handling selectable-priority interrupt sources
•Frequency modulated Phase-locked loop (FMPLL)
•Crossbar switch architecture for concurrent access to peripherals, flash, or RAM from multiple bus
masters
•A 16-channel enhanced direct memory access controller (eDMA)
•Boot assist module (BAM) supports internal flash programming via a serial link (CAN or SCI)
•Timer supports input/output channels providing a range of 16-bit input capture, output compare,
and pulse-width modulation functions (eMIOS200)
•A 12-bit analog-to-digital converter (ADC)
•Up to four serial peripheral interface (DSPI) modules
•Media Local Bus (MLB) emulation logic which works in conjunction with two DSPI, the e200z0,
the eDMA, and system RAM to create a 3-pin or 5-pin 256Fs Media Local Bus interface
•Up to eight serial communication interface (eSCI) modules
•Up to six enhanced full CAN (FlexCAN) modules with configurable buffers
•One inter IC communication interface (I2C) module
•Up to 144 configurable general-purpose pins supporting input and input/output operations
•Real-time counter (RTC_API) with clock source from external 32 kHz crystal oscillator, internal
32 kHz or 16 MHz oscillator and supporting wakeup with selectable 1 sec. resolution and >1 hour
timeout, or 1 mS resolution with max timeout of 1 sec.
•Up to eight periodic interrupt timers (PIT) with 32-bit counter resolution
•Nexus development interface (NDI) per IEEE-ISTO 5001-2003 Class Two Plus standard
•Device/board test support per joint test action group (JTAG) of IEEE (IEEE 1149.1)
•On-chip voltage regulator (VREG) regulation of input supply for all internal levels
•Optional e200z0, second I/O processor built on Power Architecture technology with VLE
instruction set
•Optional FlexRay controller
•Optional external bus interface (EBI) module
MPC5510 Microcontroller Family Reference Manual, Rev. 1
1-6Freescale Semiconductor
Preliminary
Page 32
1.5Low-Power Operation
The MPC5510 has two dynamic-power modes and three static-power modes:
•Low-power modes use clock gating to halt the clock for all or part of the device.
•The lowest power modes also use power gating to automatically turn off the power supply to parts
of the device to minimize leakage.
•Dynamic-power mode is RUN:
— RUN mode is the main full performance operating mode where the entire device is powered
and clocked. The user can configure the device operating speed through selection of the clock
source and the phase-locked loop (FMPLL) frequency. Clock gating can be performed on a
peripheral by peripheral basis to select which device features have their clock halted to save
power . When implemented, the I/O processor can optionally be enabled, allowing execution of
code and access to the memory and peripherals of the device.
•Static-power modes are STOP and SLEEP:
— STOP mode maintains power to the entire device allowing the retention of all on-chip registers
and memory, and providing a fast recovery low-power mode with no need to reconfigure the
device. The clocks are halted to the cores and peripherals, with the exception of the R T C, and
can be optionally stopped to the oscillator or FMPLL at the expense of a slower start-up time.
STOP is entered from RUN mode. On exiting STOP mode the device returns to the RUN mode.
Overview
— SLEEP mode halts the clock to the entire device, with the exception of the RTC, and turns off
the power to the majority of the chip to offer the lowest power consumption modes of the
MPC5510. SLEEP mode retains the output levels on the pins, but power gating means that the
contents of the cores, on-chip peripheral registers, and some of the volatile memory are not
held. The device can be awakened from selected I/O pins, a reset, or from a periodic wakeup
using a low-power oscillator. If required by the user , it is possible to enable the internal 16 MHz
or 32 kHz RC oscillator or external 32 kHz oscillator. The user can select the desired level of
RAM to be retained as the following: full contents of the on-chip SRAM, 64K, 32K, 16K, 8K,
no RAM retained.
— Fast wake-up using the on-chip 16 MHz internal RC oscillator allowing rapid execution on exit
from low-power modes.
•16 MHz internal RC oscillator supports low-speed code execution and clocking of peripherals
1.6Memory Map
Table 1-5. Detailed MPC5510 Family Memory Map
Address Range
0x0000_0000–0x0017_FFFF1.5 MFlash Memory Array
0x0018_0000–0x00FF_7FFF14.5 M – 32K
Refer to the individual module chapters for a description of how the allocated size is used.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor1-9
Preliminary
Page 35
Overview
MPC5510 Microcontroller Family Reference Manual, Rev. 1
1-10Freescale Semiconductor
Preliminary
Page 36
Chapter 2
PB[0]
AN28
eMIOS[16]
PCS_C[5]
PA[0]
AN0
GPIO
Function 1
Function 2
Function 3
GPIO
Function 1
Signal Descriptions
2.1Introduction
This chapter describes signals that connect off-chip. It includes a signal properties summary, power and
ground segmentation summary, package pinouts, and detailed descriptions of signals. Because the
MPC5510 comes in multiple packages, some signals will not be available on every package. Refer to the
MPC5510 Microcontroller Family Data Sheet for electrical characteristics.
2.2Signal Properties Summary
Table 2-1 shows the signals properties for each pin on MPC5510. For all port pins, which have an
associated SIU_PCRx register to control its pin properties, the supported functions column lists the
functions associated with the programming of the SIU_PCRx[PA] bit in the order: general-purpose
input/output (GPIO), function 1, function 2, and function 3. If fewer than three functions and GPIO is
supported by a given pin, then the unused functions begin with function 3, then function 2, then function 1
(see Figure 2-1).
Figure 2-1. Supported Functions Example
Table 2-1. MPC5510 Signal Properties
GPIO
Pin
Name
(PCR)
Num
PA00
PA11
PA22
PA33
Freescale Semiconductor2-1
Supported
Functions
1
PA[0]
AN[0]
PA[1]
AN[1]
PA[2]
AN[2]
PA[3]
AN[3]
2
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Description
Port A (16) (Section/Page: 2.7.1/2-16)
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
Preliminary
I/O
Type
I
I
I
I
I
I
I
I
Voltage
V
DDA
V
DDA
V
DDA
V
DDA
Pad
3
Type
AE + IH——99E3
AE + IH——88E2
AE + IH——77E1
AE + IH——66D3
Status
During
Reset
Status
After
4
Reset
Package Pin
Locations
4
144 176 208
Page 37
Signal Descriptions
Table 2-1. MPC5510 Signal Properties (continued)
GPIO
Pin
Name
(PCR)
Num
PA44
PA55
PA66
PA77
PA88
PA99
PA1010
PA1111
PA1212
PA1313
PA1414
PA1515
Supported
Functions
1
AN[8]/ANW
AN[9]/ANX
AN[10]/ANY
AN[11]/ANZ
EXTAL32
XTAL32
PA[4]
AN[4]
PA[5]
AN[5]
PA[6]
AN[6]
PA[7]
AN[7]
PA[8]
PA[9]
PA[10]
PA[11]
PA[12]
AN[12]
PA[13]
AN[13]
PA[14]
AN[14]
PA[15]
AN[15]
2
Description
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
eQADC Analog Input
GPI
5
eQADC Analog Input
32 kHz Crystal Oscillator Input
GPI
5
eQADC Analog Input
32 kHz Crystal Oscillator Output
I/O
Type
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
O
Voltage
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
V
DDA
Pad
3
Type
AE + IH——55D2
AE + IH——44D1
AE + IH——33C2
AE + IH——22C1
AE + IH——143 175A3
AE + IH——142 174C4
AE + IH——140 172D5
AE + IH——139 171C5
AE + IH——138 170B5
AE + IH——137 169A5
AE + IH——136 167D6
AE + IH——135 165C6
Status
During
Reset
Status
After
4
Reset
Package Pin
Locations
4
144 176 208
Port B (16) (Section/Page: 2.7.2/2-17)
GPIO
eQADC Analog Input
eMIOS Channel
GPIO
eQADC Analog Input
eMIOS Channel
GPIO
eQADC Analog Input
eMIOS Channel
GPIO
eQADC Analog Input
GPIO
eQADC Analog Input
6
I/O
O
I
V
A + SH——134 162C7
DDE1
O
6
I/O
O
I
V
A + SH——133 161D7
DDE1
O
6
I/O
O
I
V
A + SH——132 160A8
DDE1
O
6
I/O
I
V
A + SH——131 159B8
DDE1
O
6
I/O
I
V
A + SH——130 158C8
DDE1
O
PB016
PB117
PB218
PB319
PB420
PB[0]
AN[28]
eMIOS[16]
PCS_C[5]
PB[1]
AN[29]
eMIOS[17]
PCS_C[4]
PB[2]
AN[30]
eMIOS[18]
PCS_C[3]
PB[3]
AN[31]
PCS_C[2]
PB[4]
AN[32]
PCS_C[1]
DSPI_C Peripheral Chip Select
DSPI_C Peripheral Chip Select
DSPI_C Peripheral Chip Select
DSPI_C Peripheral Chip Select
DSPI_C Peripheral Chip Select
MPC5510 Microcontroller Family Reference Manual, Rev. 1
2-2Freescale Semiconductor
Preliminary
Page 38
Table 2-1. MPC5510 Signal Properties (continued)
Signal Descriptions
GPIO
Pin
Name
(PCR)
Num
PB521
PB622
PB723
PB824
PB925
PB1026
PB1127
PB1228
PB1329
PB1430
PB1531
Supported
Functions
1
PCS_C[0]
SOUT_C
CNTX_D
PCS_B[4]
CNRX_D
PCS_B[3]
eMIOS[19]
PCS_B[5]
PCS_B[4]
PCS_B[3]
PB[5]
AN[33]
PB[6]
AN[34]
SCK_C
PB[7]
AN[35]
PB[8]
AN[36]
SIN_C
PB[9]
AN[37]
PB[10]
AN[38]
PB[11]
AN[39]
PB[12]
TXD_G
PB[13]
RXD_G
PB[14]
TXD_H
PB[15]
RXD_H
2
Description
GPIO
eQADC Analog Input
DSPI_C Peripheral Chip Select
GPIO
eQADC Analog Input
DSPI_C Clock
GPIO
eQADC Analog Input
DSPI_C Data Output
GPIO
eQADC Analog Input
DSPI_C Data Input
GPIO
eQADC Analog Input
CAN_D Transmit
DSPI_B Peripheral Chip Select
GPIO
eQADC Analog Input
CAN_D Receive
DSPI_B Peripheral Chip Select
GPIO
eQADC Analog Input
eMIOS Channel
DSPI_B Peripheral Chip Select
GPIO
SCI_G Transmit
DSPI_B Peripheral Chip Select
GPIO
SCI_G Receive
DSPI_B Peripheral Chip Select
GPIO
SCI_H Transmit
GPIO
SCI_H Receive
I/O
Voltage
Type
6
I/O
I
V
DDE1
Pad
3
Type
A + SH——129 157D8
Status
During
Reset
Status
After
4
Reset
Package Pin
Locations
4
144 176 208
O
6
I/O
I
V
A + SH——128 156A9
DDE1
I/O
6
I/O
I
V
A + SH——127 153B9
DDE1
O
6
I/O
I
V
A + SH——126 152C9
DDE1
I
6
I/O
O
I
V
A + SH——125 151D9
DDE1
O
6
I/O
I
V
I
A + SH——124 150 A10
DDE1
O
6
I/O
O
I
V
A + SH——123 149 B10
DDE1
O
I/O
OOV
DDE1
SH———164A7
I/O
I
O
I/O
O
I/O
V
DDE1
V
DDE1
V
DDE1
I
SH———163B7
SH———148 C10
SH———147 A11
Port C (16) (Section/Page: 2.7.3/2-19)
I/O
I/O
O
I/O
I/O
I/O
O
I/O
I/O
I/O
I/O
V
DDE1
V
DDE1
V
DDE1
I
MH——122 146 B11
MH——121 145 C11
MH——120 144 D11
PC032
PC133
PC234
PC[0]
eMIOS[0]
FR_A_TX_EN
AD[24]
PC[1]
eMIOS[1]
FR_A_TX
AD[16]
PC[2]
eMIOS[2]
FR_A_RX
TS
GPIO
eMIOS Channel
FlexRay Channel A Transmit Enable
EBI Multiplexed Address/Data
GPIO
eMIOS Channel
FlexRay Channel A Transmit
EBI Multiplexed Address/Data
GPIO
eMIOS Channel
FlexRay Channel A Receive
EBI Transfer Start
MPC5510 Microcontroller Family Reference Manual, Rev. 1
TMS—TMSJTAG Test Mode Select InputIV
TCK—TCKJTAG Test Clock InputIV
Main Crystal Oscillator Input
External Clock Input
I
V
DDSYN
I
DDSYN
DDE3
DDE3
AEEXTAL7591N16
AEXTAL7490P16
SHTMS (Pull Up)7288T15
IHTCK (Pull Down)7187R14
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor2-11
Preliminary
Page 47
Signal Descriptions
Table 2-1. MPC5510 Signal Properties (continued)
GPIO
Pin
Name
JCOMP—JCOMPJTAG CompliancyIV
RESET
1
2
(PCR)
Num
TDO—TDOJTAG Test Data OutputOV
TDI—TDIJTAG Test Data InputIV
TEST—TESTTest Mode SelectIV
The GPIO number is the same as the corresponding pad configuration register (SIU_PCRn) number.
This column lists the functions associated with the programming of the SIU_PCRn[PA] bit field in the f ollowing order: GPIO, function
1, function 2, and function 3. The unused functions by a given pin begin with function 3, then function 2, then function 1 (see
Figure 2-1).
3
These are nominal voltages. Each segment provides the power and ground for the given set of I/O pins.
4
A dash for the function in this column denotes the input and output buffer are turned off.
5
Port A[14:15]—EXT AL32 and XTAL32 functions only apply on the 144LQFP. These functions are on PortK[0:1] for the 176LQFP and
208BGA.
6
This analog input pin has reduced analog-to-digital conversion accuracy compared to P A0–PA15. See the MPC5510 Microcontroller Family Data Sheet for values.
7
BOOTCFG is the pin function while the RESET pin is asserted. When the RESET pin is negated, the pin function is controlled by
the associated PCR register.
8
The NEXUS function is selected when the JTAG TAP controller is enabled via the JCOMP pin. The value of the PA field in the
associated PCR register has no effect on the pin function when the NEXUS function is selected.
9
Pullup is enabled only when JCOMP is negated.
2.3Power and Ground Supply Summary
Refer to Section 2.7.12, “Power and Ground Pins,” for detailed descriptions of these pins.
Pin
Name
V
DDR
V
DDA
2
V
RH
V
SSA
3
V
RL
REFBYPCeQADC Reference Bypass Capacitor
4
V
PP
V
DDSYN
V
SSSYN
Function DescriptionVoltage
Voltage Regulator Supply5.0 V4656T6
Analog Power
eQADC Voltage Reference High
Analog Ground
eQADC Voltage Reference Low–
Flash Program/Erase Power5.0 V7894P15
Clock Synthesizer Power3.3 V7389R16
Clock Synthesizer Ground–7692M16
Table 2-2. MP C5 51 0 Power/Ground
1
144176208
5.0 V
5.0 VB3
–
V
SSA
144
141
11B1
Package Pin Locations
176
173
A2
A4
B4
MPC5510 Microcontroller Family Reference Manual, Rev. 1
2-12Freescale Semiconductor
Preliminary
Page 48
Table 2-2. MPC5510 Power/Ground (continued)
Signal Descriptions
Pin
Name
V
DDE1
V
DDE2
V
DDE3
V
SSE1
V
SSE2
V
SSE3
V
DD33
V
F:ASH
V
DD
Function DescriptionVoltage
External I/O Power3.3V – 5.0 V
External I/O Ground–
3.3 V I/O Power
5
Flash Read Power
Internal Logic Power
3.3 V
1
144176208
96,119
16,33,4821,41,58H4,L4,N5,P1
6171,77N9,T11
95,118
32,4720,40,57
6070,76
7793N15
31,53,7939,63,95
1.5 V
V
DDF
V
SS
V
SSF
1
These are nominal voltages.
2
VRH is shorted to V
3
VRL is shorted to V
4
VPP requires nominal 5V for program/erase operations, but may be 0-5V otherwise.
5
V
is shorted to V
FLASH
Flash Internal Logic Power7995
Ground
–
8096
Flash Internal Logic Ground
in the 144LQFP and 176LQFP packages.
DDA
in the 144LQFP and 176LQFP packages.
SSA
in the package.
DD33
Package Pin Locations
105,120,
143,155
104,119,
142,154
A15,D10,E13,
G16,K15
Shorted to V
package
Shorted to V
package
Shorted to V
package
SS
SS
SS
in the
in the
in the
A1,A16,B2,B15,
R2,R15,T1,T16
Shorted to VDD in the
package
C3,C14,D4,D13,
G7-G10,H7-H10,
J7-J10,K7-K10,
N4,N13,P3,P14
Shorted to V
package
SS
in the
MPC5510 Microcontroller Family Reference Manual, Rev. 1
PA[14] is a general-purpose input (GPI) pin. AN[14] is a single-ended analog input pin. EXTAL32 is the
input pin for an external 32 kHz crystal oscillator (EXTAL32 function available on PA[14] pin on the
144LQFP package and PK[0] pin on the 176LQFP and 208BGA packages).
PA[15] is a GPI pin. AN[15] is a single-ended analog input pin. XTAL32 is the output pin for an external
32 kHz crystal oscillator (XTAL32 function available on PA[15] pin on the 144LQFP package and PK[1]
pin on the 176LQFP and 208BGA packages).
PB[0] is a GPIO pin. AN[28] is a single-ended analog input pin. eMIOS[16] is an output-only channel pin
for the eMIOS200 module. PCS_C[5] is a peripheral chip select output pin for the DSPI C module.
PB[1] is a GPIO pin. AN[29] is a single-ended analog input pin. eMIOS[17] is an output-only channel pin
for the eMIOS200 module. PCS_C[4] is a peripheral chip select output pin for the DSPI C module.
PB[2] is a GPIO pin. AN[30] is a single-ended analog input pin. eMIOS[18] is an output-only channel pin
for the eMIOS200 module. PCS_C[3] is a peripheral chip select output pin for the DSPI C module.
PB[6] is a GPIO pin. AN[34] is a single-ended analog input pin. SCK_C is the SPI clock pin for the DSPI
C module.
2.7.2.8PB7 — GPIO (PB[7]) / Analog Input (AN[35]) / DSPI_C Data Output
(SOUT_C)
PB[7] is a GPIO pin. AN[35] is a single-ended analog input pin. SOUT_C is the data output pin for the
DSPI C module.
2.7.2.9PB8 — GPIO (PB[8]) / Analog Input (AN[36]) / DSPI_C Data Input (SIN _C)
PB[8] is a GPIO pin. AN[36] is a single-ended analog input pin. SIN_C is the data input pin for the DSPI
C module.
2.7.2.10PB9 — GPIO (PB[9]) / Analog Input (AN[37]) / CAN_D T ransmit (CNTX_D)
/ DSPI_B Peripheral Chip Select (PCS_B[4])
PB[9] is a GPIO pin. AN[37] is a single-ended analog input pin. CNTX_D is the transmit pin for the
FlexCan D module. PCS_B[4] is a peripheral chip select output pin for the DSPI B module.
PB[10] is a GPIO pin. AN[38] is a single-ended analog input pin. CNRX_D is the receive pin for the
FlexCan D module. PCS_B[3] is a peripheral chip select output pin for the DSPI B module.
PB[11] is a GPIO pin. AN[39] is a single-ended analog input pin. eMIOS[19] is an output-only channel
pin for the eMIOS200 module. PCS_B[5] is a peripheral chip select output pin for the DSPI B module.
PB[15] is a GPIO pin. RXD_H is the receive pin for the eSCI H module.
2.7.3Port C Pins
2.7.3.1PC0 — GPIO (PC[0]) / eMIOS Channel (eMIOS[0]) / FlexRay Channel A
T ransmit Enable (FR_A_TX_EN
PC[0] is a GPIO pin. eMIOS[0] is an input/output channel pin for the eMIOS200 module. FR_A_TX_EN
in the FlexRay Channel A transmit enable pin. AD[24] is the external bus interface (EBI) multiplexed
address and data bus.
PC[1] is a GPIO pin. eMIOS[1] is an input/output channel pin for the eMIOS200 module. FR_A_TX in
the FlexRay Channel A transmit pin. AD[16] is the EBI multiplexed address and data bus
2.7.3.3PC2 — GPIO (PC[2]) / eMIOS Channel (eMIOS[2]) / FlexRay Channel A
Receive (FR_A_RX) / EBI Transfer Start (TS
PC[2] is a GPIO pin. eMIOS[2] is an input/output channel pin for the eMIOS200 module. FR_A_RX in
the FlexRay Channel A receive pin. TS
PC[8] is a GPIO pin. eMIOS[8] is an input/output channel pin for the eMIOS200 module. FR_B_TX is
the FlexRay Channel B transmit pin. AD[15] is the EBI multiplexed address and data bus.
PC[9] is a GPIO pin. eMIOS[9] is an input/output channel pin for the eMIOS200 module. FR_B_TX_EN
is the FlexRay Channel B transmit enable pin. AD[14] is the EBI multiplexed address and data bus.
PC[10] is a GPIO pin. eMIOS[10] is an input/output channel pin for the eMIOS200 module. PCS_C[5] is
a peripheral chip select output pin for the DSPI C module. SCK_D is the SPI clock pin of the DSPI_D
module.
2.7.3.12PC11 — GPIO (PC[11]) / eMIOS Channel (eMIOS[11]) / DSPI_C Peripheral
Chip Select (PCS_C[4]) / DSPI_D Serial Data Out (SOUT_D)
PC[11] is a GPIO pin. eMIOS[11] is an input/output channel pin for the eMIOS200 module. PCS_C[4] is
a peripheral chip select output pin for the DSPI C module. SOUT_D is the serial data output from the
DSPI_D module.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
2-20Freescale Semiconductor
Preliminary
Page 56
Signal Descriptions
2.7.3.13PC12 — GPIO (PC[12]) / eMIOS Channel (eMIOS[12]) / DSPI_C Peripheral
Chip Select (PCS_C[3]) / DSPI_D Serial Data Input (SIN_D)
PC[12] is a GPIO pin. eMIOS[12] is an input/output channel pin for the eMIOS200 module. PCS_C[3] is
a peripheral chip select output pin for the DSPI C module. SIN_D is the serial data input for the DSPI_D
module.
PC[13] is a GPIO pin. eMIOS[13] is an input/output channel pin for the eMIOS200 module. PCS_A[5] is
a peripheral chip select output pin for the DSPI A module. PCS_D[0] is a peripheral chip select output pin
for the DSPI_D module.
PC[14] is a GPIO pin. eMIOS[14] is an input/output channel pin for the eMIOS200 module. PCS_A[4] is
a peripheral chip select output pin for the DSPI A module. PCS_D[1] is a peripheral chip select output pin
for the DSPI D module.
PC[15] is a GPIO pin. eMIOS[15] is an input/output channel pin for the eMIOS200 module. PCS_A[3] is
a peripheral chip select output pin for the DSPI A module. PCS_D[2] is a peripheral chip select output pin
for the DSPI D module.
PD[2] is a GPIO pin. CNRX_B is the receive pin for the FlexCan B module. eMIOS[10] is an output-only
channel pin for the eMIOS200 module. The BOOTCFG pin is sampled before the negation of the RESET
pin. The value is used by the BAM program to determine the boot configuration. PCS_D[5] is a peripheral
chip select output pin for the DSPI_D module.
PD[10] is a GPIO pin. PCS_B[2] is a peripheral chip select output pin for the DSPI B module. CNTX_F
is the transmit pin for the FlexCan F module. NMI0 is the critical interrupt input for the e200z1 core.
PD[11] is a GPIO pin. PCS_B[1] is a peripheral chip select output pin for the DSPI B module. CNRX_F
is the receive pin for the FlexCan F module. NMI1 is the critical interrupt input for the e200z0 core.
PD[12] is a GPIO pin. PCS_B[0] is a peripheral chip select output pin for the DSPI B module. eMIOS[9]
is an output-only channel pin for the eMIOS200 module.
PE[0] is a GPIO pin. PCS_A[2] is a peripheral chip select output pin for the DSPI A module. eMIOS[5]
is an output-only channel pin for the eMIOS200 module. MLBCLK is the clock pin for the emulated MLB
module.
2.7.5.2PE1 — GPIO (PE[1]) / DSPI_A Peripheral Chip Select (PCS_A[1]) / eMIOS
Channel (eMIOS[4]) / MLB Signal In / Signal (MLBSI / MLBSIG)
PE[1] is a GPIO pin. PCS_A[1] is a peripheral chip select output pin for the DSPI A module. eMIOS[4]
is an output-only channel pin for the eMIOS200 module. In a 3-pin MLB interface, MLBSIG is the
bidirectional signal line that transfers bus management data to/from the MOST network controller. In a
5-pin interface, MLBSI carries signal line data from the MOST network controller to the emulated MLB
module.
2.7.5.3PE2 — GPIO (PE[2]) / DSPI_A Peripheral Chip Select (PCS_A[0]) / eMIOS
Channel (eMIOS[3]) / MLB Data In / Data (MLBDI / MLBDAT)
PE[2] is a GPIO pin. PCS_A[0] is a peripheral chip select output pin for the DSPI A module. eMIOS[3]
is an output-only channel pin for the eMIOS200 module. In a 3-pin MLB interface, MLBDAT is the
bidirectional data line that transfers user data to/from the MOST network controller. In a 5-pin MLB
interface, MLBDI carries user data from the MOST network controller to the emulated MLB module.
PE[3] is a GPIO pin. SCK_A is the SPI clock pin for the DSPI A module. eMIOS[2] is an output-only
channel pin for the eMIOS200 module. In a 3-pin MLB interface, MLBSIG_BUFEN controls the external
level shifter for the MLBSIG pin. In a 5-pin MLB interface, MLBSO carries signal data from the emulated
MLB module to the MOST network controller.
2.7.5.5PE4 — GPIO (PE[4]) / DSPI_A Data Output (SOUT_A) / eMIOS Channel
(eMIOS[1]) / MLB Data Out / Level Shifter Enable (MLBDO /
MLBDAT_BUFEN)
PE[4] is a GPIO pin. SOUT_A is the data output pin for the DSPI A module. eMIOS[1] is an output-only
channel pin for the eMIOS200 module. In a 3-pin MLB interface, MLBDA T_BUFEN controls the external
level shifter for the MLBDAT pin. In a 5-pin MLB interface, MLBDO carries user data from the emulated
MLB module to the MOST network controller.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
2-24Freescale Semiconductor
Preliminary
Page 60
Signal Descriptions
2.7.5.6PE5 — GPIO (PE[5]) / DSPI_A Data Input (SIN_A) / eMIOS Channel
(eMIOS[0]) / MLB SLOT / Signal Observe / Data Observe (MLB_SLOT /
MLB_SIGOBS / MLB_DATOBS)
PE[5] is a GPIO pin. SIN_A is the data input pin for the DSPI A module. eMIOS[0] is an output-only
channel pin for the eMIOS200 module. MLB_SLOT, MLB_SIGOBS, and MLB_DATOBS are debug
signals for the MLB module.
2.7.5.7PE6 — GPIO (PE[6]) / Clock Output (CLKOUT)
PE[6] is a GPIO pin. CLKOUT is the external bus interface clock output.
PF[0] is a GPIO pin. RD_WR indicates whether an external bus transfer is a read or write operation. EVTI
is an input that is read on the assertion of JCOMP to enable or disable the Nexus Debug port. After reset,
the EVTI pin initiates program and data trace synchronization messages or generates a breakpoint.
2.7.6.2PF1 — GPIO (PF[1]) / EBI T ransf er Ac kno wledge (TA) / Nexus Event Out
(EVTO
PF[1] is a GPIO pin. TA indicates to the external bus master that the slave has completed the current
transfer . EVTO is an output providing timing to a development tool for a single watch point or breakpoint
occurrence. MLBCLK is the clock pin for the emulated MLB module.
) / MLB Clock (MLBCLK)
2.7.6.3PF2 — GPIO (PF[2]) / EBI Multiplex Address/Data (AD[8]) / EBI Non
Muxed Address (ADDR[8]) / MLB Signal In / Signal (MLBSI / MLBSIG) /
Nexus Message Start/End Out (MSEO
PF[2] is a GPIO pin. AD[8] is the EBI multiplexed address and data bus. ADDR[8] is the EBI non
multiplexed address bus. In a 3-pin MLB interface, MLBSIG is the bidirectional signal line that transfers
bus management data to/from the MOST network controller. In a 5-pin interface, MLBSI carries signal
line data from the MOST network controller to the emulated MLB module. MSEO is an output that
indicates when messages start and end on the MDO pins.
)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor2-25
Preliminary
Page 61
Signal Descriptions
2.7.6.4PF3 — GPIO (PF[3]) / EBI Multiplex Address/Data (AD[9]) / EBI Non
Muxed Address (ADDR[9]) / MLB Data In / Data (MLBDI / MLBDAT) /
Nexus Message Clock Out (MCKO)
PF[3] is a GPIO pin. AD[9] is the EBI multiplexed address and data bus. ADDR[9] is the EBI non
multiplexed address bus. In a 3-pin MLB interface, MLBDAT is the bidirectional data line that transfers
user data to/from the MOST network controller. In a 5-pin MLB inte rface, MLBDI carries user data from
the MOST network controller to the emulated MLB module. MCKO is a free running clock output to the
development tools that is used for timing of the MDO and MSEO signals.
2.7.6.5PF4 — GPIO (PF[4]) / EBI Multiplex Address/Data (AD[10]) / EBI Non
Muxed Address (ADDR[10]) / MLB Signal Out / Level Shifter Enable
(MLBSO / MLBSIG_BUFEN) / Nexus Message Data Out (MDO[0])
PF[4] is a GPIO pin. AD[10] is the EBI multiplexed address and data bus. ADDR[10] is the EBI non
multiplexed address bus. In a 3-pin MLB interface, MLBSIG_BUFEN controls the external level shifter
for the MLBSIG pin. In a 5-pin MLB interface, MLBSO carries signal data from the emulated MLB
module to the MOST network controller. MDO[0] is a trace message output to the development tools.
2.7.6.6PF5 — GPIO (PF[5]) / EBI Multiplex Address/Data (AD[11]) / EBI Non
Muxed Address (ADDR[11]) / MLB Data Out / Level Shifter Enable
(MLBDO / MLBDAT_BUFEN) / Nexus Message Data Out (MDO[1])
PF[5] is a GPIO pin. AD[11] is the EBI multiplexed address and data bus. ADDR[11] is the EBI non
multiplexed address bus. In a 3-pin MLB interface, MLBDAT_BUFEN controls the external level shifter
for the MLBDAT pin. In a 5-pin MLB interface, MLBDO carries user data from the emulated MLB
module to the MOST network controller. MDO[1] is a trace message output to the development tools.
2.7.6.7PF6 — GPIO (PF[6]) / EBI Multiplex Address/Data (AD[12]) / EBI Non
Muxed Address (ADDR[12]) / MLB SLO T / Signal Observe / Data Observe
(MLB_SLOT / MLB_SIGOBS / MLB_DATOBS) / Nexus Message Data Out
(MDO[2])
PF[6] is a GPIO pin. AD[12] is the EBI multiplexed address and data bus. ADDR[12] is the EBI non
multiplexed address bus. MLB_SLOT, MLB_SIGOBS, and MLB_DATOBS are debug signals for the
MLB module. MDO[2] is a trace message output to the development tools.
2.7.6.8PF7 — GPIO (PF[7]) / EBI Multiplex Address/Data (AD[13]) / EBI Non
Muxed Address (ADDR[13]) / Nexus Message Data Out (MDO[3])
PF[7] is a GPIO pin. AD[13] is the EBI multiplexed address and data bus. ADDR[13] is the EBI non
multiplexed address bus. MDO[3] is a trace message output to the development tools.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
2-26Freescale Semiconductor
Preliminary
Page 62
Signal Descriptions
2.7.6.9PF8 — GPIO (PF[8]) / EBI Multiplex Address/Data (AD[14]) / EBI Non
Muxed Address (ADDR[14]) / Nexus Message Data Out (MDO[4])
PF[8] is a GPIO pin. AD[14] is the EBI multiplexed address and data bus. ADDR[14] is the EBI non
multiplexed address bus. MDO[4] is a trace message output to the development tools.
2.7.6.10PF9 — GPIO (PF[9]) / EBI Multiplex Address/Data (AD[15]) / EBI Non
Muxed Address (ADDR[15]) / Nexus Message Data Out (MDO[5])
PF[9] is a GPIO pin. AD[15] is the EBI multiplexed address and data bus. ADDR[15] is the EBI non
multiplexed address bus. MDO[5] is a trace message output to the development tools.
2.7.6.11PF10 — GPIO (PF[10]) / EBI Chip Select (CS[1]) / SCI_C T ransmit (TXD_C)
/ Nexus Message Data Out (MDO[6])
PF[10] is a GPIO pin. CS[1] is the EBI chip select output signals. TXD_C is the transmit pin for the eSCI
C module. MDO[6] is a trace message output to the development tools.
2.7.6.12PF11 — GPIO (PF[11]) / EBI Chip Select (CS[0]) / SCI_C Receive (RXD_C)
/ Nexus Message Data Out (MDO[7])
PF[11] is a GPIO pin. CS[0] is the EBI chip select output signals . RXD_C is the receive pin for the eSCI
C module. MDO[7] is a trace message output to the development tools.
2.7.6.13PF12 — GPIO (PF[12]) / EBI T ransfer Start (TS) / SCI_D T ransmit (TXD_D)
/ EBI Address Latch Enable
PF[12] is a GPIO pin. TS is the EBI transfer start output signals. TXD_D is the transmit pin for the eSCI
D module. ALE is the EBI address latch enable.
PF[13] is a GPIO pin. OE is the EBI chip select output signals. RXD_D is the receive pin for the eSCI D
module.
2.7.6.15PF14 — GPIO (PF[14]) / EBI Write Enable (WE[0]) / EBI Burst Data In
Progress (BDIP
PF[14] is a GPIO pin. WE[0] specifies which data pins contain valid data for an external bus transfer . BDIP
indicates that an EBI burst transfer is in progress. CNTX_D is the transmit pin for the FlexCan D module.
PF[15] is a GPIO pin. WE[1] specifies which data pins contain valid data for an external bus transfer. TEA
indicates that an error occurred in the current external bus transfer. CNRX_D is the receive pin for the
FlexCan D module.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
PG[0] is a GPIO pin. AD[16] is the EBI multiplexed address and data bus. eMIOS[16] is an input/output
channel pin for the eMIOS200 module.
2.7.7.2PG1 — GPIO (PG[1]) / EBI Multiplex Address/Data (AD[17]) / eMIOS
Channel (eMIOS[17]) / DSPI_C Data In (SIN_C)
PG[1] is a GPIO pin. AD[17] is the EBI multiplexed address and data bus. eMIOS[17] is an input/output
channel pin for the eMIOS200 module. SIN_C is the data input pin for the DSPI C module.
2.7.7.3PG2 — GPIO (PG[2]) / EBI Multiplex Address/Data (AD[18]) / eMIOS
Channel (eMIOS[18]) / DSPI_C Data Out (SOUT_C)
PG[2] is a GPIO pin. AD[18] is the EBI multiplexed address and data bus. eMIOS[18] is an input/output
channel pin for the eMIOS200 module. SOUT_C is the data output pin for the DSPI C module.
PG[3] is a GPIO pin. AD[19] is the EBI multiplexed address and data bus. eMIOS[19] is an input/output
channel pin for the eMIOS200 module. SCK_C is the SPI clock pin for the DSPI C module.
PG[4] is a GPIO pin. AD[20] is the EBI multiplexed address and data bus. eMIOS[20] is an input/output
channel pin for the eMIOS200 module. PCS_C[0] is a peripheral chip select output pin for the DSPI C
module.
PG[7] is a GPIO pin. AD[23] is the EBI multiplexed address and data bus. eMIOS[23] is an input/output
channel pin for the eMIOS200 module. RXD_C is the receive pin for the eSCI C module.
PG[9] is a GPIO pin. AD[25] is the EBI multiplexed address and data bus. PCS_A[3] is a peripheral chip
select output pin for the DSPI A module. TXD_C is the transmit pin for the eSCI_C module.
PG[13] is a GPIO pin. AD[29] is the EBI multiplexed address and data bus. SCK_A is the SPI clock pin
for the DSPI A module.
2.7.7.15PG14 — GPIO (PG[14]) / EBI Multiplex Address/Data (AD[30]) / DSPI_C
Data Out (SOUT_A)
PG[14] is a GPIO pin. AD[24] is the EBI multiplexed address and data bus. SOUT_A is the data output
pin for the DSPI A module.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor2-29
Preliminary
Page 65
Signal Descriptions
2.7.7.16PG15 — GPIO (PG[15]) / EBI Multiplex Address/Data (AD[31]) / DSPI_C
Data In (SIN_A)
PG[15] is a GPIO pin. AD[31] is the EBI multiplexed address and data bus. SIN_A is the data input pin
for the DSPI A module.
2.7.8Port H Pins
2.7.8.1PH0 — GPIO (PH[0]) / Analog Input (AN[27]) / eMIOS Channel
(eMIOS[20]) / I
PH[0] is a GPIO pin. AN[27] is a single-ended analog input pin. eMIOS[20] is an output-only channel pin
for the eMIOS200 module. SCL_A is the serial clock signal for the I2C_A module.
2
C Serial Clock Line (SCL_A)
2.7.8.2PH1 — GPIO (PH[1]) / Analog Input (AN[26]) / eMIOS Channel
(eMIOS[21]) / I
PH[1] is a GPIO pin. AN[26] is a single-ended analog input pin. eMIOS[21] is an output-only channel pin
for the eMIOS200 module. SDA_A is the serial data signal for the I2C_A module.
PH[2] is a GPIO pin. AN[25] is a single-ended analog input pin. eMIOS[22] is an output-only channel pin
for the eMIOS200 module. CS[3] is an EBI chip select output.
PH[3] is a GPIO pin. AN[24] is a single-ended analog input pin. eMIOS[23] is an output-only channel pin
for the eMIOS200 module. CS[2] is an EBI chip select output.
)
2.7.8.5PH4 — GPIO (PH[4]) / Analog Input (AN[23]) / SCI_E Transmit (TXD_E) /
External Analog Mux Address Output (MA[2])
PH[4] is a GPIO pin. AN[23] is a single-ended analog input pin. TXD_E is the transmit pin for the eSCI_E
module. MA[2] is a address output for an external analog mux used to select the mux input channel to
connect to the QADC.
2.7.8.6PH5 — GPIO (PH[5]) / Analog Input (AN[22]) / SCI_E Receive (RXD_E) /
External Analog Mux Address Output (MA[1])
PH[5] is a GPIO pin. AN[22] is a single-ended analog input pin. RXD_E is the receive pin for the eSCI_E
module. MA[1] is a address output for an external analog mux used to select the mux input channel to
connect to the QADC.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
PH[7] is a GPIO pin. AN[20] is a single-ended analog input pin. RXD_F is the receive pin for the eSCI_F
module.
2.7.8.9PH8 — GPIO (PH[8]) / Analog Input (AN[19]) / CAN_E T ransmit (CNTX_E)
/ External Analog Mux Address Output (MA[0])
PH[8] is a GPIO pin. AN[19] is a single-ended analog input pin. CNTX_E is the transmit pin for the
FlexCAN_E module. MA[0] is a address output for an external analog mux used to select the mux input
channel to connect to the QADC.
PK0 is a GPI pin. EXTAL32 is the input pin for an external 32 kHz crystal oscillator. (The EXTAL32
function is available on the PA14 pin on the 144LQFP package and on the PK0 pin on the 176LQFP and
208BGA packages.)
PK1 is a GPI pin. XTAL32 is the output pin for an external 32 kHz crystal oscillator (XTAL32 function
available on A15 pin on the 144LQFP package and PK1 pin on the 176LQFP and 208BGA packages).
2.7.11Miscellaneous Pins
2.7.11.1XTAL — Crystal Oscillator Output
XTAL is the output pin for an external crystal oscillator.
2.7.11.2EXTAL — Crystal Oscillat or Input / External Clock Input
EXT AL is the input pin for an external crystal oscillator or an external clock source. The alternate function
is the external clock input.
2.7.11.3RESET — External Reset Input
The RESET pin is a bidirectional I/O pin. It is asserted by an external device to reset all modules of the
MCU, except the R TC counter. It is also an open drain output signal that is asserted during an internal reset.
See Chapter 7, “Reset,” for more detail.
2.7.11.4TCK — JTAG Test Clock Input
TCK provides the clock input for the on-chip test logic.
2.7.11.5TDI — JTAG Test Data Input
TDI provides the serial test instruction and data input for the on-chip test logic.
2.7.11.6TDO — JTAG Test Data Output
TDO provides the serial test data output for the on-chip test logic.
2.7.11.7TMS — JTAG Test Mode Select Input
TMS controls test mode operations for the on-chip test logic.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor2-33
Preliminary
Page 69
Signal Descriptions
2.7.11.8JCOMP — JTAG Compliance Input
The JCOMP pin is used to enable the JTAG TAP controller.
2.7.11.9TEST — Test Mode Enable Input
The TEST pin is used to place the chip in test mode. It must be negated for normal operation, and should
be connected to ground in all customer applications.
2.7.12Power and Ground Pins
2.7.12.1Voltage Regulator Reference (VDDR)
VDDR is the voltage reference to the internal voltage regulator.
2.7.12.2VDDA — Analog-to-Digital Converter Analog Supply
VDDA is the analog supply for the eQADC.
2.7.12.3VSSA — Analog-to-Digital Converter Analog Ground
VSSA is the analog ground for the eQADC.
2.7.12.4VRH — Analog-to-Digital Converter Reference High
REFBYPC is a bypass capacitor input for the eQADC. The REFBYPC pin is used to connect an external
bias capacitor between the REFBYPC pin and VRL.
2.7.12.7VDDSYN — Clock Synthesizer Supply
VDDSYN is the supply power for the FMPLL.
2.7.12.8VSSSYN — Clock Synthesizer Ground
VSSSYN is the ground reference for the FMPLL.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
2-34Freescale Semiconductor
Preliminary
Page 70
Signal Descriptions
2.7.12.9VDD33 — 3.3 V I/O and Flash Read Supply (VFLASH)
VDD33 is the 3.3 V internal supply used for the external I/O control logic. It is intended only for the
connection of bypass capacitors, and must not be connect to load or power . (VFLASH is the on-chip flash
read supply.)
2.7.12.10VPP — Flash Program/Erase Supply
VPP is the on-chip flash program/erase supply.
2.7.12.11VDD — Internal Logic Supply and Flash Logic Supply (VDDF)
VDD is the 1.5 V logic and flash supply.
2.7.12.12VSS — Internal Logic and Flash (VSSF) Ground
VSS is the ground reference for internal logic and the flash.
2.7.12.13VDDEx — External I/O Supply
VDDEx is the 3.3 V to 5.0 V external I/O supply independently controlling the level for one of three
groups of I/O pins. (x=1,2,3.)
2.7.12.14VSSEx — External I/O Ground
VSSEx is the external I/O ground for one of three groups of I/O pins. (x=1,2,3.)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor2-35
Preliminary
Page 71
Signal Descriptions
MPC5510 Microcontroller Family Reference Manual, Rev. 1
2-36Freescale Semiconductor
Preliminary
Page 72
Chapter 3
System Clock Description
3.1Introduction
The MPC5510 supports several clock sources that include an internal phase-locked loop (PLL), an
external high-frequency crystal (XOSC), an external low-frequency crystal (32kOSC), an internal
high-frequency RC oscillator (IRC), and an internal low-frequency RC oscillator (32kRC).
The availability of the clock sources vary, depending on the run, stop, and power mode selected. During
low power modes, the PLL and XOSC are not available as clock sources.
The internal system clock may be generated in several ways:
•Internal 16 MHz IRC
•PLL: Normal mode with crystal clock reference for XOSC
•PLL: Normal mode with external clock reference for XOSC
•XOSC with external clock reference (PLL bypass mode)
•XOSC with crystal clock reference
There are two clock output pins driven by programmable clock dividers: CLKOUT and MCKO.
The oscillator clock can be selected as the clock source for the FlexCAN interface in the FlexCAN blocks
resulting in very low jitter performance. The oscillator clock can also be selected as the clock source for
the FlexRay interface in the FlexRay block.
The default clock source after reset is the 16 MHz IRC.
3.2Clock Sources
The various clock sources that are available on MPC5510 are shown in Figure 3-1 and discussed in more
detail in subsequent sections.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor3-1
Preliminary
Page 73
System Clock Description
XOSC
OSCCLK
SYSCLKSEL
210
16 MHz
IRC
PLL
Clock
Switcher
+1,2,4,8SYSCLKDIV
+1,2,4,8LPCLKDIV[n]
System Clock
Peripheral Clocks
TRIMIRC
5V3.3 V
EXTAL
3.3 V
XTAL
3.3 V
3.3 V
EXTAL32
5 V
XTAL32
5V
32 kHz
IRC
TRIM32IRC
5V
32 kOSC
OSC32KEN
Figure 3-1. MPC5510 Available Clock Sources
3.2.1External High-Frequency Crystal (XOSC)
The MPC5510 features an internal automatic level control (ALC) oscillator. The oscillator is designed for
optimal startup margin with typical crystal oscillators. Oscillator power is supplied from its own 3.3 V
PLL supply voltage generated by the voltage regulator to minimize noise. The oscillator provides the
reference clock for the entire chip. As such, it may be used to drive the system clock directly (when the
PLL is bypassed), or as the input reference clock for the PLL.
A square-wave input can also be supplied to the device through the oscillator by connecting the external
clock source to the EXTAL pin with the oscillator operating in external-clock mode.
Features:
•Supports external high-frequency resonator or crystal in the range of f
for reference frequency specification)
•Pierce oscillator
•Two external pins are dedicated for this function (EXTAL, XTAL)
•40 MHz max required to support FlexRay
•Clock input to PLL
•This clock source is capable of supporting FlexCAN communications (jitter < 0.5%)
•This clock source is capable of supporting FlexRay communications (jitter < 0.5%) (duty
3-2Freescale Semiconductor
cycle = 50 ± 10%)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Preliminary
(see MPC5510 data sheet
ref
Page 74
System Clock Description
•Clock for the RTI
•Optional disable
•Enabled by default after reset
3.2.2External Low-Frequency Crystal (32kXOSC)
The MPC5510 supports an external 32 kHz crystal to provide accurate wake-up and time-keeping
functions.
Features:
•Two external pins required: EXTAL32 and XTAL32
•Supports external low frequency crystal in the range of f
reference frequency specification)
•Option to clock the API to provide a more accurate wakeup
•Option to clock the RTC to provide accurate time keeping
•Powered from 5 V
•Optional disable
(see MPC5510 data sheet for
ref32
3.2.3Internal High-Frequency RC Oscillator (IRC)
The MPC5510 includes a 16 MHz IRC as the default system clock out of reset.
Features:
•Fast stabilization, enabling fast recovery
•Frequency trimmable for accuracy
•Option to clock software watchdog timer
•Powered from 5 V
•Always enabled except optionally disabled in sleep modes when not being used
3.2.4Internal Low-Frequency RC Oscillator (32kRC)
The MPC5510 includes a 32 kHz internal RC oscillator that is intended to be used as a highly reliable clock
source during low-power modes.
Features:
•Frequency trimmable for accuracy
•Option to clock the API to provide a wakeup
•Option to clock the RTC to provide time keeping
•Powered from 5 V
•Optionally enabled
MPC5510 Microcontroller Family Reference Manual, Rev. 1
To optimize system power consumption, the MPC5510 supports both system- and peripheral-level clock
dividers, and static clock gating using peripheral-level module disable (MDIS) bits and a system-level halt
mechanism. Figure 3-2 shows the device-level clock gating mechanism for the MPC5510.These features
are detailed in subsequent sections.
Figure 3-2. System Clock Architecture
3-4Freescale Semiconductor
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Preliminary
Page 76
System Clock Description
3.4Clock Dividers
3.4.1System Clock Select
The source for the system clock can be selected by the SYSCLKSEL field of the SIU system clock register
(SIU_SYSCLK) to be the 16 MHz IRC, the XOSC, or the PLL.
3.4.2System Clock Dividers
The system clock dividers can be programmed to create a system clock, which is created from the selected
clock source divided by 1, 2, 4, or 8, based on the setting of the SYSCLKDIV field in the SIU system clock
register (SIU_SYSCLK).
3.4.3External Bus Clock (CLKOUT) Divider
The external bus clock (CLKOUT) divider can be programmed to create a CLKOUT, which is created
from the system clock divided by 1, 2, or 4, based on the settings of the EBDF bit field in the SIU external
clock control register (SIU_ECCR). The reset value of EBDF selects a CLKOUT frequency of one half of
the system clock frequency. The EBI supports gating of the CLKOUT signal when there are no external
bus accesses in progress.
The CLKOUT divider provides a nominal 50% duty cycle clock. There is no guaranteed phase relationship
between CLKOUT and MCKO.
3.4.4Nexus Message Clock (MCKO) Divider
The Nexus message clock (MCKO) divider can be programmed to divide the system clock by one, two,
four, or eight based on the MCKO_DIV bit field in the port configuration register (PCR) in the Nexus port
controller (NPC). The reset value of MCKO_DIV selects an MCKO clock frequency one half of the
system clock frequency. The MCKO divider is configured by writing to the NPC through the JTAG port.
The MCKO_EN bit may be used to disable the MCKO clock. The MCKO_GT bit may be used to disable
the MCKO clock when Nexus is not actively transmitting messages on the Nexus port.
The MCKO divider provides a nominal 50% duty cycle clock. There is no guaranteed phase relationship
between CLKOUT and MCKO.
3.4.5Peripheral Clock Dividers
The peripheral clock dividers provide a mechanism to reduce run power when it is not necessary to clock
peripherals at the full system clock frequency.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor3-5
Preliminary
Page 77
System Clock Description
The SIU’ s SIU_SYSCLK[LPCLKDIVn] bits control the clock divide value for each grouping of modules.
The divide values may be independently selected for each grouping and support a divide by 1, 2, 4, or 8.
Figure 3-1 defines which peripherals are affected by which LPCLKDIVn bits.
Table 3-1. LPCLKDIV Module Groups
LPCLKDIVnModules
LPCLKDIV0FlexCAN_A, DSPI_A
2
LPCLKDIV1ESCI_A, I
LPCLKDIV2FlexCAN_B-F
LPCLKDIV3DSPI_B-D
LPCLKDIV4ESCI_B-H
LPCLKDIV5eMIOS
LPCLKDIV6MLB
LPCLKDIV7Reserved
C_A, PIT
The MPC5510 implements a single clock divider circuit that uses the system clock as its source. The
LPCLKDIV bits control which clock divide tap is used for each module grouping clock gate enable. The
resultant gated clocks will be at the desired frequency but are clock pulses instead of a 50% duty cycle (the
high clock pulse width is half the system clock period). The high-order clock taps will be disabled if not
being used. Individual modules should be disabled when changing the LPCLKDIV values affecting the
module.
The user is responsible for adjusting the module function, prescalers, protocol timings, etc. based on the
LPCLKDIV values. Register accesses will be proportionally longer along with other basic module
functions such as interrupts, DMA, etc.
3.5Software-Controlled Power Management
3.5.1Module Disable (MDIS) Clock Gating
Static clock gating is enabled by software writes to configuration bits for the modules to disable the
modules. Modules are re-enabled by software to ungate the module clocks.
The modules support software controlled clock gating where the application software can disable the
non-memory-mapped portions of the blocks by writing to module disable (MDIS) bits in registers within
the blocks. (The memory-mapped portions of the blocks are clocked by the system clock only when they
are accessed.) The Nexus port controller (NPC) can be configured to disable the MCKO signal when there
are no Nexus messages pending. The flash array can be disabled by writing to the STOP bit in the flash’s
module configuration register (MCR).
The modules that support software-controlled power management/clock gating are listed in Table 3-2
along with the registers and bits that disable each block. Default out of reset disables the
software-controlled clocks.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
3-6Freescale Semiconductor
Preliminary
Page 78
Table 3-2. Software-Controlled Clock Gating Support
Block NameRegister NameBit Name
DSPIMCRMDIS
ESCIMCRMDIS
FlexCANMCRMDIS
EMIOSMCRMDIS
EBIMCRMDIS
MLBMCRMDIS
PIT_RTIMCRMDIS
2
I
CIBCRMDIS
NPCMCRMCKO_EN, MCKO_GT
Flash ArrayMCRSTOP
1
Only the PIT timers are disabled by MDIS. The RTI is not affected by MDIS.
3.5.2Halt Clock Gating
System Clock Description
1
System clock gating is forced via the centralized halt mechanism. The SIU_HLT register’s bits
corresponding to individual modules are configured to determine which modules are clock gated.
The HLT bits are used to drive the stop inputs to the modules. After the module completes a clean
shutdown, the module asserts the stop acknowledge handshake. The stop acknowledge is visible in the
SIU_HLTACK read-only register bits. The modules are individually controlled and halted.
The halted module recovers when the HLT bit is cleared by software. After HLT is cleared, the device’s
logic will re-enable the clocks to the modules and negate the stop signal after the required timing has been
met.
There is no hardware disable for the eDMA and FlexRay modules. Thus before setting the HLT bits for
these masters, software should take actions to prepare for the eDMA and FlexRay clocks to be stopped.
Then software sets the HLT bits for the eDMA and FlexRay to indicate to the clock logic that the clocks
to these modules can now be stopped.
When the HLT bits for the eDMA and FlexRay are set and when the Z0 and Z1 have executed WAIT
instructions, then the clocks to the platform are also gated. The platform logic includes the MPU, AXBS,
AIPS, and MCM. The INTC and SIU are not clock gated to allow for an interrupt to be used to exit WAIT.
3.5.3Core WAIT Clock Gating
Core clock gating is enabled via the CPU WAIT instruction (or, if the core is in reset, by the CRP Core
Reset bit).
The Z1 and Z0 cores may be idled by their WAIT instructions. The WAIT instructions are used as a
power-saving feature to halt the core. Executing the WAIT instruction puts the corresponding core in an
idle state at a clean transition point. When the core stops, clocks to the core are gated off, and the core
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor3-7
Preliminary
Page 79
System Clock Description
asserts a signal indicating it is waiting for an interrupt. The state of this signal is software accessible via
the appropriate SIU_HLTACK register’s bits.
An interrupt to the corresponding core exits the W AIT instruction and the core co ntinues to the appropriate
interrupt service routine (ISR).
3.6Alternate Module Clock Domains
3.6.1FlexCAN Clock Domains
The FlexCAN blocks have two distinct software-controlled clock domains. One of the clock domains is
always derived from the system clock. This clock domain includes the message buffer logic. The source
for the second clock domain can be the system clock or the XOSC output. The logic in the second clock
domain controls the CAN interface pins. The CLK_SRC bit in the FlexCAN CTRL register selects
between the system clock and the oscillator clock as the clock source for the second domain. Selecting the
oscillator as the clock source ensures low jitter on the CAN bus. System software can gate both clocks by
writing to the MDIS bit in the FlexCAN MCR register.
NOTE
To prevent improper FlexCAN behavior when switching of the system
clock or the CAN protocol engine clock source, or before the desired clock
source has stabilized, the FlexCAN module must first be disabled by setting
the FlexCAN_x_MCR[MDIS] = 1.
If the oscillator clock source is selected, the frequency of the peripheral clock needs to be the same or
greater than the oscillator clock frequency.
If the XOSC is used as the system clock source and is divided down, then the clock source selected for the
CAN interface must be the system clock (i.e. divided XOSC) to keep the system clock not slower than the
CAN interface clock.
3.6.2FlexRay Clock Domains
The FlexRay block has two distinct software-controlled clock domains. One of the clock domains is
always derived from the system clock. The source for the second clock domain can be the system clock or
the XOSC output. The logic in the second clock domain controls the FlexRay interface pins. The
CLK_SRC bit in the FlexRay CTRL register selects between the system clock and the oscillator clock as
the clock source for the second domain. Selecting the oscillator as the clock source ensures low jitter on
the FlexRay bus.
NOTE
To prevent improper FlexRay behavior, the system clock or the FlexRay
protocol engine clock source must be switched and stable before enabling
the FlexRay module. After it is enabled, the FlexRay module can be
disabled only by asserting RESET
.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
3-8Freescale Semiconductor
Preliminary
Page 80
System Clock Description
If the oscillator clock source is selected for the FlexRay interface, then a divided down XOSC cannot be
selected as the source for the system clock.
3.6.3RTC Clock Domain
The clock source for the RTC can be selected as one of the following: the 32 kHz IRC, the 32 kHz OSC,
or the 16 MHz IRC.
NOTE
To prevent improper real-time clock (RTC) behavior when switching the
system clock source, or before the desired clock source has stabilized, the
RTC must first be disabled by clearing the CRP_RTCSC[CNTEN] = 0.
3.6.4SWT Clock Domain
The clock source for the SWT is selectable as the system clock or the 16 MHz IRC.
NOTE
To prevent improper software watchdog timer (SWT) behavior when
switching the system clock source, or before the desired clock source has
stabilized, the SWT must first be disabled by clearing the
MCM_MSWTCR[SWE] = 0.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor3-9
Preliminary
Page 81
System Clock Description
MPC5510 Microcontroller Family Reference Manual, Rev. 1
3-10Freescale Semiconductor
Preliminary
Page 82
Chapter 4
FMDAC_STEP[0:9]
D2AFMCALDAC
EXTAL
EPREDIV
PFD
FILTERVCOERFD
LOC_PLL
LOC_REF
EMFD
PLL Clock
Out
Used to create the
loss of clock reset
request and decide
which PLL mode to
switch to when
these things happen
Frequency Modulated Phase Locked Loop (FMPLL)
4.1Introduction
The FMPLL module is a frequency modulated phase-locked loop that has been optimized to generate
voltage controlled oscillator (VCO) frequencies from 192 MHz to 500 MHz based on an input clock range
of 4 MHz to 40 MHz. The frequency multiplication, output dividers, and the frequency modulation
waveform are register-programmable through a peripheral bus interface.
NOTE
Although this PLL is basically the same PLL that is used on other Power PC
parts, its implementation is different, owing to the use of an internal 16 MHz
IRC, low-power modes, and other features specific to the 5510 family.
4.1.1Block Diagram
A simplified block diagram of the FMPLL illustrates the functionality and interdependence of major
blocks (see Figure 4-1). Shaded blocks represent analog circuit components that make up the core analog
portion of the FMPLL. The complete FMPLL closed-loop system contains the feedback divider (EMFD)
and output divider (ERFD), which are implemented with standard cell core logic elements. Refer to
Section 4.4.3.3, “PLL Normal Mode Without FM,” for details on each sub-block.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-1
Figure 4-1. FMPLL Block Diagram
Preliminary
Page 83
Frequency Modulated Phase Locked Loop (FMPLL)
4.1.2Features
The FMPLL has these major features:
•Input clock frequency range: 4 MHz to 40 MHz (EXTAL pin)
•Because the MPC5510 uses a 16 MHz IRC as its default system clock, the FMPLL will be put in
PLL Off mode during reset, so that power dissipation is minimized by disabling the FMPLL until
needed by the system.
•Programmable frequency multiplication factor settings generating VCO frequencies of
— Modulation applied as a triangle waveform
— Peak-to-peak register programmable modulation depths of 0.5%, 1%, 1.5%, and 2% of the
system frequency
— Register programmable modulation rates of F
extal
/80, F
/40, and F
extal
extal
/20
•Lock detect circuitry provides a signal indicating the FMPLL has acquired lock and continuously
monitors the FMPLL output for any loss of lock
•Loss-of-clock circuitry monitors input reference and FMPLL output clocks with programmable
ability to select a backup clock source as well as generate a reset or interrupt in the event of a failure
4.1.3Modes of Operation
There are two main modes of FMPLL: PLL Off mode and normal mode. These modes are briefly described
in this section.
When PLL Off mode is selected, the FMPLL is off, and the end-system user must have selected a dif ferent
SIU MUX source than the PLL Output. The lock detector is not functional and will not indicate that the
FMPLL is in a locked state. Frequency modulation is not available and the FMPLL is put into a low-power,
idle state. This operating mode is described in Section 4.4.2, “PLL Off Mode.”
When normal mode is selected, the FMPLL is fully programmable. The FMPLL reference clock source
can be a crystal oscillator or an external clock generator. The lock detector will function and indicate the
lock status of the FMPLL and frequency modulation of the output clock can be enabled. This operating
mode is described in Section 4.4.3, “Normal Mode.”
4.2External Signal Description
Refer to Table 2-1 and Section 2.7, “Detailed External Signal Descriptions,” for detailed signal
descriptions.
4.3Memory Map and Registers
This section provides a detailed description of all FMPLL registers.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
4-2Freescale Semiconductor
Preliminary
Page 84
Frequency Modulated Phase Locked Loop (FMPLL)
4.3.1Module Memory Map
Table 4-1 shows the FMPLL memory map. The address of each register is given as an offset to the FMPLL
base address. Registers are listed in address order, identified by complete name and mnemonic, and lists
the type of accesses allowed.
Table 4-1. FMPLL Memory Map
Offset from
FMPLL_BASE_ADDR
(0xFFFF_0000)
0x0000Reserved
0x0004SYNSR—FMPLL Synthesizer Status RegisterR/W—
RegisterAccess Reset Value Section/Page
1
4.3.2.1/4-3
0x0008ESYNCR1—FMPLL Enhanced Synthesizer Control
Register 1
0x000CESYNCR2—FMPLL Enhanced Synthesizer Control
Register 2
0x0010–0x0014Reserved
1
See specific register description.
R/W0x8001_00534.3.2.2/4-5
R/W0x0000_00054.3.2.3/4-8
4.3.2Register Descriptions
This section lists the FMPLL registers in address order and describes the registers and their bit fields.
4.3.2.1FMPLL Synthesizer Status Register (SYNSR)
FMOffset: PLL_BASE_ADDR + 0x0004Access: User read/write
0123456789101112131415
R0000000000000000
W
Reset00000000 0 00 0 00 00
16171819202122232425262728293031
R000000LOLF
W
Reset00000000 0 00 0 00 00
LOC MODE
w1cw1c
PLL
SEL
PLL
REF
LOCKS LOCK
LOCF
CAL
DONE
CAL
PASS
Figure 4-2. FMPLL Synthesizer Status Register (SYNSR)
Table 4-2. SYNSR Register Field Descriptions
FieldDescription
bits 0–21Reserved.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-3
Preliminary
Page 85
Frequency Modulated Phase Locked Loop (FMPLL)
Table 4-2. SYNSR Register Field Descriptions (continued)
FieldDescription
LOLFLoss- of-Lock Flag. This bit provides the interrupt request flag. To clear the flag, write a 1 to the bit. Writing 0 has
no effect. This flag will not be set, and an interrupt will not be requested, if the loss-of-lock condition was caused
by a system reset, enabling frequency modulation, or write to the ESYNCR1 which modifies the
ESYNCR1[EMFD] bits. If the flag is set due to a system failure, writing the ESYNCR1[EMFD] bits or enabling FM
will not clear the flag. Assert reset to clear the flag. If lock is reacquired, the bit will remain set until either a write
1 or reset is asserted.
1 Inter rupt service requested
0 Inte rrupt service not requested
LOCLoss-Of-Clock Status. The LOC bit is an indication of whether a loss-of-clock condition is present when operating
in normal PLL mode. If LOC=0, the system clocks are operating normally . If LOC=1, the system clocks have failed
due to a reference failure or a PLL failure. If the read of the LOC bit and the loss-of-clock condition occur
simultaneously , the bit does not reflect the current loss-of-clock condition. If a loss-of-cloc k condition occurs that
sets this bit and the clocks later return to normal, this bit will be cleared. LOC is always zero in PLL Off mode.
1 Clo cks are not operating normally
0 Clocks are operating normally
MODEClock Mode. The initial value for the MODE bit is determined at reset. The state of this bit, along with PLLSEL
and PLLREF, indicates which clock mode the PLL is operating in (see Table 4-3). The value of
ESYNCR1[CLKCFG0] will be reflected in this location.
1 PLL clock mode
0 PLL Off mode
PLLSELPLL Mode Select. The initial value for the PLLSEL bit is determined at reset. The state of this bit, alon g with
MODE and PLLREF, indicates which mode the PLL operates in (see Table 4-3). This bit is cleared in PLL Off
mode. The value of ESYNCR1[CLKCFG1] will be reflected in this location.
1 Normal PLL mode
0 PLL Off mode
PLLREFPLL Clock Reference Source. The initial value for the PLLREF bit is determined at reset. The state of this bit,
along with MODE and PLLSEL, indicates which reference source has been chosen for normal PLL mode (see
Table 4-3). This bit is cleared in PLL Off mode. The value of ESYNCR1[CLKCFG2] will be reflected in this
location.
1 Crystal clock reference chosen
0 Exte rnal clock reference chosen
Note: User must also use the XOSC bit in the CRP register (CRP_CLKSRC) to enable the 4 to 40 MHz oscillator.
LOCKSSti cky PLL Lock Status Bit. The LOCKS bit is a sticky indication of PLL lock status. LOCKS is set by the lock
detect circuitry when the PLL acquires lock after: 1) a system reset, or 2) a write to the ESYNCR2 which modifies
the ESYNCR2[EMFD] bits, or 3) frequency modulation is enabled. Whenever the PLL loses lock, LOCKS is
cleared. LOCKS remains cleared after the PLL re-locks, until one of the three conditions occurs. Furthermore, if
the LOCKS bit is read when the PLL simultaneously loses lock, the bit does not reflect the current loss-of-lock
condition.
If operating in PLL Off mode, LOCKS remains cleared after reset.
1 PLL ha s not lost lock since last system reset, a write to ESYNCR1 to modify the ESYNCR1[EMFD] bit field,
or frequency modulation enabled
0 PLL ha s lost lock since last system reset, a write to ESYNCR1 to modify the ESYNCR1[EMFD] bit field, or
frequency modulation enabled
MPC5510 Microcontroller Family Reference Manual, Rev. 1
4-4Freescale Semiconductor
Preliminary
Page 86
Frequency Modulated Phase Locked Loop (FMPLL)
Table 4-2. SYNSR Register Field Descriptions (continued)
FieldDescription
LOCKPLL Lock Status Bit. The LOCK bit indicates whether the PLL has acquired lock. PLL lock occurs when the
synthesized frequency matches to within approximately 0.75% of the programmed frequency . The PLL loses lock
when a frequency deviation of greater than approximately 1.5% occurs. If the LOCK bit is read when the PLL
simultaneously loses lock or acquires lock, the bit does not reflect the current condition of the PLL.
If operating in PLL Off mode, LOCK remains cleared after reset.
1 PLL is locked
0 PLL is unlocked
LOCFLoss-of-Clock Flag. This bit provides the interrupt request flag. To clear the flag, write a 1 to the bit. Writing 0 has
no effect. Asserting reset will clear the flag. If clocks return to normal after the flag has been set, the bit will remain
set until cleared by either writing 1 or asserting reset. A loss-of-clock condition can only be detected if LOCEN=1.
1 Inter rupt service requested
0 Inte rrupt service not requested
CALDONE Cal ibrati on Complete. The CALDONE bit is an indication of whether the calibration sequence has been
completed since the last time modulation was enabled. If CALDONE=0 then the calibration sequence is in
progress or modulation is disabled. If CALDONE=1 then the calibration sequence has been completed, and
frequency modulation is operating.
1 Calibration complete
0 Cal ibration not complete
CALPASSCalibration Passed. The CALPASS bit tells whether the calibration routine was successful. If CALPASS=1 and
CALDONE=1 then the routine was successful. If CALPASS=0 and CALDONE=1, then the routine was
unsuccessful. When the calibration routine is initiated the CALPASS is asserted. CALPASS remains asserted
until modulation is disabled by clearing the EDEPTH bits in the ESYNCR2 register or a failure occurs within the
FMPLL calibration sequence.
1 Calibration successful
0 Calibration unsuccessful
If calibration is unsuccessful, then actual depth is not guaranteed to match the desired depth
MODEPLLSELPLLREFClock Mode
0XXPLL Off mode
10 0Reserved
110Normal PLL mode with external clock reference
111Normal PLL mode with crystal clock reference
Table 4-3. System Clock Status Per Mode
4.3.2.2FMPLL Enhanced Synthesizer Control Register 1 (ESYNCR1)
This is one of two FMPLL synthesizer control registers that are used to access enhanced features in the
FMPLL. The bit fields in the ESYNCR1 behave as described in Figure 4-3.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-5
Preliminary
Page 87
Frequency Modulated Phase Locked Loop (FMPLL)
FMOffset: PLL_BASE_ADDR + 0x0008Access: User read/write
0 123456789101112131415
R1
W
CLKCFG[0:2]
00000000
EPREDIV
Reset1 000000000000001
16171819202122232425262728293031
R00000000
W
EMFD
Reset0 000000001010011
Figure 4-3. FMPLL Enhanced Synthesizer Control Register 1 (ESYNCR1)
Table 4-4. ESYNCR1 Register Field Descriptions
FieldDescription
bit 0Reserved.
Note: This bit is set to 1 on reset and always reads as 1.
CLKCFG[0:2]Clock Configuration. The CLKCFG[0:2] bits are writable versions of the MODE, PLLSEL, and PLLREF bits
in the SYNSR. These change the clock mode, after reset has negated, via software. CLKCFG[0:2] map
directly to MODE, PLLSEL, and PLLREF to control the system clock mode (see Table 4-3).
Note: CLKCFG[0:2] = 0b101 can produce an unpredictable clock output.
Note: The ESYNCR2[LOLRE] and ESYNCR2[LOCRE] should be set to 0 before changing the PLL mode, so
that a reset is not immediately generated upon the write to CLKCFG[0:2]
bits 4–11Reserved.
EPREDIVEnhanced Pre-Divider. The EPREDIV bits control the value of the divider on the input clock. The output of
the pre-divider circuit generates the reference clock to the PLL analog loop. The decimal equivalent of the
EPREDIV binary number is substituted into the equation from Table 4-11. Note: Setting the EPREDIV to any of the invalid states in Table 4-5 will cause the PLL to produce an
unpredictable output clock. and the output frequency of the divider must equal the PLL reference
frequency, f
(see MPC5510 data sheet).
pllref
When the EPREDIV bits are changed, the PLL will immediately lose lock. If the EPREDIV bits are changed
during FM calibration, the current calibration sequence is terminated and the DEPTH bits are cleared. The
PLL will re-lock to the new EPREDIV value you must manually re-enable modulation. To prevent an
immediate reset, clear the LOLRE bit before writing the EPREDIV bits. In PLL Off mode the EPREDIV bits
have no affect. The available enhanced pre-divider ratios are given in Table 4-5.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
4-6Freescale Semiconductor
Preliminary
Page 88
Frequency Modulated Phase Locked Loop (FMPLL)
Table 4-4. ESYNCR1 Register Field Descriptions (continued)
FieldDescription
bits 16–23Reserved.
EMFDEnhanced Multiplication Factor Divider. The EMFD bits control the value of the divider in the PLL feedback
loop. The value specified by the EMFD bits establish the multiplication factor applied to the reference
frequency. The decimal equivalent of the EMFD binary number is substituted into the equation from
Table 4-11 for F
to determine the equivalent multiplication factor. The range of settings is
sys
32 ≤ EMFD ≤ 132.
Note: EMFD values less than 32 and greater than 132 are invalid and will cause the PLL to produce an
unpredictable clock output. The VCO frequency must be within the f
specification (see MPC5510
vco
data sheet)
When the EMFD bits are changed, the PLL loses lock.If the EMFD bits are changed during FM calibration,
the current calibration sequence is terminated and the DEPTH bits are cleared. The PLL will re-lock to the
new EMFD value you must manually re-enable modulation. To prevent an immediate reset, clear the LOLRE
bit before writing the EMFD bits.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-7
Preliminary
Page 89
Frequency Modulated Phase Locked Loop (FMPLL)
Table 4-6. Enhanced Feedback Divide Ratios
EMFD Feedback Divide Ratio (EMFD+16)
0010_010153
.
.
0101_0011
.
.
1000_0100148
1000_0101–1111_1111Invalid
99 (default for MPC5510)
.
.
.
.
4.3.2.3FMPLL Enhanced Synthesizer Control Register 2 (ESYNCR2)
This is the second of two enhanced versions of the FMPLL synthesizer control register used to access
enhanced features in the FMPLL. The bit fields in the ESYNCR2 behave as described in Figure 4-4.
FMOffset: PLL_BASE_ADDR + 0x000CAccess: User read/write
01234567 8 9 101112131415
R00000000
W
Reset00000000 0 0 0 00000
LOCEN LOLRE LOCRE
LOL
IRQ
LOC
IRQ
0
ERATE
16171819202122232425262728293031
R00000
W
Reset00000000 0 0 0 0 0 1 0 1
EDEPTH
00
ERFD
Figure 4-4. FMPLL Enhanced Synthesizer Control Register 2 (ESYNCR2)
Table 4-7. ESYNCR2 Field Descriptions
FieldDescription
bits 0–7Reserved.
LOCENLoss-of-Clock Enable. The LOCEN bit determines whether the loss-of-clock function is operational along with
backup clock modes, and interrupt and reset functions. See Section 4.4.3.2, “Loss-of-Clock Detection,” for
more information.
In PLL Off mode, this bit has no affect.
LOCEN does not affect the loss-of-lock circuitry.
LOLRELoss-of-Lock Reset Enable. The LOLRE bit determines how the integration module handles a loss-of-lock
indication. See Section 4.4.3.1, “PLL Lock Detection,” for more information.
When operating in normal PLL mode, the PLL must be locked before setting the LOLRE bit. Otherwise reset
is immediately asserted.
The LOLRE bit has no affect in PLL Off mode.
1 Assert reset on loss of lock enabled.
0 Assert reset on loss of lock disabled.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
4-8Freescale Semiconductor
Preliminary
Page 90
Frequency Modulated Phase Locked Loop (FMPLL)
Table 4-7. ESYNCR2 Field Descriptions (continued)
FieldDescription
LOCRELoss-of-Clock Reset Enable. The LOCRE bit determines how the integration module handles a loss-of-clock
condition when LOCEN is equal to 1. LOCRE has no effect when LOCEN is equal to 0.
If the LOCF bit in the SYNSR indicates a loss-of-clock condition, setting the LOCRE bit causes an immediate
reset.
In PLL Off mode LOCRE has no affect.
1 Assert reset on loss of clock enabled
0 Assert reset on loss of clock disabled.
LOLIRQLoss-of-Lock Interrupt Request. The LOLIRQ bit determines how the integration module handles a
loss-of-lock indication. See Section 4.6.1, “Loss-of-Lock Interrupt Request,” for more information.
When operating in normal mode, the PLL must be locked before setting the LOLIRQ bit. Otherwise an
interrupt is immediately requested.
The LOLIRQ bit has no affect in PLL Off mode.
LOCIRQLoss- of-Clock Interrupt Request. The LOCIRQ bit determines how the integration module handles a loss-
of-clock condition when LOCEN=1. LOCIRQ has no effect when LOCEN=0.
If the LOCF bit in the SYNSR indicates a loss-of-clock condition, setting (or having previously set) the
LOCIRQ bit causes an interrupt request.
In PLL Off mode LOCIRQ has no affect.
1 Request interrupt on loss of clock enabled.
0 Request interrupt on loss of clock disabled
bit 13Reserved.
ERATEEnhanced Modulation Rate. The ERATE bits control the rate of frequency modulation applied to the system
frequency. Table 4-8 shows the allowable modulation rates.
bits 16–20Reserved.
EDEPTHEnhanced Modulation Depth. The EDEPTH bit field controls the frequency modulation depth and enables the
frequency modulation. When programmed to a value other than 0x0 the frequency modulation is
automatically enabled. Table 4-9 shows are the programmable frequency deviations from the system
frequency . Upon a change in the depth value to other than 0x0, the calibration sequence will be re initialized.
bits 24–25Reserved.
ERFDEnhanced Reduced Frequency Divider. The ERFD bits control a divider at the output of the PLL. The value
specified by the ERFD bits establish the divisor applied to the PLL frequency. The ERFD divides the output
clock by the quantity (ERFD + 1). Even-numbered RFD settings , which would result in odd divide ratios, are
not allowed.
The decimal equivalent of the ERFD binary number is substituted into the equation from Table 4-11.Note: The ERFD divides the output clock by the quantity (ERFD + 1). Even numbered ERFD settings, which
would result in odd divide ratios, are invalid and cause the PLL to produce an unpredictable output
clock. The PLL output clock must be within the f
specification (see MPC5510 data sheet).
pll
Changing the ERFD bits does not affect the PLL, hence, no re-lock delay is incurred. Resulting changes in
clock frequency are synchronized to the next falling edge of the current system clock. These bits should be
written only when the lock bit (LOCK) is set, to avoid surpassing the allowable system operating frequency.
In PLL Off mode the ERFD bits have no affect.
The available enhanced output divider ratios are given in Table 4-10.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
The FMPLL module contains the frequency modulated phase lock loop (FMPLL), enhanced frequency
divider (ERFD), enhanced synthesizer control registers (ESYNCR1 and ESYNCR2), synthesizer status
register (SYNSR), and clock/PLL control logic. The block also contains a reference frequency pre-divider
controlled by the EPREDIV bits in the ESYNCR1. This enables the user to use a high frequency crystal
or external clock generator and obtain finer frequency synthesis resolution than would be available if the
raw input clock were used directly by the analog loop. For the remainder of this chapter, the term
“reference frequency” and the symbol F
on which frequency multiplication will be performed.
4.4.1General
At reset, the system clock is driven by the internal oscillator (16 MHz IRC) and the module is in bypass
mode. After reset, software can change the PLL mode (see Section 4.5.1, “Clock Mode Selection”).
Table 4-11 shows the PLL-clock to input-clock frequency relationships for the available clock modes.
Table 4-11. Clock-Out vs. Clock-In Relationships
Clock ModeFrequency Equation
indicate the output of the pre-divider circuit. This is the clock
ref
Normal PLL Mode
4.4.2PLL Off Mode
When PLL Off mode is selected, the PLL is off and either the 16 MHz IRC must be selected as the system
clock or the user must supply an external clock or crystal on the EXTAL pin, and select that clock source
before entering PLL Off mode. The selected clock is directly used to produce the various system clocks.
Refer to MPC5510 Microcontroller Family Data Sheet for external clock input requirements. In bypass
mode, the analog portion of the PLL is disabled, the frequency modulation capability is not available, and
no clocks are generated at the PLL output. The pre-divider is bypassed and has no effect on the system
clock frequency in bypass mode.
4.4.3Normal Mode
When normal PLL mode is selected, the PLL is fully programmable. The PLL can synthesize frequencies
ranging from 48x to 148x the reference frequency of the output of the predivider. with or without
frequency modulation enabled. The post-divider is capable of reducing the PLL clock frequency without
forcing a re-lock. The PLL reference can be a crystal oscillator reference or an external clock reference.
This clock will be divided by the pre-divider circuit to create the PLL reference clock.
4.4.3.1PLL Lock Detection
The lock detect logic monitors the reference frequency and the PLL feedback frequency to determine when
frequency lock has been achieved. Phase lock is inferred by the frequency relationship, but is not
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-11
Preliminary
Page 93
Frequency Modulated Phase Locked Loop (FMPLL)
Count N + K
Reference cycles,
and compare
number of feed-
Lock detected
back cycles
Relax lock
criteria.
Reference count
equals N and feedback count equals N
in same count and
compare sequence.
Reference count
equals N + K and feedback count equals N + K
in same count and
compare sequence.
Alert system that
PLL has locked.
Feedback count does not
equal reference count of N or
N+K. Alert system that PLL
is not locked. Tighten
lock criteria.
Continue
monitoring PLL
with alternate
N and N+K count
and compare
sequences.
Count N
reference cycles,
and compare
number of feedback
cycles elapsed.
elapsed.
guaranteed. The PLL lock status is reflected in the LOCK status bit in the SYNSR. A sticky lock status
indication, LOCKS, is also provided.
The lock detect function uses two counters, which are clocked by the reference and PLL feedback
respectively . When the reference counter has counted N cycles, the feedback counter’s count is compared.
If the feedback counter has also counted N cycles, the process is repeated for N + K counts. Then if the
two counters’ counts match, the lock criteria is relaxed by one count and the system is notified that the
PLL has achieved frequency lock. Then takes three successful compares before tolerance is relaxed.
After lock has been detected, the lock circuitry continues to monitor the reference and feedback
frequencies using the alternate count and compare process. If the counters do not match at any comparison
time, then the LOCK status bit is cleared to indicate that the PLL has lost lock. At this point, the lock
criteria is tightened and the lock detect process is repeated.
The alternate count sequences prevent false lock detects due to frequency aliasing while the PLL tries to
lock. Alternating between a tight and relaxed lock criteria prevents the lock detect function from randomly
toggling between locked and not locked status due to phase sensitivities. Figure 4-5 illustrates the
sequence for detecting locked and not-locked conditions.
When the frequency modulation is enabled, the loss of lock continues to function as described but with the
lock and loss of lock criteria reduced to ensure that false loss of lock conditions are not detected.
In PLL Off mode, the PLL cannot lock because the PLL is disabled.
Figure 4-5. Lock Detect Sequence
4-12Freescale Semiconductor
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Preliminary
Page 94
Frequency Modulated Phase Locked Loop (FMPLL)
After the PLL acquires lock after reset, the LOCK and LOCKS status bits are set. If the EPREDIV or
EMFD are changed, or if an unexpected loss-of-lock condition occurs, the LOCK and LOCKS status bits
are negated. While the PLL is in an unlocked condition, the system clocks continue to be sourced from the
PLL as the PLL attempts to re-lock. Consequently, during the re-locking process, the system clock
frequency is not well defined and may exceed the maximum system frequency violating the system clock
timing specifications. Because of this condition, using the loss-of-lock reset function is recommended.
After the PLL has re-locked, the LOCK bit is set. The LOCKS bit remains cleared if the loss of lock was
unexpected. The LOCKS bit is set to one when the loss of lock was caused by changing the EPREDIV or
EMFD fields.
4.4.3.2Loss-of-Clock Detection
When enabled by the LOCEN bit in the ESYNCR2, the loss-of-clock (LOC) detection circuit monitors the
input clocks to the phase/frequency detector (PFD) (see Figure 4-1). When the reference or feedback clock
frequency falls below a minimum frequency, the LOC circuitry considers the clock to have failed and a
loss-of-clock status is reflected by the sticky LOCF bit, and non-sticky LOC bit in the SYNSR. See
MPC5510 Microcontroller Family Data Sheet for the minimum clock frequency. In PLL Off mode, the
loss-of-clock circuitry is disabled.
Depending on which clock source has failed, the LOC circuitry switches the PLL’s output clock source to
the remaining operational clock, if enabled by LOCEN. The PLL’s output clocks are derived from the
alternate clock source until reset is asserted. If the reference fails, the PLL goes out of lock and into
self-clocked mode (SCM) (see Table 4-12). The PLL remains in SCM until the next reset. When the PLL
is operating in SCM, the PLL will run open loop at a default VCO frequency. The RFD will set to
divide-by-4 to ensure the clock presented to the system will be well below the maximum allowable
frequency for the device. If the loss-of-clock condition is due to a PLL failure (i.e., loss of feedback clock),
the PLL reference becomes the system clocks source until the next reset, even if the PLL regains itself and
re-locks.
Table 4-12. Loss-of-Clock Summary
System Clock
Clock Mode
PLLPLLPLL self-clocked modePLL reference
PLL bypass Ext. Clock(s)NoneNA
Note: The LOC circuit monitors the inputs to the PFD: reference and feedback clocks (see Figure 4-1).
Source
before Failure
REFERENCE FAILURE
Alternate Clock Selected by
LOC Circuitry until Reset
PLL FAILURE
Alternate Clock Selected by
LOC Circuitry until Reset
A special loss-of-clock condition occurs when both the reference and the PLL fail. The failures may be
simultaneous or the PLL may fail first. In either case, the reference clock failure takes priority and the PLL
attempts to operate in SCM. If successful, the PLL remains in SCM until the next reset. During SCM,
modulation is always disabled. If the PLL cannot operate in SCM, the system remains static until the next
reset. If a loss-of-clock reset is enabled, the reset switches the bus clocks over to the 16 MHz IRC (and
switches off the PLL).
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-13
Preliminary
Page 95
Frequency Modulated Phase Locked Loop (FMPLL)
4.4.3.3PLL Normal Mode Without FM
In PLL mode, the system clocks are synthesized by the FMPLL by multiplying up the reference clock
frequency. It is critical that the system clock frequency remain within the range for the device (see
MPC5510 Microcontr oller Family Data Sheet). The output of the FMPLL can be divided down in powers
of two up to 128 to reduce the system frequency with the ERFD. The ERFD is not contained in the
feedback loop of the PLL, so changing the ERFD bits does not affect FMPLL operation. Finally , the PLL
can be frequency modulated to reduce electromagnetic interference often associated with clock circuitry.
Figure 4-1 shows the overall block diagram for the PLL. Each of the major blocks is discussed briefly in
the following sections.
4.4.3.3.1Phase/Frequency Detector
The phase/frequency detector (PFD) is a dual-latch phase-frequency detector . It compares both the phase
and frequency of the reference clock and the feedback clock. The reference clock comes from the crystal
oscillator or an external clock source. The feedback clock comes from the VCO output divided down by
the EMFD in normal PLL mode.
When the frequency of the feedback clock equals the frequency of the reference clock (i.e. the PLL is
frequency locked), the PFD will pulse the UP or DOWN signals depending on the relative phase of the
two clocks. If the falling edge of the reference clock leads the falling edge of the feedback clock, then the
UP signal is pulsed. If the falling edge of the feedback clock leads the falling edge of the reference clock,
then the DOWN signal is pulsed. The width of these pulses relative to the reference clock is dependent on
how much the two clocks lead or lag each other. After phase lock is achieved, the PFD continues to pulse
the UP and DOWN signals for a very short duration during each reference clock cycle. These short pulses
force the PLL to continually update and prevent a frequency drift phenomena referred to as
“dead-banding.” Dead-band describes the minimum amount of phase error between the reference and
feedback clocks that a phase detector cannot correct.
4.4.3.3.2Charge Pump/Loop Filter
Operation of the charge pump is controlled by the UP and DOWN signals from the PFD. They control
whether the charge pumps apply or remove charge, respectively, from the loop filter.
4.4.3.3.3VCO
The voltage into the VCO controls the frequency of its output. The frequency-to-voltage relationship
(VCO gain) is positive.
4.4.3.3.4EMFD
The MFD divides down the output of the VCO and feeds it back to the PFD. The PFD controls the VCO
frequency (via the charge pump and loop filter) such that the reference and feedback clocks have the same
frequency and phase. Thus, the input to the MFD, which is also the output of the VCO, is at a frequency
that is the reference frequency multiplied by the same amount the MFD divides by. For example, if the
MFD divides the VCO frequency by 48, then the PLL will be frequency locked when the VCO frequency
is 48 times the reference frequency. The presence of the MFD in the loop allows the PLL to perform
frequency multiplication, or synthesis.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
4-14Freescale Semiconductor
Preliminary
Page 96
Frequency Modulated Phase Locked Loop (FMPLL)
4.4.3.3.5Programming System Clock Frequency
In normal PLL clock mode, the default system frequency is determined by the default EPREDIV, EMFD,
and ERFD values.
When programming the PLL, do not to violate the maximum system clock frequency or max/min VCO
frequency specifications. Based on the desired system clock frequency, EPREDIV, EMFD, and ERFD
must be calculated for the given crystal or external reference frequency. See MPC5510 Microcontroller Family Data Sheet for the max/min VCO frequency range and the maximum allowable system frequency .
Frequency modulation should be disabled prior to changing the EPREDIV, EMFD, or RATE bit fields.
After enabling frequency modulation a new calibration sequence is performed. A change to EPREDIV,
EMFD, DEPTH, or RATE while modulation is enabled will invalidate the previous calibration results.
Use these directions to accommodate the frequency overshoot that occurs when the EPREDIV or EMFD
bits are changed. If frequency modulation is going to be enabled the maximum allowable frequency must
be reduced by the programmed ΔFm.
1. Determine the appropriate value for the EPREDIV, EMFD, and ERFD fields in the synthesizer
control register(s), remember to include the ΔFm if frequency modulation is to be enabled. The
amount of jitter in the system clocks can be minimized by selecting the maximum EMFD factor
that can be paired with an ERFD factor to provide the desired frequency. The maximum EMFD
value that can be used is determined by the VCO and EMFD range.
2. Write a value of ERFD = ERFD (from step 1) + 1 to the ERFD field of the ESYNCR2. Not
increasing the ERFD when changing the EPREDIV or EMFD could subject the device to clock
frequencies beyond the range specified for the device due to the PLL’s unlocked state.
3. If frequency modulation is currently enabled, disable it by writing 00 to the EDEPTH field of the
ESYNCR2.
4. If programming the EPREDIV and/or EMFD, write the value(s) determined in step 1 to the
appropriate field(s) in the ESYNCR1.
5. Monitor the synthesizer lock bit (LOCK) in the synthesizer status register (SYNSR). When the
PLL achieves lock, write the ERFD value determined in step 1 to the ERFD field of the ESYNCR2.
This changes the system clocks frequency to the desired frequency. If frequency modulation is
desired, leave ERFD programmed to ERFD + 1 until after completing the steps in
Section 4.4.3.4.2, “Programming System Clock Frequency With Frequency Modulation.”
6. If frequency modulation was enabled initially, it can be re-enabled following the steps listed in
Section 4.4.3.4.2, “Programming System Clock Frequency With Frequency Modulation.”
4.4.3.4PLL Normal Mode With Frequency Modulation
In normal PLL clock mode, frequency modulation is not enabled in the default synthesis mode. When
frequency modulation is enabled two parameters must be set to generate the desired level of modulation.
The parameters to be programmed are the RATE and DEPTH bit fields of the ESYNCR2 register. The
RATE bit controls the frequency of modulation, F
depth, Fm. The available modulation rates and depths are given in Table 4-8 and Table 4-9, respectively.
The modulation waveform is always a triangle wave and its shape is not programmable. An example of
one period of the modulation waveform is shown in Figure 4-6.
. The DEPTH bits work to control the modulation
mod
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-15
Preliminary
Page 97
Frequency Modulated Phase Locked Loop (FMPLL)
F
max
F
min
Δt
1
F
mod
--------------
=
t
f
F
max
= F
sys
+ {0.5%, 1%, 1.5%, 2%}
F
min
= F
sys
– {0.5%, 1%,1.5%, 2%}
F
mod
= F
extal
/Q where Q = {20, 40, 80}
ΔFm
ΔFm
Figure 4-6. Frequency Modulation Waveform
4.4.3.4.1Frequency Modulation Depth Calibration
The frequency modulation calibration system tunes a reference current into the modulation D/A so that the
modulation depth (F
max
and F
) remains within specification. Disable frequency modulation prior to
min
changing the EPREDIV, EMFD, or ERATE bit fields. Upon enabling frequency modulation a new
calibration sequence is performed. A change to EPREDIV, EMFD, or ERATE while modulation is active
will invalidate calibration results.
This routine will correct for process variations, but because temperature can change after the calibration
has been performed, variation due to temperature drift is not eliminated. This system is also voltage
dependent, so if the supply changes after the sequence takes place, error incurred will not be corrected.
The calibration system reuses the two counters in the lock detect circuit, the reference and feedback
counters. The reference counter remains clocked by the reference clock, but the feedback counter is
clocked by the VCO clock.
When the calibration routine is initiated by writing to the EDEPTH bits, the CALPASS and CALDONE
status bits are immediately cleared.
When calibration is induced the VCO is given time to settle before the feedback and reference counters
start counting. Full VCO clock cycles are counted by the feedback counter during this time to give the
initial center frequency count. When the reference counter has counted to the programmed number of
reference count cycles, the input to the feedback counter is disabled and the result is placed in the
COUNT0 register . The calibration system then enables modulation at programmed ΔFm and the VCO gets
time to settle. Both counters are reset and restarted. The feedback counter begins to count full VCO clock
4-16Freescale Semiconductor
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Preliminary
Page 98
Frequency Modulated Phase Locked Loop (FMPLL)
cycles again to obtain the delta-frequency count. The counter will run only during the high phase of the
triangular modulation waveform. Several half-modulation periods will be measured during the calibration
routine to increase the resolution of the frequency measurement. This will result in a measurement of the
average frequency during the high phase of the modulation waveform which under ideal circumstances
will be equivalent to one-half of the desired modulation depth. When the reference counter has counted to
the new programmed number of reference count cycles, the feedback counter is stopped again.
The delta-frequency count minus the center frequency count (COUNT0) results in a delta count
proportional to the reference current into the modulation D/A. That delta count is subtracted from the
expected value for the selected depth resulting in an error count. The sign of this error count determines
the direction taken by the calibration D/A to update the calibration current. After obtaining the error count
for the present iteration, both counters are cleared. The stored count of COUNT0 is preserved while a new
feedback count is obtained, and the process to determine the error count is repeated. The calibration system
repeats this process eight times, once for each bit of the calibration D/A.
After the last decision is made, a 1 is written to the CALDONE bit of the SYNSR. If an error occurs during
the calibration routine, then CALPASS remains 0. If the routine completed successfully , CALPASS is set
to 1.
4.4.3.4.2Programming System Clock Frequency With Frequency Modulation
The following steps illustrate proper programming of the frequency modulation mode. These steps ensure
proper operation of the calibration routine and prevent frequency overshoot from the sequence. The PLL
should be programmed and allowed to lock in non-FM mode at the desired frequency as outlined in
Section 4.4.3.3.5, “Programming System Clock Frequency.”
1. Monitor LOCK bit. Do not proceed until the PLL is locked in non-modulation mode.
2. Write a value of ERFD = ERFD + 1 to the ERFD field of the ESYNCR2 to ensure the maximum
system frequency is not exceeded during the calibration routine. This should have been done when
allowing the PLL to lock in non-FM mode.
3. Program the desired modulation rate and depth to the ERATE and EDEPTH fields in the
ESYNCR2. This action initiates the calibration sequence.
4. Allow time for the calibration sequence. Wait for the PLL to lock (i.e. the LOCK bit to set in the
SYNSR). At this time CALDONE should be asserted. CALP ASS will be asserted if the calibration
was successful. If not, the calibration can be re-initiated by repeating from step 3. When the PLL
achieves lock, write the ERFD value desired.
The frequency modulation system is dependent on several factors. The accuracies of the
VDDSYN/VSSSYN voltage, of the crystal oscillator frequency, and of the manufacturing variation.
For example, if a 5 percent accurate supply voltage is used, then a 5 percent modulation depth error will
result. If the crystal oscillator frequency is skewed from the nominal operating frequency, the resulting
modulation frequency will be proportionally skewed. Finally, the error due to the manufacturing and
environment variation alone can cause the frequency modulation depth error to be greater than 20 percent.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-17
Preliminary
Page 99
Frequency Modulated Phase Locked Loop (FMPLL)
4.5Resets
This section describes the reset operation of the PLL, including power-on reset and normal resets. The
reset values of registers and signals are provided in other sections.
4.5.1Clock Mode Selection
The initial clock mode is reflected in the MODE, PLLSEL, and PLLREF bits of the synthesizer status
register (SYNSR) as well as the ESYNCR1[CLKCFG] bit field. The clock mode can be modified by
writing to the CLKCFG bit field. The synthesizer status register will then reflect the newly-selected PLL
clock mode. Table 4-13 shows the clock mode encoding.
The clock mode selection configuration is summarized in Table 4-13.
Table 4-13. Clock Mode Selection
Synthesizer Status Register (SYNSR)
MODE, PLLSEL, and PLLREF Bits
Clock Mode
MODE/
CLKCFG2
Bypass mode0XX
Normal mode with external reference110
Normal mode with crystal reference111
PLLSEL/
CLKCFG1
PLLREF/
CLKCFG0
Reserved100
4.5.1.1Power-On Reset (POR)
The PLL will not operate until the POR signal has negated and the CLKCFG set for PLL mode. Refer to
MPC5510 Microcontroller Family Data Sheet for these thresholds. At this point, the PLL will operate in
self-clocked mode (SCM) until a valid reference clock is detected by the internal clock monitor circuit.
Internal to the PLL, the VCO will be held in reset until the negation of the POR signal. This prevents the
PLL from attempting to lock before its supplies are within specification which can cause VCO/loop gain
to be lower than what the analog loop is designed for.
4.5.1.2External Reset
After POR has negated, the PLL defaults to Bypass mode and the default clock source for the system clock
is the 16 MHz IRC. After reset exit, the PLL may be configured for operation and after lock may be
selected as the system clock source.
After the initial lock with the default MFD (assuming normal mode was selected), ESYNCR1 may be
written to modify the MFD for the desired operating frequency . The PLL might not lock with an MFD and
crystal frequency combination that attempts to force the VCO outside its operating range.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
4-18Freescale Semiconductor
Preliminary
Page 100
Frequency Modulated Phase Locked Loop (FMPLL)
CAUTION
When running in an unlocked state, the clocks generated by the PLL are not
guaranteed stable and may exceed the maximum specified operating
frequency of the device. The RFD should always be used as described in
Section 4.4.3.3.5, “Programming System Clock Frequency,” to insulate the
system from any potential frequency overshoot of the PLL clocks.
4.5.2PLL Loss-of-Lock Reset
By programming the LOLRE bit in the ESYNCR2, the PLL can assert reset when a loss-of-lock condition
occurs. Because the LOCK and LOCKS bits in the SYNSR are re-initialized after reset, the SIU reset status
register (SIU_RSR) (Section 6.3.2.2, “Reset Status Register (SIU_RSR)”) must be read to determine a
loss-of-lock condition occurred.
In PLL Off mode, the PLL cannot lock; therefore a loss-of-lock condition cannot occur and LOLRE has
no affect.
4.5.3PLL Loss-of-Clock Reset
When a loss-of-clock condition is recognized, RESET is asserted if the LOCRE bit in the SYNCR is set.
The LOCF and LOC bits in the SYNSR are cleared after reset, therefore, the LOC bit must be read in the
SIU_RSR to determine that a loss-of-clock condition occurred. LOCRE has no affect in PLL Off mode.
4.6Interrupts
This section describes the interrupt requests that the PLL can generate.
4.6.1Loss-of-Lock Interrupt Request
By setting the LOLIRQ bit in the ESYNCR2, the PLL can request an interrupt when a loss-of-lock
condition occurs.
In PLL Off mode, the PLL cannot lock; therefore a loss-of-lock condition cannot occur and the LOLIRQ
has no affect.
4.6.2Loss-of-Clock Interrupt Request
When a loss-of-clock condition is recognized, the PLL will request an interrupt if the LOCIRQ bit in the
SYNCR is set. The LOCIRQ bit has no affect in bypass mode or if LOCEN is equal to 0.
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor4-19
Preliminary
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.