Jan-Erik, The interrupt happens every 100mS. So for a one second delay I need=20 to execute ten interrupts. But I just don't understand how to do this.=20 Argh, this is so frustrating. I wish I could get it. Thanks, rich! What goes here?? void Interrupt(){ //if (TMR1IF_bit){ TMR1IF_bit =3D 0; TMR1H =3D 0x0B; TMR1L =3D 0xDC; //Enter your code here (and what goes here??) } } On 7/19/2014 2:21 PM, Jan-Erik Soderholm wrote: > OK. > > You put whatever you want your processor to do > whenever an interrupt happens. And that is VERY > application depending... :-) > > Noone else that you know what your code should > do, can we? > > Note that the function with the "interrupt" attribute > is just as any other function in your code. The only > difference is that you never make a direct call to > it from your main() code, it is called automaticly > by the interrupt hardware logic within the processor > whenever an interrupt happens. > > But besides of that, the ISR containse just ordinary > XC8 code just as any other code in your application. > > Jan-Erik. > > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .