Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

Conducting low power testing of Qinheng Micro RISC-V Bluetooth chip ...... by Jinchen

Introduction

As a BLE Bluetooth chip, low power operation mode is essential.

This article takes the CH585 as an example to test the low power mode of the Qinheng Micro RISC-V Bluetooth chip.

I am Jinchen, with the same name across the internet, striving to write each series of articles sincerely, without exaggeration or compromise, treating the knowledge we learn with seriousness. Jinchen, where perseverance opens the way!

1. Basic Testing

The official example provides a low power program, as shown in the figure below:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

1.1 Four Low Power Modes

The example implements four different low power modes, corresponding to the official documentation:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

We will first operate through the serial port to observe the sequence:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

Each time, GPIO5 is triggered by a falling edge to wake up. During our testing, we did not connect the serial port to avoid increasing power consumption.

1.2 Device Connection

Power the development board using VCC, do not connect to 3V3, as shown in the schematic:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

1.3 Test Results

We provide the test results of the development board according to the above sequence.

IDLE mode sleep

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

Halt mode sleep

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

Sleep mode sleep

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

Shut down mode sleep

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

The actual measurements are consistent with the official documentation.

2. BLE Low Power

The above example is a simple low power test. When using the Bluetooth chip, we need to focus on low power consumption during Bluetooth operation.

Of course, Qinheng Micro’s Bluetooth chip supports low power consumption, and the implementation is very straightforward.

Typically, Bluetooth slave devices require low power consumption. We will test the official slave example <span>CH585EVT\EVT\EXAM\BLE\Peripheral</span>.

Generally, the host does not require low power, but it can also support low power if needed; this will be introduced separately later.

First, let’s look at the normal slave example without low power consumption.

Broadcast state:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

Connection state:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

It can be seen that when not broadcasting, the power consumption is around 8mA.

2.1 Enabling Low Power for Bluetooth Slave

Enabling low power is very simple; you just need to add a macro definition, as shown in the figure below:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

After setting, recompile and download.

When the Qinheng Micro RISC-V Bluetooth chip runs BLE, the sleep-wake is automatically completed by the self-developed TMOS event scheduler. Tasks wake the MCU when needed (when TMOS executes tasks, the RTC will wake the MCU), and it sleeps when idle. Users only need to add TMOS tasks as required.

2.2 Test Results

When broadcasting does not send messages, the power consumption drops to around 8uA:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

In connection state, it is the same; as long as no messages are sent, it enters low power mode:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

3. Other Notes

Some supplementary notes on low power consumption are included in this section (continuously updated).

3.1 Internal DCDC

Even if we enable low power with <span>HAL_SLEEP=1</span>, we can still enable the internal DCDC to further reduce power consumption.

We can see the DCDC code at the beginning of the <span>main</span> function in the example code:

#if(defined(DCDC_ENABLE)) &amp;&amp; (DCDC_ENABLE == TRUE)
    PWR_DCDCCfg(ENABLE);
#endif

As long as we enable <span>HAL_SLEEP=1</span> in the same way, we can also set <span>DCDC_ENABLE=1</span>, or modify it in <span>CONFIG.h</span> to enable the internal DCDC. The DCDC is efficient and saves more power (you can test it yourself; I won’t set up the environment for testing again = =!).

It should be noted that using the internal DCDC requires a 10uH inductor and a 4.7uF capacitor on the hardware side. For the CH585, the required pins are pin 1, pin 2, and pin 35, as shown in the circuit diagram below:

Low Power Testing of Qinheng Micro RISC-V Bluetooth Chip

Conclusion

This article tested the low power consumption of the Qinheng Micro chip using the CH585 as an example and demonstrated how to enable low power while running Bluetooth. The usage of other Qinheng Micro RISC-V Bluetooth chips is generally consistent.

There are also detailed power consumption test tables written by Qinheng Micro engineers available on the official forum or online, which you can refer to and choose the appropriate chip based on your needs.

That’s all for this article, thank you all!

Leave a Comment