Now we just start to do PIC with MicroCode Studio program So we have problem with TMR0 and INT (RB0)TMR0 = 0
requirement:
Timer 0 interrupt every 0.27 ms
DEFINE OSC 4
OPTION_REG = %11101000
INTCON = %10110000 ' Enable RB0 & tmr0 interrupt
On Interrupt Goto Timer_0_int
Home:
IF New_ir_command = 0 THEN Home ' Wait for low going pulse
Relay = 1
led = 1
PAUSE 200
LED = 0
goto home
' timer 0 interrupt
Timer_0_int:
'...........
TMR0 = $00
resume
enable
'* int RB0
Int0_int:
.............
porta.0= 1
resume
pls advise....
Bookmarks