Hello,
I am attempting to use my nRF52810 (testing with the nRF52 DK) to generate square waves using PWM. Ideally, these square waves would operate at 8 or 16Mhz. So far I have used the base pwm_library and pwm_driver examples provided in the sdk to test this but have some uncertainty how to do it. I have been able to produce square waves with 50% duty cycles, but it seems that the frequency tops out at 1Mhz.
When using the pwm_library, it seems as though the lowest period I can set is 1us (1Mhz). However I cannot provide a period less than 1us or the pwm output is blank. I have stepped through the code a bit to understand how it works, but unsure how to achieve a higher frequency output.
I have also done similar high level exploration into the pwm_driver library but have not gotten any further.
My questions are:
1) What is the max frequency output achievable using PWM (is it 16Mhz)?
2) How can I achieve this (or 8Mhz/16Mhz)? An example would be greatly appreciated.