We are trying to find a way to send the High Frequency Clock directly out to a gpio pin. The reference manuals don't seem to have anything obvious.
Is there a way to do this on a nordic board? Thanks in advance.
We are trying to find a way to send the High Frequency Clock directly out to a gpio pin. The reference manuals don't seem to have anything obvious.
Is there a way to do this on a nordic board? Thanks in advance.
Hi Alex
You can toggle an GPIO pin with 16MHz by directly using the gpiote_example in the SDK. Just modify the value of the CC[0] register to 1UL. This is possible with the most recent version of the nRF51822 chip.
However, if you are using other versions then you must use two CC compare registers to generate the 16MHz frequency toggle on an IO pin. A single CC register can only generate an 8MHz toggling, see anomaly #33 in the nRF51822-PAN v2.0. The PAN also shows for which chip versions the anomaly is present.
Update 28.10.2014 In order to get 8MHz square wave out on GPIO, you must also set the prescaler to 0 as done in the gpiote_example in the SDK
Note that "16MHz frequency toggle" is an 8 MHz square wave. This is not HFCLK.
Note that "16MHz frequency toggle" is an 8 MHz square wave. This is not HFCLK.