About the PWM.

You might be able to use the PULSIN command and pretty much any pin can be used with that.

I do not know the signal you need to read so this is just a thought.