Could you help me with one function? I have nxp s32k144evb and I have to write function in design studio which generate digital signal about 1000hz (square signal). Do you have any tips or program which include similar function?
FTM(PWM) may meet you needs.
There is a route in S32 DS,ftm_pwm_s32k144,this example application showing the FTM's PWM functionality.
Usage or detail please refer to "ftm_pwm.dox" .
How to change the project to generate 1000hz square signal.
STEP1:
PTD15 is associated with FTM0 channel 0
BR!
Jim,
Ok this method is good but in your example I generate 1000Hz digital signal (square signal) and I use FTM. How can I generate the same signal using only GPIO?
please refer to "lpit_periodic_interrupt_s32k14x" ,this example meet your needs.
BR!
Jim,