TI E2E Community
C2000 32-bit Microcontrollers Forum
Setting Clock frequency for eCAP in TMS320F28335 Controller
am working on TMS320F28335 controller,
how do i configure clock frequency for eCAP ?
what is the maximum and minimum clock frequency we can configure or derive for eCAP ?
Please help . . .
Thanks and Regards
eCAP is clocked by SYSCLKOUT. I do not believe there are dividers within the module for reducing the clocking frequency to the peripheral.
Dear Mr. Kris
Thank you for your immediate response,
I have one more question, if my input signal to the eCAP is very high so i can use PRE-SCALAR option, if it is too low then how do i make it to synchronize with the SYSCLKOUT to capture. Will the input signal to eCAP synchronize automatically with SYSCLKOUT clock frequency or we need to set manually?
please clarify my doubt ....
Since the eCAP is clocked by SYSCLKOUT, the input will be synchronized automatically. Note that a minimum pulse width detectable by the eCAP is defined in the datasheet for this reason.
Thank you very much. So, i can not use eCAP for smaller frequencies.
for example, 100kHz input signal to eCAP, (SYSCLKOUT minimum frequency is 2MHz and Maximum is 150MHz from the datasheet ),
in this situation i cant use eCAP for capturing ?
The eCAP registers are clocked by SYSCLKOUT. The eCAP works by capturing a pulse edge and latching a counter value (clocked by SYSCLKOUT) when the edge is seen. This is a 16 bit counter, so it is capable of capturing frequencies well below SYSCLK.
I recommend reading the eCAP user's guide to familiarize yourself with the peripheral.
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.