Hi,
I suppose that you use CTimer to generate interrupt with a fixed period, in the ISR, you clear the CTimer status bit and toggle a LED. Because the interrupt handling requires a lot of time, for example pushing core registers to stack, pop the core registers from stack, jumping ISR, so the ISR frequency is low.
I suggest you use CTimer to generate PWM signal to drive LED, I am sure that the PWM frequency can reach up to 2.4mhz, pls check if the solution can meet your requirement.
BR
XiangJun Rong