em viết cái code này k biết sai chỗ nào mà lcd no chỉ sáng chữ k hiện chữ
#include<16f877a.h>
#fuses hs,nowdt,noput
#use delay(clock=20m)
#define LCD_RS_PIN PIN_D0
#define LCD_RW_PIN PIN_D1
#define LCD_ENABLE_PIN PIN_D2
#define LCD_DATA4 PIN_D4
#define LCD_DATA5 PIN_D5
#define LCD_DATA6 PIN_D6
#define LCD_DATA7 PIN_D7
#include <lcd.c>
void main()
{
set_tris_d(0);
lcd_init();
delay_ms(10);
lcd_gotoxy(1,1);
lcd_putc("Lo nhiet on off ");
}
#include<16f877a.h>
#fuses hs,nowdt,noput
#use delay(clock=20m)
#define LCD_RS_PIN PIN_D0
#define LCD_RW_PIN PIN_D1
#define LCD_ENABLE_PIN PIN_D2
#define LCD_DATA4 PIN_D4
#define LCD_DATA5 PIN_D5
#define LCD_DATA6 PIN_D6
#define LCD_DATA7 PIN_D7
#include <lcd.c>
void main()
{
set_tris_d(0);
lcd_init();
delay_ms(10);
lcd_gotoxy(1,1);
lcd_putc("Lo nhiet on off ");
}
Comment