I can't load the project due to some customer info included.
full project uploaded under TIC 1-1005917641
below is a screen capture of the bean settings.
/* User includes (#include below this line is not maintained by Processor Expert) */
bool ValuesAvailable = FALSE; // control variable
unsigned int ADC_Value[2];
LDD_TError Error;
unsigned int i,j;
LDD_TDeviceData *MyDataPtr;
unsigned int timer_done=FALSE;
unsigned int ADC_Total,ADC_Avg;
unsigned int temp;
bool ValuesAvailable;
And here is the code I used its all tabbed corrrectly:
| AD1_Measure(TRUE); | | | | | |
| | AD1_GetValue(ADC_Value); | | | |
| Wait_ADC: | | |
| | while(!ValuesAvailable)goto Wait_ADC; /* wait for interrupt saying ADC is complete */ |
| | ValuesAvailable = FALSE; |
