__________________________; _> - <______________________________;
_____; ___________________ __________; p> __________________; ____________/ ___;
___________________; _____________> -------------- <______; STATUS, C; Set the register selectLCD_RSSTATUS, CLCD_RSLCD_RW; Set write modeLCD_D4_DIR; Set data bits to outputsLCD_D5_DIRLCD_D6_DIRLCD_D7_DIR; Small delayLCD_E; Setup to clock datatemp_wr, 7; Set high nibbleLCD_D7temp_wr, 7LCD_D7temp_wr, 6LCD_D6temp_wr, 6LCD_D6temp_wr, 5LCD_D5temp_wr, 5LCD_D5temp_wr, 4LCD_D4temp_wr, 4LCD_D4LCD_E; Send the data; LCDBusyLCDWriteNibbletemp_wr, FLCDWriteNibble
ДОДАТОК В. Підключається файл із описом функцій (продовження)
swapf temp_wr, FLCDWrite;
_____
____________________________________________________; _________ /;
________________________________________; ____________/ ____/ __;
______________________________; _________________> -------------- <__________> -------------- <___; LCD_D4_DIR; Set data bits to inputsLCD_D5_DIRLCD_D6_DIRLCD_D7_DIRSTATUS, C; Set the register selectLCD_RSSTATUS, CLCD_RSLCD_RW; Read = 1LCD_E; Setup to clock dataLCD_D7; Get high nibbletemp_rd, 7LCD_D7temp_rd, 7LCD_D6temp_rd, 6LCD_D6temp_rd, 6LCD_D5temp_rd, 5LCD_D5temp_rd, 5LCD_D4temp_rd, 4LCD_D4temp_rd, 4LCD_E; Finished reading the dataLCD_E; Setup to clock dataLCD_D7 ; Get low nibbletemp_rd, 3LCD_D7temp_rd, 3LCD_D6 temp_rd, 2
btfsc LCD_D6temp_rd, 2LCD_D5temp_rd, 1LCD_D5temp_rd, 1LCD_D4temp_rd, 0LCD_D4temp_rd, 0LCD_E; Finished reading the data; BFLCD_INStemp_rd, 7LCDBusyLCDBusydelay, FDelayXCycles