This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TIMER CC register issue

Hello,

I am experiencing some CC register issue in Timer of nRF51822. I am trying to setup TIMER1 for 16 seconds. But I see, that when I try to write to CC registers, the value is cut to 16-bit:

write: NRF_TIMER0->CC[0] = 500000; //(0x7A120)

read: CC0 = 41248 //(0xA120)

I've also tried to write into register manually in debug mode, but seen the same cutting to 16-bit. CC register is 32-bit and this does not have to happen. I know that for some revisions BITMODE limits the length of TIMER0. But I've tried this with TIMER1 and TIMER2. Also writing to CC does not have to be affected and I've tried changing BITMODE as well.

As the result, with NRF_TIMER_FREQ_31250Hz I get timer running only a little bit more than 1 second.

Have someone experiencing the same? Or can anyone explain what can be the problem?

P.S. I am using S110, but it is not started at this point. Chip is nRF51822 QFAAH0 1511BR.

Related