Other Parts Discussed in Thread: HALCOGEN
Hi i'm Hoseong Yun.
I made 2-ADC Check code(3.3V, 1.2V)
Below is my code.
==================================================
int main(void)
{
/* USER CODE BEGIN (3) */
uint8 msg[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
/*Initialize module*/
sciInit();
adcInit();
while(1)
{
adcStartConversion(adcREG1, adcGROUP1);
while((adcIsConversionComplete(adcREG1, adcGROUP1)) == 0);
adcGetData(adcREG1, adcGROUP1, adc_data);
sprintf((char *)msg, "value1=%d\n\r", adc_data[0].value);
sciSend(sciREG, strlen((const char *)msg), msg);
sprintf((char *)msg, "value2=%d\n\r", adc_data[1].value);
sciSend(sciREG, strlen((const char *)msg), msg);
delay(5000);
}
/* USER CODE END */
return 0;
}
========================================================
As a result, i checked 3.3V as picture.
But i couldn't checked 1.2V.
what should i add on my code?