This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PWM with a piezo buzzer,How can I change the PWM frequency?

I use the nrf51822qfaa,s110 v8.00,SDK V10.0. I use PWM module with a piezo buzzer. Now I need change the buzzer frequency, How can I change the PWM frequency?

for example:

/* 2-channel PWM, 200Hz, output on DK LED pins. */
app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(5000L, BSP_LED_0, BSP_LED_1);
Parents Reply Children
No Data
Related