SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
When the background task is running, if another task request happens (and MSTSBGRND.BGINTM is not set), then the following sequence of operations happen.
If any of the above instructions are present in the pipeline, the back ground task continues to execute until such time when the condition is satisfied. Once the condition is satisfied, the following actions are performed:
When the background task terminates, the CLA picks the next highest pending task and begins execution. Note that while the background task is pending, the background task has the lowest priority and, therefore, yields to any other pending task. Once all pending non-background tasks have completed execution, the CLA restores the program counter (MPC), that is, loads the address from the MVECTBGRNDACTIVE register to the MPC, sets the background status to RUN (MSTSBGRND.RUN = 1), and continues execution from that point.
If an MSTOP instruction occurs in the D1 phase while the background task is running, the following sequence of operations happens: