How to enable the timers in MSC8156

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

How to enable the timers in MSC8156

Jump to solution
2,005 Views
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

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
1,737 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
1,738 Views
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 Kudos
Reply
1,738 Views
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 Kudos
Reply