Timer Issue

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

Timer Issue

1,100 次查看
shaileshagrahar
Contributor III

Hi,

I have written a code for LPTMR0 for 1 second interrupt .i have attached the code .My issue is:

1: My LPTMR0_IRQ_Handler() is running very fast not as expected on every second.

2: During debugging my code i am not getting NCR value being increment it is constant and remaining 0.

3: I varying my MCR value 450000, 4700000, 7000000,15000000 and so on but there is no effect on occurrence timer interrupt, it is still very fast an all above value used fro MCR.

 

Please help me on this .

can you please give some exposure on , this TFC bit,i am little bit confuse on this-

When clear, TFC configures the CNR to reset whenever TCF is set. When set, TFC configures the CNR
to reset on overflow. TFC must be altered only when the LPTMR is disabled.

.

Original Attachment has been moved to: LPTMR0.c.zip

标签 (1)
0 项奖励
2 回复数

879 次查看
shaileshagrahar
Contributor III

HI,

I have resolved my issue .

Thanks!

0 项奖励

879 次查看
shaileshagrahar
Contributor III

 PCC->PCC_LPIT0  = PCC_PCC_PCS(6);

0 项奖励