2 Replies Latest reply on Sep 24, 2020 2:02 AM by GaneshD_41

    Why when changing system clock frequency the number of cycles to execute a segment of code is different?

    SaPo_4323801

      Counting the number of cycles when executing a segment of code, i get different numbers of cycles when i build for different system clocks. Why is that? Shouldn't be the same cycles or at least around the same even if i change the system clock frequency? I tested that with CY8C4146FNI-S433. I changed the system clock frequency from 24Mhz to 40Mhz and the cycles i get with 40Mhz are around 700 cycles less compared to when i build the project with a system clock of 24Mhz.