Hi @yash_bhatnagar9 ,
There's an example in S32K3 RTD package, which config timer for GPT "Gpt_Example_S32K344".
You need to check the GptChannelTickFrequency of that config:
For example, the TickFrequency is 24Mhz (means 1 second has 24Mhz ticks), then you need to have 480000 ticks for 20ms.
In your source code, you need to start a timer with this tick value, then you just need to modify this value in the example code: