
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
810
Freescale Semiconductor
24.5
Functional description
24.5.1
Functions and threads
eTPU processing is event-driven, in the sense that eTPU microcode only runs to service a request from an
event. Service Requests may result from the occurrence of any of the following events:
•
Host CPU writing a non-zero value to the channel HSR (Host Service Request) field in
ETPU_CxHSR.
•
occurrence of a time base match, an input signal transition, or a specific combination of them
(depending on the Channel Mode currently configured).
•
a Link Service Request.
A given event is always associated to only one Channel:
•
There is one HSR register field for each Channel
•
Each signal is associated with only one Channel, which has its own Match registers and
independent mode configuration.
•
Each Link Service Request can have only one Channel as a target.
Service Request processing is done by a set of microengine routines. A set of related routines that
implement a specific channel application is called a
Function
. One or more Functions reside on SCM,
limited only by the SCM space available, size of microcode Functions and the number of entry points
available. Each engine can be controlled by up to 32 Functions at a time.
A Function can be assigned to several channels, but only one Function can be assigned to a given Channel
at a time. This is defined by the Host through the Channel Configuration Registers (see
Channel configuration and control registers
The term
Thread
will be used hereafter to refer to a service routine of a Function, or its execution. A
Thread is constructed of a specific number of microinstructions, typically the code necessary to calculate
the next phase of waveform to be input to, or output from, a given channel. Once a Thread begins, its
execution cannot be interrupted. A Thread normally finishes when an END microinstruction is executed.
A given Thread is selected and called by the Scheduler depending on the following:
•
the type of event that generated the service request.
•
the Function assigned to the target channel.
•
target channel pin state.
•
the state of the channel logic.
•
the priority assigned to the target channel, relative to the priorities of other channels with pending
service requests
The mechanism to select a thread based on the channel Function and type of event is described in the
Section 24.5.1.1, Entry points
.
The priority mechanism that determines the order of Thread execution amongst pending service requests
is described in
Содержание 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...