Unlock sequence for PIC24
Hi all, how are you?. I'm trying to configure my oscillator on a PIC24EP, for efects of simulation in Proteus the PIC24FJ has the same unlock sequence than the PIC24EP, so:
In the PIC24FJ and EP reference manual appears this code in assembler for doing the unlock sequence but how can I do this without applying explicit asm(...) in c?, or just by simply setting the OSCCON value like in the following thread https://www.microchip.com/forums/m1108733.aspx
the compiler itself manage to do the unlock sequence without me to be explicitly involved?
Addition: I've found in the XC16 users manual the built-in functions the following functions:
which the manual says they can unlock the OSCCON register. -->is this the answer?
Thanks in advance for the help.