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.

TMS320F28027: Timer based State Machines not calling various Tasks

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE, TIDM-DC-DC-BUCK, C2000WARE-DIGITALPOWER-SDK

Tool/software:

HI all,

I am trying to implement state machine based tasks in 28027. I referred some programmes given in control suite. I am however not able to go between various tasks A0, A1, A2 etc. What could be the reason for this.

I am attaching the code for your reference. It also goes to ESTOP 0 after few seconds.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "DSP28x_Project.h" // Device Headerfile and Examples Include File
#include "MATH_EMAVG_IQ.h"
#include "Solar_IQ.h"
#include "IQmathLib.h"
#include <math.h>
#include "VARIABLES_CONSTANTS.h"
// -------------------------------- FRAMEWORK --------------------------------------
// State Machine function prototypes
//----------------------------------------------------------------------------------
// Alpha states
void A0(void); //state A0
// A branch states
void A1(void); //state A1
void A2(void); //state A2
void A3(void); //state A3
void A4(void); //state A4
int A0_State=0, A1_State=0, A2_State=0, A3_State=0, A4_State=0;
// Variable declarations
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX