Well, after hammering away at this for ages, I tried allsorts, TMR0,TMR1 timers with no avail as it dosnt help when I cant fully follow the datasheets for them etc (maybe one day it'll click!
)
In the end I removed the
Code:
CCPR1L = PH1PWR >>2
CCP1CON.5 = PH1PWR.1
CCP1CON.4 = PH1PWR.0
CCPR2L = PH2PWR >>2
CCP2CON.5 = PH2PWR.1
CCP2CON.4 = PH2PWR.0
from the interupt and as a last ditch attempt simply stuck in 2 HPWM functions in my main loop like this:
Code:
HPWM 1,PH1PWR,1000
HPWM 2,PH2PWR,1000
and crossed everything I could as it was a total shot in the dark and bingo! it works 
I was getting really fed up with not been able to crack it, but just shows that sometimes going back to simpleton mode works lol!!!
Was surprised no one could offer any tips though, but in some ways it can help to be out on a limb and forces you to keep hammering away as it can pay off (thankfully while ive still got hair on my head
)
Mark
Bookmarks