TWR K60N512 Toggling Pin for probing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

TWR K60N512 Toggling Pin for probing

跳至解决方案
1,388 次查看
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 项奖励
回复
1 解答
1,195 次查看
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 项奖励
回复
1 回复
1,196 次查看
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 项奖励
回复