Other Parts Discussed in Thread: C2000WARE
Noted issue with CLA type GPIO in CLA task ISR: LAUNCHXL-F280049C: CLA2 type GPIO toggle in task of ISR - C2000 microcontrollers forum - C2000︎ microcontrollers - TI E2E support forums
Hello,
Reading through various Technical Brief and datasheet text, it seems slower SCI TXD interrupt span (30ms) can be assigned CLA task (8) and Instaspin 150µs main_ISR() to highest priority task (1). Being new to C2000 MCU family had not read though CLA text but noted MCSDK HAL can enable CLA for EPWM module. Seemingly slower SCI interrupt being task 8 can free CPU time for C28x bus peripherals by EPWM module enabled for CLA bus structure (data sheet Fig.8-2) and TB Fig.1.
Q1: Does SCI data remain on the C28x bus, if not why was it left out CLA data bus?
Q2: Can SCI peripheral IRQ assert CLA interrupts, e.g. datasheet Fig.8-2 being an offloaded IRQ task (8) of PIE controller?
The F28004x features a new Type 2 CLA which has the option of running the lowest priority task (Task 8) as a background task. Once triggered, it runs continuously until it is terminated or reset by the CLA or MCU. The remaining tasks (Task 1 through Task 7, in priority order) can interrupt the background task when they are triggered. If needed, portions of the background task can be made uninterruptible. Some uses of the background task include running continuous functions, such as communications and clean-up routines. The background task is enabled by setting the BGEN bit in the MCTRLBGRND register. The Task 8 interrupt vector is then loaded from the MVECTBGRND register rather than the MVECT8 register. When the background task is interrupted, the branch return address is saved to the MVECTBGRNDACTIVE register, and the address is then loaded back to the MPC when execution continues.
