hello i am using the nrf52840.
how i can set the 4Khz frequency in low_power_pwm.
low_power_pwm_config_t have period parameters. which value i need to assign to generate the 4Khz Siganl.
before i used the APP_PWM which is much more easy but have some issue with nrf52840. because when i used the P1.08 pin then he is creathing some conflict with i2c. thats why i try to use the low_power_pwm and i also follow this Link
no matter if you help me to generate the 4Khz signal in Low power Pwm or to fix the issue with App_PWM.
in the APP_PWM i was generating the signal using this command which is working great.
/* 1-channel PWM, 4kHz, output on pin14. t = 1/f so i/4k= 250uS*/ app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_1CH(250, 14);
i also like to menstion that in APP_PWM i already declear the pin like this
#define Buzzer_Pin NRF_GPIO_PIN_MAP(1,8)