Hi,
I need a little help,did some one know if I can Combine this two interrupt like here:
INCLUDE "modedefs.bas"
DEFINE OSC 4
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 24h
DEFINE HSER_SPBRG 25 ' 9600 Bauds
DEFINE HSER_CLROERR 1
INTCON = %11100000 ' Enable interrupts Usart and TMR0
OPTION_REG =%00000110 'Prescaler = 128
On INTERRUPT GoTo Main '''''Usart
PIE1.5 = 1
On INTERRUPT GoTo Overflow ''''''Timer0 Overflow
PIE1.0 = 1
Loop:
........
........
........
Goto Loop
Disable
Main:
.......
.......
Resume
Overlow:
.......
.......
INTCON.2=0 '''''''''''''''''''''''Clear Overflow
Resume
Thanks a lot for any answer.
Regard Pesti
Bookmarks