Chapter 4. Software framework
– You can also use SPI DMA as an alternative to RMT to solve this issue. For more details, please refer to
the
SPI DMA LED strip
• If you are in the product selection stage, it is recommended to use ESP32-S3 RMT.
How can I quickly adapt other infrared protocols based on the IR NEC example in ESP-IDF?
You can utilize
RMT Encoder
protocols.
ESP32-S3 RMT supports configuring 4 RMT RX/TX channels. Why does it fail when creating more than 2
RMT TX channels in a row using rmt_new_tx_channel?
• This is because the mem_block_symbols parameter configured in the tx_chan_config structure is too large. On
ESP32-S3, the size of each dedicated memory block for RMT is 48 bytes. If the mem_block_symbols parameter
exceeds 48, creating a TX channel will actually occupy the memory block of the next adjacent channel as well.
Therefore, if you want to create and use 4 RMT RX/TX channels simultaneously, the mem_block_symbols
parameter should not exceed 48.
• Please note that the size of each dedicated memory block for RMT on ESP32 is 64 bytes.
Can ESP32-S3 RMT achieve synchronized output for multiple TX channels?
• Yes, please refer to the following code snippet:
rmt_channel_handle_t tx_channels[TEST_RMT_CHANS];
rmt_sync_manager_handle_t synchro
rmt_sync_manager_config_t synchro_config
.tx_channel_array
.array_size
=
};
rmt_new_sync_manager(&synchro_config, &synchro);
for
(int
i
=
0; i
rmt_transmit(tx_channels[i], led_strip_encoders[i], leds_grb, TEST_LED_
NUM
*
3, &transmit_config);
→
}
How can I achieve cyclic data transmission using the RMT TX channel on ESP32-S3, such as an infinite loop?
• You can realize infinite loop transmission by setting the rmt_transmit_config_t::loop_count to -1. For more
details, please refer to
Does the ESP32-S3 support One-Wire?
• ESP32-S3 supports
One-Wire bus protocol
"esp-idf/examples/peripherals/rmt/
Espressif Systems
example.
based on the
IR NEC example
=
=
tx_channels,
TEST_RMT_CHANS,
<
TEST_RMT_CHANS; i++) {
Initiate TX
Transaction。
with the RMT peripheral. For specific applications, please refer to
onewire_ds18b20".
Submit Document Feedback
to expedite the adaptation of other infrared
NULL;
=
{
75
Release master
Need help?
Do you have a question about the ESP and is the answer not in the manual?