yet again tis me thats at fault.... many thanx to bruce for his code example. the mistake i was making was that i was calling the hpwm routine which seemed to be causing a conflict. instead i just wrote the duty val directly to the port ie portb.5=duty5 ... simple! lol this took many hours of hair loss and alcohol !!!!!!. only 1 teeny weeny prob left lol... i cant get the ch's to go to full off . they get to say 9% and stay there. so a faint glow is visible but apart from that everything is aok. dimming is as smooth as a babys ass and im a happy bunny.( irish saying).. many many thanks to bruce n the rest of u guys.. slainte...

thanx
oscar.