Hallo,

ich verwende auch dieses Display am ATmega32 und 644.
Man muss die Lib "lcd4e2.lbx" includieren. Im Source der Lib ist die Konfiguration zu beachten:
##########
;the default library for Bascom can handle worst case scenarios where each pin of the LCD
;is connected to a random pin of the micro
;When we choose the data port pin in sequence, we can save some code
;This lib shows how to use the LCD in 4 bit mode with 2 E lines !

;Rs = PortB.0
;RW = PortB.1 we dont use the R/W option of the LCD in this version so connect to ground
; E = PortB.2
;E2 = PortB.3 for lcd with 2 chips
;Db4 = PortB.4 the data bits must be in a nibble to save code
;Db5 = PortB.5
;Db6 = PortB.6
;Db7 = PortB.7



;This routine is called when the LCD must be initialized
;dont forget to dimension a byte named ___LCDE
[_Init_LCD]
.EQU LCDDDR=$17 ; change to another address for DDRD ($11)
.EQU LCDPORT=$18 ; change to another address for PORTD ($12)
############

Allso alle Pins des LCDs müssen an den gleichen PORT.
Hier ein auszug aus meinem Bascom Source:
'##########################################
'Einbindung der LCD-Bibliothek für ein 2-Prozessor-Display
' Hier speziell für den atmega644 und PortB ansonsten lcd4e2.lbx
$lib "lcd4e2-644.lbx"
'##########################################

'####### New LCD Config 4x27 Zeichen ###########
'man achte auf die Ergänzung E2
Config Lcdpin = Pin , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7 , E = Portb.2 , E2 = Portb.3 , Rs = Portb.0
Dim ___lcde As Byte
___lcde = 0
Config Lcd = 40 * 4
Config Lcdbus = 4 '4 Bit Modus
Cursor Off Noblink 'LCD = Cursor aus

#################

Ich hoffe das hilft weiter.
PS: Und nicht vergessen RW vom LCD auf Ground

Gruß mr_energy