Hello,
I have a question on the Motorware software for TMS320F2806xF devices.
Specifically it is on the function of HAL_writePwmData() listed in the file of hal.h.
I cannot understand the following assignment code:
period = (_iq)pwm->TBPRD;
The local variable of period is declared as _iq.
Meanwhile the value of pwm->TBPRD might be 90*250/2=11,250 for the PWM frequency of 4 kHz as assigned in the function of HAL_setupPwms() listed in the file of hal.c.
Obviously the value of 11,250 is beyond the range of _iq or Q24 number.
Please inform me where I am wrong.
Thank you for your guidance.
With regards,
JS Yoo