2010-10-03 02:41 AM
how to count the 12 bit ADC count
2011-05-17 05:09 AM
WriteSerial( DBG_USART, ADC_val );
Perhaps you should convert the number into ASCII before pushing it out to the serial port?
{
char buffer[32];
sprintf(buffer,''%d'',ADC_val);WriteSerial( DBG_USART, buffer ); }
2011-05-17 05:09 AM
''Perhaps you should convert the number into ASCII before pushing it out to the serial port?''
Indeed! The commented-out lines suggest that she might have been trying to do that: //strcat(ADC_val,'':'');
//sprif(ADC_val,ADC_val);
But there seem to be some basic problems there with (lack of) understanding how strings work in the 'C' programming language...?