Hello Ken,
David's suggestion is good .
Also you can create PE project on KDS, then add the component of "TimerInt_ldd",configuration the Interrupt period to 1ms,

void delayms(int t)
{
EventCount = 0;
while(t > EventCount);
}
In the timer interrupt function :
void TU2_OnCounterRestart(LDD_TUserData *UserDataPtr)
{
/* Write your code here ... */
EventCount++; /* Increment counter of events */
}
We can use the delay function :
void main ()
{
delayms(20*1000); // delay 20s
}
Hope it helps
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------