SmartSnippets DA1459x SDK
Macros

Settings for the different clock-types of the chip. More...

Macros

#define dg_configUSE_LP_CLK   LP_CLK_RCX
 Low Power clock used (LP_CLK_32768, LP_CLK_RCX, etc.) More...
 
#define dg_configLP_CLK_SOURCE   LP_CLK_IS_ANALOG
 Source of Low Power clock used (LP_CLK_IS_ANALOG, LP_CLK_IS_DIGITAL) More...
 
#define dg_configEXT_LP_IS_DIGITAL   (0)
 External LP type. More...
 
#define dg_configMIN_SLEEP_TIME   (33*3)
 Minimum sleep time. More...
 
#define dg_configRC32K_FREQ   (32000)
 Value of the RC32K oscillator frequency in Hz. More...
 
#define dg_configLP_CLK_DRIFT   (500)
 Acceptable clock tick drift (in parts per million) for the Low-power clock. More...
 
#define dg_configXTAL32K_SETTLE_TIME   (8000)
 Time needed for the settling of the LP clock, in msec. More...
 
#define dg_configXTAL32M_SETTLE_TIME_IN_USEC   (0x0)
 XTAL32M maximum expected settling time. More...
 
#define dg_configENABLE_XTAL32M_ON_WAKEUP   (1)
 Enable XTAL32M upon system wake-up. More...
 
#define dg_configWAKEUP_NORMAL   (300)
 The time in us needed to wake-up in normal wake-up mode. More...
 
#define dg_configWAKEUP_FAST   (12)
 The time in us needed to wake up in fast wake up mode. More...
 
#define dg_configDEFAULT_CLK_RC32M_REG_RC32M_BIAS__VALUE   (0xD)
 RC32M trimming default settings.
 
#define dg_configDEFAULT_XTAL32M_TRIM_REG__XTAL32M_TRIM__VALUE   (0x45)
 XTAL32M trimming default settings.
 

Detailed Description

Settings for the different clock-types of the chip.

APP EXPERT-only

Macro Definition Documentation

◆ dg_configENABLE_XTAL32M_ON_WAKEUP

#define dg_configENABLE_XTAL32M_ON_WAKEUP   (1)

Enable XTAL32M upon system wake-up.

If set to 1 the PDC will enable XTAL32M when it wakes-up M33

◆ dg_configEXT_LP_IS_DIGITAL

#define dg_configEXT_LP_IS_DIGITAL   (0)

External LP type.

  • 0: a crystal is connected to XTAL32Kp and XTALK32Km
  • 1: a digital clock is provided.
Note
the frequency of the digital clock must be 32KHz or 32.768KHz and be always running.
APP EXPERT-only

◆ dg_configLP_CLK_DRIFT

#define dg_configLP_CLK_DRIFT   (500)

Acceptable clock tick drift (in parts per million) for the Low-power clock.

APP

◆ dg_configLP_CLK_SOURCE

#define dg_configLP_CLK_SOURCE   LP_CLK_IS_ANALOG

Source of Low Power clock used (LP_CLK_IS_ANALOG, LP_CLK_IS_DIGITAL)

APP

◆ dg_configMIN_SLEEP_TIME

#define dg_configMIN_SLEEP_TIME   (33*3)

Minimum sleep time.

No power savings if we enter sleep when the sleep time is less than N LP cycles.

Note
It should be ~3msec but this may vary.
APP EXPERT-only

◆ dg_configRC32K_FREQ

#define dg_configRC32K_FREQ   (32000)

Value of the RC32K oscillator frequency in Hz.

APP

◆ dg_configUSE_LP_CLK

#define dg_configUSE_LP_CLK   LP_CLK_RCX

Low Power clock used (LP_CLK_32768, LP_CLK_RCX, etc.)

APP
Warning
Only the LP_CLK_RCX option is available for WLCSP packages.

◆ dg_configWAKEUP_FAST

#define dg_configWAKEUP_FAST   (12)

The time in us needed to wake up in fast wake up mode.

This is the maximum time needed to wake-up the chip and start executing code.

APP EXPERT-only

◆ dg_configWAKEUP_NORMAL

#define dg_configWAKEUP_NORMAL   (300)

The time in us needed to wake-up in normal wake-up mode.

This is the maximum time needed to wake-up the chip and start executing code in normal wake-up mode.

APP EXPERT-only

◆ dg_configXTAL32K_SETTLE_TIME

#define dg_configXTAL32K_SETTLE_TIME   (8000)

Time needed for the settling of the LP clock, in msec.

APP EXPERT-only

◆ dg_configXTAL32M_SETTLE_TIME_IN_USEC

#define dg_configXTAL32M_SETTLE_TIME_IN_USEC   (0x0)

XTAL32M maximum expected settling time.

Time (in usec) reserved by the system for the settling of XTAL32M (from enabling XTAL32M till the XTAL32M_READY bit is set). This defines the start value to be set to the XtalRdy counter, which basically determines how soon the XTALR32M_RDY IRQ will fire every time Xtal32M is enabled (e.g. on each wakeup of the system).

Note
If dg_configENABLE_XTAL32M_ON_WAKEUP == 1, this time is taken into account by the power manager when setting up the sleep time of the system (i.e. the system will make sure that it wakes up a little sooner than actually required, so that XTAL32M has settled by then). Thus, using a very high value will reduce the sleep time of the system considerably!
If set to zero, the maximum settling time will be calculated automatically at startup.