Change to RCOSC mode in Arduino ·How do I disconnect TCXO?

Asked 2 years ago, Updated 2 years ago, 360 views

In order to reduce standby power during DeepSleep, we would like to do the following:
After searching, I found the following statement:

Power Consumption for SPRESENSE and Other Platforms | Visualize and Analyze SPRESENSE Power Consumption

By setting the CPU clock to RCOSC mode (HV mode, unlock LV mode) and board_xtal_power_control(false) before transitioning to Deep-Sleep, power consumption during Deep-Sleep can be greatly reduced.

How do I do this in Arduino?
Thank you for your cooperation.

spresense

2022-09-30 22:00

1 Answers

From Arduino, you can also run with the following code:

#include<LowPower.h>
# include <arch/board/board.h>// Add

void setup() {
  // LowPower Library Initialization
  LowPower.begin();

  // Change CPU Clock to RCOSC Mode
  LowPower.clockMode (CLOCK_MODE_8MHz);
  
  // Power Off TCXO
  board_xtal_power_control(false);
}

void loop() {
}

Limited to apps that can run at 8 MHz, but can reduce power considerably.


2022-09-30 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.