i am using the TWR_K60F Board with CPU: MK60FN1M0VLQ12.
I am trying to create a PWM Signal on a PIN (PTC3). The PWM Signal have to be a rectangle signal.
I used the FTM_Init Component from Processor Expert.
My configurations are:
-Clock gate --> enabled
-Clock source --> System Clock
- Prescaler --> divide by 1
- Counter Init --> 0
- Modulo counter --> 4
- Channel 2 --> Enabled
- Channel Mode --> edge-aligned PWM
- channel value register --> 2
- Pin --> Enabled (PTC3)
Now i have a PWM signal with a period of 0.104 us (9.6 MHz) and a duty cycle of 50%.
If i look at the oscillocop then i see the following signal
But it has to be a rectangle signal. If i reduce my frequence (for example to 1MHz) then i will get a rectangle signal like that:
That is what i need because my camera needs a PWM signal that have a rising time maximum of 5 ns.
I also tried to add a GPIO_Init Component. I enabled the PTC3 - pin (pin sharing) and for the drive strength i selected high.
But i did not help. So if the frequence is to high then i will get a sinus wave.
What can i do?
I need a PWM signal with a frequence of 24 MHz and a duty cycle of 50%. With my configuration i will not get a rectangle signal but almost a sinus wave.
Thank you for your help!