What happens if I set tval0 in lpit0 to 0? (S32K144 LPIT0)

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

What happens if I set tval0 in lpit0 to 0? (S32K144 LPIT0)

跳至解决方案
833 次查看
ym1
Contributor II

hello everyone!

I use the compare mode of lpit0  and accidentally set tval0 to 0 in the program. I find that cval0 starts count from 0xFFFF_FFFF. Why?

Thanks.

标记 (3)
1 解答
722 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 永锋 季,

00000000000000000000000000000000b - Invalid load value in compare mode
00000000000000000000000000000001b - Invalid load value in compare mode

Timer Value Register (TVAL0 - TVAL3).png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

4 回复数
722 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 永锋 季,

The Access of Current Timer Value CVAL is RO(read only). I don't know why you write 0 to it.

CVAL RO.png
I am not sure if it was caused by below:

transfer error M_CENT.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
722 次查看
ym1
Contributor II

Hi Robin_Shen,

Sorry, I want to say tval0. So my question is:

I use the compare mode of lpit0  and accidentally set tval0 to 0 in the program. I find that cval0 starts count from 0xFFFF_FFFF. Why?

0 项奖励
723 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 永锋 季,

00000000000000000000000000000000b - Invalid load value in compare mode
00000000000000000000000000000001b - Invalid load value in compare mode

Timer Value Register (TVAL0 - TVAL3).png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

722 次查看
ym1
Contributor II

Thank you,Robin_Shen. I got it.

2020-05-21

0 项奖励