
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
839
2. Write ETPU_CDCR with STS = 1 and the remaining CDC programming parameters: parameter
width (32 or 24 bits, field PWIDTH), transfer direction (read or write, field WR), temporary
parameter area base address (field PBBASE), and the absolute addresses of the parameters to be
transferred (concatenation of the fields CTBASE and PARAM0/1).
3. If it is a read transfer, i.e., from channel to host, read the two parameters from the temporary area
into Host memory/registers.
24.5.4.4
Hardware Semaphores
eTPU provides Hardware Semaphores accessible by the Microengine only. It is the responsibility of the
application to ensure proper use of the semaphores (i.e., agree upon a specific semaphore and use it
properly, to ensure coherency).
The eTPU microinstruction set has support for locking and freeing the semaphores, described in
Section 24.5.9.1.7, Semaphore operations
, and this is the only way to access them.
There are four semaphores available, which reduces the amount of collisions by assigning unrelated data
transfers to different semaphores. Semaphores are used for parameters which can be shared by channels in
different engines, and for engine-to-engine synchronization. Semaphores are also the only way to ensure
coherent access to parameters shared between the two Microengines.
Attempting to lock one semaphore (even not successfully) frees the other locked by the same engine,
ensuring one can lock just one semaphore at a time. That prevents deadlock conditions between the two
engines.
Microcode END command or engine being in idle state (no thread executing) automatically releases all
semaphores from one engine side, even if a semaphore lock is done in parallel. However, it is
recommended to write the microcode in a way which locks semaphores for the shortest required period,
and frees them without waiting for the END command, to improve the performance of the other
microengine. Semaphores are free after reset. An engine can only free a sempaphore locked by itself.
Semaphore lock requests are always
non-blocking
, in the sense that they do not suspend the requester in
case the semaphore is already locked. The semaphore status after the lock request—indicating if it was
successfully locked or not—must be tested through the SMLCK microengine branch condition (see
Section 24.5.8.4, Branch Conditions
).
24.5.4.5
SPRAM Arbitration
Up to four entities can access SPRAM:
•
Two Microengines (in a dual eTPU engine system)
•
The Coherent Dual-parameter Controller (CDC)
•
The Host CPU (direct memory-mapped access)
Summary of Contents for MPC5644A
Page 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Page 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Page 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Page 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Page 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Page 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Page 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...