Glad to hear it. The bad news is that HPWM doesn't go down as low as 50 hertz, unless you use a really low osc speed. You have to go down to 0.5 mhz to get there. And, unfortunately you have to tell pbp that it is running at 4mhz. This will make a pause 2000 16 seconds. It can be compensated for, but a bit of a pain. And it limits you to 32 steps of speed. I think I talked about this back on post 199. Maybe that's why you tried to go back to PWM. But as you saw, PWM is effected by blocking commands, like pause.
http://www.picbasic.co.uk/forum/show...5908#post85908
I don't have a 16F887, but I just ordered a sample, so I can help test some options for you.
Walter
http://www.scalerobotics.com
Bookmarks