Hm, das Modul kenn ich natürlich (habs ja entwickelt :).
Hab grad zusammen mit dem Prototypen des dazu passenden Application
Boards einen Test gemacht. Alles funktioniert wie erwartet. Leider kann
ich Dir bei der Initialisierung in ASM oder C (noch) nicht helfen, da
ich derzeit in Pascal programmiere.
Das sieht dann in etwa so aus (das Display wird über I2C angesteuert):
program LCDTest;
{ $BOOTRST $00C00} {Reset Jump to $00C00}
{$NOSHADOW}
{ $W+ Warnings} {Warnings off}
Device = mega8, VCC=5;
Import SysTick, ADCPort, LCDmultiPort, TWImaster;
From System Import ;
Define
ProcClock = 16000000; {Hertz}
SysTick = 10; {msec}
StackSize = $0064, iData;
FrameSize = $0064, iData;
ADCchans = 2, iData;
ADCpresc = 128;
TWIpresc = TWI_BR400;
LCDmultiPort = I2C_TWI;
LCDrows_M = 4; {rows}
LCDcolumns_M = 16; {columns per line}
LCDtype_M = 44780;
Implementation
{$IDATA}
{--------------------------------------------------------------}
{ Type Declarations }
type
{--------------------------------------------------------------}
{ Const Declarations }
{--------------------------------------------------------------}
{ Var Declarations }
{$IDATA}
var
temp : word;
LCD_num : TLCD_num;
st1 : string[10];
{--------------------------------------------------------------}
{ functions }
{--------------------------------------------------------------}
{ Main Program }
{$IDATA}
begin
LCDsetup_M(LCD_m2);
LCDcursor_M(LCD_m2, true, false);
EnableInts;
loop
temp:=GetADC(1);
st1:=IntToStr(temp);
LCDClr_M(LCD_M2);
write(LCDOut_M, st1);
mDelay(10);
endloop;
end LCDTest.