Page 1 of 1

ESP32-WROOM-32 - Use RMT with REF_TICK

Posted: Wed Mar 04, 2020 3:37 pm
by zampano
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

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

Posted: Tue Mar 17, 2020 8:53 am
by zampano
I think the pulse filter clock is only APB_CLK so I used pwm peripheral and this works for me.