Part Number: TMS320F280049
when configure Cmpss3Regs.COMPCTL.bit.COMPDACE = 0 to disable Cmpss3, and Cmpss3Regs.COMPCTL.bit.COMPHINV = 1, COMPHSTS and COMPHLATCH value is 1 as below showed. it seems the block diagram did not show the relationship between COMPDACE and COMPHSTS/COMPHLATCH value, what is the relationship between COMPDACE and COMPHSTS/COMPHLATCH?
I also post the configuration code of CMPSS3 as below:
EALLOW; /* CMP SEL */ AnalogSubsysRegs.CMPHPMXSEL.bit.CMP3HPMXSEL = 3; /* Disable CMPSS1 */ Cmpss3Regs.COMPCTL.bit.COMPDACE = 0; /* NEG signal comes from DAC */ Cmpss3Regs.COMPCTL.bit.COMPHSOURCE = NEGIN_DAC; /* Use VDDA as the reference for DAC */ Cmpss3Regs.COMPDACCTL.bit.SELREF = REFERENCE_VDDA; /* Set DAC to midpoint for arbitrary reference */ Cmpss3Regs.DACHVALS.bit.DACVAL = 2283;//160v /* Maximum CLKPRESCALE value provides the most time between samples */ Cmpss3Regs.CTRIPHFILCLKCTL.bit.CLKPRESCALE = 0x5; /* Set SAMPWIN and THRESH */ Cmpss3Regs.CTRIPHFILCTL.bit.SAMPWIN = 5; Cmpss3Regs.CTRIPHFILCTL.bit.THRESH = 5; /* Reset filter logic & start filtering */ Cmpss3Regs.CTRIPHFILCTL.bit.FILINIT = 1; /* Configure CTRIPOUT path */ Cmpss3Regs.COMPCTL.bit.CTRIPHSEL = CTRIP_LATCH; Cmpss3Regs.COMPCTL.bit.CTRIPOUTHSEL = CTRIP_LATCH; Cmpss3Regs.COMPCTL.bit.COMPHINV = 1; /* Enable CMPSS1 */ Cmpss3Regs.COMPCTL.bit.COMPDACE = 0; // 1 EDIS;
Hi Strong ZHANG,
COMPDACE turns on/off the analog portion of the CMPSS. COMPLATCH and COMPSTS are all the wrapper/digital portions of the CMPSS and they will continue to operate as long as the clock to the CMPSS is enabled.
Did a reply answer your question? If yes, please click the "Verify Answer" button located at the bottom of that post. Visit these helpful C2000 Links!
C2000 TI Wiki Pages TI Forum Sitemap
ControlSUITE C2000 Getting Started
CLA FAQs Workshop Material!
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
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. 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.