Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hello
I want to set the pwm interrupt, pwmEnableNotification(hetREG1,pwm1,pwmEND_OF_PERIOD);
but No matter how I set HAL software “pwm DUTY ,PERIOD,
this interrupt function Interval period fixed 125
void het1LowLevelInterrupt(void)
{
uint32 vec = hetREG1->OFF2;
if (vec < 18U)
{
if ((vec & 1U) != 0U)
{
pwmNotification(hetREG1,(vec >> 1U) - 1U, pwmEND_OF_PERIOD);
}
else
{
pwmNotification(hetREG1,(vec >> 1U) - 1U, pwmEND_OF_DUTY);
}
}
else
{
edgeNotification(hetREG1,vec - 18U);
}
}
I want to change this interrupt time.I try this function pwmSetSignal(hetRAM1, pwm1, signal); but time is wrong.