If I want to toggle a pin very fast from the CPU to a TP or a point on the elevation board, which pin shall I choose?
The pin shall be toggled in my main loop > 0.01 ms.
The following thread suggest using FTM or GPIO.
Is this the correct configuration for using the FTM1_CH0:
k60 ref man (12.2.14)
SIM->SCGC6 | |= SIM_SCGC6_FTM1_MASK; |
From the k60 ref manual and SCH, FTM has several alternatives (10.3.1).
CPU: TRACED2\FTM1_CH0 K8 PTA8 ALT3
Solved! Go to Solution.
Hi,
The K60 procut GPIO pin toggle speed should match with your requirement (toggle > 0.01ms).
There are many timer resource for customer to use.
Customer can use a PIT generate period interrupt and toggle the GPIO pin in PIT interrupt service routine.
Customer also could use FlexTimer module to generate PWM signal.
I attached some example code for your reference.
Wish it helps.
Hi,
The K60 procut GPIO pin toggle speed should match with your requirement (toggle > 0.01ms).
There are many timer resource for customer to use.
Customer can use a PIT generate period interrupt and toggle the GPIO pin in PIT interrupt service routine.
Customer also could use FlexTimer module to generate PWM signal.
I attached some example code for your reference.
Wish it helps.