PDA

View Full Version : USB and Interrupt - can it work together ?



Shamir
- 3rd October 2006, 11:02
Hi all

I'm using a PICBASIC PRO and pic18f2455 to communicate with a PC by USB.

Every time I use any Interrupt (Timer, External) The USB communication fail.

Can they work together?

Thanks
Shamir

mister_e
- 3rd October 2006, 22:24
Sure they can work together. Just make sure to never interrupt the USBService process and do the USBSERVICE each 1020 mSec.

Darrel Instant Interrupts comes handy in this case to prevent head banging.