That sounds like it could be a clever idea, Gryd3!
I've had an alternative idea as well, just want to run it by you guys to check its feasibility. Could I introduce a low pass filter to convert the PWM to an analog voltage, then use a comparator with a reference voltage chosen to distinguish...