Hi,
I was using the LPC802 Controller.Where I was generate the Frequency up to 345khz When toggle the gpio pin.Is it possible to generate up to 2.4MHz.
已解决! 转到解答。
Hello, sorry for the late response, I was researching more information on the reference manual and datasheet.
The maximum clock source is 15mhz.
The documentation of the Ctimer source is from the AHBCLKCTRL0.
The LPC802 supports a clock up to 15MHz which gives us a clock cycle period of 66ns, and the documentation regarding interrupt latency of Arm (You can look at it on this link Interrupt Latency) states that the Cortex-M0+'s clock cycles with zero wait state memory are 15.
Interrupt Time = CyclesClock * period = 15 * 66ns = 1us
After reviewing the documentation value below 1us is not possible.
Best regards,
Pavel
Hello, my name is Pavel, and I will be supporting your case, could you elaborate further about how you your questions? Did you use the Ctimer example on the SDK?
Let me research more information about the last question.
Best regards,
Pavel
Hello, I do not recommend using the timer at 1ns, intend of I recommend using it at a minimum of 100ns if you are using an interrupt put a counter or other solution to count 4 cycles to get 400ns.
Best regards,
Pavel
Hello, sorry for the late response, I was researching more information on the reference manual and datasheet.
The maximum clock source is 15mhz.
The documentation of the Ctimer source is from the AHBCLKCTRL0.
The LPC802 supports a clock up to 15MHz which gives us a clock cycle period of 66ns, and the documentation regarding interrupt latency of Arm (You can look at it on this link Interrupt Latency) states that the Cortex-M0+'s clock cycles with zero wait state memory are 15.
Interrupt Time = CyclesClock * period = 15 * 66ns = 1us
After reviewing the documentation value below 1us is not possible.
Best regards,
Pavel