Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello Team TI,
Following are the lines from the cpu timer example of C2000ware,
/ // Configure CPU-Timer 0, 1, and 2 to interrupt every second: // 200MHz CPU Freq, 1 second Period (in uSeconds) // ConfigCpuTimer(&CpuTimer0, 200, 1000000); ConfigCpuTimer(&CpuTimer1, 200, 1000000); ConfigCpuTimer(&CpuTimer2, 200, 1000000); // // To ensure precise timing, use write-only instructions to write to the // entire register. Therefore, if any of the configuration bits are changed in // ConfigCpuTimer and InitCpuTimers (in F2837xD_cputimervars.h), the below // settings must also be updated. // CpuTimer0Regs.TCR.all = 0x4000; CpuTimer1Regs.TCR.all = 0x4000; CpuTimer2Regs.TCR.all = 0x4000;
Here, it is mentioned that if I am altering the values in ConfigCpuTimer, then I have to update the CpuTimer0Regs.TCR.all. However, I didn't find any specific example or any theory regarding this in reference manual. So, kindly give your valuable suggestion to update this register as I am using 100MHz SysCLK and 100kHz is my switching frequency of the the device (i.e. less than 10usec time to run the whole command within isr with updated ADC. For example take 1Mhz sampling frequency).