PreviousNext
Accessing 16-bit MCU registers
Help > Appendix > Code Optimization > Accessing 16-bit MCU registers

FLASH                         RAM                Speed

 

Undocumented CC5X (parenthesis) trick can be used to map to the byte pair of the 16-bit MCU variable without warning.

 

  CCPR2L = 0x34;

  CCPR2H = 0x12;

  uns16 CCPR2 @ ( &CCPR2L );

  CCPR2 = 0x1234;