Hi, i use softdevice 9.0 and s110 8.0.
I want to make 38kHz pulse.
so i tried to use nrf_drv_timer and gpio.
if i try to make 200us, it worked not bad.
but when i tried to make 13us, it worked strange.
What can i do to make 38khz pulse ?
Thank you.
Hi, i use softdevice 9.0 and s110 8.0.
I want to make 38kHz pulse.
so i tried to use nrf_drv_timer and gpio.
if i try to make 200us, it worked not bad.
but when i tried to make 13us, it worked strange.
What can i do to make 38khz pulse ?
Thank you.
If you are not locked to SDK 9, I recommend you to try the PWM library in SDK 11. This uses a TIMER, GPIOTE and PPI to output a PWM signal of up to 200 kHz, with no CPU used during operation. The CPU is only used when changing the duty cycle or frequency of the signal. The PWM Library Example demonstrates how the library can be used.
If you are not locked to SDK 9, I recommend you to try the PWM library in SDK 11. This uses a TIMER, GPIOTE and PPI to output a PWM signal of up to 200 kHz, with no CPU used during operation. The CPU is only used when changing the duty cycle or frequency of the signal. The PWM Library Example demonstrates how the library can be used.
Thank you for your answer. I will try it !