Did you (or anyone one else) make any progress on this? I was thinking of picking it up.
Do we need to fiddle with these bits to make the state machine work?
DPORT_RMT_CLK_EN
DPORT_RMT_CLK_RST
Specifically to those who have access to the detailed docs of the internals, can you tell us if there is anything else we need to do?
[Solved] Using the RMT peripheral ...
Re: Using the RMT peripheral ...
In the end I did not make any further progress on this. However, from this post here ....
http://esp32.com/viewtopic.php?f=10&t=375
we see this line item:
New peripheral drivers: uart/timer 1&2/sigmadelta/pluse CNT/i2c/rmt/rtc gpio/epwm/adc/dac/touch/spi/motor pwm/i2s/uhci.
And with an availability date of the end of the month, I think we just need to be patient a little while longer and the drivers will be here.
http://esp32.com/viewtopic.php?f=10&t=375
we see this line item:
New peripheral drivers: uart/timer 1&2/sigmadelta/pluse CNT/i2c/rmt/rtc gpio/epwm/adc/dac/touch/spi/motor pwm/i2s/uhci.
And with an availability date of the end of the month, I think we just need to be patient a little while longer and the drivers will be here.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Using the RMT peripheral ...
Thanks, I'd seen the list -- I was trying to finish my hardware design and qualify the ESP32 to sign off as a suitable part and wondered if I could save some time! It's also a very big list which I'd be impressed if all of it came out by end of Nov! -- Though what Espressif are doing and have achieved so far is impressive!
Re: Using the RMT peripheral ...
FYI, there is a bug in the definition of rmt_mem_t structure.
The fix should reach master soon, but until then, here's the correct definition:
The fix should reach master soon, but until then, here's the correct definition:
Code: Select all
typedef volatile struct {
struct {
union {
struct {
uint32_t duration0: 15;
uint32_t level0: 1;
uint32_t duration1: 15;
uint32_t level1: 1;
};
uint32_t val;
} data[64];
} chan[8];
} rmt_mem_t;
Re: Using the RMT peripheral ...
looks like RMT just got merged into master in the past few days
Re: Using the RMT peripheral ...
This is correct! There is also an example that uses the new driver:
https://github.com/espressif/esp-idf/tr ... _nec_tx_rx
https://github.com/espressif/esp-idf/tr ... _nec_tx_rx
Re: [Solved] Using the RMT peripheral ...
super thanks!
Re: [Solved] Using the RMT peripheral ...
Can the RMT be used to generate a video signal?
Or at least unburden the processor while generating one?
(Not that I'd really need this, besides for getting mentioned on hackaday).
Or at least unburden the processor while generating one?
(Not that I'd really need this, besides for getting mentioned on hackaday).
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: [Solved] Using the RMT peripheral ...
Depends on how creative you are with abusing the peripheral I'm sure you can get something working. I'd think VGA may be a bit hard, though, because the channels in the RMT aren't entirely independent (they can't access the memory at the same time) so you will have some pixel skew between the r, g and b lines; you may be better off using the (still to be documented) parallel output mode of the I2S peripheral for that. I'm pretty sure things like composite should be entirely doable, though.
Who is online
Users browsing this forum: No registered users and 141 guests