Page 2 of 2

Re: Urgent Need for Pulse Width Measurement, Register/Hardware Descriptions Would Work

Posted: Wed May 03, 2017 1:48 am
by Sprite
Yes, the threshold field is an 16-bit one.

Re: Urgent Need for Pulse Width Measurement, Register/Hardware Descriptions Would Work

Posted: Wed May 03, 2017 5:44 pm
by jesseb
@ESP_igrr I tried larger values for the idle threshold but when I have those values I only get channel 0 error interrupt. There must be something else wrong with my code.

Re: Urgent Need for Pulse Width Measurement, Register/Hardware Descriptions Would Work

Posted: Thu May 04, 2017 1:13 am
by igrr
Can't run your code here to test (it doesn't compile without dependencies), but another thing is that you aren't clearing carrier-related fields of rmt_config. So the RMT may be expecting to see a carrier wave.

Re: Urgent Need for Pulse Width Measurement, Register/Hardware Descriptions Would Work

Posted: Fri Mar 23, 2018 3:24 pm
by jcsbanks
Was this fixed? Think I might be having the same issue here: viewtopic.php?f=13&t=5122

When I increase the idle_threshold to 12000 or beyond (including 65535), I get an error. I am trying to understand the error code. I get similar error codes by putting in frequencies that should work too.