Hi Dale, I'm new to the CCS compiler, can you show the resulting code of this program? I'm curious on how the compiler does it's job. I've ordered CCS, but haven't received it yet, so can't do it myself :) If it's too large for the list, email is another option. Regards, Claudio -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Dale Botkin Sent: vrijdag 15 maart 2002 0:16 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: interrupts programmed in C Here's something you might find useful: struct time { char hours; char minutes; char seconds; } elapsed; int32 clock; // TIMER0 interrupt service routine. Update the elapsed // time counter. #int_rtcc void tmr0_int() { <> -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics