SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
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: