RMT UART using New "driver/rmt_tx.h" and "driver/rmt_rx.h" driver

Sachin.Sanghani
Posts: 2
Joined: Mon Mar 20, 2023 12:16 pm

RMT UART using New "driver/rmt_tx.h" and "driver/rmt_rx.h" driver

Postby Sachin.Sanghani » Mon Mar 20, 2023 12:29 pm

Hi,

I am using the ESP32S3 with latest IDF version( 5.0 ). I found that in the latest IDF version RMT driver got updated.

I made code change and I was able to generate UART frame using new RMT driver. But when I check the waveform on the analyzer, I found the default status of the GPIO is LOW. I want to change the default status of the GPIO to be HIGH.
Any suggestion/Thoughts will be helpful.
Thanks.
Attachments
Screenshot from 2023-03-20 17-58-19.png
In this Image I have send data 0xAA at 9600 baud rate with 1 start bit and 1 stop bit.
Screenshot from 2023-03-20 17-58-19.png (13.58 KiB) Viewed 1005 times

MicroController
Posts: 1194
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: RMT UART using New "driver/rmt_tx.h" and "driver/rmt_rx.h" driver

Postby MicroController » Tue Mar 21, 2023 1:44 am

Try setting the invert_out flag in rmt_tx_channel_config_t (and then also invert your encoding, of course).

Sachin.Sanghani
Posts: 2
Joined: Mon Mar 20, 2023 12:16 pm

Re: RMT UART using New "driver/rmt_tx.h" and "driver/rmt_rx.h" driver

Postby Sachin.Sanghani » Tue Mar 21, 2023 11:33 am

MicroController wrote: Try setting the invert_out flag in rmt_tx_channel_config_t (and then also invert your encoding, of course).
Thanks for the replay.
This is what I was looking for.

Who is online

Users browsing this forum: Bing [Bot] and 130 guests