![Freescale Semiconductor PXR4030 Скачать руководство пользователя страница 1247](http://html1.mh-extra.com/html/freescale-semiconductor/pxr4030/pxr4030_reference-manual_23306601247.webp)
Enhanced Time Processing Unit (eTPU2)
Freescale Semiconductor
29-79
PXR40 Microcontroller Reference Manual, Rev. 1
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.
Since the definition of worse-case latency assumes a fully loaded running system, initialization threads are
not part of worst-case calculations. For the channel 5 example, the two PWM threads in
thus the two normal running threads, threads 2 and 3.
does not define which thread is thread 2 and which is thread 3. Since the worst-case latency
derived from the first-pass analysis is the worst case between any2 threads (not counting initialization
threads), it is safe to say that the worst-case latency shown in
represents both the worst-case
high time and the worst-case low time.
Notice in
that worst-case latency is drawn from the end of the execution of the first PWM
thread to the end of the execution of the next PWM thread. It is drawn from end to end because the
microcode instructions that make up the threads control the channel hardware. To make sure that all the
microcode instructions needed to change the pin thread have been executed, it is necessary to include the
execution time of the second thread.
Thread information for each function is found in the programming notes for individual TPU functions.
Refer to Freescale Programming Note TPUPN00/D, Using the TPU Function Library and TPU Emulation
Mode, for a list of available programming notes. Similar documentation will we provided for the eTPU
new functions.
29.4.2.3
Priority Scheme Details Used in WCL Analysis
The user assigns functions to channel numbers and gives each active channel a priority level of high,
middle, or low. The Scheduler uses the channel number and channel priority level to determine the order
in which to grant service.
The scheduler allocates time slots to specific priority levels of high, middle, or low. One function thread
is executed in each time slot. The length of a time slot varies according to the length of the executing
thread. When fully loaded, the scheduler always assigns time slots in a seven-slot sequence (see
). After a seven-slot sequence is completed, another seven-slot sequence begins (see
). Note that in eTPU, when no service request exists, the scheduler goes to thread 1, but WCL
calculation considers full load.
Содержание PXR4030
Страница 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Страница 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Страница 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Страница 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Страница 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 158: ...Power Management Controller PMC 5 26 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 182: ...Frequency Modulated Phase Locked Loop FMPLL 6 24 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 278: ...System Integration Unit SIU 7 96 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 280: ...System Information Module PXR40 Microcontroller Reference Manual Rev 1 8 2 Freescale Semiconductor...
Страница 300: ...Boot Assist Module BAM 9 20 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 346: ...Interrupts and Interrupt Controller INTC 10 46 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 352: ...General Purpose Static RAM SRAM 11 6 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 432: ...Core e200z7 Overview PXR40 Microcontroller Reference Manual Rev 1 13 44 Freescale Semiconductor...
Страница 460: ...Peripheral Bridge PBRIDGE 15 16 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 478: ...Memory Protection Unit MPU 16 18 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 496: ...Error Correction Status Module ECSM 17 18 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 524: ...Periodic Interrupt Timer PIT_RTI 20 12 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 740: ...FlexRay Communication Controller FLEXRAY 22 156 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 928: ...Deserial Serial Peripheral Interface DSPI 25 68 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 982: ...Enhanced Serial Communication Interface eSCI 26 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1114: ...Enhanced Queued Analog to Digital Converter EQADC 27 132 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Страница 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1262: ...Enhanced Time Processing Unit eTPU2 29 94 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1399: ...Nexus Development Interface NDI Freescale Semiconductor 31 83 PXR40 Microcontroller Reference Manual Rev 1...
Страница 1400: ...Nexus Development Interface NDI 31 84 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...