Forum: Mikrocontroller und Digitale Elektronik mit atmega32 hd44780 kompatiebles Display ansteuern


von Gizmo (Gast)


Lesenswert?

Hi ich versuche mit einem ATMEGA32 und dem STK500 ein HD44780
kompatiebles LCD anzusteuern. Das LCD hängt an PortD des stk500, ich
schaffs irgendwie nicht, die LCD.h von Peter Fleury im programmers Note
Pad2 einzubinden. avr gcc sagt folgendes:

> "make.exe" all

-------- begin --------
avr-gcc (GCC) 3.4.1
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

make.exe: *** No rule to make target `LCDcontroll.o', needed by
`LCDcontroll.elf'.  Stop.

> Process Exit Code: 2

ich habe im makefile meines programmes die lcd.h als sourcefile
angegeben.

SRC = $(TARGET).c lcd.h

In der lcd.h habe ich XTAL2 auf 8000000 gesetzt da das auch mein µc
takt ist.

was habe ich falsch gemacht ?

irgendwie kann avr gcc die lcd.h nicht einbinden.

p.s. Die Lcd.h liegt natürlich auch in dem Ordner in dem sich das c
program befindet.

von Rahul (Gast)


Lesenswert?

erstens: flasches Forum...

zweitens: Muss man die LCD.H nicht per #include ins C-Programm
einbinden?

von Gizmo (Gast)


Lesenswert?

die habe ich auch über #include lch.h ins c programm eingebunden

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.