- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for this post I just forget the configurate DVDAC to 0-4.080V now its working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry program confusing after if I set to > 1V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for this post I just forget the configurate DVDAC to 0-4.080V now its working