You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having read various comments and thread on the web, I am wondering if its possible to change the value of hpoint(n) in one LEDC PWM channel (say ch2) to create a lead delay for its waveform compared to (say) ch1? If lpoint = hpoint + duty_cycle, then if the same duty_cycle is set for both ch1 and ch2, then wouldnt changing hpoint for ch2 in-effect give ch2 the same pulsewidth, but offset by the different hpoint value written into ch2? I have tried reading and changing the values in the register locations (calculated as 0x3FF59020, 0x3FF59040, etc). I can change values at these locations but without creating a delay. I presume I am using and calculating the correct register addresses, as per esp32_technical_reference_manual_en.pdf section 14 Register 14.2. LEDC_HSCHn_HPOINT_REG (n: 07) (0x20+0x10*n) ..... from the base address of 0x3FF59000. Any pointers/guidance greatly appreciated by this relative newbie.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Having read various comments and thread on the web, I am wondering if its possible to change the value of hpoint(n) in one LEDC PWM channel (say ch2) to create a lead delay for its waveform compared to (say) ch1? If lpoint = hpoint + duty_cycle, then if the same duty_cycle is set for both ch1 and ch2, then wouldnt changing hpoint for ch2 in-effect give ch2 the same pulsewidth, but offset by the different hpoint value written into ch2? I have tried reading and changing the values in the register locations (calculated as 0x3FF59020, 0x3FF59040, etc). I can change values at these locations but without creating a delay. I presume I am using and calculating the correct register addresses, as per esp32_technical_reference_manual_en.pdf section 14 Register 14.2. LEDC_HSCHn_HPOINT_REG (n: 07) (0x20+0x10*n) ..... from the base address of 0x3FF59000. Any pointers/guidance greatly appreciated by this relative newbie.
Beta Was this translation helpful? Give feedback.
All reactions