
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
917
24.5.8.1.8
CHAN Register
CHAN is a 5-bit register that can be used as source and destination in arithmetic operations. The contents
of CHAN register affects the execution of many channel-related microinstructions, because its number
indicates the
selected channel
. CHAN register must not be used to store temporary values in arithmetic
operations. For more details, refer to
Section , Channel Selection Register – CHAN
.
24.5.8.1.9
Counter Registers: TCR1, TCR2, TPR and TRR
All these registers are 24-bit wide except TPR, which is a 16-bit register. They can be read or written in
arithmetic/logical operations, and have special-purpose uses for time base and angle mode operations. For
more information about those registers see
.
24.5.8.1.10
General Purpose Registers: A, B, C and D
A, B, C and D are 24-bit general purpose registers, which can be used to store intermediate values and do
not have other specific uses with any eTPU feature.
24.5.8.2
ALU and Post-ALU Shifter
The ALU executes 24-bit arithmetic and logical operations. ALU’s output goes directly to a 1-bit shifter,
called post-ALU shifter, so it is possible, for example, to add and shift using only one microinstruction.
In some microinstruction formats, it is not possible to specify the operation executed by ALU. In these
cases ALU will always perform addition.
In formats which have the field ALUOP for ALU operation selection, all of them can be performed,
including add/subtract using C (carry) flag as ALU’s carry-in, bitwise AND/OR/NOT/XOR, and
shift/rotate of 2, 4, 8 and 16 bits. See
Section 24.5.9.2.10, ALU/MDU Operation Selection
.
Subtraction, inversion, increment and decrement can be performed by combinations of source inversion
and setting ALU’s carry-in to 1.
ALU always performs 24-bit operations on its inputs, called
A-source
and
B-source
, and outputs a 24-bit
result. 8-, and 16-bit inputs are zero padded to 24 bits. Likewise, ALU 24-bit output is always truncated to
the destination register size.
24.5.8.2.1
ALU Flags
Four flags—Carry, Negative, Overflow, Zero—described below, are related to ALU and post-ALU shift
operations. Operation size and shifting affect flags generation logic. Operation size determines the result
boundary to be used for flags generation. Operation size is determined by size of sources and destination
(see
Section 24.5.9.2.3, Flags sampling control
). For more information about flag generation, see
Section 24.5.9.2.3, Flags sampling control
. ALU flags can be used as branch condition (see
Conditional/Unconditional branch
) or conditional ALU/MDU operation (see
Conditional ALU/MDU operation execution
).
Содержание 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...