Hello Karan,
There is no the FTM delay demo function on the NXP official website, so i crate one demo by myself.
I use the CW10.6.4, TRK-KEA8, please the attachment .
** ###################################################################
this function delay t ms
** ###################################################################
*/
void delayms(int t)
{
EventCount = 0;
while(t > EventCount);
}
In this project , define the period of the FTM interrupt to 1ms , then the "EnventCount" will be add 1
when it run to the interrupt.
I think you can refer to this create one delay function on your project .