::I want get freq of 80K so I can drive my Mosfet Is your DSPIC running with the same crystal frequency - you might need to=20 alter the divisor in the Macro. As far as the duty cycle is concerned, if 0 =3D 0 duty cycle and 65536 =3D= =20 100%, then it would seem logical that 50% would be somewhere around half of= =20 65536, but I don't know if the PDC1 takes 16 bit numbers, if it is a 16 bit= =20 register then that would be a good place to start, if it isn't you need to= =20 look at the formula in the datasheet for the chip. Colin -- cdb, colin@btech-online.co.uk on 20/09/2011 =20 Web presence: www.btech-online.co.uk =20 =20 Hosted by: www.justhost.com.au =20 =20 This email is to be considered private if addressed to a named individual= =20 or Personnel Department, and public if addressed to a blog, forum or news= =20 article. =20 =20 =20 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .