Which method and at what speed are you talking about?
Even at 10MHz with midrange pic I can:
Code:
loop:
outputpin = inputpin
goto loop
and that starts to get somewhat intelligible, but you couldn’t do anything with it.
If I sample the audio frequency for a period, then set the HPWM,
I find the more often I set the HPWM, the less gate time I get to count the input.