Printing LCD problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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?

0 Likes
1 Solution
Anonymous
Not applicable

Sorry for this post I just forget the configurate DVDAC to 0-4.080V now its working

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Sorry program confusing after  if I set to  > 1V

0 Likes
Anonymous
Not applicable

Sorry for this post I just forget the configurate DVDAC to 0-4.080V now its working

0 Likes