FTM up counting configuration

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

FTM up counting configuration

1,534 次查看
Hozumi
Contributor I

I am trying to use FTM as a up-counting timer simply, but CNT register value remains 0.

My settings are follows:
MOD = 0x2000
CONF= 0xC0

Other registers are reset default values.
Finally, set 0x118 in the SC register.

I expected the CNT register to count up to 0x2000, but it remains 0.
The SC register shows 0x198 and the TOF remains 0, so I think the countup has not started.

The count clock is SIRCDIV1.

Are there any restrictions when using FTM as an up counting timer?

 

 

0 项奖励
回复
1 回复

1,520 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Ken3,

Please refer "Table 27-9. Peripheral module clocking (continued)".
If you want to select SIRCDIV1_CLK as counter clock, then External clock should be select by FTMn_SC[CLKS].
But you select Fixed frequency clock by FTMn_SC[CLKS].

Table 27-9. Peripheral module clocking (continued).png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复