Search found 118 matches

by ESP_houwenxiang
Mon Dec 02, 2019 2:29 am
Forum: Hardware
Topic: i2s parallel only works with one dma descriptor
Replies: 23
Views: 18933

Re: i2s parallel only works with one dma descriptor

Hi, Baldhead Can you provide a simple project that can reproduce your issue? I don't need your entire project, just an example that can make I2S work in your configuration. The code you provided before is missing the I2S configuration and I cannot make it work in my environment. I would appreciate i...
by ESP_houwenxiang
Fri Nov 29, 2019 6:31 am
Forum: Hardware
Topic: i2s parallel only works with one dma descriptor
Replies: 23
Views: 18933

Re: i2s parallel only works with one dma descriptor

Hi,

I think it's no use to reset the tx fifo, can you try resetting the tx module with the following code?

Code: Select all

void i2s_reset(void)
{
        I2SX.conf.tx_reset = 1;
        I2SX.conf.tx_reset = 0;
}
by ESP_houwenxiang
Fri Nov 29, 2019 6:16 am
Forum: Hardware
Topic: i2s lcd mode data out idle state level
Replies: 6
Views: 6495

Re: i2s lcd mode data out idle state level

Hi, Baldhead

the data out idle state level is 0, when the data, when the data transmission is complete and reset tx mode(tx_reset = 1; tx_reset = 0;), the data line will return to 0.
by ESP_houwenxiang
Fri Nov 29, 2019 3:35 am
Forum: ESP-IDF
Topic: Allocate 2 buffers in specific address at different memory banks
Replies: 38
Views: 31319

Re: Allocate 2 buffers in specific address at different memory banks

Hi, Baldhead

Sorry that the ESP32 I2S DMA cannot meet your needs. To drive this LCD, you can only use 32-bit mode, and you need to convert bytes to words. But our upcoming ESP32-S2 can drive your LCD well.
by ESP_houwenxiang
Thu Nov 28, 2019 2:55 am
Forum: ESP-IDF
Topic: Allocate 2 buffers in specific address at different memory banks
Replies: 38
Views: 31319

Re: Allocate 2 buffers in specific address at different memory banks

Hi, Baldhead The I2S DMA of ESP32 only have 16 bit or 32 bit mode, and the DMA length should be at least 4 byte length. .e.g: If the DMA buffer is 4 byte length and is filled with 0x12345678, when the `bit_mode = 8`, you will see 0x34, 0x78 appear on the bus. which means data on the line is always 2...
by ESP_houwenxiang
Wed Nov 27, 2019 1:01 pm
Forum: ESP-IDF
Topic: Allocate 2 buffers in specific address at different memory banks
Replies: 38
Views: 31319

Re: Allocate 2 buffers in specific address at different memory banks

Hi, Baldhead

Thank you for your suggestion. Due to hardware limitations, the DMA transfer data size is at least one word long. Can you provide an LCD data sheet, maybe we can use 16-bit mode to drive it.

thanks !!
by ESP_houwenxiang
Thu Nov 14, 2019 7:40 am
Forum: General Discussion
Topic: UART Communication problems at 921600
Replies: 14
Views: 25401

Re: UART Communication problems at 921600

What I have noticed however is if I send 1400 bytes the uart_read_bytes returns a value in the range of 1390. If I send 600 bytes I get a len of approx 596. Hi, LukeSkyWire Have you enabled hardware flow control? At 1M baud, the CPU can read out the data in fifo in time. But At 2M baud-rate, the CP...
by ESP_houwenxiang
Mon Nov 04, 2019 10:58 am
Forum: ESP-IDF
Topic: i2s_write losing data due to fail to return update pointer
Replies: 11
Views: 12384

Re: i2s_write losing data due to fail to return update pointer

Hi, chadpham75

Yes, your processing is correct, because the I2S driver does not automatically clear the buffer, the old data will be repeated unless you write new data.
by ESP_houwenxiang
Mon Oct 28, 2019 9:09 am
Forum: General Discussion
Topic: ESP32-WROOM Occasional reset, and then locked in bootloader WDT
Replies: 10
Views: 11283

Re: ESP32-WROOM Occasional reset, and then locked in bootloader WDT

Hi, cdDave
I think this problem is caused by the power supply of flash. Can you measure the voltage of the following three points with an oscilloscope(When the chip always restart)? because we don't have your hardware to do test.

1: VCC of ESP32
2: VCC of flash
3: EN pin of ESP32



thanks !!
by ESP_houwenxiang
Mon Oct 28, 2019 7:45 am
Forum: General Discussion
Topic: MCPWM Capture Mode
Replies: 3
Views: 8080

Re: MCPWM Capture Mode

HI, jw--rt
How many channels do you need to measure? and why do you think that the precision of the PCNT module is not enough?

I would like to suggest you use the PCNT module. You can get the RPM by counting the number of pulses in 100ms.
thanks !!