I am really struggling with the PIC12F683 PWM module, duty cycle.

Moving on from my recent post regarding 38khz modulator, I can not find enough information in the datasheet about how to write
the duty cycle % or time into the two registers. The problem is that i can see examples posted here, but can't see how thay fit into the
calculation for duty cycle in the datasheet.


If anyone could explain how the 10 bits (8 Bits + 2Bits) are actually written or how the calculation works i would be grateful.....


Gordon,,