
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
751
When the SCM is implemented by RAM, the Host must first initialize it with the proper microcode
program prior to enabling any eTPU Function, and then enable eTPU access (which also disables Host
access).
24.2.1.1.4
Shared parameter RAM (SPRAM)
The SPRAM works as data RAM which can be accessed by the Host CPU and up to two eTPU engines.
This memory is used for information transfer between the Host CPU and the eTPU, as data storage for the
eTPU microcode program or for communication between the two eTPU engines. SPRAM width is 32 bits,
and is accessible by the Host as byte, 16-bit or 32-bit wide. eTPU can access it as full 32 bits, lower 24 bits
or upper byte (8-bit).
The host can also access the SPRAM space mirrored in other area with Parameter Signal Extension (PSE).
Parameter Signal Extension accesses differ from the usual host accesses to the original SPRAM area as
follows:
•
Writes are effective only to the lower 3 bytes of a word: the word’s most significant byte is kept
unaltered in SPRAM.
•
Reads return the lower 3 bytes of a word sign-extended to 32 bits, i.e.: the most significant bit of
the word s 2nd most significant byte is copied in all 8 bits of the most significant read byte.
Each eTPU channel can be associated with a variable number of parameters located in the SPRAM,
according to its selected Function. In addition, the SPRAM can be fully shared between two eTPU engines,
enabling direct communication between them.
High flexibility of the SPRAM utilization is achieved as follows:
•
Each channel has a programmable base address pointing to the address of its first parameter with
two parameter granularity. This way the SPRAM can be partitioned according to the actual
function needs.
•
The microcode can access the first 128 parameters of the selected channel in channel relative
access mode.
•
Each engine can access all the SPRAM address space in indirect addressing mode. Blocks of data
are easily transferred using stack operation.
•
Absolute addressing mode can access the first 256 parameters (TPU3 functionality), implementing
a shared pool of parameters holding global variables.
In the Host address space each parameter occupies four bytes. eTPU usage of the upper byte is achieved
by having a 32-bit P register which can access the upper byte, the lower 24 bits or all the 32 bits. The
microcode can switch between access sizes at any time.
Each Function may require a different number of parameters. During the eTPU initialization the Host has
to program channel base addresses, allocating proper parameters for each channel according to its selected
Function.
24.2.1.1.5
Scheduler
Out of reset, all channels are disabled. The Host CPU 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
Содержание 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...