Dear nordic,
I want to make a PWM with frequency 1 HZ - 100 HZ and pulse width of 100 us. i see several demo in PWM .
can you help me how to make this ?
what parameters are needed to change? i need to use softdevice for BLE also
Dear nordic,
I want to make a PWM with frequency 1 HZ - 100 HZ and pulse width of 100 us. i see several demo in PWM .
can you help me how to make this ?
what parameters are needed to change? i need to use softdevice for BLE also
Hi,
What are your requirements with regard to accuracy and power consumption? Since this is very low frequencies, it might make most sense to use the Low-power PWM library, provided that you do not need very high accuracy. This uses an RTC which runs of the LFCLK. Other alternatives are the PWM library (which is more accurate as it uses a TIMER peripheral using the HFCLK, but has higher current consumption), and on the nRF52840 you also have the PWM peripheral. You can find examples of all these options in the SDK under Hardware peripheral examples.