Register Protection
TMS320F2837xD Microcontroller Workshop - System Initialization 5 - 21
Register Protection
LOCK Protection Registers
“LOCK” registers protects several system
configuration registers from spurious CPU writes
Once LOCK register bits are set the respective
locked registers can no longer be modified by
software
A series of “lock” registers can be used to protect several system configuration settings from
spurious CPU writes. After the lock registers bits are set, the respective locked registers can no
longer be modified by software.
EALLOW Protection
(1 of 2)
EALLOW stands for Emulation Allow
Code access to protected registers allowed
only when EALLOW = 1 in the ST1 register
The emulator can always access protected
registers
EALLOW bit controlled by assembly level
instructions
‘EALLOW’ sets the bit (register access enabled)
‘EDIS’ clears the bit (register access disabled)
EALLOW bit cleared upon ISR entry, restored
upon exit