If Timer1 is clocked by internal Instruction Clock FOSC/4, or a clock signal that is synchronized with FOSC/2,
TMR1H = RestoreValue >> 8;
TMR1L = RestoreValue & 0x00FF;
when RTCC update have been processed.
Note that buffered timer Read / Write mode RD16 should be enabled.
Edit: This sentence in Datasheet DS40001919C-page 307, section 21.5 is wrong:
When a write request of the TMRxL register is requested, the TMRxH buffer register is simultaneously updated with the contents of the TMRxH register.
Sentence should rather be:
When a write request of the TMRxL register is
requested, the TMRxH register
updated with the contents of the TMRxH buffer register
The new value for TMRxH must be preloaded into the
TMRxH buffer register prior to the write request for the TMRxL
register. This provides the user with the ability to write
all 16 bits to the TMRxL:TMRxH register pair at the
post edited by Mysil - 2019/02/28 00:04:05