At 04:56 20/10/99 -0400, you wrote: >I've been programming the PIC16F877 using Pic C. My question is about the >interupts. With the Pic16F877 there is just one interupt vector right? So >when ANY interupt happens it goes to the same procedure. In order for this >to be usefull do I set up a "If this Interupt Flag is True then this" kind >of thing or what? I set up a 'ladder' checking the interrupt flags to decide which isr routine to go to. There are probably better ways but mine is just a string of btfsc int1_flag goto int1_routine ... etc etc ... at the interrupt vector, after the context saving code. >And as for the USART interupts. I can understand using >the Recieve Interupt as that would allow you to buffer bytes and then read >them when you get the time, but why would you need a send Interupt? It can tell you when the send buffer is empty so you can go and load some more data without wasting time polling it to find out Nigel