Assembly language is still the fastest way to handle interrupt. It use the internal language of the PIC without any other reference/interpretation. I mean, when you're using PICBASIC command, it can refer to hundreds lines of code before finishing one instruction.
The PICBASIC interrupt work well to. It's just another way to use interrupts. BTW if you're planning to use Serial interrupt, choose a PIC that have an internal USART. It will provide you an USART interrupt.
Always keep the main loop instruction as simple as you can. If you must use some delay, do a loop with PAUSEUS or @ NOP. Avoid statement like COUNT, PULSOUT, PULSIN, FREQOUT or so that take time to be finish. There's so many other way to do what they do using the internal TIMER or so. That way, interrupt will be taken faster.
For all my apps, i always use BASIC interrupt. it's just another way of coding. Hope this help you a bit!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks