Search found 12 matches

by ta-mat
Sat Feb 03, 2018 10:14 pm
Forum: General Discussion
Topic: ESP32 & Shift register
Replies: 6
Views: 13214

Re: ESP32 & Shift register

Short answer is no. But yes. (1) No. Since 74HC595 is not an SPI device, as @permal described, you can't use 74HC595 as SPI device. (2) But yes. You can use ESP32's SPI as bit stream output device for 74HC595 as @WiFive wrote. If you choose (2), I recommend you to refer "7. SPI" in the ESP32 technic...
by ta-mat
Tue Jan 09, 2018 7:16 pm
Forum: General Discussion
Topic: VGA output: Can SPI make and send infinite circular buffer?
Replies: 12
Views: 20981

Re: VGA output: Can SPI make and send infinite circular buffer?

So far, I'm trying to use my code with "real" app. It's kinda work but way too slow (30..40fps) for 240MHz x 2 chip :(
Perhaps, reading from flash and/or SPI DMA drag the system.
something-esp32.gif
something-esp32.gif (2.49 MiB) Viewed 5237 times
by ta-mat
Tue Jan 09, 2018 7:11 pm
Forum: General Discussion
Topic: VGA output: Can SPI make and send infinite circular buffer?
Replies: 12
Views: 20981

Re: VGA output: Can SPI make and send infinite circular buffer?

Hi, HermannSW
Thanks for the valuable info. Since you have a lot of experience and ESP32 has great capability, I'm sure that you can implement far far better than me. I hope community will see your superb achievement.
by ta-mat
Sat Jan 06, 2018 4:47 pm
Forum: General Discussion
Topic: VGA output: Can SPI make and send infinite circular buffer?
Replies: 12
Views: 20981

Re: VGA output: Can SPI make and send infinite circular buffer?

Hi, I've revamped my code at https://github.com/t-mat/esp32-vga-experiment . I've refactored almost all codes, but major changes are (1) Remove LED_PWMs (2) Use two RMT channels instead of LED_PWM. (3) Add proper V-Sync, H-Sync interrupt. (H-Sync interrput is not exposured though) (4) Change bitmap ...
by ta-mat
Fri Jan 05, 2018 5:42 pm
Forum: General Discussion
Topic: How can I reset internal counter in RMT channels?
Replies: 1
Views: 3765

Re: How can I reset internal counter in RMT channels?

I think I've found how I can reset internal counter. It seems when RMT channel reaches the end of TX state, it resets its internal counter automatically. And since I want to reset the channel which uses tx_conti_mode=1, I must set tx_conti_mode=0 firstly. I can reset and see stable behaviour of RMT ...
by ta-mat
Sat Dec 30, 2017 3:24 pm
Forum: General Discussion
Topic: Happy Holidays! (W/ binary for your ESP32!)
Replies: 19
Views: 29275

Re: Happy Holidays! (W/ binary for your ESP32!)

Hey, videos and sounds are working fine here :)
Happy Holidays!

P.S. Scrollers and Trackers forever!!
by ta-mat
Sat Dec 30, 2017 5:25 am
Forum: General Discussion
Topic: How can I reset internal counter in RMT channels?
Replies: 1
Views: 3765

How can I reset internal counter in RMT channels?

Hi, I'm trying to set precise delay between two RMT channels which are set as continuous mode (RMT_CHnCONF1_REG.RMT_TX_CONTI_MODE_CHn = 1). I supposed that I can reset RMT channels' internal timers/counters by the following code. But I failed to reset them. So far, this code can change delay between...
by ta-mat
Sun Dec 24, 2017 9:10 am
Forum: General Discussion
Topic: VGA output: Can SPI make and send infinite circular buffer?
Replies: 12
Views: 20981

Re: VGA output: Can SPI make and send infinite circular buffer?

Hi, I've put my code on GitHub.
https://github.com/t-mat/esp32-vga-experiment

Since there's absolutely copyright/trademark issue, I've removed the Espressif logo picture from the code. Demo code just shows random pixels instead of the logo.
by ta-mat
Sun Dec 24, 2017 2:44 am
Forum: General Discussion
Topic: VGA output: Can SPI make and send infinite circular buffer?
Replies: 12
Views: 20981

Re: VGA output: Can SPI make and send infinite circular buffer?

@ESP_Sprite, I think I've fixed issue 1 (timing between SPI DMA and LEDC timer is unstable). But solution seems strange. When I set 0 to entire bit of spi_dev_t::mosi_dlen.usr_mosi_dbitlen ( SPI_MOSI_DLEN_REG.SPI_USR_MOSI_BITLEN) , it works fine. At least 5 hours, no delay happened. But when I set a...
by ta-mat
Sat Dec 23, 2017 9:29 am
Forum: General Discussion
Topic: VGA output: Can SPI make and send infinite circular buffer?
Replies: 12
Views: 20981

Re: VGA output: Can SPI make and send infinite circular buffer?

Hi, I attached source code of my VGA experiment. Setup procedure is (1) Check GpioPins in main/vga_experiment.cpp . You should define and connect 3 GPIO pins for VGA: V-Sync, H-Sync, Video (single pin). (2) Run make menuconfig for setup. (3) Run make -j flash monitor for build & run. Hope someone fi...