Search found 5 matches

by jhmluna
Wed Sep 30, 2020 7:03 pm
Forum: ESP-IDF
Topic: portENTER_CRITICAL explaination
Replies: 3
Views: 18164

Re: portENTER_CRITICAL explaination

So, timer_spinlock_take and portENTER_CRITICAL do the same thing?
by jhmluna
Thu Sep 10, 2020 1:10 pm
Forum: ESP-IDF
Topic: Register Operation Commands
Replies: 0
Views: 1365

Register Operation Commands

Hello.

Could anyone help me understand how each of the esp32 registry change commands works?
The main ones I want to understand are:

Code: Select all

REG_SET_FIELD
SET_PERI_REG_BITS
SET_PERI_REG_MASK
Is there a document that explains it?
Thank you.
by jhmluna
Tue Sep 01, 2020 3:40 pm
Forum: ESP32 Arduino
Topic: Is there anything to do to make the adc2_vref_to_gpio () function work?
Replies: 5
Views: 5481

Re: Is there anything to do to make the adc2_vref_to_gpio () function work?

Hello @lbernstone Thank you for your attention. As for my application, I was able to get around this problem, so it is no longer a problem for me. However, I decided to post because I think this is a bug in the Arduino framework. I hope someone from the Espressif development takes a look at the post...
by jhmluna
Tue Sep 01, 2020 1:07 pm
Forum: ESP32 Arduino
Topic: Is there anything to do to make the adc2_vref_to_gpio () function work?
Replies: 5
Views: 5481

Re: Is there anything to do to make the adc2_vref_to_gpio () function work?

This code works for me, and gives me a pretty consistent reading at 1113mV. #include <driver/adc.h> gpio_num_t ref_pin = (gpio_num_t) 25; void setup() {adc2_vref_to_gpio(ref_pin);} void loop() {} Hello. It is basically the same code I used. If I write only your code it works, but if I use the adc2_...
by jhmluna
Mon Aug 31, 2020 4:56 pm
Forum: ESP32 Arduino
Topic: Is there anything to do to make the adc2_vref_to_gpio () function work?
Replies: 5
Views: 5481

Is there anything to do to make the adc2_vref_to_gpio () function work?

Hello. I am testing some ESP32 modules using VSCode + PlatformIO in Arduino framework. My experiment involves putting some values in the output of DAC2 (GPIO26) and reading that value with ADC1_CHANNEL_6 (GPIO34). My output values on DAC2 are updated via serial, transmitting values between 0 and 255...