ESP32-WROOM-32 - Use RMT with REF_TICK

zampano
Posts: 10
Joined: Sun Feb 17, 2019 9:53 pm

ESP32-WROOM-32 - Use RMT with REF_TICK

Postby zampano » Wed Mar 04, 2020 3:37 pm

Hi,
I need to use one ESP32-WROOM-32 to decode an OOK radio signal with minimum pulse of 250us and idle time of 10ms. When there isn't radio signal the receiver has a very noisy output and so I need to filter small pulses but the maximum interval I can set using APB_CLK is 255 * 1/APB_CLK and it is too short. So I need to use REF_CLK as clock. I've forced RMT_REF_ALWAYS_ON_CH to 0 but the ring buffer doesn't return any data while using APB_CLK it works.
To test it I started from SDK ir_protocols example.

Many thanks

zampano
Posts: 10
Joined: Sun Feb 17, 2019 9:53 pm

Re: ESP32-WROOM-32 - Use RMT with REF_TICK

Postby zampano » Tue Mar 17, 2020 8:53 am

I think the pulse filter clock is only APB_CLK so I used pwm peripheral and this works for me.

Who is online

Users browsing this forum: No registered users and 162 guests