
Public Version
www.ti.com
PRCM Use Cases and Tips
3.7.1.3.1 Device SmartReflex Initialization
1. Initialize the SmartReflex module.
Assuming that the SR_ALWON_FCLK has a frequency of 38.4 MHz, and the target SR_CLK
frequency is 100 kHz (optimal frequency), the SRCLKLENGTH is set to 192 (0x0C0).
[21:12] SRCLKLENGTH
0x0C0
Calculated from
[6] EN_SR1
0x1
SR1 functional clock enable
[7] EN_SR2
0x1
SR2 functional clock enable
Sensor core parameters are set and the sensor core is enabled.
[1] SENNENABLE
Configured according to the settings in
eFuse
[4:3] SENPENABLE
See
, Parameter
Configuration.
[10] SENENABLE
0x1
Enable the sensor module.
Assuming that an accumulator time window of 5 ms is to be fixed and SR_CLK frequency is 100 kHz,
the ACCUMDATA is 500 (0x1F4). The minimum/maximum/average block parameters are set and
enabled.
[31:22] ACCUMDATA
0x1F4
Calculated from
.
[1:0] SENP
Provided after silicon characterization
[3:2] SENN
[8] MINMAXAVGENABLE
0x1
Enable the minimum/maximum/average.
Assuming that OPP130 is selected as the initial operating point for VDD1, and OPP100 is selected as
the initial operating point for VDD2, the corresponding reciprocal reference value parameters are read
from the corresponding eFuse data (see
, Parameter Configuration).
[23:20] SENPGAIN
Configured according to the settings in
eFuse
[19:16] SENNGAIN
for the current operating voltage level
[15:8] RNSENP
See
, Parameter
Configuration.
[7:0] RNSENN
[9] ERRORGENERATORENABLE
0x1
Enable the error generator.
The interrupt generator parameters and interrupts are set. By default, all interrupts are masked. The
voltage processor bounds interrupt is unmasked.
For details about the interrupts, see
[18:16] ERRWEIGHT
Provided after silicon characterization
[15:8] ERRMAXLIMIT
[7:0] ERRMINLIMIT
[22] VPBOUNDSINTENABLE
0x1
Enable the voltage processor bounds
interrupt.
[1] MCUBOUNDSINTSTATENA
0x1
Enable the MCU valid interrupt.
2. Initialize the voltage processor.
The error offset and gain values for the voltage converter are provided after system characterization.
PRCM.PRM_VPn_CONFIG[31:24]
Depends on the characteristics of the SMPS
ERROROFFSET
PRCM.PRM_VPn_CONFIG[13:16]
ERRORGAIN
451
SWPU177N – December 2009 – Revised November 2010
Power, Reset, and Clock Management
Copyright © 2009–2010, Texas Instruments Incorporated