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

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed May 03, 2017 1:48 am

Yes, the threshold field is an 16-bit one.

jesseb
Posts: 29
Joined: Tue Jan 10, 2017 5:36 pm

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

Postby jesseb » Wed May 03, 2017 5:44 pm

@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.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » Thu May 04, 2017 1:13 am

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.

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

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

Postby jcsbanks » Fri Mar 23, 2018 3:24 pm

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.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 60 guests