TI E2E Community
AC/DC and Isolated DC/DC Power
AC/DC and Isolated DC/DC Power Forum
Timer configurations f28335
I write a timer hardware abstraction layer for the tms 320f28335, and I could not get the informations in the Documentation about the timer prescale value.
with the default example configurations of the timer, no prescale value is set (prescale =1), its shown in the folowing code:
CpuTimer0Regs.TPR.all = 0; CpuTimer0Regs.TPRH.all = 0;
CpuTimer0.RegsAddr->PRD.all = CPU_FRQ* 1000000;
I want to configure a higher prescale counter, to take a 30s measurement, but I do not find out, how the prescale works so the configuration of
CpuTimer0Regs.TPR.all = 1;
CpuTimer0Regs.TPRH.all = 0;
CpuTimer0.RegsAddr->PRD.all = CPU_FRQ* 2000000;
must be the same time, to take a interrupt if the prescaler divide the sysclockout with 2 - but it is'n the same time...
Can you help me and tell how the timer prescaler works ?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.