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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,297件の閲覧回数
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 解決策
1,186件の閲覧回数
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 返答(返信)
1,186件の閲覧回数
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 件の賞賛
返信
1,186件の閲覧回数
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 件の賞賛
返信
1,187件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

1,186件の閲覧回数
ym1
Contributor II

Thank you,Robin_Shen. I got it.

2020-05-21

0 件の賞賛
返信