Change System clocks to internal RC oscillators

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
rajucoolsuraj
Offline
Last seen:7 months 2 days ago
加入:2018-12-12 16:09
Change System clocks to internal RC oscillators

Hello Dialog,

I have an immediate requirement to eliminate the external 32KHz and 16MHz crystals for the SoC operation.

The reason being to make the system design without additional components other than the SoC.

I need all the steps to change the SDK 6.0.10 to take clocking completely from the internal RC oscillators than including the external crystals.

(#An immediate help is required. Thanks)

Thank you

regards

Raju

(HONEYWELL)

Device:
PM_Dialog
Offline
Last seen:9 hours 25 min ago
工作人员
加入:2018-02-08 11:03
Hi rajucoolsuraj,

Hi rajucoolsuraj,

Regarding the 16MHz clock you should use the crystal oscillator because if you don’t use it, the device cannot be used in the active mode. You cannot use the internal RC 16MHz for this scope, so you have to use the XTAL16M oscillator. Regarding the 32KHz clock, only if the DA14585 is configured in buck mode you can use the RCX20 with the following procedure:

  • #define CFG_LP_CLK LP_CLK_RCX 20 in da1458 x _ config_advanced.h header file
  • Undefine the CFG_XTAL16M_ADAPTIVE_SETTLING from da1458x_config_advanced.h header file. The XTAL16M adaptive settling algorithm works only with XTAL23K and not with RCX

Thanks, PM_Dialog

rajucoolsuraj
Offline
Last seen:7 months 2 days ago
加入:2018-12-12 16:09
Thanks Dialog;

Thanks Dialog;

Also,

How to verify the system integrity with using XTAL 16 MHz and RC 30 Khz with settings indicated by you?

Thank you

Raju

(HONEYWELL)

PM_Dialog
Offline
Last seen:9 hours 25 min ago
工作人员
加入:2018-02-08 11:03
Hi rajucoolsuraj,

Hi rajucoolsuraj,

Please try to run an example of the SDK6 which includes any of sleep modes, for instance the ble_app_sleepmode example. Are you able to advertise and wake up? You could use the power profiler of SmartSnippets toolbox to check it.

Thanks, PM_Dialog

rajucoolsuraj
Offline
Last seen:7 months 2 days ago
加入:2018-12-12 16:09
Hello dialog,

Hello dialog,

Thanks for the solution but --

To enable DA14586 operation in Buck Mode -

PMU_CTRL_REG (FORCE_BUCK, 0x01);

DCDC_CTRL2_REG(DCDC_TON, 0x02);

DCDC_CTRL2_REG(DCDC_AUTO_CAL, 0x01);

DCDC_CTRL3_REG(BUCK_ENABLE, 0x01);

the above configuration should be handled from system_init() ??

If not, what is the procedure to put DA14586 in Buck Mode and where to add code in SDK 6.0.10?

Thanks

Raju

PM_Dialog
Offline
Last seen:9 hours 25 min ago
工作人员
加入:2018-02-08 11:03
Hi rajucoolsuraj,

Hi rajucoolsuraj,

Regarding the datasheets, the DA14585 supports both buck and boost mode, but the DA14586 supports only buck mode. If you check our SDK examples, you will see that in system_init() function we automatically calibrate the DC-DC converted ( SetBits16(DCDC_CTRL2_REG, DCDC_AUTO_CAL, 0); ). Also, if you have a custom board, you shloud follow the schematic described in Figure 4: Lithium Coin Cell Powered System Diagram (Buck mode) of the DA14586 datasheet.

Thanks, PM_Dialog

rajucoolsuraj
Offline
Last seen:7 months 2 days ago
加入:2018-12-12 16:09
Hello Dialog,

Hello Dialog,

Yes, I could observe the operating mode (BUCK) through probing.

Also, Can I know if the 'GPIO ' voltage can be made to operate at 1.8V range rather than 3 V range in BucK mode.

If so, what is the procedure to change in software?

THanks

PM_Dialog
Offline
Last seen:9 hours 25 min ago
工作人员
加入:2018-02-08 11:03
Hi rajucoolsuraj,

Hi rajucoolsuraj,

In boost mode (only DA14585), the voltage of the pins is configurable, using the GPIO_ConfigurePinPower() you can either configure the output to be powered from the 1V rail or the 3V rail (which is supplied from the DCDC when in boost mode). In buck mode (both DA14586 and DA14585), this is not applicable.

Thanks, PM_Dialog