Hello Friends,
I need help to understand the working of LCD 12C serial interface with SDA & SDL.
I am using 16x2 LCD module with 12c serial interface. (https://robu.in/product/iici2c-seri...EYpNE_atkqyVaujsRlmZWvRu76glFLacaAtClEALw_wcB)
My current code for use with out 12c interface.
Above code works perfectly, how do i do the same using 12C serial interface.
Any help shall be highly appreciated.
Thanx in advance.
Mastero
I need help to understand the working of LCD 12C serial interface with SDA & SDL.
I am using 16x2 LCD module with 12c serial interface. (https://robu.in/product/iici2c-seri...EYpNE_atkqyVaujsRlmZWvRu76glFLacaAtClEALw_wcB)
My current code for use with out 12c interface.
Code:
'PIC 18f2520
Define CONFIG1L = 0x00
Define CONFIG1H = 0x02
Define CONFIG2L = 0x19
Define CONFIG2H = 0x00
Define CONFIG3L = 0x00
Define CONFIG3H = 0x81
Define CONFIG4L = 0x80
Define CONFIG4H = 0x00
Define CONFIG5L = 0x0f
Define CONFIG5H = 0xc0
Define CONFIG6L = 0x0f
Define CONFIG6H = 0xe0
Define CONFIG7L = 0x0f
Define CONFIG7H = 0x40
Define CLOCK_FREQUENCY = 20
AllDigital
Define SIMULATION_WAITMS_VALUE = 1 'FOR SIMULATION
Define LCD_BITS = 4
Define LCD_DREG = PORTB
Define LCD_DBIT = 0
Define LCD_RSREG = PORTA
Define LCD_RSBIT = 2
Define LCD_RWREG = 0
Define LCD_RWBIT = 0
Define LCD_EREG = PORTA
Define LCD_EBIT = 4
Define LCD_READ_BUSY_FLAG = 0
Lcdinit
loop:
Lcdcmdout LcdClear
Lcdout "WELCOME"
Lcdcmdout LcdLine2Home
Lcdout "WORLD"
WaitMs 1000
Goto loop
Above code works perfectly, how do i do the same using 12C serial interface.
Any help shall be highly appreciated.
Thanx in advance.
Mastero