Other Parts Discussed in Thread: TMS320LF2406A
Hello Folks,
I'm looking for c/c++ header files for the TMS320LF2406A.
Could you provideme a link to the header files.
thank you
E.Musch
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.
Other Parts Discussed in Thread: TMS320LF2406A
Hello Folks,
I'm looking for c/c++ header files for the TMS320LF2406A.
Could you provideme a link to the header files.
thank you
E.Musch
Edwin,
I don't think the 24x family ever had header files created for it as you see for the 28x family. But there is an extensive list of motor control software that is available (http://focus.ti.com/docs/toolsw/folders/print/apslf240x.html). You can use this software as reference since it configures the system, ADC, PWM, and communications from C. Here's an example of the EventManager intialization:
int F2407_EV1_PWM_Init(PWMGEN *p)
{ SCSR1|=0x0004; /* Turn EVA Clocks on */
T1PR=p->period_max; /* Init Timer 1 period Register */
T1CON=PWM_INIT_STATE; /* Symmetrical Operation */
DBTCONA=DBTCON_INIT_STATE;
ACTRA=ACTR_INIT_STATE;
COMCONA=0xa200;
CMPR1=p->period_max;
CMPR2=p->period_max;
CMPR3=p->period_max;
MCRA=MCRA|0x0fc0; /* Set up the full compare PWM pins
to primary functions.*/
return(0);
}
Jeff