Esp32 LEDC ESP-WROOM-32
Posted: 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.
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.