PDA

View Full Version : USBSERVICE & timer



Shamir
- 3rd August 2006, 09:37
Hi,

I'm using pic18f2455 to communicate with a PC and send result of a test the pic does, the test take a while, so I can't call the USBSRVICE offten enough,
I tought to use a timer to run the usbservice routine but as i read in the picbasic pro manual, the interrupt service routine will not be exeecute until the picbasic command will be over ( and this may take to long), do you have and idea how to do this ? I thoght to use interrupt service routine writen in asmbelr, but i'm not sure if this will be execute immdiatly, or only after the previous command ends.

Thanks
Shamir

mister_e
- 3rd August 2006, 17:47
Simple solution, Darrel Taylor instant interrupt for 18Fs.
http://www.picbasic.co.uk/forum/showthread.php?t=3251

pay attention to post 30 and later. Familiar doesn't it?

Work really well for me.