Hola qué tal! Estoy construyendo un mensaje en movimiento en un LCD 16*2 con un 18f2550, pero por alguna razón no me funciona, Utilizo el Pic C Compiler PCWHD, y al programar el código y compilarlo no me marca ningún error, pero al simularlo en proteus no me aparece ningún solo mensaje ni ningún carácter. Ya he visto varias imágenes de como conectar el lcd al pic, y también ví la manera de definir los pins, pero aún así no consigo que funcione, aquí está el código:
#Include <18F2550.h>
#include <stdio.h>
#include <stdlib.h>
#define LCD_DB4 PIN_B4
#define LCD_DB5 PIN_B5
#define LCD_DB6 PIN_B6
#define LCD_DB7 PIN_B7
#define LCD_RS PIN_B0
#define LCD_RW PIN_B1
#define LCD_E PIN_B2
#DEFINE USE_PORTB_LCD TRUE
#Fuses INTRC,NOMCLR,NOBROWNOUT,XT,NOPROTECT,NOWDT,PUT,NOLVP
#use delay(clock=4000000,crystal)
#include <lcd.c>
void main()
{
char y=1;
signed char x=16;
lcd_init();
While (True)
{
lcd_gotoxy(x,y);
lcd_putc("BIOMEDICA");
delay_ms(100);
x--;
if(x<-9)
{
x=16;
}
lcd_putc("\f");
}
}