7 Replies Latest reply on Oct 10, 2018 5:19 AM by valskibuda_1466811

    Reading ADC value debugging

    valskibuda_1466811

      Hi,

      Trying to read ADC values, utilizing the debug function.  But it seems , that I cannot use the add watch button, to read the value from the variable.

      I am using PSoC 5LP CY8C5888LT*LP097.

       

      The Code:

      include "project.h"

       

      int main(void)

      {

          // CyGlobalIntEnable; /* Enable global interrupts. */

          IDAC8_1_Start();

          IDAC8_1_SetPolarity(IDAC8_1_SINK);

          ADC_DelSig_1_Start();

          ADC_DelSig_1_StartConvert();

       

      int8 output;

       

          /* Place your initialization/startup code here (e.g. MyInst_Start()) */

       

          for(;;)

          {

            if(ADC_DelSig_1_IsEndConversion(ADC_DelSig_1_RETURN_STATUS))

          {

              output = ADC_DelSig_1_GetResult8();

          }

       

        //IDAC8_1_SetValue(75);

              /* Place your application code here. */

          }

      }