Search found 22 matches
- Thu Dec 15, 2022 6:53 am
- Forum: ESP-IDF
- Topic: About implementing Simple FOC using ESP32
- Replies: 1
- Views: 2770
Re: About implementing Simple FOC using ESP32
Use in-phase current sensing and you can sample independently from the PWM state.
- Sat Nov 05, 2022 5:11 am
- Forum: Hardware
- Topic: max devices per SPI controller
- Replies: 0
- Views: 1178
max devices per SPI controller
I need to attach a few slave devices to the SPI master on an ESP32-S3. I am reading the documentation at: https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/spi_master.html At the top of the page, it says "SPI2 has 6 CS lines. SPI3 has 3 CS lines." So I imagine I...
- Tue Aug 31, 2021 1:46 pm
- Forum: ESP-IDF
- Topic: RS485 RTS control too slow
- Replies: 6
- Views: 5482
Re: RS485 RTS control too slow
Wait! I just found a much easier solution to the problem. I realized that adding the ESP_INTR_FLAG_IRAM flag to the uart_driver_install() function places the interrupt handler in RAM instead of FLASH. Apparently, the default behavior is to store the ISRs in flash, which makes their execution super s...
- Tue Aug 31, 2021 10:27 am
- Forum: ESP-IDF
- Topic: RS485 RTS control too slow
- Replies: 6
- Views: 5482
Re: RS485 RTS control too slow
Thank you so much, that sounds really wonderful and reassuring!!
Now I need to figure out how to work with custom interrupts and then will post back the results.
Now I need to figure out how to work with custom interrupts and then will post back the results.
- Tue Aug 31, 2021 12:39 am
- Forum: ESP-IDF
- Topic: RS485 RTS control too slow
- Replies: 6
- Views: 5482
Re: RS485 RTS control too slow
Ok, I see, thank you, I will try that. In any case this is not an out of the blue requirement. This kind of encoder interface protocol is very standard in the automation industry and there are zillions of servo drives out there reading encoder data without any issue. A dedicated HW solution would be...
- Mon Aug 30, 2021 9:18 am
- Forum: ESP-IDF
- Topic: RS485 RTS control too slow
- Replies: 6
- Views: 5482
RS485 RTS control too slow
I am using the UART interface to read the position of an absolute encoder via RS485 half-duplex at 2.5Mbps. I send a request byte to the encoder and receive a few bytes in response. The encoder starts sending the response data about 3us after it receives the request byte. It all technically works, e...
- Sat Jun 05, 2021 10:01 am
- Forum: General Discussion
- Topic: how fast can a GPIO change direction?
- Replies: 1
- Views: 2618
how fast can a GPIO change direction?
I need to read data from a Tamagawa encoder over a differential line. I am planning to use RMT to send request bits and to read the response. However, I only have one pin left in the ESP32, so I need to switch its direction from output to input between the request and the response. According to the ...
- Mon May 10, 2021 3:48 am
- Forum: ESP-IDF
- Topic: I2S parallel access to external RAM
- Replies: 4
- Views: 3920
Re: I2S parallel access to external RAM
Ok, thank you, I understand. The mention of "EDMA" in the manual got me a bit excited, but from what you say I have to guess that the feature is not really fully implemented yet.
- Sun May 09, 2021 11:16 am
- Forum: ESP-IDF
- Topic: I2S parallel access to external RAM
- Replies: 4
- Views: 3920
Re: I2S parallel access to external RAM
Is there any way to find an answer to this? I would like to use the ESP32 in this new product we are developing, but if I can't use the parallel stream then I will have to choose a different microcontroller.
- Wed Apr 28, 2021 4:41 am
- Forum: ESP-IDF
- Topic: how to redistribute a custom component
- Replies: 1
- Views: 2052
how to redistribute a custom component
I am using ESP-IDF V4.3 and just went through the "Build System" docs (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html) without finding my answer. What I want to do is basically pack some source code into a component and then redistribute the component to oth...