Esp32 LEDC ESP-WROOM-32

Mike1987
Posts: 4
Joined: Mon Oct 07, 2024 9:54 pm

Esp32 LEDC ESP-WROOM-32

Postby Mike1987 » Wed Oct 09, 2024 2:48 pm

Hi. I want to write value in register LEDC_HSCHn_DUTY_REG but it impossible.
For example:

#define LEDC_HSCH0_DUTY_REG 0x3FF59008

volatile uint32_t* ledc_hsch18_duty_reg = (volatile uint32_t*) LEDC_HSCH0_DUTY_REG;

*ledc_hsch18_duty_reg = (500 << 4);


But in this register after writing, again zero. Only zero.

Who is online

Users browsing this forum: Bing [Bot] and 111 guests