
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
Содержание 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...