This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to enable the 32Mhz oscillator to show up as a spi clock on one GPIO pin?

Hi my company is trying to find a way to read the frequency of that 32 Mhz external oscilator on nRF52840.

As we cannot directly probe the oscilator due to the capacitor of the probe tampering the readings, we have thought about enabling the QSPI to have that 32Mhz clock directed to one of those GPIO pins as a SPI clk.


Could you guys give some guidance as how to enable 32Mhz oscillator to show up as a spi clock on one GPIO pin?
Thanks.

Parents Reply Children
  • Hi,

     

    You could do that, but it would be beneficial to measure this "earlier in the chain" - as the GPIO output capacitance may influence your measurements when running on such a high frequency.

    The QSPI CLK will inherit the tolerance of the HFCLK, but if you want to measure as accurate as possible, it is recommended that you use a spectrum analyzer and outputting a unmodulated RF carrier.

    If you do not have access to a spectrum analyzer, the next best thing would be to probe the XC1 pin. This will then load the crystal, so you have to adjust for that, by checking the capacitance on your probe, and adjusting the load capacitor. Let's say the probe is 4 pF, and the caps are 12, you need to adjust the one on XC1 down to 8 pF.

     

    Kind regards,

    Håkon

Related