Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE
We are using InstaSpin motorware Lab01b with F28069 (TMS320F28069PZPQ) controller on our custom hardware board. In that we are unable to enter the motor identification phase during the debug.
We followed the MOTORWARE hal tutorial document and mapped all the ADC and PWM pins in hal.c as per our board.
Following are the observations while viewing the register values:
1. XCLK Value = 0x0000 whereas we expect 0x0002
2. All the ADC registers are getting 0x0000 value.
3. All EPWM registers are 0x0000 causing no PWM output.
4. All the motor parameters like Ls, Rs etc are getting to 0.0
{
HAL_Obj *obj = (HAL_Obj *)handle;
// enable internal oscillator 1
CLK_enableOsc1(obj->clkHandle);
// set the oscillator source
CLK_setOscSrc(obj->clkHandle,CLK_OscSrc_Internal);
// disable the external clock in
CLK_enableClkIn(obj->clkHandle);
// disable the crystal oscillator
CLK_enableCrystalOsc(obj->clkHandle);
// disable oscillator 2
CLK_enableOsc2(obj->clkHandle);
// set the low speed clock prescaler
CLK_setLowSpdPreScaler(obj->clkHandle,CLK_LowSpdPreScaler_SysClkOut_by_1);
// set the clock out prescaler
CLK_setClkOutPreScaler(obj->clkHandle,CLK_ClkOutPreScaler_SysClkOut_by_1);
return;
} // end of HAL_setupClks() function
Any leads for InstaSpin support are highly appreciated.
Thanks.
Warm Regards,
Anish Bhatia