28.2.72 __builtin_write_OSCCONH
Description
Unlocks and writes its argument to OSCCONH.
Interrupts may need to be disabled for proper operation.
This builtin
function can be used as a part of a complex sequence
discussed in your device data sheet or Family Reference Manual (FRM). See these
documents for more information.
Prototype
void __builtin_write_OSCCONH(unsigned char value);
Argument
value
– character to be written
Return Value
None
Assembler Operator/ Machine Instruction*
mov #0x78, w0
mov #0x9A, w1
mov __OSCCON+1, w2
mov.b w0, [w2]
mov.b w1, [w2]
mov.b value, [w2]
Error Messages
None
* The exact sequence may be different.