Dear Sir:
I use ble_app_uart example , i want use pwm to driver the FR Port ,Peripheral load. the Peripheral load is pulled up to battery.
when driver the load ,the pwm can't pull down the Circuit 。 if no connect the load,the pwm can work normal。
so,how to config the pwm output driving capability ?
the code i use is
static void pwm_init(void)
{
ret_code_t err_code;
app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_1CH(10000L, PIN_OUT_MOTOR);
pwm1_cfg.pin_polarity[0] = APP_PWM_POLARITY_ACTIVE_HIGH;
nrf_gpio_cfg(PIN_OUT_MOTOR,
NRF_GPIO_PIN_DIR_OUTPUT,
NRF_GPIO_PIN_INPUT_CONNECT,
NRF_GPIO_PIN_NOPULL,
NRF_GPIO_PIN_S0S1,
NRF_GPIO_PIN_NOSENSE);
/* Switch the polarity of the second channel. */
//pwm1_cfg.pin_polarity[1] = APP_PWM_POLARITY_ACTIVE_HIGH;
/* Initialize and enable PWM. */
err_code = app_pwm_init(&PWM1,&pwm1_cfg,pwm_ready_callback);
APP_ERROR_CHECK(err_code);
app_pwm_enable(&PWM1);
dutyCycle = 50;
app_pwm_channel_duty_set(&PWM1, 0, dutyCycle);
}
please help me