Hi Yin Yang,
Both SDK and the KE driver which I recommend you are our official code.
SDK for KE driver is just published, I just find it.
But don't worry, after compare the code with the FTM_PWMDeadtimeSet which I give you, you can find, before you use the KE sdk FTM_SetDeadTimeEnable, yo ualso need to disable the write protection:
static inline void FTM_SetWriteProtection(FTM_Type *base, bool enable)
{
/* Configure write protection */
if (enable)
{
base->FMS |= FTM_FMS_WPEN_MASK;
}
else
{
base->MODE |= FTM_MODE_WPDIS_MASK;
}
}
Then you call the FTM_SetDeadTimeEnable function again, you will find the dead time can be used.
You can try it on your side.
If you still have question after you try it, please kindly let me know.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------