Hi bruce,
Thank you for your quick reply, and yes apparently this chip is pretty complicated but well I do not mindit's challenging.
I have tried your code, changing the register "PTPERH" seems to do changing, I now have around 66% duty cycle.
Now i'm looking at the datasheet of the pic page 187, and I am wondering one thing and maybe it has to do something with my duty cycle problem.
Figure 18-11 shows the duty cycle comparison. Now PTMR(H and L) has 14 bits with 2 reserved for a clock and PDC(H and L) register has 14 bits as well.
However, tell me if I am wrong but the analog digital converter module only operate on 10 bit. Would this be one of the reason ?
If I could figure this out, it'd be amazing.. Thank you again for your help, I really appreciate !


it's challenging.


Bookmarks