Search found 11 matches

by huykhacnguyen
Thu Jun 07, 2018 2:23 pm
Forum: General Discussion
Topic: Anyone knows how to use I2S in Master Rx in LCD mode
Replies: 5
Views: 9817

Re: Anyone knows how to use I2S in Master Rx in LCD mode

I check the datasheet, it says about Camera Slave Receive mode, it seems that ESP32 could not support Camera Master Receive mode :(
If so, I need to build an external oscillator that supplies clock to both I2S's clock and FIFO data read clock.
by huykhacnguyen
Thu Jun 07, 2018 2:07 pm
Forum: General Discussion
Topic: Anyone knows how to use I2S in Master Rx in LCD mode
Replies: 5
Views: 9817

Re: Anyone knows how to use I2S in Master Rx in LCD mode

Hi kolban, Thanks for the reply. It gives hope that someone can help me out :) Regards to using I2S in Master Rx in LCD mode, I think it is not supported yet because the datasheet says LCD Master Transmitter and Camera Slave Receiver when it mentions LCD mode of I2S. Actually, I tried to modify this...
by huykhacnguyen
Wed Jun 06, 2018 1:45 pm
Forum: General Discussion
Topic: Anyone knows how to use I2S in Master Rx in LCD mode
Replies: 5
Views: 9817

Anyone knows how to use I2S in Master Rx in LCD mode

Hi all, I would like to have ESP32 to read 8-bit data from external FIFO memory. Basically, ESP32 needs to provide clock to the FIFO and read 8 data lines from the FIFO. I plan to utilize I2S in LCD mode and in Master Rx mode. Does anyone know how to configure I2S in Master RX and LCD mode? Thanks, ...
by huykhacnguyen
Tue May 22, 2018 1:59 am
Forum: General Discussion
Topic: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?
Replies: 8
Views: 10273

Re: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?

Yes, I think something missing, but dont know what is it :(
Need help from community to solve this, not only for me, but also for others if they want to use QSPI mode because I see ESP32 does not have example code for SPI in QSPI mode. :|
by huykhacnguyen
Mon May 21, 2018 2:55 pm
Forum: General Discussion
Topic: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?
Replies: 8
Views: 10273

Re: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?

Anyways - that's what I observed - there is already a memory data to be read in form of uint8_t rx_data[4] Yes, you can read every 4bytes for each transaction if you specify the flag SPI_USE_RXDATA, if you want to read more data in one transaction, SPI_USE_RXDATA should not be used and you can inpu...
by huykhacnguyen
Mon May 21, 2018 8:57 am
Forum: General Discussion
Topic: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?
Replies: 8
Views: 10273

Re: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?

Also your receive code is wrong rx_data contains already allocated bytes from interrupt.
That may not true. As I check, the SPI driver will record my Rx buffer so that it can write received data into in interrupt.
Anyway, I will give a try to double check my understanding.

Thanks
by huykhacnguyen
Mon May 21, 2018 8:54 am
Forum: General Discussion
Topic: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?
Replies: 8
Views: 10273

Re: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?

Hi, I do not use SPI_USE_TXDATA, SPI_USE_RXDATA flags because I want to define a generic SPI Tx/Rx functions that can transfer arbitrary buffers from other modules. Besides, I check the SPI driver code and see that these flags is just to define whether SPI driver should use data from its internal 4-...
by huykhacnguyen
Sun May 20, 2018 4:02 am
Forum: General Discussion
Topic: Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?
Replies: 8
Views: 10273

Why IO2 of VSPI in QSPI mode is always read as 0 in Receiving phase?

Hi all, I try to use VSPI in QSPI mode to increase communication speed. ESP32 can write out register address, but when it reads back register data, IO2 bit is always read as 0 although it is 1 in a probed waveform. Here is my code to configure VSPI in QSPI mode: spi_device_handle_t spi; spi_bus_conf...
by huykhacnguyen
Sat May 19, 2018 10:57 am
Forum: General Discussion
Topic: How to use QSPI mode on VSPI peripheral
Replies: 2
Views: 7055

Re: How to use QSPI mode on VSPI peripheral

Hi all, Sorry for long back on this. I can configure in QSPI mode with below code: spi_device_handle_t spi; spi_bus_config_t buscfg={ .miso_io_num = GPIO_NUM_19, .mosi_io_num = GPIO_NUM_23, .sclk_io_num = GPIO_NUM_18, .quadwp_io_num = GPIO_NUM_22, .quadhd_io_num = GPIO_NUM_21, .max_transfer_sz= 16*3...