EasyManuals Logo
Home>Texas Instruments>Microcontrollers>C2000

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #241 background imageLoading...
Page #241 background image
Control Law Accelerator (CLA)
C2000 Microcontroller Workshop - Control Law Accelerator 10 - 5
Software Triggering a Task
Tasks can also be started by a software trigger
using the CPU
asm(" EALLOW"); //enable protected register access
Cla1Regs.MIFRC.bit.INT4 = 1; //start task 4
asm(" EDIS"); //disable protected register access
Method #1: Write to Interrupt Force Register (MIFRC) register
INT2INT3INT4INT5INT6INT7INT8 INT1
0123456715 - 8
reserved
Method #2: Use IACK instruction
asm(" IACK #0x0008"); //set bit 3 in MIFRC to start task 4
More efficient does not require EALLOW
Note: Use of IACK requires Cla1Regs.MCTL.bit.IACKE = 1
Control and Execution Registers
CLA Control and Execution Registers
MPISRCSEL1 Peripheral Interrupt Source Select (Task 1-8)
MVECT1-8 Task Interrupt Vector (MVECT1/2/3/4/5/6/7/8)
MMEMCFG Memory Map Configuration (RAM2E, RAM1E, RAM0E, PROGE)
MPC 12-bit Program Counter (initialized by appropriate MVECTx register)
MR0-3 CLA Floating-Point Result Registers (32-bit)
MAR0-1 CLA Auxiliary Registers (16-bit)
1
0
MIFR
MIERMPISRCSEL1
CLA
Core
CLA Program Bus
CLA Data Bus
Program
Memory
Data
Memory
MMEMCFG
MVECT1-8
MPC
MAR0
MAR1
CLA_INT1-8
LVF, LUF
MR0
MR1
MR2
MR3
PIE
C28x
CPU
INT11
INT12
S/W Trigger
MIFRC
ADCINT1 to
ADCINT8
EPWM1_INT to
EPWM8_INT
ECAP1_INT to
ECAP3_INT
EQEP1_INT to
EQEP2_INT
CPU Timer 0
no source

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals