
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
970
Freescale Semiconductor
•
Write to register(s) ETPU_WDTR if one needs to enable and setup the Watchdog(s) mode and
timeout.
•
Write to channel x Host Service Request registers (ETPU_CxHSRR) to initialize the active
channels.
1
•
Write to the channel interrupt enable register (ETPU_CIER) if interrupts are to be enabled from the
appropriate channels. Likewise for Data Transfer Requests (ETPU_CDTRER). This can also be
done through ETPU_CxCR.
•
Write to channel x configuration registers (ETPU_CxCR) to enable each channel by assigning it a
high, middle, or low priority (CPR field).
•
Monitor the Host service request registers (ETPU_CxHSRR) for completion of initialization.
•
Write ETPU_MCR bit GTBE = 1 to start TCR1/TCR2 time base counting at same time in both
engines (may be done before or never, depending on the particular application and use of Red Line
bus).
Section 24.7.2, Initialization code example
24.6.2
Reset options
24.6.2.1
Hardware Reset
Hardware reset is achieved by assertion of device synchronous reset. Both engines and common logic is
reset, and even the System Configuration and Global Channel registers assume their reset values.
NOTE
All eTPU input clocks must pulse during reset so that both engines are reset,
even if they are in Module Disable or Stop mode.
24.6.2.2
Software reset
eTPU has no Software reset. To abort infinite microcode loops, the Force END mechanism must be used
(see field FEND in
Section 24.4.2.5, ETPU_ECR – eTPU Engine Configuration Register
).
24.6.3
Multiple parameter coherency methods
Follows a description of two methods for coherent transfer of multiple parameters between Host and
eTPU. Both methods involve the use of two parameter areas: the Transfer Parameter Area (hereafter called
TPA), which is the SPRAM area directly accessed by the Host for reads and writes, and the Permanent
Parameter Area (hereafter called PPA), which are the SPRAM positions where channel parameters are
normally accessed by the Function microcode. Note that parameters in either TPA or PPA do not have to
be in sequential addresses. TPAs and PPAs allocation are completely defined by the application, and there
may be any number of them, independently of the channels.
The methods described here are not the only solutions for the coherent transfer problem, and both can
co-exist in eTPU and even used in combination. Also note that for transfers of a pair of parameters, the
1. This operation is done before enabling active channels to avoid time events happening before the channel initialization.
Содержание 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...