Hi,
By using the PWM exampl in SDK 0.9.2, I can generate a 1MHz PWM signal without problem. However, it seems that the function provided by SDK can just set upto 1MHz PWM?
I am using fillowing MACRO provided by SDK:
#define APP_PWM_DEFAULT_CONFIG_1CH(period_in_us, pin) \
{ \
.pins = {pin, APP_PWM_NOPIN}, \
.pin_polarity = {APP_PWM_POLARITY_ACTIVE_LOW, APP_PWM_POLARITY_ACTIVE_LOW}, \
.num_of_channels = 1, \
.period_us = period_in_us \
}
I then set APP_PWM_DEFAULT_CONFIG_1CH(1L, 8) and got 1MHz signal. If I need more higher frequency, say 4MHz, I need 0.25us in period_in_us field which is not allowed since it is uint32 type.
Is there any way to get more higher frequency than 1MHz?
Also, can this pwm library been use with SD? I can't get PWM out put if I try to config it in beacon example (set before the SD is init)
By the way, nRF52 do have PWM peripheral, why the example still using timer and PPI for PWM function? Is there any example to show how to use the real PWM peripheral?