• Jueves 18 de Abril de 2024, 10:55

Autor Tema:  Problema LCD/PIC16F877A  (Leído 2739 veces)

Pipi83

  • Nuevo Miembro
  • *
  • Mensajes: 2
    • Ver Perfil
Problema LCD/PIC16F877A
« en: Sábado 29 de Mayo de 2010, 17:54 »
0
Buenas, quería preguntarles acerca del manejo del LCD ITM-1602 (supuestamente compatible con el controlador HD44780). Estoy utilizando el 16F877A y la librería LCD.C del CCS... pero no me está funcionando, aquí les dejo el programita (muy básico) para mostrar algun mensaje... si alguno me puede decir donde está mi error les agradeceríaa


#include <16F877A.h>
#device adc=8

#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOPUT //No Power Up Timer
#FUSES NOPROTECT //Code not protected from reading
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD //No EE protection
#FUSES NOWRT //Program memory not write protected
#FUSES RESERVED //Used to set the reserved FUSE bits

#use delay(clock=20000000)

#include <LCD.C>


void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_CLOCK_DIV_2);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
lcd_init();

while (1){
lcd_putc("fMENSAJEn");
delay_ms(1000);
}
}