2 Replies Latest reply on Aug 14, 2018 8:11 AM by fatihgök

    Printing LCD problem

    fatihgök

      Hi everyone!

       

      I have someproblem I'm using DVDAC example So I got problem with printing

       

      for(;;)

          {

              LCD_ClearDisplay();

            ///////////////////////////////////////  DVDAC_SetValue(ADC_DelSig_ReadInt32()); /////////////////////////////////////

              LCD_Position(0u,0u);

              LCD_PrintString("DVDAC Deneme:");

              LCD_Position(1u,0u);

              sprintf(line,"%4.3f",ADC_DelSig_ReadInt32());

              LCD_PrintString(line);

              CyDelay(250);

          }

       

      float ADC_DelSig_ReadInt32(void)

      {

          float result;

       

       

          ADC_DelSig_DEC_SR_REG |= ADC_DelSig_DEC_INTR_CLEAR;

          ADC_DelSig_StartConvert();

          (void) ADC_DelSig_IsEndConversion(ADC_DelSig_WAIT_FOR_RESULT);

          ADC_DelSig_StopConvert();

          result = ADC_DelSig_CountsTo_Volts(ADC_DelSig_GetResult32()) * 1000.0;

       

       

          return(result);

      }

       

      I have this So if I set my input to such as 605 output will be 0.605V But if my input >1.5V my program is confusing

       

      So how can I fix it?