Hi,
If it is an input/output channel 0 you want to use, you can get an interrupt when counting 1 - 65535 pulses.
You can also get an interrupt for every positive of negative pulse, and in the interrupt you can read the TCH0 register to check the bit count. Note that this count is like the time of day. To get the width of the pulse, you need to subtract the old count from the new count.
But to give more information, I need some more information on what you want to do.
Is it an input- or output channel you want to have?
What kind of performance do you want?
Anything else that could be of interest?
Regards,
Ake