Search found 4 matches

by FX2032
Thu Nov 21, 2024 11:30 pm
Forum: General Discussion
Topic: ADC Direct register programming...
Replies: 1
Views: 259

Re: ADC Direct register programming...

So with some help from ChatGpt and much MUCH.. digging and reverse engineering of the header files, what seems to happen is when you use some of the ADC APIs, the code actually pulls out a table of "Attenuation values" from the EFuses on the ESP32, at boot up. When you then call the API to do an ADC...
by FX2032
Wed Nov 20, 2024 7:49 pm
Forum: General Discussion
Topic: MCPWM register programming...
Replies: 2
Views: 401

Re: MCPWM register programming...

Did you enable and un-clockgate the MCPWM peripheral? (periph_ll_enable_clk_clear_rst) Hi ESP_Sprite Many thanks! I checked and saw I made the foolish mistake of SETTING the clock reset, and not clearing it! In case someone one day wants to do similar here is the code: #include <stdio.h> #include "...
by FX2032
Wed Nov 20, 2024 7:20 pm
Forum: General Discussion
Topic: ADC Direct register programming...
Replies: 1
Views: 259

ADC Direct register programming...

I am trying to better understand the basics of the ESP32-S3 registers. I wish to run a simple test ADC conversion on GPIO pin 2. But am unable to get the ADC running. I can use the APIs: adc1_config_width(ADC_WIDTH_BIT_12); adc1_config_channel_atten(ADC1_CHANNEL_1,ADC_ATTEN_DB_0); val = adc1_get_raw...
by FX2032
Sun Nov 17, 2024 9:04 pm
Forum: General Discussion
Topic: MCPWM register programming...
Replies: 2
Views: 401

MCPWM register programming...

I am trying to set up the MCPWM on a esp32-3s wroom-1 module. I want to write to the registers directly to set the PWM up, but none of the values are changing after I write to them for example: WRITE_PERI_REG(MCPWM_CLK_REG(0) , MCPWM_CLK_EN); WRITE_PERI_REG(MCPWM_TIMER0_CFG0_REG(0), ((0x0<<MCPWM_TIM...