Can the nRF52 output the 32.768kHz clock on a GPIO. If so, do I need the 32.768kHz xtal, or can I output the generated clock from the 32MHz xtal? I need this clock to sync other ICs.
Can the nRF52 output the 32.768kHz clock on a GPIO. If so, do I need the 32.768kHz xtal, or can I output the generated clock from the 32MHz xtal? I need this clock to sync other ICs.
here it gives you an idea of how to generate 8Mhz clock from HFCLK using timer and gpiote. On nrf52 it should be the same logic. Ofcourse to get the lower frequency out you need higher prescaler and different value in TIMER CC
I don't see how to get 32.768 kHz from this solution. The timer runs off 16MHz (or 1MHz for slow f_timer). The closest I can get is 32.787kHz (if using 16MHz clock), which is over 500ppm off.
this might be of little help here.
That could potentially work if the LFCLK-GPIO can be XORed with another delayed LFCLK-GPIO. Can this be done internal to the nRF52?
I am not following your latest comment...in order to get a 32.768kHz clock I was thinking of XORing the 16.384kHz clock with a delayed version of itself. The link you posted shows how to get a 16.384kHz clock based on the LFCLK, right?