This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Original question:
[FAQ] CLA: Frequently Asked Questions
Replies: 1
Views: 1156
Q: Can you explain more about a task? such as:
How big is a task?
Is there a size limit for a task?
What is the starting address of a task?
How do I indicate the end of a task?
Lori HeustessC2000 Software Engineering
A:
Think of a task like an interrupt. It is a algorithm that is executed when the CLA receives an interrupt.
The start address of a task is configurable. Each task has an associated interrupt vector (MVECT1 to MVECT8). For type 0 CLAs, this vector holds the starting address (as an offset from the first program location) of the task. For all the other types, this vector holds the entire 16-bit address of the task.
The size of a task is only limited by the amount of program memory available and the CLA's program counter.
The MSTOP instruction indicates the end of the task. After a task begins, the CLA will execute instructions until it encounters an "MSTOP" instruction.
Also refer to:
Click here for more CLA FAQs and resources.