Aca les muestro la respuesta del trabajo. Ya antes habia enviado la simulacion en proteus, solo es compilar el pic con el siguiente programa y funciona.
#include <18F452.h>
#device adc=10
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES XT //Crystal osc <= 4mhz for PCM/PCH , 3mhz to 10 mhz for PCD
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOOSCSEN //Oscillator switching is disabled, main oscillator is source
#FUSES NOBROWNOUT //No brownout reset
#FUSES BORV20 //Brownout reset at 2.0V
#FUSES PUT //Power Up Timer
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOWRT //Program memory not write protected
#FUSES NOWRTD //Data EEPROM not write protected
#FUSES NOWRTB //Boot block not write protected
#FUSES NOWRTC //configuration not registers write protected
#FUSES NOCPD //No EE protection
#FUSES NOCPB //No Boot Block code protection
#FUSES NOEBTR //Memory not protected from table reads
#FUSES NOEBTRB //Boot block not protected from table reads
#use delay(clock=4000000)
#define LCD_RS_PIN PIN_D0
#define LCD_RW_PIN PIN_D1
#define LCD_ENABLE_PIN PIN_D2
#define LCD_DATA4 PIN_C4
#define LCD_DATA5 PIN_C5
#define LCD_DATA6 PIN_C6
#define LCD_DATA7 PIN_C7
#include<lcd.c>
long Resultado;
float Presion;
void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_CLOCK_DIV_2);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_wdt(WDT_OFF);
setup_timer_0(RTCC_INTERNAL);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
set_tris_a(0b01111111);
set_tris_b(0b11111111);
set_tris_c(0b00001111);
set_tris_d(0b11111000);
set_tris_e(0b00000111);
setup_adc(ADC_CLOCK_INTERNAL);
setup_adc_ports(AN0_AN1_AN3);
set_adc_channel(0);
lcd_init();
lcd_putc('\f');
lcd_gotoxy(4,1);
lcd_putc("Modulo ADC");
delay_ms(1000);
lcd_putc('\f');
set_adc_channel(0);
while(True)
{
set_adc_channel(0);
Resultado = read_adc();
Presion = (0.029325513*Resultado);//y=mx+b
lcd_gotoxy(1,1);
printf(lcd_putc,"1=%1.2fC",Presion);
delay_ms(10);
set_adc_channel(1);
Resultado = read_adc();
Presion = (0.029325513*Resultado);//y=mx+b
lcd_gotoxy(10,1);
printf(lcd_putc,"2=%1.2fC",Presion);
delay_ms(10);
set_adc_channel(2);
Resultado = read_adc();
Presion = (0.029325513*Resultado);//y=mx+b
lcd_gotoxy(6,2);
printf(lcd_putc,"3=%1.2fC",Presion);
delay_ms(10);
}
}