
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
828
Freescale Semiconductor
). There is one HSR field for each channel, so that writing to it generates a Service
Request to the respective channel only. A zero value in HSR means no Host Service Request is pending
for the channel.
HSR value turns to 000 automatically at the end of microengine service for that channel, but only if the
thread started due to an HSR.
The meaning of a non-zero HSR value depends on the Function assigned for the channel. These bits are
part of the conditions which select the Function entry point, and cannot be tested by microcode. For more
details, refer to
Section 24.5.1.1, Entry points
.
If Host writes HSR = 000 when a thread for the same channel is already running, the thread runs until the
end and is not aborted. If Host writes HSR>000 when an HSR thread for the same channel is already
running, HSR value resets at the end of the thread, and no new HSR will be pending. If HSR is written
before its value is resolved by the scheduler during TST, the entry point will obey the new HSR value, and
if this new value is 000, no service thread is executed for the HSR.
The scheduling of HSRs is completely asynchronous with Host accesses, and there is no race-free manner
to change an HSR value before service thread execution, so generally the safe way is: write HSR>0 only
when HSR = 0. Error recovery or emergency host procedures may require one to the safely abort service
and reset channel state when an HSR is already pending or executing. In these cases, the procedure below
should be followed:
1. Disable the channel, writing CPR = 00 in register ETPU_CxCR. That will prevent any pending
HSR to be serviced.
2. Check if the channel is currently being serviced, reading its service status bit in register
ETPU_CSSR. If it is, wait for the time necessary to finish the service pending, or check again until
HSR == 0, or channel service bit in ETPU_CSSR is cleared.
3. Write HSR with the error recover value. This value should, possibly combined with other
host-defined flags in SPRAM or FM bits, initiate a channel reset or error recovery procedure.
4. Re-enable the channel, writing CPR value > 0 in register ETPU_CxCR.
24.5.2.6
SCM access
Only Host can access SCM as data. Depending on the specific device, SCM may be implemented as a
RAM or ROM. This determines Host accesses to the SCM as shown below.
24.5.2.6.1
SCM RAM implementations
When SCM is implemented as RAM, the Host may read or write to SCM by setting ETPU_MCR bit
VIS = 1. If VIS = 0 and Host tries to access SCM space, a bus error is issued, writes are ineffective and
read data is meaningless. Both engines must be stopped or halted to set VIS = 1.
Only 32-bit aligned writes are allowed to SCM from the Host. Write accesses of other sizes store
unpredictable values into SCM.
NOTE
It is necessary to turn VIS bit on to set software breakpoints (see
Содержание 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...