Hi, Gmg

You could use another Pic pin for "slamming" down the descending part of the signal : input when rising, ouput low when descending.

may be also use a slamming buffer with a BS170 i.e. ... ( ~ 3 ohms Rds on )

just an idea

signal is pretty clean for a PWM filtered generator ...

Alain