Timer Calculator Problem

Timer Calculator is a free software development tool used for easier calculation of timer interrupts.
Post Reply
Author
Message
mircea.huja
Posts: 1
Joined: 11 Apr 2020 16:58

Timer Calculator Problem

#1 Post by mircea.huja » 11 Apr 2020 17:08

Hello.

I have a project using an Atmega2560 and I tried to use Timer calculator in order to set my Timer0 and Timer1 registers. Timer1 registers are generated correctly and the timer works as it should,
but the generated code for Timer0 it seems not to be recognized by mikroC due to the fact that the code is generated without A or B register marking. I am attaching here the generated code.

void InitTimer0(){
SREG_I_bit = 1;
OCR0 = 159;
TCCR0 = 0x28;
TCCR0 |= 0x01;
OCIE0_bit = 1;
}

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Timer Calculator Problem

#2 Post by filip » 16 Apr 2020 09:15

Hi,

I apologize for the issue, you are right about this.

You can manually add A or B markings as a workaround, I will report this to our development team.

Regards,
Filip.

Post Reply

Return to “Timer Calculator”