Thanks for both of your help, I had a look at bruce's site and his code for the encoder/decoder project. I borrowed his ASM code that did away with the HPWM altogether and had to add the 25ms delay in there. It works fine now. But I'll still try to get a grip on the HPWM for the 648A just in case i need it for something in the future. I have used it on other chips in the past and got it working just fine, but i don't remember having to worry about setting anything for timer 2. maybe that was just a dream? I've also used Darrels routine to handle pwm needs, but sometimes it just doesn't seem to want to work, even on a regular single channel HPWM... probably something im doing wrong. I'm so on and off again with PICs that I forget half of what I learn after learning it...
Anyway!
Thanks again!
Bookmarks