Hola,
aportando un poco sobre el problema, el pin DI es el mismo que el RS, hace tiempo tuve ese mismo problema y comparto el código de ejemplo para ambos GLCD's:
'****************************************************************
'* Name : GLCD_LGM12641BS1R.BAS *
'* Author : [EJM] *
'* Notice : Copyright (c) 2016 [EJM] *
'* : All Rights Reserved *
'* Date : 14/07/2016 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
Device = 18F4520
Xtal = 48
'Configuración GLCD LGM12641BS1R
LCD_DTPort = PORTD
LCD_RSPin = PORTB.0
LCD_RWPin = PORTB.1
LCD_ENPin = PORTB.2
LCD_CS1Pin = PORTB.3
LCD_CS2Pin = PORTB.4
LCD_Type = GRAPHIC
GLCD_CS_Invert = On
Declare GLCD_STROBE_DELAY 50
Internal_Font = On
Font_Addr = 0
TRISB = $00 : TRISD = $00
Cls
DelayMS 200
BASLA:
Print At 0,5,"PIC18F4520"
DelayMS 1000
Print At 2,2,"GLCD LGM12641BS1R"
DelayMS 1000
Print At 4,5,"Con PROTON"
DelayMS 1000
Print At 6,3,"128*64 PIXELES"
DelayMS 1000
GoTo BASLA
End
Include "font.inc"
'****************************************************************
'* Name : GLCD_AMPIRE128X64.BAS *
'* Author : [EJM] *
'* Notice : Copyright (c) 2016 [EJM] *
'* : All Rights Reserved *
'* Date : 14/07/2016 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
Device = 18F4520
Xtal = 48
'Configuración GLCD AMPIRE128X64
LCD_DTPort = PORTD
LCD_RSPin = PORTB.0
LCD_RWPin = PORTB.1
LCD_ENPin = PORTB.2
LCD_CS1Pin = PORTB.3
LCD_CS2Pin = PORTB.4
LCD_Type = GRAPHIC
Declare GLCD_STROBE_DELAY 50
Internal_Font = On
Font_Addr = 0
TRISB = $00 : TRISD = $00
Cls
DelayMS 200
BASLA:
Print At 0,5,"PIC18F4520"
DelayMS 1000
Print At 2,2,"GLCD AMPIRE128X64"
DelayMS 1000
Print At 4,5,"Con PROTON"
DelayMS 1000
Print At 6,3,"128*64 PIXELES"
DelayMS 1000
GoTo BASLA
End
Include "font.inc"
Cualquier duda u observación comentalo.
Saludos.