Skip to content

ESP32 RMT Produces unexpected result when loop is True #5787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
peterhinch opened this issue Mar 23, 2020 · 4 comments
Closed

ESP32 RMT Produces unexpected result when loop is True #5787

peterhinch opened this issue Mar 23, 2020 · 4 comments

Comments

@peterhinch
Copy link
Contributor

peterhinch commented Mar 23, 2020

See this forum post

import esp32
from machine import Pin

r = esp32.RMT(0, pin=Pin(27), clock_div=80)
r.loop(1)
r.write_pulses((100, 100, 10, 10), start=0) 

The waveform shows alternate cycles of 100/100μs one correctly followed by a 10/10μs pulse, the other missing this pulse. The value of start does not affect this behaviour.

Tested on the reference board, firmware MicroPython v1.12-211-g9c07c973c on 2020-03-03; ESP32 module with ESP32.

@peterhinch
Copy link
Contributor Author

peterhinch commented Mar 25, 2020

This
Image is what I'm seeing, confirmed on a scope.

Could this be related to #5623?

@ThatDaven
Copy link

Possibly, if the pulse is generated like that, I think it will break, whereas I can't think of a solution to this...

@carstenblt
Copy link

Maybe related to espressif/esp-idf#4664?

@dpgeorge
Copy link
Member

Should be fixed by 3a9d948

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants