Search found 10 matches

by FX2032
Thu Apr 24, 2025 11:47 am
Forum: General Discussion
Topic: MCPWM register programming...
Replies: 8
Views: 1671

Re: MCPWM register programming...

I guess I work in a bit of a strange way, and I like to know exactly what is going on in code, so I am not a big fan of "black box" systems and libraries. I realise now just how good Atmel data sheets were!

The EPS32 data sheet are OK, but for example with the ADC... the register information is ...
by FX2032
Thu Apr 24, 2025 8:12 am
Forum: General Discussion
Topic: MCPWM register programming...
Replies: 8
Views: 1671

Re: MCPWM register programming...

I'm just old fashioned I guess! Most of my experience is from programing Atmel microcontrollers, and I find all the ESP32 APIs so very abstracted and exceptionally challenging to know what they are doing and how to use them!
by FX2032
Wed Feb 12, 2025 5:39 pm
Forum: General Discussion
Topic: Lost data when using ESP32 AP => ESP32 STA and w5500 ethernet modules
Replies: 0
Views: 824

Lost data when using ESP32 AP => ESP32 STA and w5500 ethernet modules

I am trying to set up a transparent ethernet bridge.
I found some code "eth2wlan" online, which is an adaptation of the example code eth2AP, which has the ability to switch to STA instead.

The code works fine in either STA or AP mode if I use just one esp32-s3 module with W5500 ethenet IC. I get a ...
by FX2032
Wed Feb 12, 2025 3:42 pm
Forum: ESP-IDF
Topic: ESP32 Ethernet with WIFI STA
Replies: 2
Views: 2056

Re: ESP32 Ethernet with WIFI STA

Did you manage to get anything working?
I am trying to do a similar project. I found some "eth2wlan" which sort of does the job, but it seems to loose 93% of the data, so I am really struggling!
by FX2032
Wed Feb 12, 2025 1:45 pm
Forum: General Discussion
Topic: ESP32 C6 IDF V.5.1.1 eth2wifi example
Replies: 1
Views: 6231

Re: ESP32 C6 IDF V.5.1.1 eth2wifi example

I have been trying to do a similar thing myself. You could try using the eth2wlan example for the STA side, though I am finding a great problem with lost data packets. Perhaps you are experiencing this too?
I have 2 computers set up on the ethernet bridge, and using iperf. testing the data ...
by FX2032
Fri Jan 10, 2025 4:33 pm
Forum: General Discussion
Topic: RMT peripheral RX Data reading - incorrect "MEM_OWNER" listing
Replies: 0
Views: 1433

RMT peripheral RX Data reading - incorrect "MEM_OWNER" listing

I have been setting up the RMT to measure pulse widths of an incoming pulse train using direct register programming, and have been getting nowhere for some time.
I have been using the FIFO for automatically storing and reading out the Data, but the data has be total nonsense, even with consecutive ...
by FX2032
Thu Nov 21, 2024 11:30 pm
Forum: General Discussion
Topic: ADC Direct register programming...
Replies: 1
Views: 1319

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 ...
by FX2032
Wed Nov 20, 2024 7:49 pm
Forum: General Discussion
Topic: MCPWM register programming...
Replies: 8
Views: 1671

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 ...
by FX2032
Wed Nov 20, 2024 7:20 pm
Forum: General Discussion
Topic: ADC Direct register programming...
Replies: 1
Views: 1319

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 ...
by FX2032
Sun Nov 17, 2024 9:04 pm
Forum: General Discussion
Topic: MCPWM register programming...
Replies: 8
Views: 1671

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 ...

Go to advanced search