This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
I was trying the "cmpss_ex2_digital_filter" example project. Only changed the debugger to "XDS110". I was providing 3.3V on ADCINB6 pin. As per the instructions I should see high on GPIO14. But it's always zero. Do I have to change any board configuration via switch?
Hi Sumit,
Was the setup working before you changed the debugger to "XDS110"?
I couldn't test. As the board I'm working with comes with an on-board XDS110 debugger.
I was trying the project from "ti\c2000\C2000Ware_3_02_00_00\driverlib\f28004x\examples\cmpss" folder as it's for tms320f280049c MCU. But the project with a targetConfigs in TMS320F280049C.ccxml file for XDS100. So, to flash the target I had to change the settings. hrpwm project works fine. But it's not working as instructed. I'm quoting below what is told in that project to do.
// FILE: cmpss_ex2_digital_filter.c // // TITLE: CMPSS Digital Filter Configuration // //! \addtogroup driver_example_list //! <h1> CMPSS Digital Filter Configuration </h1> //! //! This example enables the CMPSS1 COMPH comparator and feeds the output //! through the digital filter to the GPIO14/OUTPUTXBAR3 pin. //! //! CMPIN1P is used to give positive input and internal DAC is configured //! to provide the negative input. Internal DAC is configured to provide a //! signal at VDD/2. //! //! When a low input(VSS) is provided to CMPIN1P, //! - GPIO14 output is low //! //! When a high input(higher than VDD/2) is provided to CMPIN1P, //! - GPIO14 output turns high //! //! \b External \b Connections \n //! - Give input on CMPIN1P (The pin is shared with ADCINB6) //! - Output can be observed on GPIO14 //! //! \b Watch \b Variables \n //! - None //!
Frank,
I've got the issue. It doesn't work if 3.3V/GND is used as signal at ADCINB6. If the voltage is changed by potentiometer then it works fine. Is impedence an issue?
Late Edit:
I'm getting expected output using 3.3V/GND now also after it worked for the first time. I'm in dark on what the issue was.
Finally realized what was the issue.
I was trying one of DAB projects. That project sets up board protection using cmpss with some tripping mechanism.
That configuration was not being cleared when I flashed the example.
I changed the setting to flash in FLASH memory instead of RAM and added configuration to reset after flash.
Now it's all working fine.
Glad to hear it's working now! Let us know if you ran into anymore issues.