SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
The General purpose mode is used to improve the firmware efficiency and performance. This feature enables software to get preempted to do another higher priority task.
It achieves this by preempting the current execution with a new hardware feature inside the PRU that causes the PRU to execute the XCHG instruction. The Task Manager will issue this hardware preemption and respond to the XCHG instruction by saving off the current program counter and ALU flags and providing a new program counter (PC) to start a new task. See section Section 6.4.6.2.8.1.2 for more details about hardware context switching. When the firmware completes this new task, it will terminate this task by issuing a XIN instruction. When the Task Manager sees this execution of the XIN instruction, it will return the state of the PRU from the last saved off task.
The General Purpose mode is enabled by the ICSSG_GLOBAL_CFG[1-0] TASKS_MGR_MODE register and is responsible for:
The General Purpose Task manager supports the following features: