did you try to use on the pc printf( " ADC Number: %d", adcread ); that should show you the decimal value not the ascii value. CYA! Andy K. Amateur Radio Callsign: N1YEW ----- Original Message ----- From: "Dan Mulally" To: Sent: Monday, May 15, 2000 6:05 PM Subject: AD converter with CCS compiler > I'm looking for some sample c code for the CCS compiler which uses the AD > converter on a PIC16F743-20. What type of number is returned by the function > read_adc() ? I can view the data with the printf statement but it looks like > it's formated improperly for readability on a PC. My goal is to send the AD > data down an RS232 line to another PIC and use it for PWM control on a > motor. Attached is my code: serial.c. > > > > Dan Mulally > dtcon@rapidnet.com >