WRITE_REGISTER

Role

Write a configuration register (address 0200 to 02FF) or a template register (address 0300 to 03FF) to the non-volatile memory.

Depending on the configuration-defined access conditions, this instruction may be restricted to secure communication only, or disabled.

Note

In factory, this function is also able to write a constant register (address 0100 to 01FF). This feature is disabled by setting bit 0 "Lock constants" in the Fuses. Once this is done, calling this instruction with an address below 0200 returns an error.

Access condition

Depending on the configuration-defined access conditions and on the type of host interface (Local / Remote), this instruction may either be freely usable, restricted to communications authenticated by HostCommAdminKey only, or disabled.

Command

Field Value
CLA 58 (CONTROL)
INS 82
Data bytes 0-1 Address of the register (MSB-first)
Data next bytes New register value (empty to erase)

Response

None

Warning

The new configuration is taken in account only after a reset. Use the RESET instruction to reset the device immediately.