Quote Originally Posted by Scampy View Post
Post up the code you have (use the "code /code " tags) and state what the actual problem is and I'm sure someone will offer assistance
Hi I am using tmro interrupt.
My program is;
Code:
@ __config _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON & _MCLRE_OFF &_BODEN_ON & _LVP_OFF & _DATA_CP_OFFON INTERRUPT GoTo VAIL  
OPTION_REG=000001    
define OSC 4
CMCON=7
INTCON=100000 
trisa=0
trisb=0
porta=0
portb=0
SYMBOL SES=PORTA.1
t var word
a1 var byte
a var byte
x var byte


a=0:a1=55:t=0:x=0
tmr0=55


wail:


goto wail


VAIL:
disable


TOGGLE SES
  t=t+1
        if t=20 and a=0 then
        t=0
        a1=a1+1
        if a1>242 then a=1
        endif
        
        if t=125 and a=1 then
        t=0
        a1=a1+1
        if a1>245 then a=2
        endif
        
        if t=125 and a=2 then
        t=0
        a1=a1-1
        if a1<242 then a=3
        endif
        
        if t=20 and a=3 then
        t=0
        a1=a1-1
        if a1=<55 then a=0
        endif
   
tmr0=a1
INTCON.2=0
resume
enable
end
anyone can help me for this?