Skip to content
Snippets Groups Projects
Commit 2a552767 authored by Ricardo Andres Ercoli Auersperg's avatar Ricardo Andres Ercoli Auersperg
Browse files

Change PWM freq

parent d0c6f96f
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ esp_err_t motor_stop(motor_h_t *m)
esp_err_t motor_start(motor_h_t *m)
{
mcpwm_config_t pwm_config;
pwm_config.frequency = 1000 * FRECUENCY; //frequency = 500Hz,
pwm_config.frequency = 15000 * FRECUENCY; //frequency = 500Hz,
pwm_config.cmpr_a = 0; //duty cycle of PWMxA = 0
pwm_config.cmpr_b = 0; //duty cycle of PWMxb = 0
pwm_config.counter_mode = MCPWM_UP_COUNTER;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment