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

Synchronize SPI clock with generated timer clock

I am working with a IC that requires SPI clocks to be synchronized (in phase) with its system clock. Currently the IC's clock source is connected to one of the nRF52's GPIO pins which is driven by Timer 1, generating a 1MHz clock. SPI 1 is connected to the IC as a master and is configured with a frequency of 1MHz.

Currently while scoping both clock signals they are sometimes in-phase and sometimes out-of-phase. Is there any way for me to guarantee that when the SPI clock starts, its edges will be aligned with the timer output?

Parents Reply Children
Related