void main() {
float volt,press,calc,adc_value;
char inter, deci;
ADCON1 = 0x80; // Configure analog inputs and Vref
TRISA = 0xFF; // PORTA is input
TRISB = 0x3F; // Pins RB7, RB6 are outputs
TRISD = 0; // PORTD is output
usart_init(2400);
do {
adc_value = Adc_Read(2); // Get results of AD conversion
press = adc_value*0.005;
inter = (int) press;
deci= (int) (press*10.0) - inter*10;
usart_write('V');
usart_write('O');
usart_write('L');
usart_write('T');
usart_write('=');
usart_write(inter | 0x30);
usart_write('.');
usart_write(deci | 0x30);
usart_write(13);
usart_write(10);
delay_ms(1000);
} while(1);
}