# Ultra Low Power (ULP) coprocessor

[中文]

The Ultra Low Power (ULP) coprocessor is designed to perform tasks while the main CPU is in deep sleep mode, allowing for power savings and extended battery life in applications. The ULP coprocessor can monitor sensors, control peripherals, and handle other tasks that do not require the main CPU's computing power. It can also wake up the main CPU when specific conditions are met, such as when a sensor reading exceeds a predefined threshold.

The ULP coprocessor on a chip may include one or more of the following types, but only one can operate at a time:

- ULP FSM: A finite state machine (FSM) based ULP coprocessor. It is suitable for simple tasks, as applications for this type must be written using assembly language or C macros. This type is supported by ESP32, ESP32-S2, and ESP32-S3.

- ULP RISC-V: A RISC-V based ULP coprocessor. It offers enhanced computational capabilities and flexibility, making it suitable for more complex applications written in C. This type is supported by ESP32-S2 and ESP32-S3.

- ULP LP Core: A RISC-V based ULP coprocessor that combines the advantages of the ULP RISC-V type with additional features, such as extended memory access, broader peripheral access, a debug module, and an interrupt controller. This coprocessor is capable of operating even when the entire system is active. This type is supported by ESP32-C5, ESP32-C6, ESP32-P4, and upcoming chips.

NOTE: Chips like ESP32-S2 and ESP32-S3 support both ULP FSM and ULP RISC-V. User can enable both of them in menuconfig at compile time, and choose which one to use at run time.

- ULP LP Core Coprocessor Programming

Code examples for this API section are provided in the system/ulp directory of ESP-IDF examples.

Was this page helpful?

- Thank you! We received your feedback.
- If you have any comments, fill in Espressif Documentation Feedback Form.

- We value your feedback.
- Let us know how we can improve this page by filling in Espressif Documentation Feedback Form.