- List item
Hi, i am working on nrf52 sdk11 softdeviceS132, Working on custom board i have edited ble_app_uart example and implemented my application it is using PWM_Library application. i am operating PWM_Library with different duty cycles on a BLE command.
after sending BLE command to start PWM then current is increasing to 57microAmp to 6mA and not even coming down to initial consumption that is 57microAmp. So that i found the cause of the increase of current consumption by commenting each and every line. one of the PWM causing this increament that is
(1)
ret_code_t app_pwm_channel_duty_set(app_pwm_t const * const p_instance,
uint8_t channel, app_pwm_duty_t duty)
{
uint32_t ticks = ((uint32_t)app_pwm_cycle_ticks_get(p_instance) * (uint32_t)duty) / 100UL;
return app_pwm_channel_duty_ticks_set(p_instance, channel, ticks);
}
if i comment lines inside the functions i.e
///uint32_t ticks = ((uint32_t)app_pwm_cycle_ticks_get(p_instance) * (uint32_t)duty) / 100UL;
so that current is not increasing and staying at same level i.e 57microAmp
(2)
and also i have some arthmatic operations in other functionalities other than PWM i am using arithmatic operation that is
/// sum = sum + multiplier*(euclidean_norm_array[i-1]+euclidean_norm_array[i]);
if i comment these functions it is staying at 57microAmp other wise it is going to 6mAmp drop and staying there. what may be the issue.
Thanks in Advance.