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
已解决! 转到解答。
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.
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.
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.