
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
974
Freescale Semiconductor
independent. This means that, for example, all 32 channel signals can change thread at the same moment,
provided that the function software sets up the channel hardware to do so beforehand.
With Host CPU code, the system designer assigns functions to channels and initializes the functions. After
initialization, functions typically run without Host intervention, except for eTPU channel interrupts to the
Host to give or receive information. Most functions can run continuously with periodic servicing from the
eTPU Microengine. As required, the channels request service from the eTPU Microengine, and the eTPU
Scheduler determines the order in which the channels are serviced. Worst-case latency for a channel can
be derived from the details of the priority scheme that the scheduler uses (see
Figure 24-65. Function threads
24.6.5.2
Using worst-case latency estimates to evaluate performance
Once WCL is found for a channel, the user must determine how to use this number to analyze performance.
To analyze the performance of a channel running the PWM function, for example, some information about
what happens in each thread is necessary.
The following example refers to old TPU PWM function, which is not optimized to the eTPU enhanced
hardware. For PWM, thread 1 is the initialization thread, and threads 2 and 3 are used during normal
function execution. (PWM threads 4, 5, and 6 are for special modes and will be assumed to be unused on
channel 5). Thread 2 writes a time into the channel 5 match register and performs other operations that will
cause the channel 5 signal to go from low to high at the time indicated in the match register (match time).
At match time, the signal goes high and channel 5 requests service from the eTPU Microengine to execute
thread 3. Thread 3 writes a time into the channel 5 match register and performs other operations that will
cause the channel 5 signal to go from high to low at match time. At match time, the signal goes low and
channel 5 requests service from the eTPU Microengine to execute thread 2. A PWM wave is kept running
on the system by the eTPU executing thread 2, then thread 3, then thread 2, then thread 3, and so on.
DIO Function Threads
PWM Function Threads
SM Function Threads
S1
S2
S3
S4
S5
S6
S1
S2
S3
S4
S5
S6
S1
S2
S3
S4
Содержание 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...