KL26 TPM Prescaler problem

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

KL26 TPM Prescaler problem

跳至解决方案
966 次查看
henryxin
Contributor II

I read and test the TPM in the FRDM-KL26Z ev board.

And I have a question about Prescaler in the chip datasheet(KL26 Sub-Family Reference Manual, Rev. 3.2, October 2013)

Is it correct? PS[2:0] = 001, the input clock freq shall be divided by 2 to the TPM.

The diagram looks the timer module counter increases as same as the input clock.

prescaler.png

Thanks,

Henry

标签 (1)
0 项奖励
回复
1 解答
754 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Henry ,

I think you can understand like this , consider the hole block as the counter clock:

pastedImage_0.png

In fact , the prescaler is just a factor.

Hope it helps

Alice

在原帖中查看解决方案

0 项奖励
回复
4 回复数
754 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Henry,

Yes, this is right.

Pay attention to that the "slected input clock" is after devided   frequency clock.

Best Regards,

Alice

------------------------------------------------------------------------------------------

If this post answers your question, please click the Correct Answer button.

0 项奖励
回复
754 次查看
henryxin
Contributor II

Hi Alice,

Does it mean that the selected counter clock source, which passes through a prescaler, becomes the selected counter clock?

According to the TPM block diagram clockinput.png

I will consider the red block as selected counter clock. It is a little confusing.

Thanks,

Henry

0 项奖励
回复
755 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Henry ,

I think you can understand like this , consider the hole block as the counter clock:

pastedImage_0.png

In fact , the prescaler is just a factor.

Hope it helps

Alice

0 项奖励
回复
754 次查看
henryxin
Contributor II

Hi Alice,


Thanks. It is helpful to understand.


BR

Henry

0 项奖励
回复