SLAU846A June 2023 – October 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1
Power Enable
To power on the MATHACL, write the KEY to the PWREN register and set the ENABLE bit to power on the MATHACL. To reset the MATHACL, write the KEY to the RSTCTL register, set the RESETSTKYCLR bit, and set the RESETASSERT bit.
MATHACL Operation
All MATHACL operations follow a similar code sequence to call the functions, begin the compute operations, and read the results:
Write to the FUNC, QVAL, OPTYPE, SFACTOR, and NUMITER fields in the CTL register using a single write operation. See Section 5.4 for which fields are required by the function being called.
Trigger the function to start computing based on the number of operands required in the operation.
MATHACL Timing
Timing for each MATHACL calculation depends on the number of fractional bits (n), number of iterations (NUMITER) in SINCOS, ATAN2, and SQRT functions, or software overheard. See each function example in Section 5.4 for the number of hardware cycles (if available).