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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
828 Views
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.

Tags (3)
1 Solution
717 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

4 Replies
717 Views
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 Kudos
717 Views
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 Kudos
718 Views
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!
-----------------------------------------------------------------------------------------------------------------------

717 Views
ym1
Contributor II

Thank you,Robin_Shen. I got it.

2020-05-21

0 Kudos