bananasiong
New Member
Define LCD_RS as bit 4 of the port, RW as bit 6 and E as bit 7.meera83 said:what's mean by this code?
LCD_RS Equ 0x04 ;LCD handshake lines
LCD_RW Equ 0x06
LCD_E Equ 0x07
So during programming, when you want to set RS, you simply
Code:
bsf PORTA, LCD_RS
You can define them as:if my port pin connection is like
RA1 - E
RA2 - RW
RA3 - RS
DB4 - RD0
DB5 - RD1
DB6 - RD2
DB7 - RD3
then what location should i write??
Code:
LCD_RS Equ 0x03
LCD_RW Equ 0x02
LCD_E Equ 0x01
You use portD for the data bits, just change it in the code.