28.2.83 __builtin_write_RPCON
Description
Initiates a write to RPCON register by issuing the correct unlock sequence and setting the RPCON register. Interrupts may need to be disabled for proper operation.
Prototype
void __builtin_write_RPCON(uint16_t value);
Argument
value
– Specified value to save to RPCON register
Return Value
None
Example Instruction Sequence
mov #0x55, Wn
mov Wn, _NVMKEY
mov #0xAA, Wn
mov Wn, _NVMKEY
mov value, _RPCON
Error Messages
None