Specifications
www.ti.com
Standard Initialization Sequence for Hercules Microcontrollers
The Hercules MCUs also have a separate Flash bank (bank #7) that is dedicated for data storage. This
bank can be used to emulate an EEPROM. Accesses to this Flash bank are configured via a separate
EEPROM Emulation Configuration Register (EEPROM_CONFIG) in the Flash module. A write operation
to the EEPROM_CONFIG register must first be enabled by configuring the Flash State Machine Write
Enable Control Register (FSM_WR_ENA).
Once the access to the FSM control registers is enabled, the read access to the Flash bank 7 can be
configured.
2.12 Configure Flash Bank and Pump Power Modes
The Flash banks and pump used on the Hercules series microcontrollers support three different operating
modes to optimize power consumption.
• Active mode
– Flash bank sense amplifiers and sense reference are enabled
– All circuits of Flash charge pump are enabled
• Standby mode (only for Flash banks)
– Flash bank sense reference is enabled but sense amplifiers are disabled
• Sleep Mode
– Flash bank sense amplifiers and sense reference are disabled
– All circuits of Flash charge pump are disabled
The Flash banks and charge pump are in the active state by default and after any system reset. The Flash
module allows the application to configure “fall back” power states for the Flash banks and charge pump.
The Flash banks and pump automatically switch the power mode to the selected fall back state when
there is no access to the Flash banks detected within a user-configurable time.
The Flash module also contains special timers to automatically sequence the Flash banks and pump
between the active and the selected fall-back states. A read access to any Flash bank that is in a non-
active power state “wakes up” both the selected bank and the charge pump to active power state.
Programming and erase operations are only allowed on banks in active state.
The Flash Bank Access Control Register (FBAC) controls the Flash banks’ power states.
The Flash Pump Access Control Registers (FPAC1, FPAC2) control the Flash pump's power states.
2.13 Configure Oscillator Monitor
The HF LPO clock source is used as a reference clock for monitoring the main oscillator. A failure is
detected if the oscillator frequency falls outside the range: {f
HFLPO
/ 4, f
HFLPO
*4}.
The HF LPO frequency varies significantly over process corners as well as with changes in the core
supply (VCC) and temperature. The Hercules microcontrollers allow the application to trim the HF LPO
such that the application can choose the operating frequency point of the HF LPO. This in turn determines
the valid range of oscillator frequency.
During device test, a trim value is written into the one-time programmable section of the Flash memory
(OTP), address 0xF008_01B4. Bits 31:16 of this OTP word contain a 16-bit value that may be
programmed into Low Power Oscillator Monitor Control Register (LPOMONCTL) in order to initialize the
trim for HF LPO.
Alternatively, the application can use the dual-clock compare (DCC) module to determine the trim setting
for the HF LPO. The DCC module allows for comparison of two clock frequencies. Once the HF LPO is
determined to be in-range with the initial HFTRIM setting from the OTP, the crystal oscillator may be used
as a reference against which the HF LPO and LF LPO may be further adjusted. For more details, see the
device-specific technical reference manual.
9
SPNA106D–May 2013 Initialization of Hercules™ ARM
®
Cortex™-R4F Microcontrollers
Submit Documentation Feedback
Copyright © 2013, Texas Instruments Incorporated