How to enable the timers in MSC8156

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

How to enable the timers in MSC8156

跳至解决方案
2,006 次查看
emresofuo_lu
Contributor II

Hi,

 

I'm setting up the registers of timer0channel0 but for some reason it doesn't create any effect. The registers are all empty. Is there any place to enable the timer? I couldn't find a word about this problem in the reference manual.

 

Regards,

 

Emre

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,738 次查看
emresofuo_lu
Contributor II

I have solved the mystery. It seems that the hex numbers for control and compare registers start from 16 and go up to 31. Since control bits are the upper half of the assigned registers, I was missing them, and unable to set as I wanted.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,739 次查看
emresofuo_lu
Contributor II

I have solved the mystery. It seems that the hex numbers for control and compare registers start from 16 and go up to 31. Since control bits are the upper half of the assigned registers, I was missing them, and unable to set as I wanted.

0 项奖励
回复
1,739 次查看
emresofuo_lu
Contributor II

By the way,

I can change the register values manually in the debug mode from the registers tab and my program works.

So the only problem is, debug is not able to change the values according to code.

Hope this gives an insight about the problem.

0 项奖励
回复