Pommie,
I think I understand the capture and compare feature now.
I breadboarded it but can't get it to work. All the breadboard
has is a 470ohm resistor and an led going to ground on PORTA.0.
PORTA doesn't toggle at all, I must be missing something.
I can get it to work if I hang my scope probe on RB6. Otherwise
PORTA.0 is always high.
Probe specs are:
Attenuation: 1X / 10X
Input resistance: 1M / 10M
Input capacitance: 1*85pF-120pF
It shouldn't need a pullup since the 60HZ is comming off a CMOS
buffer and it's a nice 5V square wave.
I have external interrupts enabled, maybe that's a problem.
I notice in my project menu CCP1 is assigned to RB0.
Any suggestions?
If I can get this working it's exactly what I need.
jerryd