hi bruce, thanx for your reply.

i have tryed in vain to get your code working cos when i try to compile it it says the following..

error hwpm.asm 'ie name of project


undefined symbol ccp3con


it wont recognise the ccp3con setup for some reason.....

hence it wont compile.!!

i had another look at the pbp manual and its very misleading re hpwm as it makes referance to hpwm3 etc yet it does not state that a max of 2 x hpwm are available in pbp!!!! so one would assume that the ref to hpwm3 etc would mean it could use any available hpwm port on a particular chip !!!!!! arrrgggggggggggggggg

oscar