Search found 4 matches

by erikclaij
Thu Apr 16, 2020 7:30 am
Forum: ESP-IDF
Topic: SPI master starting transfer for ISR
Replies: 4
Views: 4783

Re: SPI master starting transfer for ISR

Hi, Thanks for your response. No I am not sure it take's a lot of time, but if timing is getting critical you want the best. In my current project I have a very strict timing but with only one device on a SPI bus (and register level coding of the SPI bus). It is amazing how little you need to do to ...
by erikclaij
Tue Apr 14, 2020 3:30 pm
Forum: ESP-IDF
Topic: SPI master starting transfer for ISR
Replies: 4
Views: 4783

Re: SPI master starting transfer for ISR

Hi ESP_Sprite, Thank you for your response. Yes that would be some kind of a solution. But with 1 ms timing and other important things to do it is getting difficult. The other way is a combination of vTaskSuspend() and vTaskResume(). This is probably a little faster. Would it be possible to just cha...
by erikclaij
Tue Apr 14, 2020 2:31 pm
Forum: ESP-IDF
Topic: SPI master starting transfer for ISR
Replies: 4
Views: 4783

SPI master starting transfer for ISR

Hi all, For a project I need to start a SPI master transfer from a ISR. There are 2 devices on the bus and it is oke to wait for a transfer of the other device to complete. So spi_device_queue_trans should do the trick. Transfers to these devices are not synchronized and use a limited bandwidth of t...
by erikclaij
Fri Oct 27, 2017 6:44 pm
Forum: General Discussion
Topic: Using timeout on UART receiver
Replies: 1
Views: 3711

Using timeout on UART receiver

Hi, I am using the ESP32 uart for a RS485 half duplex connection. I need a way to stop waiting for data on RX. The loop I do: - Send a RS485 command (500 kBaud) - Wait for data or timeout in +/-25 us It is completly IRQ based. One way to do this is maybe a hardware timer with a irq. Maybe it is also...