Search found 8 matches

by sevi_at
Fri Feb 17, 2023 1:44 pm
Forum: General Discussion
Topic: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)
Replies: 8
Views: 14464

Re: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)

it's me again. I've now dealt with the structure rmt_item32_t very intensively and I don't think that analogues will be able to be read out directly with RMT functions. Am I correct?

ypedef struct {
union {
struct {
uint32_t duration0:15; /*!< duration of RMT carrier */
uint32_t level0:1 ...
by sevi_at
Fri Feb 17, 2023 7:28 am
Forum: General Discussion
Topic: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)
Replies: 8
Views: 14464

Re: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)

I have now managed to use the RMT function to access data from my GPIO, but the output only shows 1,1,1,1,1,1.
Now how do I make it write the analog value 0 - 4096 of this GPIO to the buffer?

Here my code:
short explanation. A 1kHz signal is generated with GPIO 32 and read back on GPIO 35. Now the ...
by sevi_at
Thu Feb 16, 2023 9:48 pm
Forum: General Discussion
Topic: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)
Replies: 8
Views: 14464

Re: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)

Thanks for your answer.
MCPWM is not entirely out of the question.
But thanks for the tip with RMT. I still have absolutely no idea how to do this, but it seems promising.
The way I read it, it's something similar to generating a PWM, just the other way around for reading. at least you can use it ...
by sevi_at
Mon Feb 13, 2023 6:34 am
Forum: ESP32 Arduino
Topic: mcpwm_isr_register does not execute command
Replies: 1
Views: 2034

Re: mcpwm_isr_register does not execute command

would be nice if someone could help me here!

Code: Select all

mcpwm_isr_register(MCPWM_UNIT_0, pwmHigh, NULL, ESP_INTR_FLAG_IRAM, NULL); 
THX!
by sevi_at
Mon Feb 13, 2023 6:32 am
Forum: General Discussion
Topic: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)
Replies: 8
Views: 14464

Re: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)

Thanks for the link but can I do something with it? These are roof instructions for ESP-IDF in a requesting environment than Arduino IDE?
by sevi_at
Sun Feb 12, 2023 9:12 am
Forum: General Discussion
Topic: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)
Replies: 8
Views: 14464

Re: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)

That's good news... since it's not in the Arduino IDE library, I was afraid that this wasn't possible.
I would like to take 20 cyclic measurements of the input value from an ADC in 1 millisecond and then the values can be further processed by the user program.
The aim is to capture the high value of ...
by sevi_at
Sat Feb 11, 2023 11:07 am
Forum: General Discussion
Topic: ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)
Replies: 8
Views: 14464

ESP32-WROOM-32U-N16 -> DMA (Direct Memory Access)

Hy,
I'm trying to use DMA on my ESP32-WROOM-32U-N16 and I'm new to this topic.
1) Can the chip do that at all?... I can't find anything about it in the documentation.
https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32d_esp32-wroom-32u_datasheet_en.pdf
2) why is the <driver ...
by sevi_at
Fri Feb 10, 2023 9:45 pm
Forum: ESP32 Arduino
Topic: mcpwm_isr_register does not execute command
Replies: 1
Views: 2034

mcpwm_isr_register does not execute command

I have the problem that the command mcpwm_isr_register does not execute the interrupt command.


//#include <driver/dma.h>
#include <driver/gpio.h>
#include <driver/adc.h>
#include <esp_adc_cal.h>
#include <driver/mcpwm.h>

portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED;

// PWM
#define PWM1 ...

Go to advanced search