Page 1 of 1

Timer Register Codes on Bluno M3

Unread postPosted:Fri May 13, 2016 3:26 pm
by purav70
Hey guys, I'm kinda new to the entire bluno/arduino hardware/software (although I do know C++) and I'm using Bluno for work purposes. Right now I'm trying to find a bluno equivalent of the following timer register codes for arduino:

TCCR2A = 0x02; // DISABLE PWM ON DIGITAL PINS 3 AND 11, AND GO INTO CTC MODE
TCCR2B = 0x06; // DON'T FORCE COMPARE, 256 PRESCALER
OCR2A = 0X7C; // SET THE TOP OF THE COUNT TO 124 FOR 500Hz SAMPLE RATE
TIMSK2 = 0x02; // ENABLE INTERRUPT ON MATCH BETWEEN TIMER2 AND OCR2A

I've tried sifting through the datasheet but couldn't come up with anything. Any help would be much appreciated!

Re: Timer Register Codes on Bluno M3

Unread postPosted:Tue May 17, 2016 9:52 am
by Leff
I am not so sure about what your question is , sorry.

There are two ICs on Bluno, one is CC2540 another is ATmega328P. Maybe you could find online for more details about the IC?

The bootloader for ATmega328P can be found in Arduino Installation folder, the one for CC2540 is proprietary.

Re: Timer Register Codes on Bluno M3

Unread postPosted:Wed May 18, 2016 9:52 pm
by purav70
Hi Leff, you're right, I found the timer codes by searching for datasheet of the processor used in the Bluno.

Re: Timer Register Codes on Bluno M3

Unread postPosted:Fri May 20, 2016 9:58 am
by Leff
Thanks for following up.