
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
838
Freescale Semiconductor
parameter access of a thread is atomic in relation to another thread in the same engine, since a thread
cannot be suspended (pre-empted).
For 1 parameter coherent access, or dual-parameter coherency between only one Microengine and Host,
the alternatives shown in previous sections apply.
24.5.4.3
Coherent Dual-parameter Controller (CDC)
Dual-parameter coherency is supported by a Coherent Dual-parameter Controller hardware (CDC), which
contends with microengine for SPRAM access. CDC atomically transfers, upon Host’s command, two
parameters from one area of the SPRAM to another. One area is a temporary (buffer) area, where the two
parameters are directly read or written by the Host. This temporary area has to begin in an SPRAM address
multiple of 2 words, and the two parameters must be sequential. The other area is the channel parameter
area where the microcode normally accesses the parameters, usually with the channel relative address
mode (see
Section 24.5.9.1.1, SPRAM Addressing Modes
). In this area, the parameters transferred by
CDC don’t have to be sequential. A transfer from the temporary area to the channel area, when the Host
sends data to the channel, is called a
write transfer
. Inversely, in a
read transfer
the parameters are copied
from the channel area to the temporary area (channel to Host).
Coherency is guaranteed by the SPRAM access contention rules implemented in the SPRAM arbiter (see
Section 24.5.4.5, SPRAM Arbitration
). CDC transfers are coherent in respect to the two engines, so the
target parameters in the channel area may be shared by channels on them both. During CDC operation, the
Host may suffer from 3 up to 11 system clocks wait states
1
, and the Microengine(s) may suffer up to 2
microcycle wait-states
2
. CDC accesses are atomic with respect to Microengine(s) accesses to the SPRAM.
Even when neither engine is in TST, CDC may suffer up to 4 system clock internal wait-states from
SPRAM arbiter, meaning 9 slave wait-states to Host, so that it does not break atomic back-to-back accesses
from microengine(s). CDC also cannot break TST preload accesses. Host can initiate CDC back-to-back
transfers: there is no need of idle slave cycles between two transfers.
24.5.4.3.1
CDC Programming
The Coherent Dual-parameter Controller Register (see
Section 24.4.2.2, ETPU_CDCR – eTPU Coherent
Dual-Parameter Controller Register
) is used to configure and initiate CDC transfers between the
temporary area and channel parameter area. Host asserts STS bit in order to start the data transfer. CDC
then contends for the SPRAM and starts the transfer. When the data transfer is complete, STS returns to 0.
Host receives wait-states for writing STS = 1 while CDC contends for SPRAM and during the transfer.
The write access ends when CDC finishes the transfer. Host receives wait-states during the CDC transfer.
If Host writes ETPU_CDCR with STS = 0 or does not write the STS byte, the CDC transfer does not occur.
CDC programming can be summarized as follows:
1. If it is a write transfer, i.e., from Host to channel, write the two parameters into temporary area.
1. The maximum number of Host wait states on CDC occurs when both microengines overlap their TSTs, delayed 3 system
clocks from each other.
2. One microcycle takes two system clocks. Microengines get wait-states in multiples of microcycles, while Host and CDC
wait-states are multiples of system clocks.
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...