RMT - simplest receive example working, but idle_threshold problem
Re: RMT - simplest receive example working, but idle_threshold problem
Thanks, I'll see if this works for my project. Cheers!
Re: RMT - simplest receive example working, but idle_threshold problem
Hello everyone,
That last solution works like a charm for me! It's a bit hacky, but whatever!
What I changed is: I just readout the first value in memory and immediately after that use:
Thank you @jcsbanks for putting your time into investigating that!
Additionally, it solves my problem in my post viewtopic.php?t=12873.
I just haven't thought about using the RMT module.
Best regard,
jw--rt
That last solution works like a charm for me! It's a bit hacky, but whatever!
What I changed is: I just readout the first value in memory and immediately after that use:
Code: Select all
rmt_item32_t* item = nullptr; // NULL
rmt_rx_start(RMT_CHANNEL_N, true);
for(;;)
{
item = (rmt_item32_t*) (RMT_CHANNEL_MEM(RMT_CHANNEL_N));
// Do math with item->duration0 and item->duration1
rmt_memory_rw_rst(RMT_CHANNEL_N);
vTaskDelay(DELAY_TIME_MS/portTICK_PERIOD_MS);
}
Additionally, it solves my problem in my post viewtopic.php?t=12873.
I just haven't thought about using the RMT module.
Best regard,
jw--rt
Last edited by jw--rt on Wed Nov 13, 2019 9:50 pm, edited 3 times in total.
Re: RMT - simplest receive example working, but idle_threshold problem
Is that loop ever going to be blocked/yield or just burn up CPU cycles?
Re: RMT - simplest receive example working, but idle_threshold problem
Hello,
good point. For completeness, I edited my answer.
Best regards,
jw--rt
good point. For completeness, I edited my answer.
Best regards,
jw--rt
Who is online
Users browsing this forum: MSN [Bot] and 18 guests