Search found 3 matches
- Mon Apr 16, 2018 10:13 pm
- Forum: General Discussion
- Topic: [SPI master] Wait some bit time??
- Replies: 3
- Views: 6220
Re: [SPI master] Wait some bit time??
Found drivers/spi_master_utils.c Anyone has any idea what miso_delay_mode does and how to set it? //Configure polarity //SPI interface needs to be configured for a delay in some cases. int nodelay=0; if (host->no_gpio_matrix) { if (effclk >= apbclk/2) { nodelay=1; } } else { uint32_t delay_limit = a...
- Mon Apr 16, 2018 9:23 pm
- Forum: ESP-IDF
- Topic: Max tx length of spi_transaction_t?
- Replies: 13
- Views: 21932
Re: Max tx length of spi_transaction_t?
Trying to read ca. 1000 bytes over SPI at 16MHz. Any working example on a continuous SPI read with read size larger than 4 bytes? Could only find spi_master_utils.c , but only NODMA mode, and the input buffer is limited to 4 bytes, why? This causes 4 bytes read, long pause of tens of microseconds, n...
- Fri Mar 16, 2018 9:52 am
- Forum: ESP-IDF
- Topic: How to synchronize PWM timers
- Replies: 0
- Views: 3611
How to synchronize PWM timers
Need to generate 1) fast clock on PinX and 2) slow clock on PinY, but the phase needs to be synchronized. How do you synchronize two PWM channels? I have found the MCPWM module, but do not understand how to use it in an example. Anyone did something similar? int mcpwm_sync0_in_num; /*!<SYNC0 in pin*...