
Enhanced Time Processing Unit (eTPU)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
18-7
Figure 18-4. PSE Accesses
Each eTPU channel can be associated with a variable number of parameters located in the SDM, according
to its selected function. In addition, the SDM can be fully shared between two eTPU engines, enabling
communication between them. Each function can require a different number of parameters. During eTPU
initialization the host has to program channel base addresses, allocating proper parameters for each
channel according to its selected function.
In the host address space each parameter occupies four bytes (32 bits). eTPU usage of the upper byte is
achieved by having a 32-bit preload (P) register that can access the upper byte, the lower 24 bits, or all the
32 bits. The microcode can switch between access sizes at any time.
18.1.4.5
Task Scheduler
As mentioned in
Section 18.1.3, “eTPU Operation Overview
,” every channel function is composed of one
or more threads, and threads cannot be interrupted by host or channel events, such as channel servicing.
The function of the task scheduler, therefore, is to recognize and prioritize the channels needing service
and grant execution time to each channel. The time given to an individual thread for execution or service
is called a time slot. The duration of a time slot is determined by the number of instructions executed in
the thread plus SDM wait-states received, and varies in length. Although several channels can request
service at the same time, the function threads must be executed serially.
At any time, an arbitrary number of channels can require service. The channel logic, eTPU microcode, or
the host application notifies the scheduler by issuing a service request.
Out of reset, all channels are disabled. The device core makes a channel active by assigning it one of three
priorities: high, middle, or low. The scheduler determines the order in which channels are serviced based
on channel number and assigned priority. The priority mechanism, implemented in hardware, ensures that
all requesting channels are serviced.
[31:24]
[23:16]
[15:8]
[7:0]
SDM
0 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 1
0 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 1
0 0 0 0 0 0 0 0
Example 1:
Read with
sign extension
[31:24]
[23:16]
[15:8]
[7:0]
SDM
0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 1
1 0 1 0 1 1 1 1 0 1 1 0 1 1 1 1 0 1 1 0 1 1 1 1
Example 2:
Read with
sign extension
Most
byte
significant
Most
byte
significant
Most
byte
significant
2nd most
byte
significant
1 0 1 0 1 1 1 1
1 1 1 1 1 1 1 1
Summary of Contents for MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...