TWR K60N512 Toggling Pin for probing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR K60N512 Toggling Pin for probing

Jump to solution
500 Views
mrandreas
Contributor III

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.

Re: Timers of less than 1 ms

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

0 Kudos
1 Solution
307 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
1 Reply
308 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

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.

0 Kudos