STDA045 November 2026 MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0G3518 , MSPM0G3519
The multiply-accumulate (MAC) function accumulates the results of the product of OP1 and OP2 inside result registers RES1 and RES2 over multiple iterations until the MATHACL is reprogrammed for another function. The MATHACL supports only a 32-bit multiplier and multiplicand operand size, and a 64-bit accumulated result size. Figure 3-1 shows the operation of the MATHACL in MAC mode.
Figure 3-1 MATHACL MAC OperationBy using the MAC (multiply-accumulate) operation in MATHACL, the CPU can continuously stream 32-bit input data into the OP1 and OP2 registers. The final result is then retrieved directly from the RES1 and RES2 registers once data loading is complete. This approach reduces the total MAC execution time to nearly the duration of the input loading period, offering significant performance improvement over a standard operation based on a CPU.