Re: OC1 and interrupts
Its an old question, but the answer is simple: When using timers as source, the timer isr needs to be used for this.
Enable timer IE and you can add/change frequency/duty within the isr.
Also! I've seen lots of wrong information in Microchips datasheets, like "enabling T3 ISR" with 0x1000, which is input compare (not even output compare ..), which should be 0x4000.
Also they mention 0x40 as OC1 ISr, which is IC1 and should be 0x80 (output compare ISR).
I can't imagine your still busy whith this, but if anyone have issues, I've some code examples.