Other Parts Discussed in Thread: DRV8313EVM, DRV8313,
Tool/software: Code Composer Studio
Dear sir
I am currently working on an application to run a simple program on my sensorless BLDC motor using DRV8313EVM module (48V, 35watt). I would like to run the motor in standalone mode with a certain set of algorithms with DRV8313.
I am not able to understand how the bottom switches pulse generates with which timer? The DRV8313EVM is used. The file attached here is from slvu815a.pdf, “ DRV8313EVM User’s Guide”.
The timer initialization code is given below in “DRV8313EVM_RevB”.
void Init_Timer (void)
{
TA1CCR0 = 400; // Load the Reference Count
TA1CCTL2= OUTMOD_6;
TA1CCR2= (100-START_UP_DUTY) * 4;
TA1CTL =TASSEL_2 + MC_3 + TACLR ; //+TAIE;//Up-Down Mode ,SMCLK,Timer Clear
TACCR0 = 400; // Load the Reference Count
TACCTL0= CCIE;
TACCTL2= OUTMOD_6;
TACCR2 = 398;
TACTL = TASSEL_2 + MC_3 + TACLR ;
//+ TAIE; //Up-Down Mode , SMCLK , Timer Clear
WDTCTL = WDT_MDLY_32;
IE1 |= WDTIE; // enable WDT interrupt
_EINT(); // Enable interrupts
}
I am quite new to programming with MSP430. Appreciate any advice/help,
Thanks,
Ajeet