28.2.147 __builtin_write_CRYOTP

Architecture

dsPIC33C/E/F, dsPIC30

Description

Initiates a write to the Crypto OTP by issuing the correct unlock sequence and setting the CRYWR bit.

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_CRYOTP(void);

Argument

None

Return Value

None

Example Instruction sequence

mov   #0x55, Wn
mov   Wn, _CRYKEY
mov   #0xAA, Wn
mov   Wn, _CRYKEY
bset  _CRYCON, #0
nop
nop

Error Messages

None