Timer Calculator - bad code

Timer Calculator is a free software development tool used for easier calculation of timer interrupts.
Post Reply
Author
Message
blysynski
Posts: 17
Joined: 05 Dec 2019 18:20

Timer Calculator - bad code

#1 Post by blysynski » 25 Jun 2020 18:59

I set timer calculator for PIC16 and Timer0 I get the following code generated:

Code: Select all

sub procedure InitTimer0()
  OPTION_REG	 = 0x80
  TMR0		 = 96
  INTCON	 = 0xA0
end sub
 
sub procedure Interrupt()
  if (TMR0IF_bit) then
    TMR0IF_bit	 = 0
    TMR0		 = 96
    'Enter your code here
  end if
end sub
there is no OPTION_REG for PIC16F15313, what should it be?

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: Timer Calculator - bad code

#2 Post by jovana.medakovic » 26 Jun 2020 11:05

Hello,

I believe that I answered you on the ticket, so we can continue the conversation there.

Kind regards,
Jovana

Post Reply

Return to “Timer Calculator”