I copied and paste this code below from the oshonsoft manual, and when compiling I am getting a syntax error from the enable statement below.
any ideas?
thanks!
Dim t As Word
t = 0
TRISA = 0xff
ADCON1 = 0
TRISB = 0
option_reg.T0CS = 0
INTCON.T0IE = 1
Enable
loop:
Adcin 0, PORTB
Goto loop
End
On Interrupt
Save System
t = t + 1
INTCON.T0IF = 0
Resume
any ideas?
thanks!
Dim t As Word
t = 0
TRISA = 0xff
ADCON1 = 0
TRISB = 0
option_reg.T0CS = 0
INTCON.T0IE = 1
Enable
loop:
Adcin 0, PORTB
Goto loop
End
On Interrupt
Save System
t = t + 1
INTCON.T0IF = 0
Resume