English
Language : 

LM3S1N16 Datasheet, PDF (297/794 Pages) Texas Instruments – Stellaris® LM3S1N16 Microcontroller
Stellaris® LM3S1N16 Microcontroller
verified, and their values read back before they are committed, at which point they become
non-volatile. If a value in one of these registers has not been committed, any type of reset restores
the last committed value or the default value if the register has never been committed. Once the
register contents are committed, the only way to restore the factory default values is to perform the
sequence described in “Recovering a "Locked" Microcontroller” on page 166.
To write to a non-volatile register:
■ Bits can only be changed from 1 to 0.
■ For all registers except the BOOTCFG register, write the data to the register address provided
in the register description. For the BOOTCFG register, write the data to the FMD register.
■ The registers can be read to verify their contents. To verify what is to be stored in the BOOTCFG
register, read the FMD register. Reading the BOOTCFG register returns the previously committed
value or the default value if the register has never been committed.
■ The new values are effectively immediately for all registers except BOOTCFG, as the new value
for the register is not stored in the register until it has been committed.
■ Prior to committing the register value, any type of reset restores the last committed value or the
default value if the register has never been committed.
To commit a new value to a non-volatile register:
■ Write the data as described above.
■ Write to the FMA register the value shown in Table 7-2 on page 298.
■ Write the Flash memory write key and set the COMT bit in the FMC register. These values must
be written to the FMC register at the same time.
■ Committing a non-volatile register has the same timing as a write to regular Flash memory,
defined by TPROG, as shown in Table 20-19 on page 755. Software can poll the COMT bit in the
FMC register to determine when the operation is complete, or an interrupt can be enabled by
setting the PMASK bit in the FCIM register.
■ When committing the BOOTCFG register, the INVDRIS bit in the FCRIS register is set if a bit
that has already been committed as a 0 is attempted to be committed as a 1.
■ Once the value has been committed, any type of reset has no effect on the register contents.
■ Changes to the BOOTCFG register are effective after the next reset.
■ The NW bit in the USER_REG0, USER_REG1, USER_REG2, USER_REG3, and BOOTCFG
registers is cleared when the register is committed. Once this bit is cleared, additional changes
to the register are not allowed.
Important: After being committed, these registers can only be restored to their factory default values
by performing the sequence described in “Recovering a "Locked"
Microcontroller” on page 166. The mass erase of the main Flash memory array caused
by the sequence is performed prior to restoring these registers.
January 21, 2012
297
Texas Instruments-Production Data