Other Parts Discussed in Thread: ADS8556
Hi all,
I am using 28335 control card R1.0 with docking station. I need to generate perfect 400HZ interrupt signal using 28335. I have used following statements.But i am not getting the exact 400HZ .Please suggest me the remedy for this.
code:
#define CPU_RATE 6.66666667L
#if (CPU_FRQ_150MHZ)
ConfigCpuTimer(&CpuTimer0, 150, 625);
#endif
interrupt void cpu_timer0_isr(void)
{
CpuTimer0.InterruptCount++;
GpioDataRegs.GPBTOGGLE.bit.GPIO34 = 1; // Toggle GPIO34 once per 625 milliseconds
// i have written mu code here which will take 100 microseconds.
}
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
}
Thanking you
sham m v
