Jump to content

hero_hont

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About hero_hont

  • Rank
    Newbrie
  1. hih when we want display LCD in the programming languages C you can study here: #include #include "lcd.h" #include "lcdcmd.h" /* * Private prototypes: */ void LcdWriteCmd(unsigned char cmd); bit isLcdBusy(void); void waitUntilDone(void); sbit LCD_E = P0^6; sbit LCD_RW = P0^7; sbit LCD_RS = P0^5; sbit BUSY = P1^7; /* * Fetch LCD's busy flag. * Put P1 into read mode before attempting to read! */ bit isLcdBusy(void) { bit retbit; retbit = 0; PRT1CF = 0x00; LCD_RW = 1; LCD_RS = 0; LCD_E = 1; P1 = 0xFF; retbit = P1^7; LCD_E = 0; PRT1
×
×
  • Create New...