ESP32-P4 Microcontroller Overview and Datasheet
I. Overview
ESP32-P4 is a high-performance microcontroller (MCU) equipped with a 32-bit RISC-V dual-core processor. It features powerful audio and video processing capabilities, a rich set of peripheral interfaces, and low-power characteristics, making it particularly suitable for Internet of Things (IoT) devices and various smart applications.
👉 ESP32 P4 Smart Display Embedded Boards
👉 more ESP32 Smart Display and Embedded Boards
👉 ESP32-P4 vs ESP32-S3: From AIoT Generalist to Edge Computing Beast
The following is a detailed introduction to the specifications, features, and core capabilities of ESP32-P4, with a focus on its audio and video multimedia capabilities and human-machine interaction support capabilities.
II. Core Specifications
- Processor: 32-bit RISC-V dual-core (up to 400 MHz) and single-core (up to 40 MHz).* High-performance Processor: A 32-bit RISC-V dual-core processor with a clock frequency of up to 400 MHz.
* Low-power Processor: A 32-bit RISC-V single-core processor with a clock frequency of up to 40 MHz.
- Memory: 128 KB HP ROM, 768 KB HP L2MEM, 16 KB LP ROM, 32 KB LP SRAM, 8 KB System TCM.
- External Storage: Supports up to 32 MB PSRAM and 128 MB external flash.
- Package: QFN104 (10×10 mm), suitable for compact designs.
III. Video Image Multimedia Capabilities
- JPEG Codec:
– Supports 8-bit color sampling and raw image formats such as RGB888, RGB565, YUV422, and GRAY.
– Supports compressed image formats such as YUV444, YUV422, and YUV420.
– Static image encoding can reach a resolution of 4K, and the maximum performance of MJPEG encoding is 720p@88fps or 1080p@34fps.
– Static image decoding can reach a resolution of 4K, and the maximum performance of MJPEG decoding is 720p@88fps or 1080p@30fps.
- Image Signal Processor (ISP):
– Maximum resolution of 1920 x 1080.
– Three input channels: MIPI CSI, DVP, and DW-GDMA.
– Input formats support RAW8, RAW10, and RAW12.
– Output formats support RAW8, RGB888, RGB565, YUV422, and YUV420.
– Supports functions such as Bayer domain noise reduction (BF), demosaicing (Demosaic), color correction matrix (CCM), gamma correction, sharpening (Edge), and contrast/hue/saturation/brightness adjustment.
- Pixel Processing Accelerator (PPA):
– Supports image rotation, scaling, and mirroring.
– Supports formats such as ARGB8888, RGB888, RGB565, and YUV420.
– Supports horizontal and vertical scaling, with an 8-bit integer part and a 4-bit fractional part for the scaling factor.
– Supports horizontal and vertical mirroring.
- Camera-LCD Controller:
– Supports 8/16/24-bit parallel output modes and multiple LCD modes such as RGB, MOTO6800, and I8080.
– Supports 8/16-bit parallel input modes and DVP image sensors.
– Supports connecting both LCD and camera devices simultaneously.
- H264 Encoder:
– Supports progressive YUV420 video, with a maximum encoding performance of 1080p@30fps.
– Supports I-frames and P-frames, as well as GOP mode and dual-stream mode.
– Supports 4 x 4 and 16 x 16 partitioning of intra-luminance macroblocks.
– Supports all inter-prediction macroblock partitioning modes: 4 x 4, 4 x 8, 8 x 4, 8 x 8, 8 x 16, 16 x 8, and 16 x 16.
– Supports 1/2 and 1/4 pixel precision motion estimation.
– Supports context-adaptive variable-length coding (CAVLC).
– Supports P-skip blocks, and P slices support I macroblocks.
– Supports quantization result reduction for luminance and chrominance components.
– Supports fixed QP and macroblock-level bitrate control.
– Supports the MV merging function, which can output the MV of each macroblock to memory.
– Supports regions of interest (ROI), with up to 8 rectangular ROI regions at arbitrary positions configurable.
- MIPI Camera Serial Interface (CSI):
– Complies with the MIPI CSI-2 protocol and uses DPHY v1.1.
– 2-lane x 1.5 Gbps, with input formats supporting RGB888, RGB666, RGB565, YUV422, YUV420, RAW8, RAW10, and RAW12.
- MIPI Display Serial Interface (DSI):
– Complies with the MIPI DSI protocol and uses DPHY v1.1.
– 2-lane x 1.5 Gbps, with input formats supporting RGB888, RGB666, RGB565, and YUV422.
– Output formats support RGB888, RGB666, and RGB565.
– Uses video mode to output video streams and supports outputting fixed image patterns.
IV. Audio Multimedia Capabilities
- I2S Controller:
– Three standard I2S interfaces support master and slave modes, as well as full-duplex or half-duplex modes.
– Supports I2S serial 8-bit, 16-bit, 24-bit, and 32-bit data transmission and reception modes.
– Supports BCK clocks with frequencies ranging from 10 kHz to 40 MHz.
– Supports TDM PCM, TDM MSB alignment, TDM standard, and PDM interfaces.
– I2S0 supports PDM-to-PCM input and PCM-to-PDM output.
- LP I2S Controller:
– Only supports slave mode and I2S serial 16-bit data reception mode.
– Supports BCK clocks with frequencies ranging from 10 kHz to 5 MHz.
– Supports TDM PCM, TDM MSB alignment, TDM standard, and PDM RX interfaces.
- Audio PLL Clock:
– Provides a highly configurable, low-jitter, and accurate clock source, supporting frequency adjustment in the range of 6 – 125 MHz.
V. Human-Machine Interaction Support
- Display: 24-bit LCD RGB/I8080 Interface and MIPI DSI for high-res output. – Supports the MIPI DSI interface, suitable for high-speed data transmission.
– Supports 2-lane x 1.5 Gbps, suitable for high-resolution displays.
– Supports output formats such as RGB888, RGB666, and RGB565. - Camera: MIPI CSI and DVP interfaces. – Supports the MIPI CSI interface, suitable for high-speed data transmission.
– Supports 2-lane x 1.5 Gbps, suitable for high-resolution cameras.
– Supports input formats such as RGB888, RGB666, RGB565, YUV422, YUV420, RAW8,RAW10, and RAW12.
– Supports DVP image sensors, suitable for various types of cameras.
– Supports 8/16-bit parallel input modes, suitable for cameras with different resolutions. - Voice Recognition Support: I2S + audio PLL clock for high-fidelity audio input.
– Supports multiple I2S interfaces, suitable for audio input and output.
– Supports various audio formats and sampling rates, suitable for voice recognition and audio processing.
– Supports external microphone connection, suitable for voice recognition and audio acquisition.
VI. Peripheral Interfaces
ESP32-P4 integrates a rich set of peripheral interfaces, supporting multiple communication protocols and sensor interfaces, making it suitable for various application scenarios.
- Communication Interfaces
*UART:
– Five UART interfaces support asynchronous communication (RS232 and RS485) and IrDA.
– Support hardware flow control and software flow control, with a communication rate of up to 5 Mbps.*SPI:
– Multiple SPI interfaces support master and slave modes.
– Support various SPI modes, including 1-bit SPI, 2-bit Dual SPI, 4-bit Quad SPI, QPI, 8-bit Octal SPI, and OPI.
– Support various clock frequency and data length configurations.*I2C:
– Two I2C bus interfaces support master and slave modes.
– Support standard mode (100 Kbit/s), fast mode (400 Kbit/s), and high-speed mode (800 Kbit/s).*I3C:
– One I3C host interface and one I3C slave interface.
– Support SDR mode, dynamic address allocation, and In-Band interrupt.*USB:
– High-speed USB 2.0 OTG supports high-speed and full-speed rates.
– Full-speed USB 2.0 OTG supports full-speed and low-speed rates.
– USB serial/JTAG controller supports CDC-ACM virtual serial port and JTAG adapter functions.*Ethernet MAC:
– Supports data transmission through MII or RMII interfaces.
– Supports IEEE1588-2002 and IEEE1588-2008.
– Supports Energy-Efficient Ethernet (EEE) and Magic Packet detection.*TWAI®:
– Supports the ISO 11898-1 protocol, suitable for automotive and industrial communication.
– Supports standard frame format (11-bit ID) and extended frame format (29-bit ID).
– Supports multiple operation modes, including normal mode, listen-only mode, and self-test mode.*SD/MMC Host Controller:
– Supports SD card versions 3.0 and 3.01, SDIO version 3.0, and CE-ATA version 1.1.
– Supports a clock output of up to 80 MHz and 1-bit, 4-bit, and 8-bit data bus modes. - Sensor Interfaces
*Touch Sensor:
– Supports up to 14 capacitive sensing GPIOs, suitable for touch panels and proximity sensing.
– Supports waterproofing, frequency hopping detection, and digital filtering functions.*Temperature Sensor:
– Built-in temperature sensor with a measurement range of -40 °C to 125 °C.
– Suitable for monitoring the internal temperature of the chip.*Analog-to-Digital Converter (ADC):
– Two 12-bit SAR ADCs support measurement of 14 channels.
– Suitable for collecting and processing various analog signals.*Analog Voltage Comparator:
– Two groups of analog voltage comparators, each containing 2 PADs.
– Suitable for comparing the voltage relationship between two PADs or with an internal stable voltage.
VII. Security Features
- Secure Boot: Firmware authenticity validation.
- eFuse OTP: Unique hardware IDs and secure key storage.
- Encryption Engine: AES, SHA, RSA, ECC, ECDSA, HMAC support.
- Key Manager: PUF-based hardware key generation.
- Access Control: DMA and APB-level permission checks.
VIII. Power Management
ESP32-P4 adopts advanced power management technology and supports multiple power consumption modes, making it suitable for low-power applications.
- Power Consumption Modes:
– Active Mode: The CPU is in operation, and all peripherals can work.
– Light-sleep Mode: The CPU pauses operation, and some peripherals can be turned off to reduce power consumption.
– Deep-sleep Mode: The CPU and most peripherals are powered off, while the low-power memory and some peripherals remain operational.
- Power Management Unit:
– Supports multiple power domains, including the HP power domain, LP power domain, and analog power domain.
– Supports multiple power management functions, such as undervoltage monitoring and power switching.
Application Scenarios
ESP32-P4 is suitable for a variety of application scenarios, including but not limited to:
- Smart Home: Smart home appliance control, smart lighting, smart security, etc.
- Industrial Automation: Industrial equipment control, sensor data acquisition, remote monitoring, etc.
- Healthcare: Medical device monitoring, patient data acquisition, telemedicine, etc.
- Consumer Electronics: Smart speakers, smart cameras, smart watches, etc.
- Smart Agriculture: Environmental monitoring, crop growth monitoring, smart irrigation, etc.
- POS Machines: Payment terminals, data acquisition, and transmission.
- Service Robots: Navigation, obstacle avoidance, human-machine interaction, etc.
- Audio Devices: Music players, voice assistants, audio processing, etc.
- General Low-power IoT Sensor Hubs: Data acquisition and transmission from multiple sensors.
- General Low-power IoT Data Loggers: Data recording and transmission.
Conclusion
ESP32-P4 is a high-performance, low-power microcontroller with powerful audio and video processing capabilities, a rich set of peripheral interfaces, and multiple human-machine interaction support capabilities. It is suitable for a variety of application scenarios, especially IoT devices that require audio and video processing and low-power design. With its high-performance processor, rich peripheral interfaces, and advanced power management technology, ESP32-P4 can meet the requirements of various complex applications, providing developers with a flexible, efficient, and reliable platform.
VIEWE will develop smart displays and solutions with ESP-P4 and MIPI DSI displays for many appliaction scenarios.
Compare ESP32-P4 with ESP32-S3 .

ESP32-S31 vs ESP32-S3: 320MHz RISC-V Architecture, PPA Acceleration, and the Future of Smart Displays

Creating an IoT Smart Weather Dashboard: ESP32-S3 HMI & LVGL Tutorial

ESP32-P4 vs ESP32-S3,From AIoT Generalist to Edge Computing Beast


