#include <16f887.h>
#include <stdlib.h>
#use delay(clock =4000000)
#include <LCD.c>
#fuses nowdt,noprotect,nolvp
#use fast_io (d)
#use fast_io (e)
#define LCD_ENABLE_PIN PIN_E0
#define LCD_RS_PIN PIN_E2
#define LCD_RW_PIN PIN_E1
#define LCD_DATA4 PIN_D4
#define LCD_DATA5 PIN_D5
#define LCD_DATA6 PIN_D6
#define LCD_DATA7 PIN_D7
void main()
{
set_tris_d(0x00);
set_tris_e(0x00);
lcd_init();
lcd_putc("TUAN");
}
#include <stdlib.h>
#use delay(clock =4000000)
#include <LCD.c>
#fuses nowdt,noprotect,nolvp
#use fast_io (d)
#use fast_io (e)
#define LCD_ENABLE_PIN PIN_E0
#define LCD_RS_PIN PIN_E2
#define LCD_RW_PIN PIN_E1
#define LCD_DATA4 PIN_D4
#define LCD_DATA5 PIN_D5
#define LCD_DATA6 PIN_D6
#define LCD_DATA7 PIN_D7
void main()
{
set_tris_d(0x00);
set_tris_e(0x00);
lcd_init();
lcd_putc("TUAN");
}
Comment