Page 2
Freescale Semiconductor China Ltd. application in which the failure of the Freescale Semiconductor product could Exchange Building 23F create a situation where personal injury or death may occur. Should Buyer No.
Page 3
3.4.2 System Clock Dividers ..........3-5 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 4
5.2.2 Register Descriptions ..........5-4 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 9
17.6 Application Information ........... 17-17 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 10
20.1 Introduction ............. 20-1 MPC5510 Microcontroller Family Reference Manual, Rev. 1 viii Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 11
22.3 External Signal Description ..........22-3 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 12
23.5.4 Calculation of FIFO Pointer Addresses ....... . 23-60 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 13
25.4.10Bus Interface ........... . 25-41 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 14
27.1.4 Modes of Operation ..........27-4 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 15
29.4.1 External Bus Interface Features ........29-16 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor xiii...
Page 16
30.6.19Interrupt Support ..........30-140 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 17
32.1.1 Features ............32-1 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 18
A.1 Changes Between Revisions 0 and 1 ......... . . A-1 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 19
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.
Page 20
GPIO and Pad Control Note: The e200z1 is called Processor 0, and the e200z0 is called Processor 1 throughout this document Figure 1-1. MPC5516 Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 21
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 Semiconductor Preliminary Downloaded from Elcodis.com...
Page 22
Table 1-1. MPC5510 Family Comparison, Maximum Feature Set Feature MPC5517G MPC5517E MPC5517S MPC5516G MPC5516E MPC5516S MPC5515S MPC5514G MPC5514E Package 208-BGA 144-LQFP 208-BGA/ 144-LQFP 208-BGA/ 144-LQFP 208-BGA 144-LQFP 208-BGA/ 144-LQFP 176-LQFP 144-LQFP 176-LQFP 144-LQFP 144-LQFP 176-LQFP 176-LQFP 176-LQFP Main CPU e200z1...
Page 24
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 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 25
1.5 M Flash Memory Array 0x0018_0000–0x00FF_7FFF 14.5 M – 32K Reserved 0x00FF_8000–0x00FF_FFFF 32 K Flash Shadow Row 0x0100_0000–0x1FFF_FFFF 496 M Emulation mapping of Flash Array MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 26
Serial Communications Interface (eSCI_B) 0xFFFA_8000–0xFFFA_BFFF 16 K Serial Communications Interface (eSCI_C) 0xFFFA_C000–0xFFFA_FFFF 16 K Serial Communications Interface (eSCI_D) 0xFFFB_0000–0xFFFB_3FFF 16 K Serial Communications Interface (eSCI_E) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 27
Flash Configuration Registers (FLASH) 0xFFFF_C000–0xFFFF_FFFF 16 K Boot Assist Module (BAM) Refer to the individual module chapters for a description of how the allocated size is used. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 28
Overview MPC5510 Microcontroller Family Reference Manual, Rev. 1 1-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 29
AN[1] eQADC Analog Input PA[2] AE + IH — — AN[2] eQADC Analog Input PA[3] AE + IH — — AN[3] eQADC Analog Input MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 30
— DDE1 PCS_C[2] DSPI_C Peripheral Chip Select PB[4] GPIO AN[32] eQADC Analog Input A + SH — — DDE1 PCS_C[1] DSPI_C Peripheral Chip Select MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 31
FlexRay Channel A Transmit AD[16] EBI Multiplexed Address/Data PC[2] GPIO eMIOS[2] eMIOS Channel — — DDE1 FR_A_RX FlexRay Channel A Receive EBI Transfer Start MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 39
Main Crystal Oscillator Output XTAL DDSYN — JTAG Test Mode Select Input TMS (Pull Up) DDE3 — JTAG Test Clock Input TCK (Pull Down) DDE3 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 40
Voltage Reference Low – REFBYPC eQADC Reference Bypass Capacitor Flash Program/Erase Power 5.0 V Clock Synthesizer Power 3.3 V DDSYN Clock Synthesizer Ground – SSSYN MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 41
144LQFP and 176LQFP packages. requires nominal 5V for program/erase operations, but may be 0-5V otherwise. is shorted to V in the package. FLASH DD33 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 42
SSE2 DD33 FLASH DDE2 SSSYN TXD_C/PCS_A3/AD25/PG9 EXTAL PCS_A4/AD24/PG8 XTAL RXD_C/eMIOS23/AD23/PG7 DDSYN Denotes active during RESET only Figure 2-2. MPC5510 Pinout – 144 LQFP MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 43
PE5/SIN_A/eMIOS0/MLB_SLOT DDE2 TXD_C/PCS_A3/AD25/PG9 PCS_A4/AD24/PG8 RXD_C/eMIOS23/AD23/PG7 DD33 FLASH SSSYN EXTAL XTAL DDSYN Denotes active during RESET only Figure 2-3. MPC5510 Pinout – 176 LQFP MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 44
PA0 to PA13 — GPI (PA[0:13]) / Analog Input (AN[0] – AN[13]) PA[0:13] are general-purpose input (GPI) pins. AN[0] to AN[13] are single-ended analog input pins. MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 45
Select (PCS_C[1]) PB[4] is a GPIO pin. AN[32] is a single-ended analog input pin. PCS_C[1] is a peripheral chip select output pin for the DSPI C module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-17 Preliminary Downloaded from Elcodis.com...
Page 46
PB[12] is a GPIO pin. TXD_G is the transmit pin for the eSCI G module. PCS_B[4] is a peripheral chip select output pin for the DSPI B module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 47
PC4 — GPIO (PC[4]) / eMIOS Channel (eMIOS[4]) / FlexRay Debug 1 (FR_DBG1) PC[4] is a GPIO pin. eMIOS[4] is an input/output channel pin for the eMIOS200 module. FR_DBG1 is one of the FlexRay debug port pins. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-19 Preliminary Downloaded from Elcodis.com...
Page 48
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-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 49
Chip Select (PCS_D[4]) PD[1] is a GPIO pin. CNRX_A is the receive pin for the FlexCan A module. PCS_D[4] is a peripheral chip select for the DSPI_D module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-21 Preliminary Downloaded from Elcodis.com...
Page 50
PD[8] is a GPIO pin. TXD_B is the transmit pin for the eSCI_B module. SCL_A is the serial clock signal for the I C_A module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 51
(eMIOS[6]) PD[15] is a GPIO pin. SIN_B is the data input pin for the DSPI B module. eMIOS[6] is an output-only channel pin for the eMIOS200 module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-23 Preliminary Downloaded from Elcodis.com...
Page 52
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-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 53
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 Semiconductor 2-25 Preliminary Downloaded from Elcodis.com...
Page 54
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-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 55
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 Freescale Semiconductor 2-27 Preliminary Downloaded from Elcodis.com...
Page 56
PG[6] is a GPIO pin. AD[22] is the EBI multiplexed address and data bus. eMIOS[22] is an input/output channel pin for the eMIOS200 module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 57
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 Semiconductor 2-29 Preliminary Downloaded from Elcodis.com...
Page 58
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 2-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 59
PH14 — GPIO (PH[14]) / EBI Write Enable (WE[2]) PH[14] is a GPIO pin. WE[2] specifies which data pins contain valid data for an external bus transfer. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-31 Preliminary Downloaded from Elcodis.com...
Page 60
PJ15 - GPIO (PJ15) / DSPI_D Serial Data In (SIN_D) PJ15 is a GPIO pin. SIN_D is the SPI serial data in for the DSPI_D module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 61
TDO provides the serial test data output for the on-chip test logic. 2.7.11.7 TMS — JTAG Test Mode Select Input TMS controls test mode operations for the on-chip test logic. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 2-33 Preliminary Downloaded from Elcodis.com...
Page 62
VDDSYN — Clock Synthesizer Supply VDDSYN is the supply power for the FMPLL. 2.7.12.8 VSSSYN — Clock Synthesizer Ground VSSSYN is the ground reference for the FMPLL. MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 63
I/O pins. (x=1,2,3.) 2.7.12.14 VSSEx — 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 Semiconductor 2-35 Preliminary Downloaded from Elcodis.com...
Page 64
Signal Descriptions MPC5510 Microcontroller Family Reference Manual, Rev. 1 2-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 65
Clock 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 Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 66
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 cycle = 50 ± 10%) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 67
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 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 69
Peripheral 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 Semiconductor Preliminary Downloaded from Elcodis.com...
Page 70
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 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 71
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 Semiconductor Preliminary Downloaded from Elcodis.com...
Page 72
FlexRay module. After it is enabled, the FlexRay module can be disabled only by asserting RESET. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 73
SWT must first be disabled by clearing the MCM_MSWTCR[SWE] = 0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 74
System Clock Description MPC5510 Microcontroller Family Reference Manual, Rev. 1 3-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 75
PLL mode to LOC_PLL switch to when these things happen LOC_REF Figure 4-1. FMPLL Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 76
Section 2.7, “Detailed External Signal Descriptions,” for detailed signal descriptions. Memory Map and Registers This section provides a detailed description of all FMPLL registers. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 77
LOC MODE LOCKS LOCK DONE PASS Reset Figure 4-2. FMPLL Synthesizer Status Register (SYNSR) Table 4-2. SYNSR Register Field Descriptions Field Description bits 0–21 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 78
0 PLL has 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 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 79
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 Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 80
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 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 82
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 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 83
(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 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 84
Output Divide Ratio (ERFD+1) 00_0000 00_0001 00_0010 Invalid 00_0011 00_0100 Invalid 00_0101 6 (default value for MPC5510) 00_0110 Invalid 00_0111 11_1100 Invalid 11_1101 11_1110 Invalid 11_1111 MPC5510 Microcontroller Family Reference Manual, Rev. 1 4-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 85
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 Semiconductor 4-11 Preliminary Downloaded from Elcodis.com...
Page 86
N + K back cycles compare sequence. in same count and elapsed. compare sequence. Figure 4-5. Lock Detect Sequence MPC5510 Microcontroller Family Reference Manual, Rev. 1 4-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 87
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 Semiconductor 4-13 Preliminary Downloaded from Elcodis.com...
Page 88
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-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 89
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. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 4-15 Preliminary Downloaded from Elcodis.com...
Page 90
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 MPC5510 Microcontroller Family Reference Manual, Rev. 1 4-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 91
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 Semiconductor 4-17 Preliminary Downloaded from Elcodis.com...
Page 92
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-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 93
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 Semiconductor 4-19 Preliminary Downloaded from Elcodis.com...
Page 94
Frequency Modulated Phase Locked Loop (FMPLL) MPC5510 Microcontroller Family Reference Manual, Rev. 1 4-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 95
5.1.1 Block Diagram A simplified block diagram of the CRP illustrates the functionality and interdependence of major blocks (see Figure 5-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 96
RTC / INPUT ISOLATION SRC/WELL POWER ISOLATION SWITCHES BIAS LOGIC VREG KEEPER CLOCK SYSTEM CONTROL CLOCK SEA-OF-GATES BLOCK LOGIC BLOCKS Figure 5-1. CRP Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 97
The voltage regulator, LVI, and power switch outputs are in the enabled state. The RTC/API and associated interrupts are optionally enabled. In sleep and stop modes, the bus interface MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 98
CRP_SOCSC — SoC Status and Control Register 0x0000_0000 5.2.2.10/5-15 5.2.2 Register Descriptions This section lists the CRP registers in address order and describes the registers and their bit fields. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 99
1 32K OSC enabled Note: After enabling the 32K OSC, software needs to wait the required crystal startup/stabilization time before making use of the 32K OSC. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 100
These bits are only reset by power-on, VDD15 LVI, VDD33 LVI, and VDDSYN LVI, VDD5 low LVI, and VDD5 LVI. Figure 5-3. RTC Status and Control Register (CRP_RTCSC) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 104
The CRP_Z1VEC register contains: • Recovery vector for the Z1 core • Reset for the Z1 core • VLE select for the Z1 core MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 106
RAM a recovery routine exists. On reset, this register defaults to 0xFFFF_FFFC so that it points to the same location as the Z1VEC and Z0VEC registers. MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 107
Reset SLEEP STOP RAMSEL PWKSRIE[0:7] PKREL Reset Figure 5-10. Power Status and Control Register (CRP_PSCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 108
The PKREL bit is write only and always reads 0. 0 No effect 1 The I/O states held by the pad keepers are released back to normal functions MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 109
These bits are only reset by power on, VDD15 LVI, VDD33 LVI, VDDSYN LVI, VDD5 Low LVI, and VDD5 LVI. Figure 5-11. LVI Status and Control Register (CRP_SOCSC) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-15 Preliminary Downloaded from Elcodis.com...
Page 110
JTAG and Nexus debug capability. The following sections discuss in detail the entry sequence, the operation, and the exit sequence for the low power modes. MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 111
WAIT instruction. If only one core is active, and one is held in reset by the user, then executing the WAIT MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-17 Preliminary Downloaded from Elcodis.com...
Page 112
RUN mode to stop, and back to RUN mode. The CRP does not support going directly to/from Sleep mode from/to stop mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 113
3 clks Clock stop asserted by CCB? Sleep mode Go to Figure 5-13 Go to Figure 5-15 requested? Figure 5-12. SLEEP/STOP Mode Entry Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-19 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 114
10 clks 5 usec - Disable isolation Go to Figure 5-14 Figure 5-13. SLEEP Mode Transition Diagram (Part 1) MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 115
Sleep Sync Bit Allow NPC input Go to INIT signals to propagate (Figure 5-12) 5 clks Figure 5-14. SLEEP Mode Transition Diagram (Part 2) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-21 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 117
If a pullup/down is enabled on an input pin prior to entry into sleep or stop mode, it will remain enabled during the low-power mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-23 Preliminary Downloaded from Elcodis.com...
Page 118
64 possible external pin wakeup sources. External pin wakeup source selection is done in the CRP_WKPINSEL register, and Table 5-8 gives the I/O pin mapping to the eight external pin wakeup MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 119
A block diagram for the external pin wakeup logic is given in Figure 5-17. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-25 Preliminary Downloaded from Elcodis.com...
Page 120
In order for the debug tool not to miss instruction execution, the CRP does not assert the wakeup interrupt to the Z0 and Z1 cores until after the debug tool has acknowledged the TDO assertion. MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 121
SLEEP/STOP with the pad keepers enabled, and debug enabled. In this case, the low power mode will function as normal, but there is no capability for synchronization with the debug tool. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-27 Preliminary Downloaded from Elcodis.com...
Page 122
5.4.1 RTC Features Features of the RTC include: • 32-bit counter • Selectable counter clock sources MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 123
If there is a match while in a sleep or stop mode, and the CRP_WKSE[RTCWKEN] bit is set, then the RTC will first generate a wakeup request to force a wakeup MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-29 Preliminary Downloaded from Elcodis.com...
Page 124
RUN mode, then the APIF flag will be set. The API wakeup flag is captured in the CRP_PSCR[WKAPIF] bit. The RTC counter is unaffected during debug mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 125
RTC status and control register (Section 5.2.2.2, “RTC Status and Control Register (CRP_RTCSC)”) • RTC counter register (Section 5.2.2.3, “RTC Counter Register (CRP_RTCCNT)”) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-31 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 126
CRP_SOCSC[LVI5RE] to enable the reset function and set the write-once CRP_SOCSC[LVI5LOCK] bit to prevent any unintentional changes to the CRP_SOCSC[LVI5RE] bit. MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 127
CRP_SOCSC[LVI5HF] interrupt request), the LVI5 is configured for an interrupt function instead of a reset function. Low-voltage operation below 4.0 V is not supported, as the LVI5L will force a reset at this point. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 5-33 Preliminary Downloaded from Elcodis.com...
Page 128
Clock, Reset, and Power Control (CRP) MPC5510 Microcontroller Family Reference Manual, Rev. 1 5-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 129
SIU. The signals shown are external pins to the device. The SIU registers are accessed through the crossbar switch. The power-on reset (POR) detection block, pad interface/pad ring block, and peripheral I/O channels are external to the SIU. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 130
Figure 6-1. SIU Block Diagram 6.1.2 Features Features include the following: • System configuration — MCU reset configuration via external pins — Pad configuration control MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 131
GPIO, clock divider control, and peripheral clock disable/acknowledge. 6.1.3.2 Debug Mode SIU operation in debug mode is identical to normal mode operation. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 132
PD[10] is a GPIO pin. NMI0 is the critical interrupt input for the e200z1 core. PD[11] is a GPIO pin. NMI1 is the critical interrupt input for the e200z0 core. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 139
The mask number is a read-only field mask-programmed with the device’s specific mask revision level. Offset: SIU_BASE + 0x0004 Access: User read PARTNUM Reset MASKNUM_MAJOR MASKNUM_MINOR Reset Figure 6-2. MCU ID Register (SIU_MIDR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 140
Except for a power-on reset request and condition 1 above, all reset requests of any priority are ignored until the device exits reset. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 141
0 Last reset source the reset controller acknowledged was not a watchdog timer or debug reset. 1 Last reset source the reset controller acknowledged was a watchdog timer or debug reset. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-13 Preliminary Downloaded from Elcodis.com...
Page 142
0 Do not generate a software system reset. 1 Generate a software system reset. bits 1–15 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 144
The SIU_DIRSR selects between DMA and interrupt requests. If the corresponding bits are set in SIU_EISR and the SIU_DIRER, then the DMA/interrupt request select bit determines whether a DMA or interrupt request is asserted. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 146
The SIU_IREER allows rising-edge-triggered events to be enabled on the corresponding IRQn pins. Setting the corresponding bits in the SIU_IREER and SIU_IFEER enables rising- and falling-edge events. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 148
IRQ Filtered Input Register (SIU_IFIR) This is a read only register that captures the output of the NMIn and IRQn digital input filters. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 149
For I/O functions that change direction dynamically, such as the external data bus, switching between input and output is handled internally, and the IBE and OBE bits have no effect. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-21 Preliminary Downloaded from Elcodis.com...
Page 150
Output Buffer Enable. Enables the pad as an output and drives the output buffer enable signal. 0 Output buffer for the pad disabled. 1 Output buffer for the pad enabled. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 151
The IBE bit should be 0 when analog input function is selected. Figure 6-14. Port A Pad Configuration Registers (SIU_PCR0 - SIU_PCR15) Table 6-16 for bit field definitions. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-23 Preliminary Downloaded from Elcodis.com...
Page 152
GPIO pins. Writes to the SIU_GPDOx_x registers do not affect pin states if the pins are configured as inputs or as non-GPIO function by the associated pad configuration registers. The MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 154
0 Signal on pin is less than or equal to V 1 Signal on pin is greater than or equal to V MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 155
140_143 0x088C PJ12–PJ15 144_145 0x0890 PK0–PK1 6.3.2.16 IMUX Select Register 0 (SIU_ISEL0) The SIU_ISEL0 register selects the source for the EQADC trigger inputs. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-27 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 156
10 PIT 7 11 PIT 8 bits 8–31 Reserved. 6.3.2.17 IMUX Select Register 1 (SIU_ISEL1) The SIU_ISEL1 selects the source for the external interrupt/DMA inputs. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 159
SELEMIOS14 eMIOS[14] Input Select. The source of the input for the eMIOS[14] timer channel is selected according to the SELEMIOS14 field. 00 eMIOS[14] input pin 01 DSPI_A deserialized output 10 DSPI_B deserialized output 11 DSPI_C deserialized output MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-31 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 160
SELEMIOS6 eMIOS[6] Input Select. The source of the input for the eMIOS[6] timer channel is selected according to the SELEMIOS6 field. 00 eMIOS[6] input pin 01 DSPI_A deserialized output 10 DSPI_B deserialized output 11 DSPI_C deserialized output MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 161
SELEMIOS0 eMIOS[0] Input Select. The source of the input for the eMIOS[0] timer channel is selected according to the SELEMIOS0 field. 00 eMIOS[0] input pin 01 DSPI_A deserialized output 10 DSPI_B deserialized output 11 DSPI_C deserialized output MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-33 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 162
The SIU_ECCR controls the timing relationship between the system clock and the external clocks, CLKOUT. All bits and fields in the SIU_ECCR are read/write and reset by the asynchronous reset signal. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 163
The SIU_CMPAH register holds the 32-bit value that is compared against the value in the SIU_CMPBH register. The CMPAH field is read/write and reset by the asynchronous reset signal. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-35 Preliminary Downloaded from Elcodis.com...
Page 164
The CMPBH field is read/write and reset by the asynchronous reset signal. Offset: SIU_BASE + 0x0990 Access: User read-only CMPBH Reset CMPBH Reset Figure 6-26. Compare B High Register (SIU_CMPBH) MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 166
The SIU_HLT register is used to disable the clocks to various modules. Each bit drives a separate halt request to the associated peripheral. Table 6-28 shows these connected outputs. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 167
The SIU_HLTACK bits indicate that the peripheral requested to halt via the HLT bit has completed the halt process and has entered a halted state with the peripheral clocks disabled. The HLTACK bits are read-only MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-39 Preliminary Downloaded from Elcodis.com...
Page 168
Note: Writes to reserved HLT bits 4, 5, and 11 are reflected in the reserved HLTACK bits 4, 5, and 11. 6.3.2.28 Parallel GPIO Pin Data Output Register 0 (SIU_PGPDO0) The SIU_PGPDO0 register contains the parallel GPIO pin data output for PB[0:15]. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 169
The SIU_PGPDO2 register contains the Parallel GPIO Pin Data Output for PE0:PE15 and PF0:PF15. Reads and writes to this register are coherent with the registers SIU_GPDO64_67, SIU_GPDO68_71, SIU_GPDO72_75, SIU_GPDO76_79, SIU_GPDO80_83, SIU_GPDO84_87, SIU_GPDO88_91, and SIU_GPDO92_95. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-41 Preliminary Downloaded from Elcodis.com...
Page 170
On MPC5510, the port K pins are only inputs. Therefore, there are no parallel GPIO pin data output bits associated with port K. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-42 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 171
Reads to the SIU_PGPDI1 register provide the parallel GPIO pin data input for PC0:PC15 and PD0:PD15. Writes have no effect. Reads of this register are coherent with the registers SIU_GPDI32_35, SIU_GPDI36_39, SIU_GPDI40_43, SIU_GPDI44_47, SIU_GPDI48_51, SIU_GPDI52_55, SIU_GPDI56_59, and SIU_GPDI60_63. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-43 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 172
Reads to the SIU_PGPDI2 register provide the parallel GPIO pin data input for PG0:PG15 and PH0:PH15. Writes have no effect. Reads of this register are coherent with the registers SIU_GPDI96_99, SIU_GPDI100_103, SIU_GPDI104_107, SIU_GPDI108_111, SIU_GPDI112_115, SIU_GPDI116_119, SIU_GPDI120_123, and SIU_GPDI124_127. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-44 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 173
This register always reads as 0. 6.3.2.38.1 Masked Parallel GPIO Pin Data Output Register 1 (SIU_MPGPDO1) The SIU_MPGPDO1 register contains the Masked Parallel GPIO Pin Data Output for PB[0:15]. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-45 Preliminary Downloaded from Elcodis.com...
Page 174
The SIU_MPGPDO3 register contains the masked parallel GPIO pin data output for PD[0:15]. Writes to this register are coherent with the registers SIU_GPDO48_51, SIU_GPDO52_55, SIU_GPDO56_59, and SIU_GPDO60_63. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-46 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 175
The SIU_MPGPDO5 register contains the masked parallel GPIO pin data output for PF[0:15]. Writes to this register are coherent with registers SIU_GPDO80_83, SIU_GPDO84_87, SIU_GPDO88_91, and SIU_GPDO92_95. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-47 Preliminary Downloaded from Elcodis.com...
Page 176
The SIU_MPGPDO7 register contains the masked parallel GPIO pin data output for PH[0:15]. Writes to this register are coherent with registers SIU_GPDO112_115, SIU_GPDO116_119, SIU_GPDO120_123, and SIU_GPDO124_127. MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-48 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 177
Configuration Halfword Read” of the BAM chapter for detail on the RCHW. Table 6-30 defines the boot modes specified by the SIU_RST[BOOTCFG] field. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-49 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 178
Each IRQ pin has a programmable filter for rejecting glitches on the IRQ signals. The filter length for the IRQ pins is specified in the external IRQ digital filter register (SIU_IDFR). MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-50 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 179
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. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 6-51 Preliminary Downloaded from Elcodis.com...
Page 180
IRQ[0] input of the SIU can be connected to the PA0 pin, PD0 pin, PD10, or PG11 pin. The remaining IRQ inputs are multiplexed in the same manner. IRQ[0] PG11 PD10 SIU_ISEL1[30:31] Figure 6-51. SIU External Interrupt Input Multiplexing MPC5510 Microcontroller Family Reference Manual, Rev. 1 6-52 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 181
Chapter 32, “Boot Assist Module (BAM) for more details about the boot procedures. External Signal Description. Refer to Table 2-1 Section 2.7, “Detailed External Signal Descriptions,” for signal properties. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 182
Sleep. This can reduce the start-up time upon a low-power mode exit by pointing the cores directly to a low-power mode recovery routine. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 183
When the Z1 or Z0 core enters a checkstop state, and the checkstop reset is enabled (SIU_SRCR[CRE0] bit for Z1 and the SIU_SRCR[CRE1] bit for Z0), a checkstop reset occurs. The internal reset signal and MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 184
The value of the BOOTCFG pin is latched 4 clock cycles before the negation of the RESET pin and stored in the reset status register. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 185
(4 clock cycles) RESET BOOTCFG can be applied, BOOTCFG is latched. but not latched. User drives configuration pins relative to RESET Figure 7-1. Reset Configuration Timing MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 186
Reset MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 187
Software vector mode is the mode that conforms to Power Architecture technology. The e200z1/z0 branches to a common interrupt exception handler to service the interrupt MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 188
Fixed Interval Timer IVOR 11 0x0B0 EE, FIE SRR[0:1] Fixed-interval timer timeout Watchdog Timer IVOR 12 0x0C0 CE, WIE CSRR[0:1] Watchdog timeout when ENW=1, WIS=0 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 189
In hardware vector mode, no IVOR is used, including IVOR4, which has no effect. The interrupt exception handler for each vector is offset from the IVPR. The vectors for each source are shown in Table 8-2. The MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 190
SIU_IREER or SIU_IFEER. (Note that these bits are “write once” bits.) When the NMI is taken, the flag must be cleared in the SIU_EISR. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 191
MCM software watchdog interrupt flag MCM combined interrupt request of the platform RAM non-correctable error and MCM.ESR[PRNCE] || MCM_ESR_COMB 0x0824 MCM.ESR[PFNCE] platform flash non-correctable error interrupt requests MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 202
LIN SCI_E.LINSTAT1[STO] || status register 2 receive register overflow SCI_E.LINSTAT1[PBERR] || interrupt request SCI_E.LINSTAT1[CERR] || SCI_E.LINSTAT1[CKERR] || SCI_E.LINSTAT1[FRC] || SCI_E.LINSTAT2[OVFL] MPC5510 Microcontroller Family Reference Manual, Rev. 1 8-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 203
LIN SCI_H.LINSTAT1[STO] || status register 2 receive register overflow SCI_H.LINSTAT1[PBERR] || interrupt request SCI_H.LINSTAT1[CERR] || SCI_H.LINSTAT1[CKERR] || SCI_H.LINSTAT1[FRC] || SCI_H.LINSTAT2[OVFL] MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 8-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 204
The priorities are selected in INTC_PSRx_x, where the specific select register is assigned according to the vector. This column is for the user to fill in how they set their specific priorities. MPC5510 Microcontroller Family Reference Manual, Rev. 1 8-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 205
NMI, which would normally mean selecting it as a port pin rather than a peripheral function. Figure 8-5 shows the various system level connections needed to create the NMI. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 8-19 Preliminary Downloaded from Elcodis.com...
Page 206
8.4.4.1 Hardware Implementation Dependent Register 1 The HID1 register is used for bus configuration and system control. HID1 is shown in Figure 8-6. MPC5510 Microcontroller Family Reference Manual, Rev. 1 8-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 207
Atomic status (read-only). Indicates state of the reservation bit in the load/store unit. bit 31 Reserved. These bits are not implemented and should be written with zero for future compatibility. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 8-21 Preliminary Downloaded from Elcodis.com...
Page 208
Interrupts MPC5510 Microcontroller Family Reference Manual, Rev. 1 8-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 209
When sending an interrupt to both cores, the user must take care to prevent the interrupt from going away from the other core when not expected. • 9-bit vector — Unique vector for each interrupt request source MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 210
Low latency—three clocks from receipt of interrupt request from peripheral to interrupt request to processor. 9.1.2 Block Diagram Figure 9-1 is a block diagram of the interrupt controller (INTC). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 211
Memory Mapped Registers & Writes Processor 1 Pop Non-Memory Mapped Logic NOTE: Processor 0 is Z1 and Processor 1 is Z0. Figure 9-1. INTC Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 212
INTC_SSCIR0_3–INTC_SSCIR4_7 is written at a time such that the PRI value in the associated INTC_CPR_PRCn register would need to be pushed and the previously MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 213
0x0018 INTC_EOIR_PRC0—INTC end of interrupt register for 0x0000_0000 9.3.2.6/9-10 processor 0 (Z1) 0x001C INTC_EOIR_PRC1—INTC end of interrupt register for 0x0000_0000 9.3.2.7/9-11 processor 1 (Z0) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 214
The module configuration register is used to configure options of the INTC. Offset: 0x0000 Access: User read/write Reset VTES_ HVEN_ VTES_ HVEN_ PRC1 PRC1 PRC0 PRC0 Reset Figure 9-2. INTC Module Configuration Register (INTC_MCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 215
The masking priority can be raised or lowered by writing to the PRI field, supporting the PCP. Refer to Section 9.5.5, “Priority Ceiling Protocol.” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 216
Priority. The function of this register is the same as described for processor 0 (Z1) in Section 9.3.2.2, “INTC Current Priority Register for Processor 0 (Z1) (INTC_CPR_PRC0).” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 217
The side effects are the same regardless of the size of the read. Reading the INTC_IACKR_PRC0 does not have side effects in hardware vector mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 218
INTC_EOIR_PRC0 contents or affect whether the LIFO pops. For possible future compatibility, write four bytes of all 0s to the INTC_EOIR_PRC0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 222
When sending an interrupt to both cores, the user must take care to prevent the interrupt from going away from the other core when not expected. MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 223
The time from the write to the SETn bit to the time that the INTC starts to drive the interrupt request to the processor is four clocks. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 9-15 Preliminary Downloaded from Elcodis.com...
Page 224
The vector encoder sub-block generates the unique 9-bit vector for the asserted interrupt request from the request selector sub-block for the associated processor. MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 225
The LIFO is not memory mapped, even in debug mode. 9.4.3 Handshaking with Processor 9.4.3.1 Software Vector Mode Handshaking This section describes handshaking in software vector mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 9-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 226
This next instruction is part of the preempted ISR or the interrupt exception handler’s prolog or epilog. MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 227
The handshaking near the end of the interrupt exception handler, that is written to the associated INTC_EOIR_PRC0 or INTC_EOIR_PRC1, is the same as in software vector mode (see Section 9.4.3.1.2, “End of Interrupt Exception Handler”). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 9-19 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 228
PRI in INTC_CPR_PRCn to zero enable processor(s) recognition of interrupts 9.5.2 Interrupt Exception Handler These example interrupt exception handlers use Power Architecture assembly code. MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 229
4 instructions available, branch to continue interrupt_exception_handler_continuedn: code to save SRR0 and SRR1 code to enable processor recognition of interrupts and save context required by EABI MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 9-21 Preliminary Downloaded from Elcodis.com...
Page 230
ISRs execute in the time order that their peripheral or software settable interrupt requests asserted. MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 231
Before ISR1 or ISR2 can access that resource, they must raise the PRI value in INTC_CPR_PRCn to 3, the ceiling of all of the ISR priorities. After they release the resource, the PRI MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 9-23 Preliminary Downloaded from Elcodis.com...
Page 232
The INTC has 16 priorities, which may be less than the number of ISRs. In this case, the ISRs should be grouped with other ISRs that have similar deadlines. For example, a priority could be allocated for every MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 233
Another application is the sharing of a block of data. For example, a first processor has completed accessing a block of data and wants a second processor to then access it. Furthermore, after the second MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 9-25 Preliminary Downloaded from Elcodis.com...
Page 234
INTC_SSCIR0_3–INTC_SSCIR4_7 as the clearing of the flag bit that caused the present ISR to be executed (see Section 9.4.3.1.2, “End of Interrupt Exception Handler”). MPC5510 Microcontroller Family Reference Manual, Rev. 1 9-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 235
When the examination is complete, the LIFO can be restored using this code sequence: push_lifo: load stacked PRI value and store to INTC_CPR_PRCn load INTC_IACKR_PRCn if stacked PRI values are not depleted, branch to push_lifo MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 9-27 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 237
Supports independent instruction and data accesses to different memory subsystems, such as SRAM and Flash memory via independent Instruction and Data BIUs. • Load/store unit — 1 cycle load latency MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 238
Also, a load-to-use dependency does not incur any pipeline bubbles for most cases. MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 239
Data bus interface unit Address Data Control Figure 10-1. e200z1 Block Diagram 10.2.1 Instruction Unit Features The features of the e200 instruction unit are: MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-3 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 240
MMU Features The features of the MMU are as follows: • Virtual memory support • 32-bit virtual and physical addresses • 8-bit process identifier MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 241
E numbering scheme of 32:63, thus register bit numbers for some registers in Book E are 32 higher. Where appropriate, the Book E defined bit numbers are shown in parentheses. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-5 Preliminary Downloaded from Elcodis.com...
Page 242
Power Architecture processors L1CFG0 SPR 515 2 - Optional registers defined by the Power Architecture Book-E architecture Figure 10-2. e200z1 Supervisor Mode Programmer’s Model SPRs MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 243
General purpose registers (GPRs) are accessed through instruction operands. Access to other registers can be explicit (by using instructions for that purpose such as Move to Special Purpose Register ( ) and mtspr MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-7 Preliminary Downloaded from Elcodis.com...
Page 244
Purpose Registers (SPRGs). SPRG4 through SPRG7 are accessible in a read-only fashion by user-level software. e200 does not allow user mode access to the SPRG3 register (defined as implementation dependent by Book E). MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 245
— Interrupt Vector Prefix Register (IVPR). This register together with hardwired offsets which replace the IVOR0-15 registers provide the address of the interrupt handler for different classes of interrupts. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-9 Preliminary Downloaded from Elcodis.com...
Page 246
Watchdog Timer options. — Timer Status Register (TSR). This register contains status on timer events and the most recent Watchdog Timer-initiated processor reset. MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 247
• Memory Management Registers — MMU Assist (MAS0-MAS4, MAS6) registers. These registers provide the interface to the e200 core from the Memory Management Unit. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 248
Power Architecture processors, although other processors may implement similar or identical registers. All e200 SPR definitions are compliant with the Freescale EIS specification definitions. MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 249
Translation Lookaside Buffer (TLB). Addresses for which no TLB entry exists (a TLB miss) cause Instruction or Data TLB Errors. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-13 Preliminary Downloaded from Elcodis.com...
Page 250
TLB entries. MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 251
1 Gbyte EA[0:1] =? EPN[0:1] 0b1011 4Gbyte (none) On a TLB hit, the generation of the physical address occurs as shown in Figure 10-6. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 252
SX—Supervisor execute permission. Allows instruction fetches to access the page and instructions to be executed from the page while in supervisor mode (MSR[PR=0]). MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 253
A hit to multiple TLB entries is considered to be a programming error. If this occurs, the TLB generates an invalid address and TLB entries may be corrupted (an exception will not be reported). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-17 Preliminary Downloaded from Elcodis.com...
Page 255
This field is compared with the current process IDs of the effective address to be translated. A TID value of 0 defines an entry as global and matches with all process IDs. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-19 Preliminary Downloaded from Elcodis.com...
Page 256
Table 10-7. MAS2 - EPN and Page Attributes Name Comments, or Function when Set 0:19 Effective page number [0:19] [32:51] 20:25 — Reserved [52:57] MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 258
10 - Reserved, do not use 11=TIDZ (8’h00)) (Use all zeros, the globally shared value) 16:19 — Reserved [48:51] 20:23 TSIZED Default TSIZE value [52:55] MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 259
These bits are not implemented, will be read as zero, and writes are ignored. 10.5 Interrupt Types The interrupts implemented on the MPC5510 and the exception conditions that cause them are listed in Table 10-11. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-23 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 260
Data translation lookup did not match a valid entry in the TLB Instruction TLB IVOR 14 Instruction translation lookup did not match a valid entry in the TLB Error MPC5510 Microcontroller Family Reference Manual, Rev. 1 10-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 261
Single-beat and misaligned transfers are supported for read and write cycles. Incrementing burst transfers are supported for instruction prefetch operations. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 10-25 Preliminary Downloaded from Elcodis.com...
Page 263
Supports instruction and data access via a unified 32-bit Instruction/Data BIU (e200z0 only). • Load/store unit — 1 cycle load latency — Fully pipelined — Big-endian support only — Misaligned access support MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 11-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 264
Power Architecture. The condition register consists of eight 4-bit fields that reflect the results of certain operations, such as move, integer and floating-point compare, arithmetic, and logical instructions, and provide a mechanism for testing and branching. MPC5510 Microcontroller Family Reference Manual, Rev. 1 11-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 265
Branch unit with dedicated branch address adder supporting single cycle of execution of certain branches, two cycles for all others 11.2.2 Integer Unit Features The e200 integer unit supports single cycle execution of most integer instructions: MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 11-3 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 266
(SPRs) is the decimal number used in the instruction syntax to access the register (for example, the integer exception register (XER) is SPR 1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 11-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 267
E numbering scheme of 32:63, thus register bit numbers for some registers in Book E are 32 higher. Where appropriate, the Book E defined bit numbers are shown in parentheses. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 11-5 Preliminary Downloaded from Elcodis.com...
Page 268
Power Architecture processors 2 - Optional registers defined by the Power Architecture Book E Figure 11-2. e200z0 Supervisor Mode Programmer’s Model MPC5510 Microcontroller Family Reference Manual, Rev. 1 11-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 269
Architecture Book E Specification. The remaining user-level registers are SPRs. Note that the Power Architecture Book E provides the instructions for accessing SPRs. mtspr mfspr MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 11-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 270
It is used by the Nexus2 module for Ownership Trace message generation. Although the Power Architecture Book E allows for multiple PIDs, e200z0 implements only one. • Interrupt Registers MPC5510 Microcontroller Family Reference Manual, Rev. 1 11-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 271
The L1 Cache Configuration register (L1CFG0). This read-only register allows software to query the configuration of the L1 Cache. For the e200z0, this register returns all zeros indicating no cache is present. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 11-9 Preliminary Downloaded from Elcodis.com...
Page 272
Power Architecture processors, although other processors may implement similar or identical registers. All e200 SPR definitions are compliant with the Freescale EIS specification definitions. MPC5510 Microcontroller Family Reference Manual, Rev. 1 11-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 273
IVOR 7 Unused unavailable System call IVOR 8 Execution of the System Call (se_sc) instruction AP unavailable IVOR 9 Unused Decrementer IVOR 10 Unused MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 11-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 274
Single-beat and misaligned transfers are supported for read and write cycles. Incrementing burst transfers are supported for instruction prefetch operations. MPC5510 Microcontroller Family Reference Manual, Rev. 1 11-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 275
12.1.1 Block Diagram A simplified block diagram of the eDMA illustrates the functionality and interdependence of major blocks (see Figure 12-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 276
— Peripheral-paced hardware requests (one per channel) All three methods require one activation per execution of the minor loop • Support for fixed-priority and round-robin channel arbitration MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 277
Some registers are implemented as two 32-bit registers, and include H and L suffixes, signaling the high and low portions of the control function. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-3 Preliminary Downloaded from Elcodis.com...
Page 281
1 The assertion of the system debug control input causes the eDMA to stall the start of a new channel. Executing channels are allowed to complete. Channel execution will resume when either the system debug control input is negated or the EDBG bit is cleared. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-7 Preliminary Downloaded from Elcodis.com...
Page 282
MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 283
0 No destination offset configuration error. 1 The last recorded error was a configuration error detected in the TCD.DOFF field, indicating TCD.DOFF is inconsistent with TCD.DSIZE. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-9 Preliminary Downloaded from Elcodis.com...
Page 284
Offset: EDMA_BASE + 0x000E Access: User read/write R ERQ Reset Figure 12-4. eDMA Enable Request Low Register (EDMA_ERQRL) MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 285
EDMA_ERQRL to enable the eDMA request for a given channel. The data value on a register write causes the corresponding bit in the EDMA_ERQRL to be set. Setting bit 1 (SERQ[0]) provides a global set MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-11 Preliminary Downloaded from Elcodis.com...
Page 286
Reads of this register return all zeroes. Offset: EDMA_BASE + 0x0019 Access: User write only CERQ[0:6] Reset Figure 12-7. eDMA Clear Enable Request Register (EDMA_CERQR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 287
EDMA_EEIRL to be cleared. Setting bit 1 (CEEI[0]) provides a global clear function, forcing the entire contents of the EDMA_EEIRL to be zeroed, disabling error interrupts for all channels. Reads of this register return all zeroes. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-13 Preliminary Downloaded from Elcodis.com...
Page 288
Clear Interrupt Request. 0–15 Clear corresponding bit in EDMA_IRQRL 16–63 Reserved 64–127 Clear all bits in EDMA_IRQRL Note: Bits 2 and 3(CIRQR[1:2]) are not used. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 289
Reads of this register return all zeroes. Offset: EDMA_BASE + 0x001E Access: User write only SSB[0:6] Reset Figure 12-12. eDMA Set START Bit Register (EDMA_SSBR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 290
Typically, a write to the EDMA_CIRQR in the interrupt service routine is used for this purpose. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 291
EDMA_ERL, a 1 in any bit position clears the corresponding channel’s error status. A 0 in any bit position has no affect on the corresponding channel’s current error status. The EDMA_CER is provided so the error indicator for a single channel can be cleared. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-17 Preliminary Downloaded from Elcodis.com...
Page 292
EDMA_CPRI0[CHPRI] = 0b0000 and EDMA_CPR15[CHPRI] = 0b1111. Figure 12-16. eDMA Channel n Priority Register (EDMA_CPRn) MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 293
Last destination address adjustment / scatter-gather address (dlast_sga) 0x1000+(32 x n)+0x001c Beginning major iteration count (biter) Channel control/status Figure 12-17 Table 12-19 define the fields of the TCDn structure. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-19 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 294
SOFF is typically set to the transfer size to implement post-increment addressing with the SMOD function constraining the addresses to a 0-modulo-size range. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 295
0 The channel-to-channel linking is disabled. 1 The channel-to-channel linking is enabled. Note: This bit must be equal to the BITER.E_LINK bit otherwise a configuration error will be reported. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-21 Preliminary Downloaded from Elcodis.com...
Page 296
CITER field, otherwise a configuration error will be reported. As the major iteration count is exhausted, the contents of this field is reloaded into the CITER field. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 297
Channel active. This flag signals the channel is currently in execution. It is set when 0x1C [25] channel service begins, and is cleared by the DMA engine as the inner minor loop completes or if any error condition is detected. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-23 Preliminary Downloaded from Elcodis.com...
Page 298
1 The channel is explicitly started via a software initiated service request. 12.4 Functional Description This section provides an overview of the microarchitecture and functional operation of the eDMA block. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 299
(SSIZE < DSIZE) transfer size = destination transfer size (# of bytes) else transfer size = source transfer size (# of bytes) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-25 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 300
DMA engine address path channel{x,y} registers. The TCD memory is organized 64-bits in width to minimize the time needed to fetch the activated channel’s descriptor and load it into the eDMA engine address path channel{x,y} registers. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 301
This source read/destination write processing continues until the inner minor byte count has been transferred. The eDMA done handshake signal is asserted at the end of the minor byte count transfer. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-27 Preliminary Downloaded from Elcodis.com...
Page 302
TCD from memory using the scatter-gather address pointer included in the descriptor. The updates to the TCD memory and the assertion of an interrupt request are shown in Figure 12-20. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 303
After any channel requests service, a channel is selected for execution based on the arbitration and priority levels written into the programmer's model. The DMA engine will read the entire TCD, including the MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-29 Preliminary Downloaded from Elcodis.com...
Page 304
DMA arbitration can occur after each minor loop, and one level of minor loop DMA preemption is allowed. The number of minor loops in a major loop is specified by the beginning iteration count (biter). MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 305
For all error types other than channel-priority errors, the channel number causing the error is recorded in the EDMA_ESR. If the error source is not removed before the next activation of the problem channel, the error will be detected and recorded again. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-31 Preliminary Downloaded from Elcodis.com...
Page 306
In this mode, channels are serviced starting with the highest channel number and rotating through to the lowest channel number without regard to the assigned channel priority levels. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 307
→ second iteration of the minor loop e) read_byte(0x1008), read_byte(0x1009), read_byte(0x100a), read_byte(0x100b) f) write_word(0x2008) → third iteration of the minor loop MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-33 Preliminary Downloaded from Elcodis.com...
Page 308
→ first iteration of the minor loop c) read_byte(0x1004), read_byte(0x1005), read_byte(0x1006), read_byte(0x1007) d) write_word(0x2004) → second iteration of the minor loop MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 309
(0x1234567x) retain their original value. In this example the source address is set to 0x12345670, the offset is set to 4 bytes and the mod field is set to 4, allowing for a 2 byte (16-byte) size queue. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-35 Preliminary Downloaded from Elcodis.com...
Page 310
4. TCD.START = 0, TCD.ACTIVE = 0, TCD.DONE = 1 (channel has completed the major loop and is idle). For both activation types, the major loop complete status is explicitly indicated via the TCD.DONE bit. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 311
TCD.MAJOR.LINKCH = 0x7 will execute as: 1. Minor loop done → set channel 12 TCD.START bit 2. Minor loop done → set channel 12 TCD.START bit MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-37 Preliminary Downloaded from Elcodis.com...
Page 312
TCD.MAJOR.E_LINK would be set in the programmer’s model, but it would be unclear whether the actual link was made before the channel retired. MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 313
The user must clear the TCD.DONE bit before writing the TCD.MAJOR.E_LINK or TCD.E_SG bits. The TCD.DONE bit is cleared automatically by the eDMA engine after a channel begins execution. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 12-39 Preliminary Downloaded from Elcodis.com...
Page 314
Enhanced Direct Memory Access (eDMA) MPC5510 Microcontroller Family Reference Manual, Rev. 1 12-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 316
All registers are accessible via 8-bit, 16-bit, or 32-bit accesses. However, 16-bit accesses must be aligned to 16-bit boundaries and 32-bit accesses must be aligned to 32-bit boundaries. As an example, MPC5510 Microcontroller Family Reference Manual, Rev. 1 13-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 317
Each of the 16 DMA channels can be independently enabled/disabled and associated with one of the 64 DMA sources in the system. Offset: DMA_MUX_BASE + n Access: User read/write ENBL TRIG SOURCE Reset Figure 13-2. Channel Configuration Registers (CHCONFIGn) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 13-3 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 318
SCI_C.SCISR1[TDRE] || SCI_C combined DMA request of the transmit SCI_C.SCISR1[TC] || data register empty, transmit complete, and LIN SCI_C.LINSTAT1[TXRDY] transmit data ready DMA requests MPC5510 Microcontroller Family Reference Manual, Rev. 1 13-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 319
0x15 DSPI_C.DSPI_SR[TFFF] DSPI_C transmit FIFO fill flag DSPI_C_SR_RFDF 0x16 DSPI_C.DSPI_SR[RFDF] DSPI_C receive FIFO drain flag DSPI_D_SR_TFFF 0x17 DSPI_D.DSPI_SR[TFFF] DSPI_D transmit FIFO fill flag MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 13-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 320
FIFO 1 drain flag eQADC_FISR1_CFFF1 0x34 eQADC.eQADC_FISR1[CFFF1] eQADC command FIFO 1 fill flag MLB_DMA_REQ 0x35 MLB.MSR[MDATRQS] MLB Data Request Reserved 0x36 Reserved Reserved MPC5510 Microcontroller Family Reference Manual, Rev. 1 13-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 321
Because of the dynamic nature of the system (i.e. DMA channel priorities, bus arbitration, interrupt service routine lengths, etc.), the number of clock cycles between a trigger and the actual DMA transfer cannot be guaranteed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 13-7 Preliminary Downloaded from Elcodis.com...
Page 322
After the DMA request has been serviced, the peripheral negates its request, effectively resetting the gating mechanism until the peripheral re-asserts its request AND the next trigger event is seen. This means that MPC5510 Microcontroller Family Reference Manual, Rev. 1 13-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 323
(PIT_RTI).” 13.4.2 DMA Channels 8–15 Channels 8–15 of the DMA_MUX provide the normal routing functionality as described in Section 13.1.3, “Modes of Operation.” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 13-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 324
In cases where software should initiate the start of a DMA transfer, an always enabled DMA source can be used to provide maximum flexibility. When activating a DMA channel via software, subsequent MPC5510 Microcontroller Family Reference Manual, Rev. 1 13-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 325
2. Configure channel 2 in the DMA, including enabling the channel. 3. Configure timer 3 in the periodic interrupt timer (PIT) for the desired trigger interval. 4. Write 0xC5 to CHCONFIG2 (base address + 0x02). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 13-11 Preliminary Downloaded from Elcodis.com...
Page 326
/* Following example assumes char is 8-bits */ volatile unsigned char *CHCONFIG0 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0000); volatile unsigned char *CHCONFIG1 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0001); MPC5510 Microcontroller Family Reference Manual, Rev. 1 13-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 328
*CHCONFIG15= (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x000F); In File main.c: #include “registers.h” *CHCONFIG8 = 0x00; *CHCONFIG8 = 0x87; 13.6 Interrupts The DMA channel mux does not generate interrupts. MPC5510 Microcontroller Family Reference Manual, Rev. 1 13-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 329
(data phase). 14.1.2 Block Diagram A simplified block diagram of the AIPS-lite illustrates the functionality and interdependence of major blocks (see Figure 14-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 14-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 330
The AIPS-lite serves as an interface between an AHB 2.v6 system bus and the peripheral interface bus. It functions as a protocol translator. MPC5510 Microcontroller Family Reference Manual, Rev. 1 14-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 331
Two-clock write accesses are possible with the AIPS-Lite when the reference size is 32 bits or smaller. This module does not support any type of misaligned write access crossing a 32-bit boundary. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 14-3 Preliminary Downloaded from Elcodis.com...
Page 333
Nexus 2+ (e200z0) — 15.1.1 Block Diagram A simplified block diagram of the XBAR illustrates the functionality and interdependence of major blocks (see Figure 15-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 15-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 334
— Nexus 2+ pretending to be Z0 core (master ID = 9) — Nexus 2+ pretending to be Z1 core (master ID = 8) • Slaves — SRAM (XBAR s3) MPC5510 Microcontroller Family Reference Manual, Rev. 1 15-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 335
In this context, the transfer boundary is defined as the completion of any “single” transfer, the completion of each transfer within an undefined-length burst, the MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 15-3 Preliminary Downloaded from Elcodis.com...
Page 336
The selected arbitration scheme is applied to all slave ports. On MPC5510, the XBAR defaults to round robin priority arbitration. The priority arbitration scheme is selectable via the MCM MPC5510 Microcontroller Family Reference Manual, Rev. 1 15-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 337
The ability to enable the high-priority request from the processors is programmable. This feature is enabled via the assertion of the appropriate HID1 control bits in the e200 core. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 15-5 Preliminary Downloaded from Elcodis.com...
Page 338
If no master is currently making a request to the slave port then the slave port is parked on a given master port. When a slave port is parked on a master and that master accesses the slave port, the master does not MPC5510 Microcontroller Family Reference Manual, Rev. 1 15-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 339
NSEQ NSEQ IDLE htrans hready Figure 15-2. Parking on a Specific Master 1. Hardwired and not user changeable configuration for slave port s0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 15-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 340
15.6 Interrupt Requests There are no interrupt requests associated with the XBAR. 1. Hardwired and not user changeable configuration for slave port s3. MPC5510 Microcontroller Family Reference Manual, Rev. 1 15-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 341
Software watchdog timer (SWT) with programmable interrupt response — The default state after reset of the SWT is enabled — The SWT count can be optionally held when system debug is enabled MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 16-1 Preliminary Downloaded from Elcodis.com...
Page 344
SIU and will cause a system reset. The watchdog timer logic also sends an interrupt request to the device’s interrupt controller. MPC5510 Microcontroller Family Reference Manual, Rev. 1 16-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 345
SWRWH Software Watchdog Run While Halted. 0 SWT stops counting if the processor core is halted. 1 SWT continues to count even while the processor core is halted. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 16-5 Preliminary Downloaded from Elcodis.com...
Page 347
AXBS-lite uses a fixed or round robin priority arbitration scheme for masters requesting access to AXBS-lite slave ports. See Figure 16-4 Table 16-5 for the miscellaneous user-defined control register definition. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 16-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 348
Figure 16-5 Table 16-6 for the ECC configuration register definition. MPC5510 Microcontroller Family Reference Manual, Rev. 1 16-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 349
4. When the values are identical, write a 1 to the asserted ESR flag to negate the interrupt request. Figure 16-6 Table 16-7 for the ECC status register definition. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 16-9 Preliminary Downloaded from Elcodis.com...
Page 351
The only allowable values for the 2 control bit enables {FRCNCI, FR1NCI} are {0,0}, {1,0} and {0,1}. All other values result in undefined behavior. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 16-11 Preliminary Downloaded from Elcodis.com...
Page 352
ECC master number register definition. Offset: MCM_BASE_ADDR + 0x0056 Access: User read only FEMR Reset – – – – Figure 16-9. Flash ECC Master Number (FEMR) Register MPC5510 Microcontroller Family Reference Manual, Rev. 1 16-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 354
REAT, and REDR registers and also the appropriate flag (RNCE) in the ECC status register to be asserted. This register is read-only; any attempted write is ignored. See Figure 16-12 Table 16-13 for the RAM ECC address register definition. MPC5510 Microcontroller Family Reference Manual, Rev. 1 16-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 355
The REAT is an 8-bit register for capturing the AXBS bus master attributes of the last, properly-enabled ECC event in the RAM memory. Depending on the state of the ECC configuration register, an ECC event MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 16-15 Preliminary Downloaded from Elcodis.com...
Page 356
The data captured on a multi-bit non-correctable ECC error is undefined. This register is read-only; any attempted write is ignored. See Figure 16-15 Table 16-16 for the RAM ECC data register definition. MPC5510 Microcontroller Family Reference Manual, Rev. 1 16-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 357
Chapter 15, “Crossbar Switch (XBAR),” for information on priority elevation and the Z1 and Z0 Core Reference Manual for information on the use of the interrupts. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 16-17 Preliminary Downloaded from Elcodis.com...
Page 358
Miscellaneous Control Module (MCM) MPC5510 Microcontroller Family Reference Manual, Rev. 1 16-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 359
A simplified block diagram illustrates how the MPU block is connected to the three AXBS-lite slave ports, one of them being the shared slave port splitter (see Figure 17-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 17-1 Preliminary Downloaded from Elcodis.com...
Page 360
— Alternate memory view of the access control word for each descriptor provides an efficient mechanism to dynamically alter the access rights of a descriptor only MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 363
NRGD Reset 0 Figure 17-2. MPU Control/Error Status Register (MPU_CESR) Each MPERR bit can be cleared by writing a one to the bit location. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 17-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 364
Table 17-3. MPU_EARn Field Descriptions Field Description EADDR Error Address. This read-only field is the reference address from slave port n that generated the access error. MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 365
Each 128-bit (16 byte) region descriptor specifies a given memory space and the access attributes associated with that space. The descriptor definition is fundamental to the operation of the MPU. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 17-7 Preliminary Downloaded from Elcodis.com...
Page 366
For these fields, the bus master number refers to the logical master number defined as the AHB signal. hmaster[3:0] MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 367
ID 4 terminates with an access error and the read is not performed. Note: Bus Master 4 (EBI) is available for Factory Test only. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 17-9 Preliminary Downloaded from Elcodis.com...
Page 368
Bus Master ID 0 Process Identifier Enable. If set, this flag specifies that the process identifier and mask defined in MPU_RGDn.Word3 are to be included in the region hit evaluation. If cleared, the region hit evaluation does not include the process identifier. MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 370
Bus Master ID 4 Read Enable. If set, this flag allows bus master ID 4 to perform read operations. If cleared, any attempted read by bus master ID 4 terminates with an access error and the read is not performed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 371
Bus Master 0 Process Identifier Enable. If set, this flag specifies that the process identifier and mask (defined in MPU_RGDn.Word3) are to be included in the region hit evaluation. If cleared, then the region hit evaluation does not include the process identifier. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 17-13 Preliminary Downloaded from Elcodis.com...
Page 372
MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 373
— no, access is allowed data write — — — yes, no w permission data write — — — no, access is allowed MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 17-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 374
This state also minimizes the power dissipation of the MPU. The power dissipation of each access evaluation macro is minimized when the associated region descriptor is marked as invalid or when MPU_CESR[VLD] = 0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 375
(the boolean OR operator). In the following example of a dual-core system, there are four MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 17-17 Preliminary Downloaded from Elcodis.com...
Page 376
(RGD7) accessible to both processors and the traditional eDMA master. This example is intended to show one possible application of the capabilities of the memory protection unit in a typical system. MPC5510 Microcontroller Family Reference Manual, Rev. 1 17-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 377
In the diagram, the register blocks named gate0, gate1, ..., gate 15 include the finite state machines implementing the semaphore gates plus the interrupt notification logic. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 18-1 Preliminary Downloaded from Elcodis.com...
Page 378
— Each hardware gate appears as a three-state, 2-bit state machine, with all 16 gates mapped as an array of bytes – Three-state implementation if gate = 0b00, then state = unlocked MPC5510 Microcontroller Family Reference Manual, Rev. 1 18-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 380
Only processor bus masters can modify the gate registers. After it is locked, a gate must be opened (unlocked) by the locking processor core. MPC5510 Microcontroller Family Reference Manual, Rev. 1 18-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 382
(or all the gates) to be initialized by following a specific dual-write access pattern. Using a technique similar to that required for the servicing of a software MPC5510 Microcontroller Family Reference Manual, Rev. 1 18-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 384
1. A processor performs a 16-bit write to the SEMA4_RSTNTF memory location. The most significant byte (SEMA4_RSTNTF[RSTNDP]) must be 0x47; the least significant byte is a don’t_care for this reference. MPC5510 Microcontroller Family Reference Manual, Rev. 1 18-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 385
This field is updated each time a write to this register occurs. Master Master ID e200z1 e200z0 eDMA FlexRay MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 18-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 386
If the CPU and bus provide an atomic swap operation, programmers can create locks with the proper semantics. The adjective atomic is key, MPC5510 Microcontroller Family Reference Manual, Rev. 1 18-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 387
3. The Z1 software interrupt ISR reads the data sent to the Z0, not the data sent from the Z0, and performs an incorrect operation. — Semaphores do not prevent this situation from occurring. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 18-11 Preliminary Downloaded from Elcodis.com...
Page 388
/* gate number to lock */ current_value; locked_value; i = processor_number(); /* obtain logical CPU number */ if (i == 0) locked_value = CP0_LOCK; MPC5510 Microcontroller Family Reference Manual, Rev. 1 18-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 389
There are no DMA requests associated with the IPS_Semaphore block. 18.8 Interrupt Requests The semaphore interrupt requests are connected to the interrupt controller as described in Table 8-2. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 18-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 390
Semaphores MPC5510 Microcontroller Family Reference Manual, Rev. 1 18-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 392
The JTAGC uses JCOMP and a power-on reset indication as its primary reset signals. Several IEEE 1149.1-2001 defined test modes are supported, as well as a bypass mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 19-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 393
When the access instruction for an auxiliary TAP is loaded, control of the JTAG pins is transferred to the selected TAP controller. Any data input via TDI and TMS is passed to the selected TAP controller, and any MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 19-3 Preliminary Downloaded from Elcodis.com...
Page 394
0. Therefore, the first bit shifted out after selecting the bypass register is always a logic 0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 19-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 395
While in reset, the TAP controller is forced into the test-logic-reset state, thus disabling the test logic and allowing normal operation of the on-chip system logic. The instruction register is also loaded with the IDCODE instruction. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 19-5 Preliminary Downloaded from Elcodis.com...
Page 396
TMS at logic 1 while clocking TCK through a sufficient number of rising edges also causes the state machine to enter the test-logic-reset state. MPC5510 Microcontroller Family Reference Manual, Rev. 1 19-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 397
NOTE: The value shown adjacent to each state transition in this figure represents the value of TMS at the time of a rising edge of TCK. Figure 19-6. IEEE 1149.1-2001 TAP Controller Finite State Machine MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 19-7 Preliminary Downloaded from Elcodis.com...
Page 398
Daisy chaining the e200z1 and e200z0 cores—allows instructions to be clocked into both the e200z0 and e200z1 serially. BYPASS 11111 Selects bypass register for data operations MPC5510 Microcontroller Family Reference Manual, Rev. 1 19-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 399
SAMPLE/PRELOAD instruction before the selection of EXTEST. EXTEST asserts the internal system reset for the MCU to force a predictable internal state while performing external boundary scan operations. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 19-9 Preliminary Downloaded from Elcodis.com...
Page 400
TDI and TDO when the EXTEST, SAMPLE, or SAMPLE/PRELOAD instructions are loaded. The shift-register chain contains a serial input and serial output, as well as clock and control signals. MPC5510 Microcontroller Family Reference Manual, Rev. 1 19-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 401
19.5.2 e200z0 OnCE Controller Functional Description The functional description for the e200z0 OnCE controller is the same as for the JTAGC, with the differences described below. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 19-11 Preliminary Downloaded from Elcodis.com...
Page 402
Figure 19-8. OnCE Command Register (OCMD) Table 19-3. e200z0 OnCE Register Addressing Register Selected 000 0000 – 000 0001 Reserved 000 0010 JTAG ID (read-only) MPC5510 Microcontroller Family Reference Manual, Rev. 1 19-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 403
ID is used during Nexus2+ DMA access, and if the Nexus EVTI debug request is used as a debug request to either or both cores. This register is only available on the e200z0 core. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 19-13 Preliminary Downloaded from Elcodis.com...
Page 404
1. Set the JCOMP signal to logic 1, thereby enabling the JTAGC TAP controller. 2. Load the appropriate instruction for the test or action to be performed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 19-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 405
3. Configure the EBI pins. (After clearing EVT_EN, you can reclaim PF0/PF1). 4. Disconnect PF0 from the Nexus probe (probe drives EVTI high), and ensure that PFO is connected to memory R/W. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-1 Preliminary Downloaded from Elcodis.com...
Page 406
Watchpoint trace Arbiter information Input Control registers to trace blocks controller JCOMP Power-on Reset reset control EVTI Figure 20-1. NDI Functional Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 407
Program trace via branch trace messaging (BTM). Branch trace messaging displays program flow discontinuities (direct and indirect branches, exceptions, etc.), allowing the development tool to interpolate what transpires between the discontinuities. Thus static code may be traced. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-3 Preliminary Downloaded from Elcodis.com...
Page 408
Nexus client in the JTAGC controller (JTAGC) block when JCOMP is asserted. The NPC transitions out of the reset state immediately following negation of power-on reset. MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 409
After the acknowledgment, the system clock input are shut off by the clock driver on the device. While the clocks are shut off, the development tool cannot access NDI registers via the JTAG port. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-5 Preliminary Downloaded from Elcodis.com...
Page 410
Client-Independent Registers 0bxxxx Device ID (DID) 0bxxxx Client select control (CSC) 0bxxxx Port configuration register (PCR) e200z0 Control/Status Registers 0b0000 e200z0 development control1 (DC1) MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 411
Part Revision Number. Contains the revision number of the part. This field changes with each revision of the device or module. Design Center. Indicates the Freescale design center. This value is 0x20. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-7 Preliminary Downloaded from Elcodis.com...
Page 412
Changing the mode or clock division while MCKO is enabled can produce unpredictable results. Reg Index: 127 Access: User read/write MCKO_DIV Reset Reset Figure 20-4. Port Configuration Register (PCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 413
Low Power Debug Enable. The LP_DBG_EN bit enables debug functionality to support entry and exit from low power sleep and stop modes. 0 Low power debug disabled. 1 Low power debug enabled. bits 14–10 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 414
00 MCKO is 1x processor clock frequency. 01 MCKO is 1/2x processor clock frequency. 10 MCKO is 1/4x processor clock frequency. 11 MCKO is 1/8x processor clock frequency. MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 418
Read/Write Access Data (RWD) The read/write access data register provides the data to/from system bus memory-mapped locations when initiating a read or a write access. MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 419
100 Use watchpoint #3 (IAC4 from Nexus1). 101 Use watchpoint #4 (DAC1 from Nexus1). 110 Use watchpoint #5 (DAC2 from Nexus1). 111 Use watchpoint #6 or #7 (DCNT1 or DCNT2 from Nexus1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-15 Preliminary Downloaded from Elcodis.com...
Page 420
When the ACCESS_AUX_TAP_MULTI instruction has been loaded into the JTAGC OCMD register, the TDO output of the e200z1 TAP controller will be connected to the TDI input to the e200z0 TAP controller. MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 421
Table 20-13. NDI Configuration Options MCKO_EN bit of the FPM bit of the JCOMP Asserted Configuration Port Configuration Register Port Configuration Register Reset Disabled MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 423
Nexus event is triggered. These break requests can affect either of the e200z1 or e200z0 cores, or can be used to request a break for both cores. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-19 Preliminary Downloaded from Elcodis.com...
Page 425
- Set DR bit (request debug mode right out of reset). out of reset). Negate System Reset Figure 20-12. Nexus Event-Out Generated Break Request (5510) — Part 1 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 20-21 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 426
1149.1-2001 defined TRST signal but has a default value of disabled (JCOMP is pulled low during reset) The IEEE 1149.1-2001 defines TRST to be pulled up (enabled) by default. MPC5510 Microcontroller Family Reference Manual, Rev. 1 20-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 427
21.1.1 Block Diagram A simplified block diagram of the SRAM illustrates the functionality and interdependence of major blocks (see Figure 21-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 21-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 428
Configurable number of 8 KB blocks powered during low-power sleep • Byte, halfword, and word addressable • Error correcting code (ECC) performs single bit correction, double bit detection on a 32-bit boundary MPC5510 Microcontroller Family Reference Manual, Rev. 1 21-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 429
8 KB RAM array G 0x4000_E000–0x4000_FFFF 8 KB RAM array H 0x4001_0000–0x4001_1FFF 8 KB RAM array I 0x4000_2000–0x4001_3FFF 8 KB RAM array J MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 21-3 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 430
Table 21-2. Wait States During SRAM Access Current Previous Wait States Read Idle Read 32-bit write 8/16-bit write 32-bit write Idle Read 32-bit write 8/16-bit write MPC5510 Microcontroller Family Reference Manual, Rev. 1 21-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 431
32 or 64 bits, on a 32-bit boundary. If not, a read/modify/write operation is generated that checks the ECC value upon the read. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 21-5 Preliminary Downloaded from Elcodis.com...
Page 433
16 KB blocks and two 64 KB blocks. The mid and high memory will be implemented using ten 128 KB blocks. Figure 22-1 shows the segmentation for the flash on MPC5510. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-1 Preliminary Downloaded from Elcodis.com...
Page 434
(see Section 22.3, “External Signal Description.”) Figure 22-2. Flash System Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 435
The other flash supplies are tied to the appropriate supply pads in the package. Refer to Table 2-1 Section 2.7, “Detailed External Signal Descriptions,” and the MPC5510 Microcontroller Family Data Sheet. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-3 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 437
Some bits are read only. 22.4.2 Register Descriptions This section lists the flash registers in address order and describes the registers and their bit fields. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 438
External Program Erase Status. EPE is a hardware lock that indicates that all blocks including the shadow block and excluding the boot block are enabled for program/erase. This read-only bit reads as 1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 439
PGM can be cleared by the user only when PSUS and EHV are low and DONE is high. PGM is cleared on reset. 0 Flash is not executing a program sequence 1 Flash is executing a program sequence MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-7 Preliminary Downloaded from Elcodis.com...
Page 440
Aborting a high voltage operation will leave flash core addresses in an indeterminate data state. This may be recovered by executing an erase on the affected blocks. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 441
An “OR” of LML and SLL determine the final lock status. See Section 22.4.2.4, “Secondary Low-/Mid-Address Space Block Locking Register (SLL),” for more information on SLL. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-9 Preliminary Downloaded from Elcodis.com...
Page 442
0 Shadow row is available to receive program and erase pulses. 1 Shadow row is locked for program and erase. bits 12–13 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 443
For HBE, the password 0xB2B2_2222 must be written to HBL. 0 High address locks are disabled, and cannot be modified 1 High address locks are enabled to be written MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-11 Preliminary Downloaded from Elcodis.com...
Page 444
SSLOCK has the same description as SLOCK in Section 22.4.2.2, “Low-/Mid-Address Space Block Locking Register.” SSLOCK is not writable unless SLE is high. bits 12–13 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 445
0b00 Mid-address space blocks are not selected for erase 0b01 One mid-address space block is selected for erase 0b11 Two mid-address space blocks are selected for erase MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-13 Preliminary Downloaded from Elcodis.com...
Page 446
The ADR provides the first failing address in the event of ECC event error (MCR[EER] set) and the address of a failure that may have occurred in a state machine operation (MCR[PEG] cleared). ECC event MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 447
PFLASH2P_H7Fb. This register also has two bits (ARB and PRI) to control arbitration between the p0/p1 ports. The PFLASH configuration register for port 1 (PFCRP1) is used to specify operation of port p1 of the PFLASH2P_H7Fb MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-15 Preliminary Downloaded from Elcodis.com...
Page 448
1 Port p1 is given highest fixed priority. Note: This bit is only available in PFCRP0. For PFCRP1, treat this bit as reserved. bits 6–10 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 449
0 No prefetching is triggered by an instruction read access 1 Prefetching may be triggered by any instruction read access bit 28 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 450
In flash user mode, registers can be written. Array can be written to do interlock writes. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 451
Section 22.4.2.2, “Low-/Mid-Address Space Block Locking Register,” Section 22.4.2.3, “High-Address Space Block Locking Register (HBL),” Section 22.4.2.4, “Secondary Low-/Mid-Address Space Block Locking Register (SLL),” for more information. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-19 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 452
Aborting a program operation will leave the flash core addresses being programmed in an indeterminate data state. This may be recovered by executing an erase on the affected blocks. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 453
EHV is set high or PGM is cleared. Step 9 Write MCR PGM = 0 ESUS User mode read state Erase suspend Figure 22-12. Program Sequence MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-21 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 454
If the shadow row is to be erased, this step may be skipped, and LMS and HBS are ignored. For shadow row erase, see section Section 22.5.6, “Flash Shadow Block,” for more information. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 455
MCR[ERS] and MCR[EHV] are high and MCR[PGM] is low. A 0 to 1 transition of MCR[ESUS] causes the flash module to start the sequence which places it in erase suspend. The user must MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-23 Preliminary Downloaded from Elcodis.com...
Page 456
CAUTION In an erase-suspended program, programming flash locations in blocks which were being operated on in the erase may corrupt flash core data. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 457
The user must terminate the shadow erase operation to program or erase the main address space. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-25 Preliminary Downloaded from Elcodis.com...
Page 458
22.6 DMA Requests The flash has no DMA requests. MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 459
Flash Array and Control 22.7 Interrupt Requests The flash has no interrupt requests. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 22-27 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 460
Flash Array and Control MPC5510 Microcontroller Family Reference Manual, Rev. 1 22-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 461
Please pay careful attention to your system’s pin allocation requirements. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-1 Preliminary Downloaded from Elcodis.com...
Page 462
— Eight clock and transfer attribute registers — Serial clock with programmable polarity and phase — Programmable delays: – PCS to SCK delay MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 463
Debug and STOP (with STOP ack) are supported. • The reset value of the MDIS register bit is 1 and thus the DSPI is disabled by default after reset. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-3 Preliminary Downloaded from Elcodis.com...
Page 464
The address of each register is given as an offset to the DSPI base address. Registers are listed in address order, identified by complete name and mnemonic, and list the type of accesses allowed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 465
The DSPI_MCR contains bits which configure various attributes associated with DSPI operation. The HALT and MDIS bits can be changed at any time but will take effect on the next frame boundary only. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-5 Preliminary Downloaded from Elcodis.com...
Page 466
“Modified SPI/DSI Transfer Format (MTFE = 1, CPHA = 1),” for more information. 0 Modified SPI transfer format disabled 1 Modified SPI transfer format enabled MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 467
Clear RX FIFO. Flushes the RX FIFO. Writing a 1 to CLR_RXF clears the RX counter. The CLR_RXF bit is always read as zero. 0 Do not clear the RX FIFO counter 1 Clear the RX FIFO counter MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-7 Preliminary Downloaded from Elcodis.com...
Page 468
The user must not write to the DSPI_TCR while the DSPI is running. Offset: DSPI_BASE + 0x0008 Access: Read/Write SPI_TCNT Reset Reset Figure 23-3. DSPI Transfer Count Register (DSPI_TCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 469
CSI configuration follow the protocol described for DSI configuration. CSI configuration is only valid with master mode. See Section 23.4.5, “Combined Serial Interface (CSI) Configuration,” for more details. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 472
PCSx. This field is only used in master mode. The table below lists the prescaler values. The description for bitfield ASC in Table 23-4 details how to compute the after SCK delay. After SCK Delay PASC Prescaler Value MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 473
The baud rate prescaler values are listed in the table below. The description for Section 23.4.7.1, “Baud Rate Generator,” details how to compute the baud rate. Baud Rate Prescaler Value MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 474
------------- - t CSC PCSSCK Prescaler value CSSCK Scaler value f SYS Note: See Section 23.4.7.2, “PCS to SCK Delay (tCSC),” for more details. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 475
------------- - t ASC PASC Prescaler value ASC Scaler value f SYS Note: See Section 23.4.7.3, “After SCK Delay (tASC),” for more details. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 476
------------- - t DT PDT Prescaler value DT Scaler value f SYS Note: See Section 23.4.7.4, “Delay after Transfer (tDT),” for more details MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 477
DSPI_SR by writing a 1 to it. Writing a 0 to a flag bit has no effect. NOTE This register cannot be written in MDIS Mode, owing to the use of power saving mechanisms. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-17 Preliminary Downloaded from Elcodis.com...
Page 478
1 to it or by an acknowledgement from the eDMA controller when the TX FIFO is full. 0 TX FIFO is full 1 TX FIFO is not full MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 479
The DSPI_RSER also selects the type of request to be generated. See the individual bit descriptions for information on the types of requests the bits support. NOTE The user must not write to the DSPI_RSER while the DSPI is running. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-19 Preliminary Downloaded from Elcodis.com...
Page 480
Receive FIFO Overflow Request Enable. Enables the RFOF flag in the DSPI_SR to generate an interrupt requests. 0 RFOF interrupt requests are disabled 1 RFOF interrupt requests are enabled bit 13 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 482
Note: This bitfield is used in SPI master mode only. TXDATA Transmit Data. Holds SPI data to be transferred according to the associated SPI command. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 483
TX FIFO. The registers are read-only and cannot be modified. Reading the DSPI_TXFRn registers does not alter the state of the TX FIFO. The MCU uses four registers to implement the TX FIFO, that is DSPI_TXFR0–DSPI_TXFR3 are used. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-23 Preliminary Downloaded from Elcodis.com...
Page 484
RX FIFO. The device uses four registers to implement the RX FIFO, that is DSPI_RXFR0–DSPI_RXFR3 are used. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 486
The DSPI_SDR contains the signal states of the parallel input signals from the eMIOS. The pin states of the parallel input signals are latched into the DSPI_SDR on the rising edge of every system clock. The MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 487
DSPI_ASDR take effect on the next frame boundary. Offset: DSPI_BASE + 0x00C4 Access: Read/Write Reset ASER_DATA [15:0] Reset Figure 23-13. DSPI DSI Alternate Serialization Data Register (DSPI_ASDR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-27 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 488
The DSPI_DDR holds the signal states for the parallel output signals. The DSPI_DDR is read-only and is memory mapped so that host software can read the incoming DSI frames. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 489
DSI data is transferred. The type of data transferred (whether DSI or SPI) dictates which CTAR the CSI configuration will use. See Section 23.3.2.3, “DSPI Clock and Transfer Attributes Registers 0–7 (DSPI_CTARn),” for information on DSPIx_CTAR fields. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-29 Preliminary Downloaded from Elcodis.com...
Page 490
The SPI and DSI configurations are valid in slave mode. CSI configuration is not available in slave mode. In SPI slave mode the slave transfer attributes are set in the DSPIx_CTAR0. In DSI slave mode the slave MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 491
The transitions are described in Table 23-16. Reset Running TXRXS = 1 Power-on-Reset Stopped TXRXS = 0 Figure 23-16. DSPI Start and Stop State Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-31 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 492
The main difference is that in master mode the DSPI initiates and controls the transfer according to the fields in the SPI command field of the TX FIFO MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 493
Section 23.3.2.6, “DSPI PUSH TX FIFO Register (DSPI_PUSHR).” TX FIFO entries can be removed from the TX FIFO only by being shifted out or by flushing the TX FIFO. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-33 Preliminary Downloaded from Elcodis.com...
Page 494
RX FIFO. The RXCTR is updated every time the DSPI _POPR is read or SPI data is copied from the shift register to the RX FIFO. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 495
The DSI frames can be from four to 16 bits long. Figure 23-18 shows an example of how a master DSPI connects to a SPI slave in DSI configuration. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-35 Preliminary Downloaded from Elcodis.com...
Page 496
Figure 23-18 shows the DSI serialization logic. Section 23.3.2.13, “DSPI DSI Transmit Comparison Register (DSPI_COMPR),” contains details on the DSPIx_COMPR. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 497
The transfer initiation conditions are selected by the CID bit in the DSPIx_DSICR. Table 23-17 lists the two transfer initiation conditions. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-37 Preliminary Downloaded from Elcodis.com...
Page 498
6-23. eMIOS output channel 7 Set by SIU IMUX2. See Table 6-23. eMIOS output channel 8 Set by SIU IMUX2. See Table 6-23. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 499
6-23. eMIOS output channel 12 Set by SIU IMUX2. See Table 6-23. eMIOS output channel 13 Set by SIU IMUX2. See Table 6-23. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-39 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 500
6-23. eMIOS output channel 14 Set by SIU IMUX2. See Table 6-23. eMIOS output channel 15 Set by SIU IMUX2. See Table 6-23. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 501
SPI commands and data from the TX FIFO. The data returned from the bus slave is either used to drive the parallel output signals (to the eMIOS) or is stored in the RX FIFO. CSI configuration MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-41 Preliminary Downloaded from Elcodis.com...
Page 502
The transfer attributes for the DSI frames are determined by the DSPIx_CTAR selected by the DSICTAS field in the DSPIx_DSICR. Figure 23-25 shows the CSI serialization logic. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-42 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 504
Figure 23-28 shows conceptually how the SCK signal is generated. 1+DBR System clock SCKx Prescaler Scaler Figure 23-28. Communications Clock Prescalers and Scalers MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-44 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 505
DSPIx_CTARn registers select the after SCK delay. The relationship between these variables is given in the following formula: × × PASC Table 23-24 shows an example of the computed after SCK delay. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-45 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 506
At the end of the transfer the delay between PCSS negation and PCSx negation is selected by the PASC field in the DSPIx_CTAR based on the following formula: MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-46 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 507
Section 23.4.8.3, “Modified SPI/DSI Transfer Format (MTFE = 1, CPHA = 0),” and Section 23.4.8.4, “Modified SPI/DSI Transfer Format (MTFE = 1, CPHA = 1).” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-47 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 508
For the CPHA=0 condition of the slave, TCF is set and the RXCTR counter is updated at the last serial clock edge of the frame (edge 16) of Figure 23-30. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-48 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 509
SPI mode to allow for delays in device pads and board traces. These delays become a more significant fraction of the SCK period as the SCK period decreases with increasing baud rates. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-49 Preliminary Downloaded from Elcodis.com...
Page 510
= PCS to SCK delay. = After SCK delay. Figure 23-32. DSPI Modified Transfer Format (MTFE = 1, CPHA = 0, Fsck = Fsys/4) MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-50 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 511
The idle states of the chip select signals are selected by the PCSIS field in the DSPIx_MCR. Figure 23-34 shows the timing diagram for two four-bit transfers with CPHA = 1 and CONT = 0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-51 Preliminary Downloaded from Elcodis.com...
Page 512
When the CONT bit = 1 and the PCS signals for the next transfer are different from the present transfer, the PCS signals behave as if the CONT bit was not set. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-52 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 513
Switching clock polarity between frames while using continuous SCK can cause errors in the transfer. Continuous SCK operation is not guaranteed if the DSPI is put into module disable mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-53 Preliminary Downloaded from Elcodis.com...
Page 514
PCS[0:4] signals. Figure 23-39 shows how an external 5-to-32 demultiplexer (decoder) can be connected to the DSPI. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-54 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 515
TX FIFO is less than the maximum number of possible entries, and the TFFF_RE bit in the DSPIx_RSER is asserted. The TFFF_DIRS bit in the DSPIx_RSER selects whether a DMA request or an interrupt request is generated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-55 Preliminary Downloaded from Elcodis.com...
Page 516
DSPI. If there is no serial transfer in progress, the DSPI immediately asserts an acknowledge signal to the system, allowing the clocks to be disabled. If a serial transfer is in progress when the request is received, MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-56 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 517
5. Disable DSPI DMA transfers by disabling the DMA enable request for the DMA channel assigned to TX FIFO and RX FIFO. This is done by clearing the corresponding DMA enable request bits in the eDMA controller. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-57 Preliminary Downloaded from Elcodis.com...
Page 518
PBR and the baud rate scaler BR in the DSPIx_CTARs. The values calculated assume a 66 MHz system frequency. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-58 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 519
) that can be generated based on the prescaler values and the scaler values set in the DSPIx_CTARs. The values calculated assume a 66 MHz system frequency. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-59 Preliminary Downloaded from Elcodis.com...
Page 520
Section 23.4.3.4, “Transmit First-In First-Out (TX FIFO) Buffering Mechanism,” and Section 23.4.3.5, “Receive First-In First-Out (RX FIFO) Buffering Mechanism,” for details on the FIFO operation. MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-60 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 521
Last-in entry address = RX FIFO base + 4*[(RXCTR + POPNXTPTR - 1) modulo RX FIFO depth] RX FIFO base: base address of RX FIFO RXCTR: RX FIFO counter POPNXTPTR: pop next pointer RX FIFO depth: receive FIFO depth MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 23-61 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 522
Deserial Serial Peripheral Interface (DSPI) MPC5510 Microcontroller Family Reference Manual, Rev. 1 23-62 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 523
Transmit control TDRE generation Transmit shift register TC IRQ eSCI data register TX data out Figure 24-1. eSCI Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 524
Section 2.7, “Detailed External Signal Descriptions,” for detailed signal descriptions. 24.3 Memory Map and Registers This section provides a detailed description of all eSCI registers. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 525
Control Register 1 (ESCIx_CR1) Offset: Base + 0x0000 Access: Read/Write Reset LOOPS RSRC WAKE TCIE ILIE Reset Figure 24-2. eSCI Control Register 1 (ESCIx_CR1) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-3 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 526
0 Idle character bit count begins after start bit 1 Idle character bit count begins after stop bit MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 527
Toggling implies clearing the SBK bit before the break character has finished transmitting. As long as SBK is set, the transmitter continues to send complete break characters. 0 No break characters 1 Transmit break characters MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-5 Preliminary Downloaded from Elcodis.com...
Page 528
0 TXD pin to be used as an input in Single-Wire mode 1 TXD pin to be used as an output in Single-Wire mode MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 529
SCI transmission. NOTES ESCIx_DR should not be used in LIN mode, writes to this register are blocked in LIN mode (ESCIx_LCR[LIN] = 1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 530
1 Receiver input has become idle Note: When the receiver wakeup bit (RWU) is set, an idle line condition does not set the IDLE flag. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 531
Transmit Data Ready. The LIN FSM can accept another write to ESCIx_LTR. This bit is set when the ESCIx_LTR register becomes free. Clear TXRDY by writing it with 1. 0 ESCIx_LTR register is not free 1 ESCIx_LTR register is free MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-9 Preliminary Downloaded from Elcodis.com...
Page 532
LIN bus. Set when the condition is detected and cleared by writing 1 to it. 0 No overflow 1 Overflow detected 24.3.2.5 LIN Control Register (ESCIx_LCR) ESCIx_LCR can be written when there are no ongoing transmissions only. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 533
LIN RXREG Ready Interrupt Enable. Generates an interrupt when new data is available in the LIN RXREG. TXIE LIN TXREG Ready Interrupt Enable. Generates an interrupt when new data can be written to the LIN TXREG. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-11 Preliminary Downloaded from Elcodis.com...
Page 534
It is also possible to flush the ESCIx_LTR by setting the ESCIx_LCR[LRES] bit. NOTE Not all values written to the ESCIx_LTR will generate valid LIN frames. The values are determined according to the LIN specification. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 535
8–31 Reserved. The values 3C, 3D, 3E, and 3F of the ID-field (ID0-5) indicate command and extended frames. Refer to LIN specification revision 2.0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-13 Preliminary Downloaded from Elcodis.com...
Page 536
8–31 Reserved. Table 24-11. ESCIx_LTR Tx Frame Fourth+ Byte/ Rx Frame Fifth+ Byte Field Description Field Description Data bits for transmission. bits 8–31 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 537
8–31 Reserved. 24.3.2.8 LIN CRC Polynomial Register (ESCIx_LPR) ESCIx_LPRn can be written when there are no ongoing transmissions. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 538
The CPU monitors the status of the eSCI, writes the data to be transmitted, and processes received data. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 539
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 STOP Figure 24-12. eSCI Data Formats MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 541
1 (ESCIx_CR1) determines the length of data characters. When transmitting 9-bit data, bit T8 in the eSCI data register (ESCIx_DR) is the ninth bit (bit 8). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-19 Preliminary Downloaded from Elcodis.com...
Page 542
The eSCI hardware supports odd or even parity. When parity is enabled, the most significant bit (msb) of the data character is the parity bit. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 543
May set the overrun flag, OR, noise flag, NF, parity error flag, PF, or the receiver active flag, RAF. For more detail, see Section 24.3.2.4, “eSCI Status Register (ESCIx_SR).” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-21 Preliminary Downloaded from Elcodis.com...
Page 544
If SBSTP is 0, the remainder of the byte will be transmitted normally. • If SBSTP is 1, the remaining bits in the byte after the error bit are transmitted as 1s (idle). MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 546
To verify the start bit and to detect noise, the eSCI data recovery logic takes samples at RT3, RT5, and RT7. Table 24-17 summarizes the results of the start bit verification samples. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 547
Table 24-19. Stop Bit Recovery RT8, RT9, and RT10 samples Framing error flag Noise flag MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-25 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 548
As the receiver samples an incoming frame and re-synchronizes the RT clock on any valid falling edge within the frame. Re-synchronization within frames will correct a misalignment between transmitter bit times and receiver bit times. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 549
The fast stop bit ends at RT10 instead of RT16 but remains sampled at RT8, RT9, and RT10. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-27 Preliminary Downloaded from Elcodis.com...
Page 550
(address bits) in the initial frame or frames of each message. See section Section 24.4.1, “Data Format,” for an example of address bits. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 551
Normally, the eSCI uses two pins for transmitting and receiving. In single-wire operation, the RXD pin is disconnected from the eSCI. The eSCI uses the TXD pin for both receiving and transmitting. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-29 Preliminary Downloaded from Elcodis.com...
Page 552
Each of the eSCI modules can be independently disabled by setting ESCIx_CR2[MDIS] = 1. Disabling the module turns off the clock to the module, although some of the module registers may be accessed by the MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 553
(ESCIx_DR) is empty and that a new data can be written to the ESCIx_DR for transmission. The TDRE bit is cleared by writing a 1 to the TDRE bit location in the ESCIx_SR. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-31 Preliminary Downloaded from Elcodis.com...
Page 554
The BERR flag is cleared by writing a 1 to the bit. A bit error will cause the LIN FSM to reset. Writing a 1 to the bit clears the BERR flag. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 555
RX frame is received. Writing a 1 to the bit clears the FRC flag. NOTE The last byte of a TX frame being sent or an RX frame being received indicates that the checksum comparison has taken place. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-33 Preliminary Downloaded from Elcodis.com...
Page 556
This feature supports LIN slaves with different LIN revisions. The LIN control register allows the user to decide whether the parity bits in the ID field should be calculated automatically and whether double MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 557
(the ESCIx_LTR). After transmission is complete, either the DMA controller or the LIN hardware can generate an interrupt to the CPU. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-35 Preliminary Downloaded from Elcodis.com...
Page 558
It is also possible to set up a whole sequence of RX and TX frames, and generate a single event at the end of that sequence. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 559
15 cycles, after a transmission has started, the LIN hardware will set the PBERR flag in the LIN status register. In addition a bit error may be generated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 24-37 Preliminary Downloaded from Elcodis.com...
Page 560
Other settings such as baud rate, length of break character etc., depend on the LIN slaves to which the eSCI is connected. MPC5510 Microcontroller Family Reference Manual, Rev. 1 24-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 561
25.1.1 Block Diagram A simplified block diagram of the FlexCAN illustrates the functionality and interdependence of major sub-blocks (see Figure 25-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 562
64 flexible message buffers (MBs) of zero to eight bytes data length • Each message buffer configurable as Rx or Tx, all supporting standard and extended messages MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 563
HALT bit in CANx_MCR is set, or if debug mode is requested by either core. In freeze mode no transmission or reception of frames is done, and synchronicity to the CAN bus is lost. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-3 Preliminary Downloaded from Elcodis.com...
Page 564
The Rx global mask (CANx_RXGMASK), Rx buffer 14 mask (CANx_RX14MASK) and the Rx buffer 15 mask (CANx_RX15MASK) registers are provided for backwards compatibility, and are not used when the BCC bit in CANx_MCR is asserted. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 566
25-2. Both extended and standard frames (29-bit identifier and 11-bit identifier, respectively) used in the CAN specification (version 2.0 Part B) are represented. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 567
Data Field. Up to eight bytes can be used for a data frame. For Rx frames, the data is stored as it is received from the CAN bus. For Tx frames, the CPU prepares the data field to be transmitted within the frame. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-7 Preliminary Downloaded from Elcodis.com...
Page 568
INACTIVE state. 1100 0100 Transmit remote frame unconditionally once. After transmission, the MB automatically becomes and Rx MB with the same ID. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 569
ID table can assume, depending on the IDAM field of the CANx_MCR. Note that all elements of the table must have the same format. See Section 25.4.6, “Rx FIFO,” for more information. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-9 Preliminary Downloaded from Elcodis.com...
Page 571
Access: User read/write NOT_ FRZ_ LPM_ SOFT SRX_ MDIS FRZ HALT _RST Reset LPRIO IDAM MAXMB Reset Figure 25-5. Module Configuration Register (CANx_MCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 572
0 FlexCAN module is either in normal mode, listen-only mode or loop-back mode. 1 FlexCAN module is either disabled or freeze mode. bit 5 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 573
FlexCAN has actually been disabled. See Section 25.4.8.2, “Module Disabled Mode,” for more information. 0 FlexCAN not disabled. 1 FlexCAN is disabled. bits 12–13 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 574
Two full standard IDs or two partial 14-bit extended IDs per filter element. Four partial 8-bit IDs (standard or extended) per filter element. All frames rejected. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 576
Status Register. This bit has no effect if the WRNEN bit in CANx_MCR is negated and it is read as zero when WRNEN is negated. 1 = Tx Warning Interrupt enabled 0 = Tx Warning Interrupt disabled MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 577
Propagation Segment Time (PROPSEG + 1) Time Quanta Time Quantum = one S clock period One time quantum is equal to the S clock period. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 578
MB (upon release) but may no longer match. Table 25-9 shows some examples of ID masking for standard and extended message buffers. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 579
The contents of this register must be programmed while the module is in Freeze Mode, and must not be modified when the module is transmitting or receiving frames. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-19 Preliminary Downloaded from Elcodis.com...
Page 580
Register. It must be programmed while the module is in Freeze Mode, and must not be modified when the module is transmitting or receiving frames. • Address Offset: 0x18 • Reset Value: 0xFFFF_FFFF MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 581
At the next successful message reception, the counter is set to a value between 119 and 127 to resume to ‘error active’ state. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-21 Preliminary Downloaded from Elcodis.com...
Page 582
TWRN_ RWRN_ Reset R BIT1_ BIT0_ ACK_ CRC_ FRM_ STF_ IDLE TXRX FLT_CONF BOFF_ ERR_ Reset Figure 25-10. Error and Status Register (CANx_ESR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 583
RXWRN Rx Error Counter. This status bit indicates when repetitive errors are occurring during messages reception. 0 No such occurrence 1 RXECTR ≥ 96 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-23 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 584
(that is, when the corresponding CANx_IFLAG2 bit is set). Offset: Base + 0x0024 Access: User read/write R BUF Reset R BUF Reset Figure 25-11. Interrupt Masks 2 Register (CANx_IMASK2) MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 585
This register defines the flags for 32 Message Buffer interrupts. It contains one interrupt flag bit per buffer. Each successful transmission or reception sets the corresponding CANx_IFLAG2 bit. If the corresponding MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-25 Preliminary Downloaded from Elcodis.com...
Page 586
(BUF7I - BUF0I) is changed to support the FIFO operation. BUF7I, BUF6I and BUF5I indicate operating conditions of the FIFO, while BUF4I to BUF0I are not used. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 587
These registers are used as acceptance masks for ID filtering in Rx MBs and the FIFO. If the FIFO is not enabled, one mask register is provided for each available message buffer, providing ID masking capability MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-27 Preliminary Downloaded from Elcodis.com...
Page 588
MBs to be transmitted based on the message ID (optionally augmented by 3 local priority bits) or the MB ordering. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 589
1. If LBUF is negated, the arbitration considers not only the ID, but also the RTR and IDE bits placed inside the ID at the same positions they are transmitted in the CAN frame. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-29 Preliminary Downloaded from Elcodis.com...
Page 590
A status flag is set in the interrupt flag register and an interrupt is generated if allowed by the corresponding interrupt mask register bit MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 591
8-entry ID table from FIFO is scanned first and then, if a match is not found within the FIFO table, the other MBs are scanned. In the event that the FIFO is full, the matching algorithm will always look for a matching MB outside the FIFO region. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-31 Preliminary Downloaded from Elcodis.com...
Page 592
FlexCAN also supports an alternate masking scheme with only three mask registers (RGXMASK, CANx_RX14MASK, and CANx_RX15MASK) for backwards compatibility. This alternate masking scheme is enabled when the BCC bit in the CANx_MCR Register is negated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 593
CANx_IFLAG is reset, the CPU must wait for it to be set, and then the CPU must read the CODE field to check if the MB was aborted (CODE=1001) or it was transmitted (CODE=1000). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-33 Preliminary Downloaded from Elcodis.com...
Page 594
1.In previous FlexCAN versions, reading the C/S word locked the MB even if it was EMPTY. This behavior will be honoured when the BCC bit is negated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 595
A powerful filtering scheme is provided to accept only frames intended for the target application, thus reducing the interrupt servicing work load. The filtering criteria is specified by programming a table of 8 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-35 Preliminary Downloaded from Elcodis.com...
Page 596
For format C, remote frames are always accepted (if they match the ID). MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 597
1. For further explanation of the underlying concepts please refer to ISO/DIS 11519–1, Section 10.3. Reference also the Bosch CAN 2.0A/B protocol specification dated September 1991 for bit timing. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-37 Preliminary Downloaded from Elcodis.com...
Page 599
Stops the prescaler, thus halting all CAN protocol activities • Grants write access to the CANx_ECR, which is read-only in other modes • Sets the NOTRDY and FRZACK bits in CANx_MCR MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-39 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 600
Sends a stop acknowledge signal to the CPU, so that it can shut down the clocks globally Exiting stop mode is done by the CPU resuming the clocks and removing the stop mode request. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 601
Unused MB space must not be used as general purpose RAM while FlexCAN is transmitting and receiving CAN frames. 25.5 Initialization and Application Information This section provides instructions for initializing the FlexCAN module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 25-41 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 602
(for bus off and error interrupts) and in CANx_MCR for wake-up interrupt • Negate the HALT bit in CANx_MCR Starting with this last event, FlexCAN attempts to synchronize with the CAN bus. MPC5510 Microcontroller Family Reference Manual, Rev. 1 25-42 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 603
Channels 0 through 15 use channel type 1, channels 16 through 22 use channel type 2, and channel 23 uses channel type 3 (see Section 26.1.4, “Channel Types”). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-1 Preliminary Downloaded from Elcodis.com...
Page 604
Figure 26-1. eMIOS200 Block Diagram 26.1.2 Features • 24 channels implemented using three channel types. • Channels features: — 16-bit registers for captured/match values MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 605
The 24 16-bit timer channels available on the MPC5510 are implemented using three different channel configurations. The available modes of operation for each channel type are listed in Table 26-1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-3 Preliminary Downloaded from Elcodis.com...
Page 606
When the eMIOS function is not the primary function of the pin, then only the output functions are supported. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 608
The EMIOS_MCR contains global control bits for the eMIOS200 block. Offset: EMIOS_BASE + 0x0000 Access: User read/write MDIS FRZ GTBE GPREN Reset GPRE[0:7] Reset Figure 26-2. eMIOS200 Module Configuration Register (EMIOS_MCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 609
Global Prescaler Bits. The GPRE bits select the clock divider value for the global prescaler. GPRE Divide Ratio 00000000 00000001 00000010 00000011 11111110 11111111 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 610
0 Transfer enabled. Depending on the operation mode, transfer may occur immediately or in the next period. Unless stated otherwise, transfer occurs immediately. 1 Transfers disabled MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 611
Table 26-8 summarizes the EMIOS_CADR[n] writing and reading accesses for all operation modes. For more information see Section 26.5.1.1, “Unified Channel Modes of Operation.” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 612
DAOC — — OPWFMB — OPWMCB — OPWMB — In these modes, the register EMIOS_CBDR[n] is not used, but B2 can be accessed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 613
The control register gathers bits reflecting the status of the unified channel input/output signals and the overflow condition of the internal counter, as well as several read/write control bits. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-11 Preliminary Downloaded from Elcodis.com...
Page 614
Direct Memory Access Bit. The DMA bit selects if the FLAG generation will be used as an interrupt or as a DMA request. 0 FLAG assigned to interrupt request 1 FLAG assigned to DMA request MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 615
0 Has no effect 1 Force a match at comparator B For input modes, the FORCMB bit is not used and writing to it has no effect. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-13 Preliminary Downloaded from Elcodis.com...
Page 616
Note: If a reserved value is written to MODE the results are unpredictable. Table 26-10. MODE Bits MODE Mode of Operation 000_0000 GPIO (input) 000_0001 GPIO (output) 000_0010 SAIC 000_0011 SAOC 000_0100 IPWM 000_0101 MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 617
OPWMCB (flag in both edges, lead edge dead-time) 110_0000 OPWMB (flag on B1 match) 110_0001 Reserved 110_0010 OPWMB (flag on A1or B1 matches) 110_0011– Reserved 111_1111 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 618
The eMIOS200 block is reset at positive edge of the clock (synchronous reset). All registers are cleared on reset. 26.5.1 Unified Channel (UC) Figure 26-11 shows the unified channel block diagram. Each unified channel consists of: MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 619
Control Signals ips_byte[23:16] ips_byte[31:24] channel_datapath ips_rwb uc_cnt_rd_data[n] ips_addr[29:27] Comparator A Counter Bus Comparator B emios_counter_bus[0] emios_counter_bus[1] uc_cnt_rd_data[n] Figure 26-11. Unified Channel Block Diagram MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 620
Failure to do this could lead to invalid and unexpected output compare or input capture results or the FLAGs being set incorrectly. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 621
EDPOL value being transferred to the output flip-flop and toggling the output flip-flop at each match, respectively. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-19 Preliminary Downloaded from Elcodis.com...
Page 622
In order to guarantee coherent access, reading EMIOS_CADR[n] forces B1 to be updated with the content of register A1. At the same time transfers between B2 and B1 are disabled until the next read of MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 623
EMIOS_CBDR[n] read occurs. If EMIOS_CADR[n] read is performed, B1 is updated with A1 register content even if the B1 update is locked by a previous EMIOS_CADR[n] read operation. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-21 Preliminary Downloaded from Elcodis.com...
Page 624
EMIOS_CBDR[n] register. Reading EMIOS_CBDR[n] register forces A1 content to be transferred to B1 and re-enables transfers from B2 to B1, to take effect at the next edge capture. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 625
B1 and the transfers from B2 to B1 are re-enabled to occur at the transfer edges, which is the leading edge in the Figure 26-19 example. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-23 Preliminary Downloaded from Elcodis.com...
Page 626
B had occurred, i.e., the output pin will be set to the complement of EDPOL bit and the FLAG bit is set. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 627
MCB mode. The internal counter must not reach 0x0 as consequence of a rollover.To avoid this the user must start MCB only if the value stored at internal counter is fewer than the value that EMIOS_CADR register stores. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-25 Preliminary Downloaded from Elcodis.com...
Page 628
Flags are generated at A1 match only if MODE[5] is 0. If MODE[5] is set to 1 flags are also generated at the cycle boundary. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 629
(n) in order to be used in cycle (n+1). Thus A1 receives this new value at the next cycle boundary. The update disable bits OUDIS[n] can be used to disable the update of A1 register. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-27 Preliminary Downloaded from Elcodis.com...
Page 630
In the example shown in Figure 26-26 the internal counter prescaler is set to two. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 631
(n). This allows to use the A1 posedge match to mask the B1 negedge match when they occur at the same time. The result is that no transition occurs on the output flip-flop and a 0% duty cycle is generated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-29 Preliminary Downloaded from Elcodis.com...
Page 632
A2 or B2 data written on cycle (n) were loaded to A1 or B1, respectively, thus generating matches in cycle (n+1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 633
EDPOL bit value. This functionality targets applications that use active high signals and a high to low transition at A1 match. In this case EDPOL should be set to 0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-31 Preliminary Downloaded from Elcodis.com...
Page 634
100% duty cycle signal. The same output signal can be generated for any A1 value greater or equal to B1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 635
This counter value defines the cycle boundary. Values written to A2 or B2 within cycle (n) are loaded into A1 or B1 registers, respectively, and used to generate matches in cycle (n+1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-33 Preliminary Downloaded from Elcodis.com...
Page 636
PWM signal. Both A1 and B1 register values are changing within the same cycle, which allows to vary at the same time the duty cycle and dead-time values. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 637
B1 matches are enabled. When the match between register B1 and the selected time base occurs, the output flip-flop is set to the complement of the EDPOL bit. This sequence repeats continuously. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-35 Preliminary Downloaded from Elcodis.com...
Page 638
EDPOL bit value. NOTE FORCMA bit set does not set the internal time-base to 0x000001 as a regular A1 match. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 639
MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-37 Preliminary Downloaded from Elcodis.com...
Page 640
The load operation is similar to the OPWFMB mode. Refer to Figure 26-28 for more information about A1 and B1 registers’ update. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 641
B1 Match Negedge B1 Match Negedge Detection Detection Output Pin FLAG Bit Set EDPOL = 0 Figure 26-35. OPWMB Mode Matches and Flags MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-39 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 642
There is one system clock delay between the assertion of the output disable signal and the transition of the output pin to EDPOL. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 643
EDPOL bit at B1 match. If B1 is set to 0x000009, for instance, B1 match does not occur, thus a 0% duty cycle signal is generated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-41 Preliminary Downloaded from Elcodis.com...
Page 644
Counting is enabled by setting the UCPREN bit in the EMIOS_CCR[n]. The counter can be stopped at any time by clearing this bit, thereby stopping the internal counter in the unified channel. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-42 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 645
The MDIS bit in the EMIOS_MCR register and the UCDIS bits in the EMIOSUCDIS registers are cleared during reset. On resetting the eMIOS200 all unified channels enter GPIO input mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-43 Preliminary Downloaded from Elcodis.com...
Page 646
SAIC mode. When an output disable condition happens, the software interrupt routine must service the output channels before servicing the channels running SAIC. This procedure avoids glitches in the output pins. MPC5510 Microcontroller Family Reference Manual, Rev. 1 26-44 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 647
Reading the EMIOS_CADR[n] register again in the same period of the last read of EMIOS_CBDR[n] register may lead to incoherent results. This will occur if the last read of EMIOS_CBDR[n] register occurred after a disabled B2 to B1 transfer. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 26-45 Preliminary Downloaded from Elcodis.com...
Page 649
400 pF. 27.1.1 Block Diagram A simplified block diagram of the I C illustrates the functionality and interdependence of major blocks (see Figure 27-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 650
C module is configured for master mode and the DMA channel mux has selected the I C DMA request signals to be inputs to a DMA channel. MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 651
• Arbitration lost interrupt with automatic mode switching from master to slave • Calling address identification interrupt • Start and stop signal generation/detection MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-3 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 652
IBDR — I C bus data I/O register 0x0000 27.3.2.5/27-10 0x0005 IBIC — I C bus interrupt config register 0x0000 27.3.2.6/27-11 0x0006–0x3FFF Reserved 0x0000 MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 653
C Bus Frequency Divider Register (IBFD) Offset: 0x0001 Access: Read/write any time MULT Reset Figure 27-4. I C Bus Frequency Divider Register (IBFD) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 654
SCL Stop hold time = bus period (s) * mul * SCL Stop hold value Eqn. 27-4 SCL Hold(stop) SCL Hold(start) START condition STOP condition Figure 27-5. SCL Divider and SDA Hold MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 656
This bit is always read as a low. Attempting a repeated start at the wrong time, if the bus is owned by another master, results in loss of arbitration. 0 No effect. 1 Generate repeat start cycle. MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 657
• A stop condition is detected when the master did not request it. This bit must be cleared by software, by writing a one to it. A write of zero has no effect. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-9 Preliminary Downloaded from Elcodis.com...
Page 658
In master-transmit mode, the first byte of data written to IBDR following assertion of MS is used for the address transfer and should comprise the calling address (in position D0–D6) concatenated with the required R/W bit (in position D7). MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 659
Normally, a standard communication is composed of four parts: START signal, slave address transmission, data transfer, and STOP signal. They are described briefly in the following sections and illustrated in Figure 27-10. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-11 Preliminary Downloaded from Elcodis.com...
Page 660
(each data transfer may contain several bytes of data) and brings all slaves out of their idle states. START condition STOP condition Figure 27-11. Start and Stop conditions MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 661
Figure 27-10). The master can generate a STOP even if the slave has generated an acknowledge, at which point the slave must release the bus. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 662
The first device to complete its high period pulls the SCL line low again. Start Counting High Period WAIT SCL1 SCL2 Internal Counter Reset Figure 27-12. I C Bus Clock Synchronization MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 663
C control register. It must be cleared by writing 1 to the IBIF bit in the interrupt service routine. The bus going idle interrupt needs to be additionally enabled by the BIIE bit in the IBIC register. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-15 Preliminary Downloaded from Elcodis.com...
Page 664
Transmission or reception of a byte will set the data transferring bit (TCF) to 1, which indicates one byte communication is finished. The I C Bus interrupt bit (IBIF) is set also; an interrupt will be generated if the MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 665
Before reading the last byte of data, a STOP signal must first be generated. The following example shows how a STOP signal is generated by a master receiver. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-17 Preliminary Downloaded from Elcodis.com...
Page 666
When considering these cases, the slave service routine should test the IBAL first and the software should clear the IBAL bit if it is set. MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 667
Dummy Read From IBDR From IBDR Stop Signal From IBDR From IBDR And Store Figure 27-13. Flowchart of Typical I C Interrupt Routine MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-19 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 668
The first byte (the slave calling address) is always transmitted by the CPU. All subsequent data bytes (apart from the last data byte) can be transferred by the DMA controller. The last data byte must be transferred by the CPU. MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 669
The first byte (the slave calling address) is always transmitted by the CPU. All subsequent data bytes (apart from the two last data bytes) can be read by the DMA controller. The last two data bytes must be transferred by the CPU. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-21 Preliminary Downloaded from Elcodis.com...
Page 670
IBCR register. The trigger to exit the DMA mode is that the programmed DMA transfer control descriptor (TCD) has completed all its transfers to/from the I C module. MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 671
I C IBCR register to disable the DMAEN bit. This TCD also has scatter-gather activated and is programmed to reload the initial TCD upon completion, MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 27-23 Preliminary Downloaded from Elcodis.com...
Page 672
19.5 μs for additional system delays. The slow reaction case can be prevented in this way. The system user must decide which usage model suits his overall requirements best. MPC5510 Microcontroller Family Reference Manual, Rev. 1 27-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 673
28.1.1 Block Diagram A simplified block diagram of the PIT_RTI illustrates the functionality and interdependence of major blocks (see Figure 28-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 28-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 674
Power saving with a separate input clock for the RTI timer (all other timers share one common core clock) • Independent timeout periods for each timer MPC5510 Microcontroller Family Reference Manual, Rev. 1 28-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 675
28-2. The address of each register is given as an offset to the PIT_RTI base address. Registers are listed in address order, identified by complete name and mnemonic, and lists the type of accesses allowed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 28-3 Preliminary Downloaded from Elcodis.com...
Page 676
This section lists the PIT_RTI registers in address order and describes the registers and their bit fields. NOTE The RTI registers should be set when the RTI clock is running only. MPC5510 Microcontroller Family Reference Manual, Rev. 1 28-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 677
Offset: 0x0080–0x00A0 Access: User read Reset Reset Figure 28-3. PIT Current Timer Values (TVAL0–8) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 28-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 678
0 RTI time-out has not yet occurred 1 RTI time-out has occurred 28.3.2.4 PIT Interrupt Enable Register (PITINTEN) This register enables PIT interrupts. MPC5510 Microcontroller Family Reference Manual, Rev. 1 28-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 679
This register decides whether a channel generates an interrupt or is used for DMA triggering. Offset: 0x0108 Access: User read/write Reset ISEL8 ISEL7 ISEL6 ISEL5 ISEL4 ISEL3 ISEL2 ISEL1 Reset Figure 28-6. PIT Interrupt/DMA Select Registers (PITINTSEL) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 28-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 680
This register controls whether the clock for the timers 1–8 is enabled. The RTI timer (timer 0) runs on a separate clock (XOSC) that is controlled by the CRP and PLL. MPC5510 Microcontroller Family Reference Manual, Rev. 1 28-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 681
If desired, the current counter value of the timer can be read via the TVAL registers. The value of the RTI counter can be delayed considerably, as it is synchronized to the bus clock from the RTI clock domain. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 28-9 Preliminary Downloaded from Elcodis.com...
Page 682
Interrupts The interrupts generated by the PIT are listed in Table 28-10. Refer to the MCU specification for related vector addresses and priorities. MPC5510 Microcontroller Family Reference Manual, Rev. 1 28-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 683
30 ms/20 ns = 1500000 cycles. The value for the TVAL register trigger would be calculated as (period / clock period) –1. This means that TVAL0 will be written with 004C4B3F hex, TVAL1 with 0x0003_E7FF, and TVAL8 with 0x0016_E35F. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 28-11 Preliminary Downloaded from Elcodis.com...
Page 684
PIT_REG_P->pit_TLVAL8 = 0x0016E35F; // setup timer 8 for 1500000 cycles // timer 8 can’t generate interrupts -> no settings needed for trigger PIT_REG_P->pit_EN |= 1<<8; // start timer 8 MPC5510 Microcontroller Family Reference Manual, Rev. 1 28-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 685
It supports up to four regions (via chip selects), each with its own programmed attributes. 29.1.1 Block Diagram A simplified block diagram of the EBI illustrates the functionality and interdependence of major blocks (see Figure 29-1). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 686
• Memory controller with support for various memory types: — Synchronous burst SDR flash and SRAM — Asynchronous/legacy flash and SRAM MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 687
EBI while it is in module disable mode, even if the clocks have not yet been shut off. In this case, the behavior is undefined. Module disable mode is entered when MDIS = 1 in the EBI_MCR. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-3 Preliminary Downloaded from Elcodis.com...
Page 688
AD pins and the falling edge of ALE may be used to capture the valid address. The memory controller supports per-chip-select selection of multiplexing address/data through the BRx[AD_MUX] bit. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 689
CS [0:3] — Chip Selects 0-3 CSx is asserted by the master to indicate that this transaction is targeted for a particular memory bank on the Primary external bus. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-5 Preliminary Downloaded from Elcodis.com...
Page 690
TS is only asserted for the first clock cycle of the transaction, and is negated in the successive clock cycles until the end of the transaction. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 691
Transfer error acknowledge (I/O) non-EBI function Transfer start (Output) non-EBI function Address latch enable (Output) WE[0:3] non-EBI function Write/Byte enables (Output) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 692
29-3. The address of each register is given as an offset to the EBI base address. Registers are listed in address order, identified by complete name and mnemonic, and lists the type of accesses allowed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 693
The EBI registers are accessed with a clock signal separate from the clock used by the rest of the EBI. In module disable mode, the clock used by the non-register portion of the EBI is disabled to reduce power MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-9 Preliminary Downloaded from Elcodis.com...
Page 694
No external bus accesses can be performed when the EBI is in module disable mode (MDIS = 1). 0 Module disable mode is inactive. 1 Module disable mode is active. bits 26–28 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 695
Access: User read/write to clear Reset TEAF BMTF Reset Figure 29-3. EBI Transfer Error Status Register (EBI_TESR) Table 29-5. EBI_TESR Field Descriptions Field Description bits 0–29 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 696
(treated as 0) for chip-select accesses with internal TA (SETA=0). 0 Disable bus monitor. 1 Enable bus monitor (for external TA accesses only). bits 25–31 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 697
On MPC5510, the default value of AD_MUX is 1. 0 Address on data multiplexing mode is disabled for this chip select. 1 Address on data multiplexing mode is enabled for this chip select. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-13 Preliminary Downloaded from Elcodis.com...
Page 698
Valid Bit. Indicates that the contents of this base register and option register pair are valid. The appropriate CS signal does not assert unless the corresponding V-bit is set. 0 This bank is not valid. 1 This bank is valid. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 699
The total cycle length for the first beat (including the TS cycle): (2 + SCY) external clock cycles Section 29.5.3.1, “Example Wait State Calculation”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 700
BR and OR are used to control the memory access. If a match is found in more than one bank, the lowest bank matched handles the memory access. For example, bank 0 is selected over bank 1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 701
Don’t care since external TA is used BSCY Don’t care since external TA is used AD_MUX Address on data multiplexing SETA Select external TA to terminate access MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 702
Each chip select can be configured (via the SETA bit) to have TA driven internally (by the EBI), or externally (by an external device). See Section 29.3.2.6, “EBI Base Registers 0–3 (EBI_BRn),” for more details on SETA bit usage. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 706
CLKOUT signal, and they are guaranteed to be sampled as inputs or changed as outputs with respect to that edge. 29.4.2.2 Reset Upon detection of internal reset, the EBI immediately terminates all transactions. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 707
The flow and timing diagrams in this section assume that the EBI is configured in single master mode. 29.4.2.4.1 Single Beat Read Flow The handshakes for a single beat read cycle are illustrated in the following flow and timing diagrams. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-23 Preliminary Downloaded from Elcodis.com...
Page 708
Figure 29-9. Basic Flow Diagram of a Single Beat Read Cycle CLKOUT ADDR[8:31] RD_WR BDIP DATA[0:31] DATA is valid Figure 29-10. Single Beat 32-Bit Read Cycle, CS Access, Zero Wait States MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 709
The EBI drives address and control signals an extra cycle because it uses a latched version of the external TA (1 cycle delayed) to terminate the cycle. Figure 29-12. Single Beat 32-Bit Read Cycle, Non-CS Access, Zero Wait States MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-25 Preliminary Downloaded from Elcodis.com...
Page 710
(TA) Asserts transfer acknowledge (TA) Waits 1 clock stops driving data Figure 29-13. Basic Flow Diagram of a Single Beat Write Cycle MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 711
CLKOUT ADDR[8:31] RD_WR BDIP DATA is valid DATA[0:31] Wait state WE[0:3] Figure 29-15. Single Beat 32-Bit Write Cycle, CS Access, One Wait State MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-27 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 712
See Figure 29-20 Figure 29-21. The following diagrams show a few examples of back-to-back accesses on the external bus. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 713
Figure 29-17. Back-to-Back 32-Bit Reads to the Same CS Bank CLKOUT ADDR[8:31] RD_WR BDIP DATA[0:31] DATA is valid DATA is valid Figure 29-18. Back-to-Back 32-Bit Reads to Different CS Banks MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-29 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 714
CLKOUT ADDR[8:31] RD_WR TSIZ[0:1] ’00’ BDIP DATA is valid DATA[0:31] DATA is valid Figure 29-19. Write After Read to the Same CS Bank MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 715
External Bus Interface (EBI) CLKOUT ADDR[8:31] RD_WR BDIP DATA is valid DATA is valid DATA[0:31] Figure 29-20. Back-to-Back 32-Bit Writes to the Same CS Bank MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-31 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 716
16-byte read accesses to external devices that use the chip selects . Accesses from an external master or to devices operating without a chip select are always single beat. If an internal request MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 717
1. Except for the special case of a 32-bit non-chip select access in 16-bit data bus mode. See Section 29.4.2.10, “Non-Chip-Select Burst in 16-bit Data Bus Mode.” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-33 Preliminary Downloaded from Elcodis.com...
Page 718
Negate BDIP Drives last data Asserts transfer acknowledge (TA) receives last data Figure 29-22. Basic Flow Diagram of a Burst Read Cycle MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 719
(BSCY). Figure 29-25 shows an example of the TBDIP = 0 timing for a 4-beat burst with BSCY = 1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-35 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 720
In this context, a small access refers to an access whose burst length and port size are such that the number of bytes requested by the internal master cannot all be fetched (or written) in one external transaction. This MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 721
The following sections show a few examples of small accesses. The timing for the remaining cases in Table 29-14 can be extrapolated from these and the other timing diagrams in this document. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-37 Preliminary Downloaded from Elcodis.com...
Page 722
TA and the next TS in order to get the next 64-bits of write data internally and RD_WR negates during this extra cycle. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 723
See Section 29.4.1.13, “Misaligned Access Support,” for these cases. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-39 Preliminary Downloaded from Elcodis.com...
Page 724
The convention can be seen in Figure 29-29. 32-Bit 16-Bit Byte Figure 29-29. Internal Operand Representation Figure 29-30 shows the device connections on the AD[0:31] bus. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 725
MCU. A dash indicates bytes that are not driven during that write cycle. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-41 Preliminary Downloaded from Elcodis.com...
Page 726
EBI initiates the bus cycle, the internal bus monitor (if enabled) asserts TEA to terminate the cycle. An external device may also drive TEA when it detects an error on an external transaction. TEA assertion MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-42 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 727
EBI recognizes the termination signals provided from an external device. Table 29-18. Termination Signals Protocol Action Negated Negated No termination Asserted Transfer error termination Negated Asserted Normal transfer termination MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-43 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 728
Figure 29-32 shows a 32-bit non-chip-select read in 16-bit data bus mode. Figure 29-33 shows a 32-bit non-chip-select write in 16-bit data bus mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-44 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 729
Compared to the normal EBI specification (e.g. 24 address pins+32 data pins), only 32 data pins are required. Compared to a 16-bit bus implementation, only 24 pins are required (e.g. ADDR[8:15] + ADDR[16:31]/DATA[16:31]). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-45 Preliminary Downloaded from Elcodis.com...
Page 730
In general, timing diagrams in A/D multiplexing mode are similar to other diagrams in this document, excepting behavior of the ADDR and DATA busses, which can be seen in Figure 29-34. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-46 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 731
DATA[16:31] (or DATA[0:15]) are used for address and data on an external muxed device. ** Or DATA[0:15], based on D16_31 bit in EBI_MCR. Figure 29-34. Small Access (32-Bit Read to 16-Bit Port) on Address/Data Multiplexed Bus MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-47 Preliminary Downloaded from Elcodis.com...
Page 732
The data timing is controlled by setting the SCY bits in the appropriate option register to the proper number of wait states to work with the access time of the asynchronous memory, exactly as done for a synchronous memory. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-48 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 733
16-bit asynchronous memory using three wait states. Figure 29-38 shows a timing diagram of a write operation to a 16-bit asynchronous memory using three wait states. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-49 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 734
The MCU can be connected to more than one memory at a time. Figure 29-39 shows an example of two memories connected to one MCU. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-50 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 735
If an MCU has no TA pin available, this restricts the MCU to chip-select accesses only. Non-chip-select accesses have no way for the EBI to know which cycle to latch the data. The EBI has no built-in protection MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 29-51 Preliminary Downloaded from Elcodis.com...
Page 736
Therefore, the EBI bus monitor must be disabled when no TEA pin exists. MPC5510 Microcontroller Family Reference Manual, Rev. 1 29-52 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 737
For example, Message Buffer Number 5 corresponds to the MBCCS5 register. Microcontroller Unit μT Microtick Macrotick Media Access Test Symbol Network Idle Time MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 738
Protocol engine (PE) • Clock domain crossing unit (CDC) A block diagram of the FlexRay block with its surrounding modules is given in Figure 30-1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 739
All FRM related offsets are stored in offset registers. The physical address pointer into the FRM window of the MCU system memory is calculated using the offset values the FlexRay memory base address. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-3 Preliminary Downloaded from Elcodis.com...
Page 740
1. Due to the tight timing requirements and overall system requirements of FlexRAY systems, usage of the PLL as the clock source has not been fully evaluated. It is recommended to use a 40 MHz crystal for the clock source. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 741
MEN in the Module Configuration Register (MCR) NOTE When the FlexRay block was enabled, it cannot be disabled the later on. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-5 Preliminary Downloaded from Elcodis.com...
Page 742
30.2.1.1 FR_A_RX — Receive Data Channel A The FR_A_RX signal carries the receive data for channel A from the corresponding FlexRay bus driver. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 743
1. Due to the tight timing requirements and overall system requirements of FlexRAY systems, usage of the PLL as the clock source has not been fully evaluated. It is recommended to use a 40 MHz crystal for the clock source. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-7 Preliminary Downloaded from Elcodis.com...
Page 744
1. Due to the tight timing requirements and overall system requirements of FlexRAY systems, usage of the PLL as the clock source has not been fully evaluated. It is recommended to use a 40 MHz crystal for the clock source. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 745
Timer Configuration 0x005A Timer Configuration and Control Register (TICCR) 0x005C Timer 1 Cycle Set Register (TI1CYSR) 0x005E Timer 1 Macrotick Offset Register (TI1MTOR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 746
Receive FIFO Range Filter Configuration Register (RFRFCFR) 0x009A Receive FIFO Range Filter Control Register (RFRFCTR) Dynamic Segment Status 0x009C Last Dynamic Transmit Slot Channel A Register (LDTXSLAR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 747
Write one to clear. A flag bit that can be read, is cleared by writing a one, writing 0 has no effect. Reset Value Resets to zero. Resets to one. – Not defined after reset and not affected by reset. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 748
30.5.2.2.3 Internal Register Access The following memory-mapped registers are used to access multiple internal registers. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 749
SFFE: Disabled Mode or POC:config CLKS CHA SFFE BITRATE Reset Figure 30-3. Module Configuration Register (MCR) This register defines the global configuration of the FlexRay block. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 750
FR_A_RX, FR_A_TX, and FR_A_TX_EN driven by FlexRay block ports FR_B_RX, FR_B_TX, and FR_A_TX_EN driven by FlexRay block PE channel 0 active PE channel 1 active MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 751
Figure 30-4. System Memory Base Address High Register (SYMBADHR) Base + 0x0006 Write: Disabled Mode SYS_MEM_BASE_ADDR[15:4] Reset Figure 30-5. System Memory Base Address Low Register (SYMBADLR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 752
Strobe Signal Select. This control field selects one of the strobe signals given in Table 30-13 to be enabled or disabled and assigned to one of the four strobe ports given in Table 30-13. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 755
This register is used to define the last individual message buffer that belongs to the first message buffer segment and the number of the last used individual message buffer. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-19 Preliminary Downloaded from Elcodis.com...
Page 756
(PCR29). 00 do not apply external offset correction value 01 reserved 10 subtract external offset correction value 11 add external offset correction value MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 757
RESET command sequence described in Section 30.7.5, “Protocol Reset Command” immediately, to reach the DEFAULT CONFIG state correctly. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-21 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 758
Receive FIFO B Not empty interrupt if the FNEBIE flag is asserted. 0 Receive FIFO B is empty or interrupt is disabled 1 Receive FIFO B is not empty and interrupt enabled MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 759
Receive FIFO Channel A Not Empty Interrupt Enable. This flag controls if the receive FIFO A interrupt line is asserted when the FNEAIF flag is set. 0 Disable interrupt line 1 Enable interrupt line MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-23 Preliminary Downloaded from Elcodis.com...
Page 760
(POCR). If the value of listen_timeout is equal to zero, the protocol configuration setting is considered as illegal. 0 No such event. 1 Illegal protocol configuration detected. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 761
B crosses the slot boundary. This is related to the transmission across slot boundary violation as described in the FSP process of the FlexRay protocol. 0 No such event. 1 Transmission across boundary violation occurred on channel B. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-25 Preliminary Downloaded from Elcodis.com...
Page 762
Protocol State Changed Interrupt Flag. This flag is set when the protocol state in the PROTSTATE field in the Protocol Status Register 0 (PSR0) has changed. 0 No such event. 1 Protocol state changed. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 764
This register defines whether or not the individual interrupt flags defined in Protocol Interrupt Flag Register 1 (PIFR1) can generate a protocol interrupt request. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 765
This register holds the CHI related error flags. The interrupt generation for each of these error flags is controlled by the CHI interrupt enable bit CHIE in the Global Interrupt Flag and Enable Register (GIFER). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-29 Preliminary Downloaded from Elcodis.com...
Page 766
In this case, the FlexRay block does not grant the lock to the transmit side of a double transmit message buffer. 0 No such event 1 Double transmit buffer lock error occurred MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 768
30.5.2.18 Channel B Status Error Counter Register (CBSERCR) Base + 0x0026 Additional Reset: RUN Command STATUS_ERR_CNT Reset Figure 30-18. Channel B Status Error Counter Register (CBSERCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 769
PROTSTATE Protocol State. Protocol related variable: vPOC!State. This field indicates the state of the protocol. POC:default config POC:config POC:wakeup POC:ready POC:normal passive POC:normal active POC:halt POC:startup MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-33 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 770
Additional Reset: CSAA, CSP, CPN: RUN Command Write: Normal Mode R CSAA CSP REMCSAT APTAC W w1c Reset Figure 30-20. Protocol Status Register 1 (PSR1) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 771
Window and the clock synchronization. The NIT related status bits NBVB, NSEB, NBVA, and NSEA are updated by the FlexRay block after the end of the NIT and before the end of the first slot of the next MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-35 Preliminary Downloaded from Elcodis.com...
Page 772
This status bit is set if there was a transmission conflicts during the symbol window on channel A. 0 No such event 1 Transmission conflict detected MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 773
Aggregated Boundary Violation on Channel B. This flag is set when a boundary violation has been detected on channel B. Boundary violations are detected in the communication slots, the symbol window, and the NIT. 0 No boundary violation detected 1 Boundary violation detected MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-37 Preliminary Downloaded from Elcodis.com...
Page 774
A. 0 No syntactically valid frames received 1 At least one syntactically valid frame received MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 775
Reset Figure 30-25. Slot Counter Channel A Register (SLTCTAR) This register provides the number of the current slot in the current communication cycle for channel A. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-39 Preliminary Downloaded from Elcodis.com...
Page 776
Note: If the FlexRay block was not able to calculate a new rate correction term due to a lack of synchronization frames, the RATECORR value is not updated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 777
The meanings of the combined status bits MIF, PRIF, CHIF, RBIF, and TBIF are different from those mentioned in the Global Interrupt Flag and Enable Register (GIFER). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-41 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 778
If the number of wait states is greater than twice the TIMEOUT value, data will be lost, and the System Bus Communication Failure Error Flag SBCF_EF is set in the CHI Error Flag Register (CHIERFR). MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-42 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 780
0 Tables are not valid (update is ongoing) 1 Tables are valid (consistent). MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-44 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 781
Sync Frame Rejection ID. This field defines the frame ID of a frame that must not be used for clock synchronization. For details see Section 30.6.15.2, “Sync Frame Rejection Filtering”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-45 Preliminary Downloaded from Elcodis.com...
Page 782
Base + 0x0050 (NMVR2) Base + 0x0052 (NMVR3) Base + 0x0054 (NMVR4) Base + 0x0056 (NMVR5) NMVP[15:8] NMVP[7:0] Reset Figure 30-37. Network Management Vector Registers (NMVR0–NMVR5) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-46 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 783
Network Management Vector Length. protocol related variable: gNetworkManagementVectorLength This field defines the length of the Network Management Vector in bytes. Legal values are between 0 and 12. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-47 Preliminary Downloaded from Elcodis.com...
Page 784
1 timer T1 is running NOTE Both timers are deactivated immediately when the protocol enters a state different from POC:normal active POC:normal passive. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-48 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 785
If the application modifies the value in this register while the timer is running, the change becomes effective immediately and timer T1 will expire according to the changed value. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-49 Preliminary Downloaded from Elcodis.com...
Page 787
Write Mode. This control bit defines the write mode of this register. 0 Write to all fields in this register on write access. 1 Write to SEL field only on write access. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-51 Preliminary Downloaded from Elcodis.com...
Page 788
(SSCR0–SSCR3). The correspondence is given in Table 30-55. For a detailed description of slot status counters, refer to Section 30.6.18.4, “Slot Status Counter Registers”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-52 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 789
STATUSMASK[0] – This bit enables the counting for slots with the transmission conflict indicator bit set to 1. Table 30-55. Mapping between internal SSCCRn and SSCRn Condition Register Condition Defined for Register SSCCR0 SSCR0 SSCCR1 SSCR1 SSCCR2 SSCR2 SSCCR3 SSCR3 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-53 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 790
Boundary Violation on Channel B. Protocol related variable: vSS!BViolation channel B vSS!BViolation vSS!BViolation Transmission Conflict on Channel B. Protocol related variable: vSS!TxConflict channel B vSS!TxConflict vSS!TxConflict MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-54 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 791
SSCCRn, which can be programmed by using the Slot Status Counter Condition Register (SSCCR). For more details, see Section 30.6.18.4, “Slot Status Counter Registers”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-55 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 792
30.5.2.49 MTS B Configuration Register (MTSBCFR) Base + 0x0082 Write: MTE: Anytime CYCCNTMSK,CYCCNTVAL:POC:config CYCCNTMSK CYCCNTVAL Reset Figure 30-49. MTS B Configuration Register (MTSBCFR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-56 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 793
FlexRay block: Updates the message buffer header index after successful reception. Application: Provides initial message buffer header index. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-57 Preliminary Downloaded from Elcodis.com...
Page 794
Figure 30-52. Receive FIFO Start Index Register (RFSIR) This register defines the message buffer header index of the first message buffer of the selected FIFO. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-58 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 795
Global Interrupt Flag and Enable Register (GIFER). The index wraps back to the first message buffer header index if the end of the FIFO was reached. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-59 Preliminary Downloaded from Elcodis.com...
Page 796
This register defines the filter value for the message ID acceptance filter of the selected receive FIFO. For details on message ID filtering see Section 30.6.9.5, “Receive FIFO filtering.” MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-60 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 797
Section 30.6.9.5, “Receive FIFO filtering.” Table 30-69. RFFIDRFVR Field Descriptions Field Description FIDRFVAL Frame ID Rejection Filter Value. Filter value for the frame ID rejection filter. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-61 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 798
10 select frame ID range filter 2. 11 select frame ID range filter 3. Slot ID. Defines the IBD-selected frame ID boundary value for the SEL-selected range filter. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-62 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 799
30.5.2.62 Last Dynamic Transmit Slot Channel A Register (LDTXSLAR) Base + 0x009C LASTDYNTXSLOTA Reset Figure 30-62. Last Dynamic Slot Channel A Register (LDTXSLAR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-63 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 800
Table 30-75. Protocol Configuration Register Fields (Sheet 1 of 3) Name Description Unit coldstart_attempts gColdstartAttempts number action_point_offset gdActionPointOffset cas_rx_low_max gdCASRxLowMax gdBit dynamic_slot_idle_phase gdDynamicSlotIdlePhase minislot minislot_action_point_offset gdMinislotActionPointOffset minislot_after_action_point gdMinislot gdMinislotActionPointOffset static_slot_length gdStaticSlot MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-64 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 809
Message Buffer Type. This bit applies only to transmit message buffers and defines the buffering type. 0 Single buffered transmit message buffer 1 Double buffered transmit message buffer MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-73 Preliminary Downloaded from Elcodis.com...
Page 810
0 Frame Header and Message buffer data field not updated. 1 Frame Header and Message buffer data field updated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-74 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 811
This register contains message buffer configuration data for the transmission mode, the channel assignment, and for the cycle counter filtering. For detailed information on cycle counter filtering, refer to Section 30.6.7.1, “Message Buffer Cycle Counter Filtering.” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-75 Preliminary Downloaded from Elcodis.com...
Page 812
Base + 0x0104 (MBFIDR0) Write: POC:config or MB_DIS Base + 0x010C (MBFIDR1) Base + 0x02FC (MBFIDR63) Reset Figure 30-97. Message Buffer Frame ID Registers (MBFIDRn) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-76 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 813
The application writes the index of the initially associated message buffer header field into this register. The FlexRay block updates this register after frame reception or transmission. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-77 Preliminary Downloaded from Elcodis.com...
Page 814
The frame header occupies the first six bytes in the message buffer header field. It contains all FlexRay frame header related information according to the FlexRay Communications System Protocol MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-78 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 815
The FlexRay block supports three types of individual message buffers, which are described in Section 30.6.6, “Individual Message Buffer Functional Description”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-79 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 817
A receive FIFO consists of a set of physical message buffers in the FRM and a set of receive FIFO control registers located in dedicated registers. The structure of a receive FIFO is given in Figure 30-102. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-81 Preliminary Downloaded from Elcodis.com...
Page 818
Data Field Offset[1] Slot Status[1] Message Buffer Header Fields RFDSR[A] RFSIR[A] RFARIR RFDSR[B] RFSIR[B] RFBRIR Receive FIFO Control Register Figure 30-102. Receive FIFO Structure MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-82 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 819
During normal operation, each individual message buffer can be controlled by the control and trigger bits CMT, LCKT, EDT, and MBIE in the Message Buffer Configuration, Control, Status Registers (MBCCSRn). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-83 Preliminary Downloaded from Elcodis.com...
Page 820
The FRM contains three areas: the message buffer header area, the message buffer data area, and the sync frame table area. The areas are described in this section. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-84 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 821
The message buffer data area contains all the message buffer data fields of the physical message buffers. Each message buffer data field must start at a 16-bit boundary. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-85 Preliminary Downloaded from Elcodis.com...
Page 822
The structure of the frame header in the message buffer header field is given in Figure 30-104. A detailed description of the frame header fields is given in Table 30-83. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-86 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 823
The PE generates a syntactically and semantically correct frame with payload_length_static payload words and the payload length field in the frame header set to payload_length_static. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-87 Preliminary Downloaded from Elcodis.com...
Page 824
(CHIERFR). The value of the FID field will be ignored and replaced by the value provided in the Message Buffer Frame ID Registers (MBFIDRn). MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-88 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 825
FIFOs. The content of the slot status structure for receive message buffers depends on the message buffer type and on the channel assignment for individual receive message buffers as given by Table 30-84. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-89 Preliminary Downloaded from Elcodis.com...
Page 826
Null Frame Indicator Channel B. Protocol related variable: vRF!Header!NFIndicator channel B vRF!Header!NFIndicator vRF!Header!NFIndicator Startup Frame Indicator Channel B. Protocol related variable: vRF!Header!SuFIndicator channel B vRF!Header!SuFIndicator vRF!Header!SuFIndicator MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-90 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 827
The content of the slot status structure for transmit message buffers depends on the channel assignment as given by Table 30-86. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-91 Preliminary Downloaded from Elcodis.com...
Page 828
Syntax Error on Channel B — protocol related variable: vSS!SyntaxError channel B vSS!SyntaxError vSS!SyntaxError Content Error on Channel B — protocol related variable: vSS!ContentError channel B vSS!ContentError vSS!ContentError MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-92 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 829
Individual Message Buffer in Segment 2 MBDSR.MBSEG2DS Receive Shadow Buffer in Segment 2 MBDSR.MBSEG2DS Receive FIFO for channel A RFDSR.ENTRY_SIZE (RFSR.SEL = 0) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-93 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 830
For receive message buffers, receive shadow buffers, and receive FIFOs, the application must not write to the message buffer data field. For transmit message buffers, the application must follow the write access restrictions given in Table 30-89. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-94 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 831
The application configures the number of utilized individual message buffers by writing the message buffer number of the last utilized message buffer into the LAST_MB_UTIL field in the Message Buffer Segment Size and Utilization Register (MBSSUTR). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-95 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 832
A single transmit message buffer is used by the application to provide message data to the FlexRay block that will be transmitted over the FlexRay Bus. The FlexRay block uses the transmit message buffers to MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-96 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 833
The trigger bits MBCCSRn.EDT and MBCCSRn.LCKT, and the interrupt enable bit MBCCSRn.MBIE are not under access control and can be accessed from the application at any time. The status bits MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-97 Preliminary Downloaded from Elcodis.com...
Page 834
Disabled and Locked - Message Buffer under configuration. Excluded from message buffer search. HLck Locked - Applications access to data, control, and status. Included in message buffer search. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-98 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 836
Slot Assigned > Message Buffer Disable MA > HD Message Available > Message Buffer Disable CCMa TX > HL Transmission Start > Message Buffer Lock MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-100 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 837
30-114. In this example, the message buffer with message buffer number n is Idle at the start of the search slot, matches the slot and cycle number of the next slot, and message buffer data are valid, i.e. MBCCSRn.CMT = 1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-101 Preliminary Downloaded from Elcodis.com...
Page 838
Section 30.6.7, “Individual Message Buffer Search”, the FlexRay block triggers the slot assigned transition SA for up to two transmit message buffers if at least MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-102 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 839
A transmit message buffer timing and state change diagram for null frame transmission for this case is given in Figure 30-119. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-103 Preliminary Downloaded from Elcodis.com...
Page 840
In any of these two cases, the status of the message buffer is not changed at all with the SU transition. The slot status field is not updated, the status and control flags are not changed, and the interrupt flag is not set. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-104 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 841
Message Buffer Header Field: Slot Status Message Buffer Data Field: DATA[0-N] MBIDXRn.MBIDX MBCCSRn.DVAL/DUP MBCCSRn.MTD MBCCFRn.CHA/CHB/CCF* MBFIDRn.FID Figure 30-120. Receive Message Buffer Access Regions MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-105 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 842
Idle - Message Buffer is idle. Included in message buffer search. HDis – Disabled - Message Buffer under configuration. Excluded from message buffer search. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-106 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 844
If more than one matching message buffers assigned to a certain channel, then only the message buffer with the lowest message buffer number is in one of the states mentioned above. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-108 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 845
Note: An empty dynamic slot is indicated by the following frame and slot status bit values: vSS!ValidFrame = 0 and vSS!SyntaxError = 0 and vSS!ContentError = 0 and vSS!BViolation = 0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-109 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 846
The receive shadow buffer concept applies only to individual receive message buffers. The intention of this concept is to ensure that only syntactically and semantically valid received non-null frames are MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-110 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 847
MB# 2n MB# 2n+1 message data message data message data Commit Side Transmit Side Figure 30-123. Double Transmit Buffer Structure and Data Flow MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-111 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 849
Table 30-104. Double Transmit Message Buffer State Description (Sheet 1 of 2)(Commit Side) MBCCSR[2n] Access Region State Description LCKS Appl. Module common states MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-113 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 850
Excluded from message buffer search. CCITx – Internal Message Transfer - Message Buffer Data transferred from commit side to transmit side. transmit side specific states MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-114 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 851
LCKS bit. The lock and unlock commands will only affect the commit side. If the application triggers the lock transition HL while the commit side is in the state CCITx, the message buffer MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-115 Preliminary Downloaded from Elcodis.com...
Page 852
Table 30-108. These priorities apply only to the transmit side. The internal message transmit start transition IS has tho lowest priority. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-116 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 853
The FlexRay block will not start the Internal Message Transfer for a message buffer as long as the message data on the transmit side is not transmitted at least once. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-117 Preliminary Downloaded from Elcodis.com...
Page 854
The message buffer does not match the next slot. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-118 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 855
The message buffer search is a sequential algorithm which is invoked at the following protocol related events: 1. NIT start 2. slot start in the static segment 3. minislot start in the dynamic segment MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-119 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 856
Depending on the message buffer channel assignment the same message buffer can be found for both channel A and channel B. In this case, this message buffer is used as described in Section 30.6.3.1, “Individual Message Buffers”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-120 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 857
In all other cases, the receive buffer will be found. Thus, if the block has no data to transmit in a dynamic slot, it is able to receive frames on that slot. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-121 Preliminary Downloaded from Elcodis.com...
Page 858
In the later case, the two single message buffers must have consecutive message buffer numbers and the smaller one must be even. Message Buffers can be RC3 reconfigured if they are in the HDis state. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-122 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 859
• The length of the message buffer data field for the FIFO is written into the ENTRY_SIZE field in Receive FIFO Depth and Size Register (RFDSR). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-123 Preliminary Downloaded from Elcodis.com...
Page 860
Only frames that have passed all filters will be appended to the FIFO. The FIFO filter path is depicted in Figure 30-131. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-124 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 861
Consequently, a received valid frame with the frame ID FID passes the RX FIFO Frame ID Value-Mask Rejection Filter if Equation 30-11 is fulfilled. ∧ ≠ ∧ Eqn. 30-11 RFFIDRFMR FIDRFMSK RFFIDRFVR FIDRFVAL RFFIDRFMR FIDRFMSK MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-125 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 862
(RFMIAFMR). This filter applies only to valid frames received in the dynamic segment with the payload preamble indicator bit PPI set to 1. All other frames will pass this filter. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-126 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 863
FR_A_RX, FR_A_TX, and FR_A_TX_EN and can be connected to either the physical bus channel A (shown in Figure 30-133) or the physical bus channel B (shown in Figure 30-134). MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-127 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 864
Init Value for Frame CRC is cCrcInit[B] cCrcInit[A] FR_B_RX reg(B) FR_B_TX channel B FR_B_TX_ cfg(B) cCrcInit[B] Figure 30-134. Single Channel Device Mode (Channel B) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-128 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 865
FRM and ensures application access to consistent tables by means of table locking. Once the application has locked the table successfully, the FlexRay block will not overwrite these tables and the application can read a consistent snapshot. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-129 Preliminary Downloaded from Elcodis.com...
Page 867
SFTCCSR.ELKS is set. This indicates that the application has successfully locked the even sync tables and the corresponding status information fields SFRA, SFRB in MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-131 Preliminary Downloaded from Elcodis.com...
Page 868
The application can configure the set of communication cycles in which the MTS will be transmitted over the FlexRay bus by programming the CYCCNTMSK and CYCCNTVAL fields in the MTS A Configuration Register (MTSACFR) MTS B Configuration Register (MTSBCFR). MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-132 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 869
In the POC:normal active state, the sync and startup frame transmission depends on the message buffer setup. If at least one of the indication bits PCR11.key_slot_used_for_sync or MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-133 Preliminary Downloaded from Elcodis.com...
Page 870
MCR SFFE ≠ FID 9:0 SFIDRFR SYNFRID 9:0 Eqn. 30-24 NOTE Sync frames are transmitted in the static segment only. Thus FID <= 1023. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-134 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 871
Other signals refer to events that occurred on the FlexRay Bus some cycles before the strobe signal is changed. These signals are listed in Table 30-13 with a positive clock offset. An example waveform is given in Figure 30-140. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-135 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 872
If timer T2 is configured as an absolute timer, it has the same functionality timer T1 but the configuration from Timer 2 Configuration Register 0 (TI2CR0) Timer 2 Configuration Register 1 (TI2CR1) is used. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-136 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 873
Figure 30-141. Slot Status Vector Update NOTE The slot status for the NIT of cycle n is provided after the start of cycle n+1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-137 Preliminary Downloaded from Elcodis.com...
Page 874
NIT are taken into account. The counters wrap round after they have reached the maximum value. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-138 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 875
The internal slot status counter SSCRn_INT is incremented if at least one of the conditions is fulfilled: 1. frame related condition: MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-139 Preliminary Downloaded from Elcodis.com...
Page 876
MBCCSn.MBIE. The FlexRay block sets the interrupt flag when the slot status of the message buffer was updated. If the interrupt enable bit is asserted, an interrupt request is generated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-140 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 877
The combined protocol interrupt request PRTIRQ is generated when at least one of the individual protocol interrupt sources generates an interrupt request and the interrupt enable bit GIFER.PRIE is set. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-141 Preliminary Downloaded from Elcodis.com...
Page 878
The combined module interrupt request MIRQ is generated if at least one of the combined interrupt sources generates an interrupt request and the interrupt enable bit GIFER.MIE is set. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-142 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 880
(MCR). The protocol values are set internally. The available bit rates, the related BITRATE field configuration settings and related protocol parameter values are shown in Table 30-113. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-144 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 881
Module Configuration Register (MCR) The FlexRay block now enters the Normal Mode. The application can commence with the protocol initialization described in Section 30.7.1.2, “Protocol Initialization”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-145 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 882
This section describes the relationship between the number of message buffers that can be utilized and the required minimum CHI clock frequency. Additional constraints for the minimum CHI clock frequency are given in Section 30.3, “Controller Host Interface Clocking”. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-146 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 883
If a command is issued while the corresponding command bit is set, the command is not queued and is lost. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-147 Preliminary Downloaded from Elcodis.com...
Page 884
POC:default config state. This will release all internal message buffer locks. MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-148 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 885
The availability of data in the transmit buffer is indicated by the commit bit MBCCSRt[CMT] and the lock bit MBCCSRt[LCKS]. The receive message buffer has the message buffer number r and has following configuration MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-149 Preliminary Downloaded from Elcodis.com...
Page 886
When a slot occurs, if a slot is assigned to a node on a channel that node only transmits a frame on that channel if there is data ready and there is a match on relevant transmit filters (no null frames are sent). MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-150 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 887
The receive and transmit cycles are shown in Figure 30-145 Figure 30-146. Transmit Data Not Available MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 30-151 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 888
FlexRay Communication Controller (FLEXRAY) MPC5510 Microcontroller Family Reference Manual, Rev. 1 30-152 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 889
CFIFOs to the on-chip ADC. It also monitors the fullness of CFIFOs and RFIFOs, and accordingly generates DMA or interrupt requests to control data movement between the FIFOs and the system memory. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-1 Preliminary Downloaded from Elcodis.com...
Page 890
The ADC control logic performs the following functions: • Buffers command data for execution. • Decodes command data and accordingly generates control signals for the on-chip ADC. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 891
DMAC. 2. VREF=VRH–VRL. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-3 Preliminary Downloaded from Elcodis.com...
Page 892
CFIFO. The message of the CFIFO that caused the abort of the previous serial transmission will only be transmitted after debug mode is exited. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 893
Section 2.7, “Detailed External Signal Descriptions,” for detailed signal descriptions. 31.3 Memory Map and Registers This section provides a detailed description of all eQADC registers. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 894
CFIFO Control Register 2 (EQADC_CFCR2) 0x0056 eQADC CFIFO Control Register 3 (EQADC_CFCR3) 0x0058 eQADC CFIFO Control Register 4 (EQADC_CFCR4) 0x005A eQADC CFIFO Control Register 5 (EQADC_CFCR5) MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 895
(EQADC_FISR3) 0x0080 eQADC FIFO and Interrupt Status Register 4 (EQADC_FISR4) 0x0084 eQADC FIFO and Interrupt Status Register 5 (EQADC_FISR5) 0x0088 Reserved 0x008C Reserved MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 897
The EQADC_MCR contains bits used to control how the eQADC responds to a debug mode entry request. Offset: Base+ 0x0000 Access: Read/Write Reset Reset Figure 31-2. eQADC Module Configuration Register (EQADC_MCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 898
The digital filter length field specifies the minimum number of system clocks that the digital filter counter must count to recognize a logic state change. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 900
CF_PUSH that were not specifically designated as target locations for the write. 31.3.3.5 eQADC Result FIFO Pop Registers 0–5 (EQADC_RFPRn) The eQADC_RFPRs provide a mechanism to retrieve data from RFIFOs. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 903
EQADC_FISRn (See Section 31.3.3.8, “eQADC FIFO and Interrupt Status Registers 0–5 (EQADC_FISRn)” asserted. 0 Disable pause interrupt request 1 Enable pause interrupt request MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 904
RFOFn, CFUFn, and TORFn (assuming that all interrupts are enabled). See Section 31.4.7, “eQADC eDMA/Interrupt Request,” for details. 0 Disable overflow interrupt request 1 Enable overflow Interrupt request bit 13 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 905
R NCFn TORFn PFn EOQFn CFUFn SSSn CFFFn RFOFn RFDFn W w1c Reset CFCTRn TNXTPTRn RFCTRn POPNXTPTRn Reset Figure 31-9. eQADC FIFO and Interrupt Status Registers 0–5 (EQADC_FISRn) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-17 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 906
Note: In software or level trigger mode, when the eQADC completes the transfer of an entry from CFIFOn with an asserted pause bit, PFn will not be set and transfer of commands will continue without pausing. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-18 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 907
Note: When generation of interrupt requests is selected (CFFSn=0), CFFFn must only be cleared in the ISR after the CFIFOn push register is accessed. Note: CFFFn should not be cleared when CFFSn is asserted (eDMA requests selected). bits 7–11 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-19 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 908
POPNXTPTRn is wrapped to 0, else, it is incremented by 1. For details refer to Section 31.4.4.1, “RFIFO Basic Functionality.” Writing any value to POPNXTPTRn has no effect. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-20 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 909
EQADC_CFSSR register captures the status register before the status register changes, because of the transfer of the current command that is about to be popped from the CFIFO. The EQADC_CFSSR is read only. Writing to EQADC_CFSSR has no effect. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-21 Preliminary Downloaded from Elcodis.com...
Page 910
31.3.3.11 eQADC CFIFO Status Register (EQADC_CFSR) The EQADC_CFSR contains the current CFIFO status. The EQADC_CFSRs are read only. Writing to the EQADC_CFSR has no effect. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-22 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 911
32-bit entries. Refer to Section 31.4.3, “eQADC Command FIFOs,” for more information on CFIFOs. These registers are read only. Data written to these registers is ignored. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-23 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 912
16-bit entries. Refer to Section 31.4.4, “Result FIFOs,” for more information on RFIFOs. These registers are read only. Data written to these registers is ignored. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-24 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 913
There are five non-memory-mapped registers for ADC0. The address, usage, and access privilege of each register is shown in Table 31-18. Data written to or read from reserved areas of the memory map is undefined. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-25 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 914
The ADC0 control register (ADC0_CR) is used to configure the on-chip ADC. Offset: 0x0001 Access: Read/Write R ADC0 ADC0_CLK_PS Reset Reset Figure 31-15. ADC0 Control Registers (ADC0_CR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-26 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 915
Table 31-20. System Clock Divide Factor for ADC Clock System Clock ADC0_CLK_PS Divide Factor 0b00000 0b00001 0b00010 0b00011 0b00100 0b00101 0b00110 0b00111 0b01000 0b01001 0b01010 0b01011 0b01100 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-27 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 916
It determines at what frequency the time base counter will run. ADC_TSCR can be accessed by configuration commands sent to ADC0. Offset: 0x0002 Access: Read/Write TBC_CLK_PS Reset Figure 31-16. ADC Time Stamp Control Register (ADC_TSCR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-28 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 917
ADC Time Base Counter Registers (ADC_TBCR) The ADC_TBCR contains the current value of the time base counter. ADC_TBCR can be accessed by configuration commands sent to ADC0. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-29 Preliminary Downloaded from Elcodis.com...
Page 918
(GCC_FRAC) contains 14 digits. For details about the GCC data format refer to Section 31.4.5.4.2, “MAC Unit and Operand Data Format.” MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-30 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 919
The eQADC can also in parallel and independently of the CFIFOs receive data from the on-chip ADC into multiple RFIFOs. Result data is moved from the RFIFOs to the user-defined result queues in system memory by the host CPU or by the eDMA. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-31 Preliminary Downloaded from Elcodis.com...
Page 920
RFIFO and generating requests to empty it. The process of pushing and popping ADC results to and from an RFIFO can occur simultaneously. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-32 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 921
Figure 31-21. Result Flow During eQADC Operation 31.4.1.1 Message Format in eQADC This section explains the command and result message formats used for on-chip ADC operation MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-33 Preliminary Downloaded from Elcodis.com...
Page 922
EOQ PAUSE Reserved MESSAGE_TAG CFIFO Header ADC Command CHANNEL_NUMBER ADC Command Figure 31-22. Conversion Command Message Format for On-Chip ADC Operation MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-34 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 923
0b1011–0b1111 Reserved These messages are treated as null messages. Therefore, they must obey the format for incoming null messages and return valid BUSY0/1 fields. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-35 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 924
ADC_REGISTER HIGH BYTE (0b0) CFIFO Header ADC Command ADC_REGISTER LOW BYTE ADC_REG_ADDRESS ADC Command Figure 31-23. Write Configuration Command Message Format for On-chip ADC Operation MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-36 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 925
ADC. A read configuration command is used to read the contents of the on-chip ADC registers which are only accessible via command messages. Read configuration commands are differentiated from write configuration commands by an asserted R/W bit. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-37 Preliminary Downloaded from Elcodis.com...
Page 926
0 Message stored in buffer 0. 1 Message stored in buffer 1. Read/Write. An asserted R/W bit indicates a read configuration command. 0 Write 1 Read MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-38 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 927
2-bit left-shift on the 12-bit data received from the ADC. When the CAL bit is asserted, this 14-bit data is the result of the calculations performed in the EQADC MAC unit using the12-bit MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-39 Preliminary Downloaded from Elcodis.com...
Page 928
0b11 when CONVERSION_RESULT is negative. CONVERSION Conversion Result. A digital value corresponding to the analog input voltage in a channel when the conversion _RESULT command was initiated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-40 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 929
CPU, is generated when CFFS is negated, and a eDMA request, served by the eDMA, is generated when CFFS is asserted. The host CPU or the eDMA respond to these requests MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-41 Preliminary Downloaded from Elcodis.com...
Page 930
CFIFO. The transfer of entries bound for the on-chip ADC is considered completed when they are stored in the appropriate ADC command buffer. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-42 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 931
CFIFO with 16 entries is shown for clarity of explanation, the actual hardware implementation has only four entries. In this example, CFIFOn with 16 entries is shown in sequence after pushing and transferring entries. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-43 Preliminary Downloaded from Elcodis.com...
Page 932
Its commands are bound for an internal command buffer that is not full, and it is the highest priority triggered CFIFO sending commands to that buffer. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-44 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 933
ETRIG1, GPIO206, or GPIO207), an eTPU channel, or an eMIOS channel. The input source for each eQADC external trigger is individually specified in the eQADC trigger input select register (SIU_ETISR) in the SIU block. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-45 Preliminary Downloaded from Elcodis.com...
Page 934
CFIFO to detect new trigger events, upon detection of an asserted EOQ bit in the last transfer. Refer to Section 31.4.1.1, “Message Format in eQADC,” for details about command formats. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-46 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 935
Section 31.3.3.8, “eQADC FIFO and Interrupt Status Registers 0–5 (EQADC_FISRn)”) is negated. The SSS bit can be set even if a 1 is written to the MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-47 Preliminary Downloaded from Elcodis.com...
Page 936
CFIFO to become triggered. For example, if rising-edge trigger mode is selected, the CFIFO becomes triggered when a rising edge is sensed on the trigger signal. The CFIFO MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-48 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 937
EOQ bit, the EOQF is set and, if enabled, an EOQ interrupt request is generated. The pause bit has no effect in continuous-scan software trigger mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-49 Preliminary Downloaded from Elcodis.com...
Page 938
Single Scan Not Applicable Asserted SSS bit. None. Software Single Scan A corresponding edge None. Edge occurs when the SSS bit is asserted. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-50 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 939
The last CFIFO to transfer a command to an on-chip ADC can be read from the LCFTn (n=0,1) fields (see Section 31.3.3.10, “eQADC CFIFO Status Snapshot Register (EQADC_CFSSR).” MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-51 Preliminary Downloaded from Elcodis.com...
Page 940
• Appropriate edge or level trigger occurred, OR (0b11) • CFIFO mode is programmed to single-scan software trigger mode and SSS bit is asserted. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-52 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 941
In single-scan modes, command transfers from the corresponding CFIFO will cease when the eQADC completes the transfer of a entry with an asserted EOQ. Software involvement is required to rearm the CFIFO so that it can detect new trigger events. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-53 Preliminary Downloaded from Elcodis.com...
Page 942
(EQADC_FISRn)”). When EQADC_CFCRn[TORIE] (see Section 31.3.3.6, “eQADC CFIFO Control Registers 0–5 (EQADC_CFCRn)”) and EQADC_FISRn[TORF] are asserted, the eQADC generates a trigger overrun interrupt request. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-54 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 943
CFIFO, that is the higher priority CFIFO, to the ADC in use is completed. See Figure 31-43. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-55 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 944
RFIFOn_BASE_ADDRESS is the smallest memory mapped address allocated to an RFIFOn entry. • RFIFO_DEPTH is the number of entries contained in a RFIFO - four in this implementation. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-56 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 945
RFIFO with 16 entries is shown for clarity of explanation, the actual hardware implementation has only four entries. In this example, RFIFOn with 16 entries is shown in sequence after popping or receiving entries. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-57 Preliminary Downloaded from Elcodis.com...
Page 946
Stores the 16-bit data into the appropriate RFIFO if the MESSAGE_TAG indicates a valid RFIFO number or • Ignores the data in case of a null or “reserved for customer use” MESSAGE_TAG MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-58 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 947
Table 31-20. The ADC clock frequency is calculated as below and it must not exceed 12 MHz. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-59 Preliminary Downloaded from Elcodis.com...
Page 948
The time base counter can be reset by writing 0x0000 to the ADC_TBCR (Section 31.3.4.3, “ADC Time Base Counter Registers (ADC_TBCR)”) with a write configuration command. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-60 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 949
MAC Unit and Operand Data Format The MAC unit diagram is shown in Figure 31-36. Each on-chip ADC has a separate MAC unit to calibrate its conversion results. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-61 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 950
Fractional part of the gain calibration constant for ADC0. GCC_FRAC is the fractional part of the gain calibration FRAC constant (GCC) for ADC0. GCC_FRAC can expresses decimal values ranging from 0 to 0.999938... MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-62 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 951
If the time prior to and during sampling is not long enough to permit this settling, then the voltage on the sample capacitors will not accurately represent the voltage to be read. This is a problem in particular when external muxes are used. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-63 Preliminary Downloaded from Elcodis.com...
Page 952
Time Stamp0 Calibration Submodule TBC_CLK_PS Configuration Register Fields NOTE: n = 0, 1, 2, 3, 4, 5 Figure 31-38. On-Chip ADC Control Scheme MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-64 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 953
Analog Other Conversion Type Binary Decimal Pin Name Functions AN0 to AN39 Single-ended 0000_0000 to 0010_0111 0 to 39 Single-ended 0010_1000 Single-ended 0010_1001 MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-65 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 954
0100_1xxx 72 to 79 — Single-ended 0101_0xxx 80 to 87 — Single-ended 0101_1xxx 88 to 95 Reserved 0110_0000 to 1101_1111 96 to 223 MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-66 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 955
When the external multiplexed mode is selected, the eQADC automatically creates the MA output signals from CHANNEL_NUMBER field of a command message. The eQADC also converts the proper input MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-67 Preliminary Downloaded from Elcodis.com...
Page 956
(ANR, ANS, ANT, ANW, ANX, ANY, and ANZ) by interpreting the CHANNEL_NUMBER field. As a result, up to 56 externally multiplexed channels appear to the conversion queues as directly connected signals. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-68 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 957
Number 0 Logic AN90 AN91 AN92 AN93 AN94 AN95 AN0-AN7 AN12-AN15 AN19-AN39 AN232-AN239 AN224-AN231 AN240-AN247 MA0-2 MA0-2 MA0-2 Figure 31-40. Example of External Multiplexing MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-69 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 958
For details refer to Section 31.3.3.8, “eQADC FIFO and Interrupt Status Registers 0–5 (EQADC_FISRn),” and Section 31.3.3.7, “eQADC Interrupt and eDMA Control Registers 0–5 (EQADC_IDCRn).” MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-70 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 959
The reference bypass capacitor (REFBYPC) signal requires a 100 nF capacitor connected to VRL to filter noise on the internal reference used by the ADC. REFBYPC 100nF Figure 31-42. Reference Bypass Circuit MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-71 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 960
Figure 31-44 shows the transfer function for the RSD stage. Note how the digital value (AB) is dependent on the two comparator inputs. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-72 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 962
Set CFFE0 to enable the eQADC to generate an eDMA request to transfer commands from Queue0 to CFIFO0; Command transfers from the RAM to the CFIFO0 will start immediately. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-74 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 963
Table 31-42. c) Results will be returned to RFIFO3 as specified in the MESSAGE_TAG field of commands. 2. Reserve memory space for storing results. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-75 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 964
Set RFDE3 and CFFE1 to enable the eQADC to generate eDMA requests. Command transfers from the RAM to the CFIFO1 will start immediately. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-76 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 965
(cyclic queue), or the first command of any other command queue. This is desirable for CFIFOs in continuous scan mode, or in some cases, for CFIFOs in single scan mode. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-77 Preliminary Downloaded from Elcodis.com...
Page 966
In the eQADC, there is no immediate command register for sending a command immediately after writing to that register. However, a CFIFO can be configured to perform the same function as an immediate MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-78 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 967
Since all result data may not have being stored in the appropriate RFIFO at the time MODEn is changed to disable, wait for all expected results to be stored in the RFIFO/result queue before MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-79 Preliminary Downloaded from Elcodis.com...
Page 968
0 command was sent to result queue 1. This happens because the system can be configured so that several command queues can have results sent to a single result queue. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-80 Freescale Semiconductor Preliminary Downloaded from Elcodis.com...
Page 969
This allows for calculations of more representative calibration constants. The eQADC provides these voltages via channel numbers 43 and 44. VREF=V MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-81 Preliminary Downloaded from Elcodis.com...
Page 970
(ADC0_GCCR)”) and the OCC value to ADC0 offset calibration constant register (see Section 31.3.4.5, “ADC0 Offset Calibration Constant Register (ADC0_OCCR)”) using write configuration commands. MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-82 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 971
Feature.” The maximum absolute quantization error is reduced by half leading to an increase in accuracy. 1. This calculation is rounded down due to binary approximation. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 31-83 Preliminary Downloaded from Elcodis.com...
Page 972
Error for Shifted Transfer Curve Input Voltage (12-bit A/D Resolution) –2 Error for ADC Transfer Curve –4 Figure 31-50. Quantization Error Reduction During Calibration threeand MPC5510 Microcontroller Family Reference Manual, Rev. 1 31-84 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 973
MCU behavior. NOTE During BAM program execution, the default reset values of various system registers (e.g. SIU, FlexCAN, eSCI, MCM SWT) may be updated. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 32-1 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 974
Attempting to execute instructions from addresses in the range 0xFFFF_C000–0xFFFF_EFFF may cause unpredictable results. Some important absolute addresses are presented in Table 32-1. MPC5510 Microcontroller Family Reference Manual, Rev. 1 32-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 975
Nexus port is enabled or disabled, and whether the password downloaded in serial boot mode is compared to a fixed public password or to a user program- MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 32-3 Preliminary Downloaded from Elcodis.com...
Page 976
(0xFEED_FACE_CAFE_BEEF) or to a flash value stored in the shadow row of internal flash at address 0x00FF_FDD8. MPC5510 Microcontroller Family Reference Manual, Rev. 1 32-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 977
256 MB Big Endian Global PID 0x2000_0000 0x2000_0000 256 MB Big Endian Global PID SRAM 0x4000_0000 0x4000_0000 256 KB Big Endian Global PID MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 32-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 978
BAM finds a valid RCHW. Figure 32-3 shows the fields of the RCHW. Boot Identifier = 0x005A BOOT_BLOCK_ADDRESS + 0x0000_0000 Figure 32-3. RCHW Fields MPC5510 Microcontroller Family Reference Manual, Rev. 1 32-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 979
FlexCAN and eSCI modules. The CNTX_A pad is configured as an output from the FlexCAN module.The TXD_A pad remains configured as GPIO input until a valid eSCI byte is received before a valid CAN message. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 32-7 Preliminary Downloaded from Elcodis.com...
Page 981
A message with 0x0012 ID and 8-byte length is used to send the start address, length, and the VLE mode bit. The MCU echoes with a message with 0x002 ID. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 32-9 Preliminary Downloaded from Elcodis.com...
Page 982
VLE instructions, if it is 0 the code contains classic Power Book E architecture instructions. 3. Download data. MPC5510 Microcontroller Family Reference Manual, Rev. 1 32-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 983
31-bit number of bytes + 31-bit number of bytes entry for the SRAM, EBI, and flash is configured to run Book E or VLE code. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 32-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 984
The BAM returns IO pins to their reset state and disables the ESCI_A module. Then it branches to the first address the data was stored to (as specified in step 2). MPC5510 Microcontroller Family Reference Manual, Rev. 1 32-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 985
SoftMLB concept and shows the functionality and interdependence on the other major blocks in the SoC. 1. A software driver for MLB emulation will be available from freescale. Available date - TBD MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 33-1 Preliminary Downloaded from Elcodis.com...
Page 986
• Visibility of debug signals 33.1.3 Modes of Operation The SoftMLB Interface Logic has two modes of operation: Normal mode and Stop mode MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-2 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 988
0x2C MLB_TXICHAR – TX Isochronous Channel Address Register 0x0000_0000 33.3.1.12/33-17 Note: Unimplemented locations always read 0. Writes to unimplemented locations have no effect. MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-4 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 989
MLB Bus. MLB_MSR[MSYSS] = 1 indicates that the logic has synchronized. 0 Enable the SoftMLB Interface Logic 1 Disable the SoftMLB Interface Logic – Default out of reset bits 1–15 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 33-5 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 990
0 SoftMLB Interface Logic does not trigger an eDMA request (default out of reset) 1 SoftMLB Interface Logic does trigger an eDMA request every MLBDATA word (32 MLBCLK cycles) bits 23–24 Reserved. MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-6 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 991
33.3.1.2 MLB Blank Register (MLB_MBR) The MLB_MBR register contains the blank request bit to cancel data that has been queued in the DSPI FIFO. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 33-7 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 992
The MLB_MSR contains the status bits that are used to determine detection of the system channel and status flags for service and eDMA requests. MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-8 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 993
0 Service request not active 1 Service request active 33.3.1.4 RX Control Channel Address Register (MLB_RXCCHAR) The MLB_RXCCHAR contains the RX Control Channel Address for this device. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 33-9 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 994
An address match occurs when RXCCHA_ACEN is set and the received 16 bit Channel Address equals 16b0000_0000_00_{RXCCHA}_0. bit 31 Reserved. 33.3.1.5 RX Async Channel Address Register (MLB_RXACHAR) The MLB_RXACHAR contain the RX Async Channel Address for this device. MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-10 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 995
An address match occurs when RXACHA_ACEN is set and the received 16 bit Channel Address equals 16b0000_0000_00_{RXACHA}_0. bit 31 Reserved. 33.3.1.6 TX Control Channel Address Register (MLB_TXCCHAR) The MLB_TXCCHAR contains the TX Control Channel Address for this device. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 33-11 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 996
An address match occurs when TXCCHA_ACEN is set and the received 16 bit Channel Address equals 16b0000_0000_00_{TXCCHA}_0. bit 31 Reserved. 33.3.1.7 TX Async Channel Address Register (MLB_TXACHAR) The MLB_TXACHAR contain the TX Async Channel Address for this device. MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-12 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 997
An address match occurs when TXACHA_ACEN is set and the received 16 bit Channel Address equals 16b0000_0000_00_{TXACHA}_0. bit 31 Reserved. 33.3.1.8 TX Sync Channel Address Register (MLB_TXSCHAR) The MLB_TXSCHAR contains the TX Sync Channel Address for this device. MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 33-13 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 998
31 Reserved. 33.3.1.9 TX Sync Channel Address Mask Register (MLB_TXSCHAMR) The MLB_TXSCHAMR contains the TX Sync Channel Address Mask for this device. MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-14 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 999
The MLB_CLKACR contains bits that are used to control the delay of the DSPI_DS_CLK relative to the MLBCLK input clock. Offset MLB_BASE+0x0024 Access: Read/Write Reset PDLY Reset Figure 33-12. MLBCLK Clock Adjust Control Register (MLB_CLKACR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 Freescale Semiconductor 33-15 Preliminary Downloaded from Elcodis.com electronic components distributor...
Page 1000
The MLB_RXICHAR contains the RX Isochronous Channel Address for this device. Offset MLB_BASE+0x0028 Access: Read/Write Reset RXICHA Reset Figure 33-13. MLB RX Isochronous Channel Address Register (MLB_RXICHAR) MPC5510 Microcontroller Family Reference Manual, Rev. 1 33-16 Freescale Semiconductor Preliminary Downloaded from Elcodis.com electronic components distributor...
Need help?
Do you have a question about the MPC5517G and is the answer not in the manual?
Questions and answers