hi, i'm new to MCU and currently setting up a circuit to monitor temperature with PC. I'm using LM35 (10mV/degC) , PIC16F877A and Max232 with USB-to-RS232 converter, using hyperterminal to acquire data from RS232.
The pin2(RA0) used as analog input, while RC6 for TX and RC7 for RX.
i google for a while and found out a similar coding but unfortunately is not complete solution, does it missing some header?? and how to setup UART with SERIN and SEROUT?? thanks

DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50

x var byte

TRISA=255
TRISB=0
ADCON1=%10000010
pause 500

loop1:

ADCIN 0,x
PortB = x
output PortB
pause 500

goto loop1
end