Hello.
I want more precise and fine control of built-in PWM module of 16F1939, Since HPWM statement allows only 8 bit setting, and on each launch it re-starts the HPWM module, which makes not so good sound, when HPWM is used as sound generator. So for this, I need to directly write to two registers, in my case, LSB bits 0 and 1 go into CCP2CON bit 4 and bit 5, and remaining 8 bits go to CCPR2L register.
So as I understand, I need to do the following

CCP2CON.4=X DIG 0
CCP2CON.5=X DIG 1
CCPR2L.0=X DIG 3
CCPR2L.1=X DIG 4
CCPR2L.2=X DIG 5

and so on.
But I guess, there should be some simpler way of doing this?