FTM up counting configuration

cancel
Showing results for 
Search instead for 
Did you mean: 

FTM up counting configuration

169 Views
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 Kudos
1 Reply

155 Views
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 Kudos