
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
919
. V Flag is calculated using ALU adder output (that is, it is not affected by 1-bit shift/rotate
operations).
Zero Flag (Z)
Zero flag equal to 1 indicates that the result from the ALU, limited to the operation size, is zero, regardless
of the operation performed, whether the result is written, or where it is written. It depends on the operation
size, as shown in
24.5.8.2.2
ALU ADD Operation with and without shifting
ADD operation is selected by ALUOP or ALUOPI fields and when none of them is available in a
microinstruction format
1
. Optionally, result can be shifted or rotated right by 1 bit, which is selected by
SHF, ALUOP or ALUOPI fields. See
Section 24.5.9, Microinstruction set
describes how CIN and BINV fields change ADD operation behavior.
ALU adder output can be 1-bit shifted or 1-bit rotated right as follows:
Shift right:
if BINV==1
result[23:0] = adder_output[24:1]
else
Table 24-61. Overflow flag on addition
1
– V
1
For V-flag definition on the absolute operation, see
Section 24.5.8.2.8, Absolute value operation
Operation size
Value
2
2
BS is taken after any inversion by the BINV field, but not added to the carry bit (CIN field)
8 bits
(AS[7] & BS[7] & !alu_adder_output[7]) | (!AS[7] & !BS[7] & alu_adder_output[7])
16 bits
(AS[15] & BS[15] &!alu_adder_output[15]) |
(!AS[15] & !BS[15] & alu_adder_output[15])
24 bits
(AS[23] & BS[23] &!alu_adder_output[23]) |
(!AS[23] & !BS[23] & alu_adder_output[23])
Table 24-62. Zero Flag – Z
Operation size
Value
8 bits
Z = (result[7:0] == 0x00)
16 bits
Z = (result[15:0] == 0x0000)
24 bits
Z = (result[23:0] == 0x000000)
1. ALU operations only occur on formats where a destination field is found (T2ABD/T2D).
Table 24-63. Types of ADD operations
BINV
CIN
Operation (adder output)
1
1
AS + BS
1
0
AS + BS + 1
0
0
AS - BS
0
1
AS - BS - 1
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...