
Enhanced Time Processing Unit (eTPU2)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
927
2
24
) of the result, one must take the absolute value of MACL considering the signal of the result (not
MACL alone), i.e.: if flag MN = 1, invert MACL and add 1.
MDU flags are updated in the same way as in the Signed Multiplication.
24.5.8.3.8
Unsigned Fractional Multiplication (fmultu)
MDU Unsigned Fractional Multiplication takes both A-Source and B-Source as unsigned operands.
B-Source is taken as an 8- or 16-bit fraction between 0 and (2
8
- 1)/2
8
(inclusive) for the 8-bit operation,
or between 0 and (2
16
-1)/2
16
(inclusive) for the 16-bit operation. The value of B-Source is considered the
numerator of a fraction with denominator 2
8
or 2
16
for the 8 and 16-bit operations, respectively.
The integer part of the result is stored in MACH, and the fractional part in MACL. The fractional part in
MACL is the numerator of a fraction with denominator 2
24
. The concatenation of MACH and MACL form
a 48-bit fixed point number with a 24-bit mantissa, both for 8 and 16-bit operations.
MDU flags are updated in the same way as in the Unsigned Multiplication.
24.5.8.3.9
Unsigned Divide (div)
At the end of a divide operation MACL holds the result of the division, taking A-source as numerator and
B-source as denominator, while MACH holds the remainder. If a divide by 0 is executed, MACL holds the
maximum unsigned number (0xFFFFFF) as result and flag MV is set to indicate division by 0 (otherwise
reset). The contents of MACH become indetermined.
MC flag is always reset.
MZ flag is set if MACL equals 0, and reset otherwise.
MN receives a copy of MACH bit 23 (msb from the remainder).
Note that signed division is not available.
24.5.8.3.10
MDU Flags
MDU has its own flags to indicate the result and status of an MDU operation. They are: MC, MZ, MV,
MN and MB. All MDU flags are updated with the final result at the end of the operation, and do not change
until the next operation finishes. Therefore it is possible to start a new MDU operation and test the flags
of the previous one in parallel, except for mult/mac with 8-bit operand (takes only 1 microcycle).
MDU Negative Flag – MN
MN flag is always a copy of MACH bit 23 at the end of the operation, either in signed or unsigned ones.
Note that MACH holds the rest of a division operation, which is always unsigned.
MDU Carry Flag – MC
MDU carry flag indicates if the result cannot be represented by a 48-bit number, in Signed and Unsigned
Multiply Accumulates. It is reset in the other operations.
Содержание 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...