4 Replies Latest reply on Jan 19, 2020 3:00 PM by CuTh_2099391

    Can I use a Counter component to count BUSCLK?


      I am using an external Xtal Oscillator of 20MHz +/- 0.01% as BUSCLK.  I'd like to use a Counter component (32-bit UDB up counter) to count at the 20Mhz rate.  This example works if I derive a CNTR_CLOCK of 5MHz (or lower) from BUSCLK:




      If I use a derived clock of 10MHz it doesn't work. I think that is because I'm sampling 10MHz at a 20MHz rate.


      I'd like to just pass the 20MHz BUSCLK into something like the Counter component to get the precision and dynamic range for the interrupt I need.


      I have attached the entire project.