2 Replies Latest reply on Aug 1, 2020 5:54 AM by LePo_1062026

    Trying to count ticks of an external 100MHz clock with little to no jitter on a PSOC 6

    BeEs_3215316

      I am trying to generate a highly accurate 1PPS signal derivative from a external 100MHZ clock with no luck. I have tried a counter timer in multiple configurations, but I either get a NACK error or the the counter does not increment at all. Any other ideas or more explicit instructions would be very welcomed.

        • 1. Re: Trying to count ticks of an external 100MHz clock with little to no jitter on a PSOC 6
          BoTa_264741

          BeEs,

          I think that correct way would be to use 100MHz external clock as an input to the PSoC clocks (instead of IMO, take a look into clock tree).  And then derive a 1 Hz clock from the MASTER or BUS clock. No Timer/Counter required.

          /odissey1

          • 2. Re: Trying to count ticks of an external 100MHz clock with little to no jitter on a PSOC 6
            LePo_1062026

            BeEs,

             

            I've attached an example project that makes the connection of the External Oscillator input to a 1 sec pulse to generate an interrupt.  (No code has been included here. )

             

            I realize that you want a very accurate 1 sec clock.  Using a crystal with sub-100 PPM accuracy can give you that.  This attached project does build.  Using the internal IMO clock is good (and cheap) but not very accurate.

            However, usually a 100MHz crystal can be added cost as well as using the crystal during low-power modes is power hungry and under some lower power modes not possible.

             

            This is why for an accurate clock at very low frequencies (1 Hz) it is preferable to use an external watch crystal @ 32.768 KHz.  The PSoC products can use this as the external WCO with great power efficiency.  This method is commonly used for BLE timing in very low power modes to wake up the PSoC with high timing accuracy yet but very low current consumption because the clocking rate is much lower than the ExtClk or the ECO.

             

            Len