Thanks for your reply.
I would prefer to have a hardware timer, but if nobody offers a different solution, I'll have to use them.
Search found 29 matches
- Tue Oct 01, 2024 11:45 am
- Forum: ESP-IDF
- Topic: Need more timers on ESP32-S3
- Replies: 2
- Views: 292
- Tue Oct 01, 2024 3:15 am
- Forum: ESP-IDF
- Topic: Need more timers on ESP32-S3
- Replies: 2
- Views: 292
Need more timers on ESP32-S3
I used all 4 timers on my ESP32-S3 project and I found out I'll need some more. I previously worked on some other MCU that had a similar number of timers, but had a MCP module that had it's own timers that were available. I can see that ESP32-S3 also has MCPWM module with timers so I was wondering i...
- Fri May 24, 2024 12:08 pm
- Forum: ESP-IDF
- Topic: Can't get quad SPI work on the slave side, ESP32-S3
- Replies: 0
- Views: 574
Can't get quad SPI work on the slave side, ESP32-S3
I have two ESP32-S3s connected to each other and I'm trying to send data from one to the other. I have verified with the oscilloscope that the master side is sending the data correctly on all four data lines and SCK/CS. After that I configured the slave like this: typedef struct SPI_settings_s{ spi_...
- Mon Mar 25, 2024 8:31 pm
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1752
Re: SPI signal @16MHz looks terrible
I was hoping for 40Mhz, so yes, 16MHz is a bare minimum.
- Mon Mar 25, 2024 1:42 pm
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1752
Re: SPI signal @16MHz looks terrible
It's ok, found it, gpio_set_drive_capability. It helped a bit.
- Mon Mar 25, 2024 12:21 pm
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1752
Re: SPI signal @16MHz looks terrible
How can I do that?
- Mon Mar 25, 2024 8:42 am
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1752
Re: SPI signal @16MHz looks terrible
OK, I've shortened the length of wires by half and now it looks better. Still far from perfect, but I guess it will be fine when all components are on one PCB.
If anybody have any suggestions on still improving the signal, it would be much appreciated.
If anybody have any suggestions on still improving the signal, it would be much appreciated.
- Mon Mar 25, 2024 7:54 am
- Forum: ESP-IDF
- Topic: SPI signal @16MHz looks terrible
- Replies: 6
- Views: 1752
SPI signal @16MHz looks terrible
I've created dual SPI @16MHz, connected it's output to the controller itself, pins declared as inputs. I've connected SCK and MOSI to oscilloscope and the signal looks awful. I haven't tried to receive SPI message yet, but it's hardly going to work if it looks that bad. The connection wires are with...
- Wed Mar 20, 2024 8:29 pm
- Forum: ESP-IDF
- Topic: Dual SPI Master/Slave on esp32s3
- Replies: 6
- Views: 999
Re: Dual SPI Master/Slave on esp32s3
Finally got it. What I needed to define was flags in spi_device_interface_config_t used in spi_bus_add_device(SPI_settings.host, &SPI_settings.devcfg, &SPI_settings.spi) .devcfg = { .command_bits = 0, .address_bits = 0, .mode = 0, //SPI mode 0 .clock_speed_hz = SPI_MASTER_FREQ_40M .spics_io_num = 10...
- Wed Mar 20, 2024 6:25 pm
- Forum: ESP-IDF
- Topic: Dual SPI Master/Slave on esp32s3
- Replies: 6
- Views: 999
Re: Dual SPI Master/Slave on esp32s3
It seems dual is not working at all? I tried different flags, like .flags = SPICOMMON_BUSFLAG_MASTER | SPICOMMON_BUSFLAG_GPIO_PINS | SPICOMMON_BUSFLAG_SCLK | SPICOMMON_BUSFLAG_DUAL | SPI_DEVICE_HALFDUPLEX Ever time the error is the same: E (183) spi_master: check_trans_valid(704): Incompatible when ...