Dear all,
I am using the TMS320F28335 Delfino Experimental kit.
I am using the CPU timer0 for generating 100us interrupt. I simply used the
command ConfigCpuTimer(&CpuTimer0, 150, 100); all working fine.
Now I want to change the Period of the timer depending upon the input
frequency of my signal. I was using PWM earlier but my application requires me
to use all the 6 PWM as a result I have to use to CPU Timer0 for the 100us and
also generate a trigger for SOC of ADC signals.
I tried ConfigCpuTimer(&CpuTimer0, 150, Timer_Duration); and update the
Timer_Duration value but it doesn't work.
I also tried CpuTimer0.PeriodInUSec= Timer_Duration; then called the
ConfigCpuTimer,
I read the SPRUFB0D and tried the following, but didn't know what value to
put in the PRD register for a period in us.
CpuTimer0Regs.TCR.bit.TRB=1;
CpuTimer0Regs.PRD.all=0x3A98; // Value observed in the Register for a period of 100us
Can you point me in the right direction?
What is the sequence of commands to be used for continuously changing the period of the CPU timer0, during run time?
Best Regards,
Pankaj