PWMSP001_SetTimerVal

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User5327
Level 4
Level 4
Hi,
It seems that function "status_t PWMSP001_SetTimerVal (const PWMSP001_HandleType *HandlePtr, uint32_t TimerVal) " dont work well.

I am tried this function (during timer was stopped), but there is no way how set the timer start value. (with Relax Lite Kit)

Can some help me?

Thanks

Regards
Koumak
0 Likes
6 Replies
elegantk
Employee
Employee
For changing of the timer starting value from default "0" to "other value".
Yes. You should use the PWMSP001_SetTimerVal.
However, there is a bug. The CCU4 is still in "Idle set" mode.
Thus, there is no reaction when Timer = value.
Please try out the following code.

DAVE_Init(); // Initialization of DAVE Apps
CCU40->GIDLC |= 0x10F;
PWMSP001_SetTimerVal((PWMSP001_HandleType*)&PWMSP001_Handle0, 500);
PWMSP001_Start(&PWMSP001_Handle0);
0 Likes
User5327
Level 4
Level 4
Thanks
with CCU40->GIDLC |= 0x10F; it working
0 Likes
Not applicable
Hi Koumak,

This is a known issue reported in eTicket 28586855.

Best regards,
Sophia
0 Likes
Not applicable
Hi Sophia,

Does this problem affect the PWMSP002 too ?

Thank you
Best regards
Aaron
0 Likes
Not applicable
Hi Sophia,

My own tests have confirmed that the problem also applies to the PWMSP002 App as well.

As a work around I am using the following code to set the 4 "Idle clear" bits in the CCU80 before calling the "
PWMSP002_SetTimerVal" function...

CCU80->GIDLC |= CCU8_GIDLC_CS3I_Msk | CCU8_GIDLC_CS2I_Msk | CCU8_GIDLC_CS1I_Msk | CCU8_GIDLC_CS0I_Msk;



Does another eTicket need to be raised ?

Thanks
Best regards
Aaron
0 Likes
Not applicable
Hi Aaron,

Yes, you are right. However, it is not necessary to raise another eTicket as all relevant cases have been addressed in the internal request.

Best regards,
Sophia
0 Likes