Other Parts Discussed in Thread: C2000WARE
Hi there,
I'm trying to configure the CPU timer in nanoseconds to generate clock signals with 3MHz frequency. I've modified the ConfigCpuTimer code found in C2000ware (which was configured in microseconds) as below:
void ConfigCpuTimer(struct CPUTIMER_VARS *Timer, float Freq, float BlinkIntervalInNs)
{
// Calculate clock period in nanoseconds
float ClockPeriodInNs = 1.0 / Freq * 1000 * 1000;
// Calculate PRD for desired blink interval
Uint32 PeriodInClocks = (Uint32)(BlinkIntervalInNs / ClockPeriodInNs);
(I set the input clock for the timer as 90MHz)
I used an oscilloscope to observe the signal, and it was successfully generated until the output clock signal reached a frequency of 1.33MHz. However, signals weren't generated at all when I set the BlinkInterval such that the output clock frequency was above 1.33MHz.
I'm struggling with how to solve this issue. Could anyone give me advice about it? Thanks.