peterhinch / micropython_ir

Nonblocking device drivers to receive from IR remotes and for IR "blaster" apps.
MIT License
240 stars 51 forks source link

Corrupted transmission on RP2 during heavy load #40

Closed ThinkTransit closed 3 months ago

ThinkTransit commented 3 months ago

When the RP2 is under heavy load (high cpu/irq activity) it is possible for the the PIO interrupts which feed the transmit buffer to be delayed, resulting in malformed IR signals. This is particularly evident when wifi is active and data is is being transferred.

In the worst case delays of up to 30ms can be experienced.

Suggest that the existing PIO routines could be fed using DMA rather than interrupts.

peterhinch commented 3 months ago

I'll close this as I think we've fixed the problem.