New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mcpwm basic config - no synchronization happening, why? (IDFGH-1036) #3361
Comments
Hi, @bobkasterop thanks !! |
I think he wants to use the internal sync feature, not external gpio. |
yes im trynna use internal sync feature. |
Hi, @bobkasterop
thanks !! |
it works perfectly! thank you very much 👍 |
@bobkasterop Thanks for reporting the issue. Feel free to reopen if your issue still exists. Thanks. |
I'm trying to use MCPWM_UP_DOWN_COUNTER mcpwm_config_t pwm_configA; mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM0A, Pulse_Pin_1); int DutyCycle = 50; |
----------------------------- Delete below -----------------------------
If your issue is a general question, starts similar to "How do I..", or is related to 3rd party development kits/libs, please discuss this on our community forum at esp32.com instead.
INSTRUCTIONS
Before submitting a new issue, please follow the checklist and try to find the answer.
If the issue cannot be solved after the steps before, please follow these instructions so we can get the needed information to help you in a quick and effective fashion.
----------------------------- Delete above -----------------------------
Environment
git describe --tags
to find it):// v3.2-dev-1148-g96cd3b75c
xtensa-esp32-elf-gcc --version
to find it):// 1.22.0-80-g6c4433a
Problem Description
im using the example code "MCPWM basic config" to generate 3 PWM signals. i need these 3 signals to be synchronized but when i use the enable_sync function, nothing happens. the signals are still not synchronized.
see code.
//Detailed problem description goes here.
Expected Behavior
3 synchronized pwm signals
Actual Behavior
3 pwm signals not starting the same place (not synchronized)
Steps to repropduce
generate pwm signals
synchronize using the sync enable function
// It helps if you attach a picture of your setup/wiring here.
Code to reproduce this issue
there is some initial #define lines of code that i didnt post but these are exactly the same as for the example code im using.
The text was updated successfully, but these errors were encountered: