How to enable the timers in MSC8156

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

How to enable the timers in MSC8156

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