
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
852
Freescale Semiconductor
Channel Selection Register – CHAN
CHAN is the register that holds the number of the channel that qualifies the context of most Channel
Registers, including Pin Control and ER accesses, and is common to all channels in a same engine.
When a thread starts to be executed, the contents of CHAN register is automatically updated on Time Slot
transition to the number of the channel to be serviced. Serviced channel is constant during channel
servicing, but the selected channel can be changed any time by microengine writing into CHAN register.
Some microinstructions are affected by the serviced channel instead of CHAN. These are:
•
Conditional branch using LSR (see
Section 24.5.8.1.6, LINK Register
) or Function Mode
(
Section 24.4.7.2, ETPU_CxSCR – eTPU Channel x Status Control Register
•
Negate channel flag LSR, Interrupt CPU and Data Transfer Request (see
Channel interrupt and data transfer requests
).
When CHAN register is written, accesses are qualified by the new CHAN register value from the
instruction following CHAN assignment on, except CaptureA/B sampling into ERTA/B and Match
register writing from ERTA/B (see
Section 24.5.9.6.5, CHAN assignment, Read Match and ERWA/B
).
Writing CHAN (including with the same value, CHAN:= CHAN) updates ERTA and ERTB with the new
captured values, the branch logic with updated MRLA/B and TDLA/B flags.
shows the commands, flags and registers selected by the CHAN register value
Table 24-47. General Channel registers microcode access
Register
Access type
Sampled from
channel
Update to
channel
Microcode
fields
1
1
Section 24.5.9, Microinstruction set
.
Reset value
CHAN
read/write
n.a.
2
2
CHAN is common to all channels in the engine.
n.a.
T4ABS, T4BBS,
T2ABD
defaults to
serviced channel
at thread start
PDCM
write only
no
immediate
PDCM
1100
(sm_st)
UDCM
write only
no
from ERTA by
microcode
CMW, ERWA
parameter value
defined at
integration
SRI
write only
no
immediate
MTD
1
Flag1,Flag0
branch flag test,
write
no
immediate
BCC,FLC
0, 0
Table 24-48. CHAN-selected features
Feature used
Selected by
CHAN
Channel-relative SPRAM access
YES
Branch using PSS, PRSS, PSTI and PSTO channel flags
YES
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...