I would like to use CCP1 to interrupt a process and then measure time periods (i.e. time pulse is high and low). Does anyone know where I can find a code template (PIC assembly) to get started on this? I'm looking for something that shows timer1 setup and CCP1 setup. I'm using a PIC16F819 but any chip in this family would help to get me started.