Search found 15 matches

by wjxway
Thu Oct 10, 2024 2:50 am
Forum: Hardware
Topic: How to use high priority interrupts
Replies: 3
Views: 6913

Re: How to use high priority interrupts

Same problem, timer interrupt will fail to fire in time when ESP-NOW is active, any solutions?
by wjxway
Wed Apr 03, 2024 8:23 am
Forum: General Discussion
Topic: new rmt driver and ir_nec_transceiver examples not generating proper NEC signals
Replies: 1
Views: 1375

Re: new rmt driver and ir_nec_transceiver examples not generating proper NEC signals

I agree that a simple 'send' option should be added, together with simple ways of registering one's own interrupts. A lot of times it's much simpler and faster for the user to directly generate rmt_item32_t instead of writing a encoder. Not to mention registering custom interrupts could be much more...
by wjxway
Wed Mar 13, 2024 7:35 am
Forum: ESP32 Arduino
Topic: [HELP] RMT single wire bidirectional communication (dshot telemetry)
Replies: 9
Views: 14539

Re: [HELP] RMT single wire bidirectional communication (dshot telemetry)

Hi! I'm also faced with the issue of using bi-directional Dshot on esp32, is it possible at all? Thanks!
by wjxway
Wed Aug 12, 2020 8:03 am
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 16
Views: 14251

Re: Reduce time between two consecutive SPI transfers

Maybe your ISR is being mugged by another ISR? Working out of IRAM/cache will also hurt. I have seen similar with big 2mS hits on I2C transactions to the extant that someone starting producing I2C corruptions. My guess was that Ethernet caused the ISR/bus block but not sure if device or ESP caused ...
by wjxway
Wed Aug 12, 2020 7:57 am
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 16
Views: 14251

Re: Reduce time between two consecutive SPI transfers

Maybe your ISR is being mugged by another ISR? Working out of IRAM/cache will also hurt. I have seen similar with big 2mS hits on I2C transactions to the extant that someone starting producing I2C corruptions. My guess was that Ethernet caused the ISR/bus block but not sure if device or ESP caused ...
by wjxway
Tue Aug 11, 2020 4:30 pm
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 16
Views: 14251

Re: Reduce time between two consecutive SPI transfers

@ESP_Sprite Thanks for your reply, now the polarity is correct and ready to go. There's just one issue left regarding timing. I'm transferring nine 16bits data at a time, and I would like it to happen immediately after I execute the code (or after a fixed, short time delay). If no data is feed in, t...
by wjxway
Mon Aug 10, 2020 3:50 pm
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 16
Views: 14251

Re: Reduce time between two consecutive SPI transfers

Whooo, I have managed to get it working at BCK@40MHz, that is 1.25M@16bits transfers/sec! That is when I'm using a DAC with SPI interface, if someone is using a DAC with I2S interface, the number could ramp up to 2.5M@16bits transfers/sec! The trick is just as described in https://esp32.com/viewtopi...
by wjxway
Mon Aug 10, 2020 2:55 pm
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 16
Views: 14251

Re: Reduce time between two consecutive SPI transfers

You may want to set USE_APLL to 1 as well as use a larger dma_buf_len... could be that the issue is that the ISR gets called too often or that the I2S driver has issues generating the frequencies you need. Hi, my oscilloscope has arrived and I managed to get I2S interface running. Well, the good ne...
by wjxway
Sun Aug 09, 2020 6:14 pm
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 16
Views: 14251

Re: Reduce time between two consecutive SPI transfers

Hey, Not sure about Ardunio but DMA under IDF adds a 20uS+ (ish) hit. A key point is the construction of the SPI transaction. IDF you can create this 'command' on the fly or you can create a command and then reuse. The performance difference is very important as frequency increaces... I am not sure...