Forum: Compiler & IDEs DDRE in Atmega162 and LCD


von Filipe R. (filipe)


Lesenswert?

Hi,

I am using the atmega162 with a T6963 LCD and GCC compiler.
The control bus are in PORT C and data bus PORT A.
I am also unsing PORT E pins 1 and 2 to a external circuit(chip select
to 2 4514N).

The problem:
When I set the DDRE pins 1,2 to output, the LCD get trash!
I write on lcd and all is fine, but after to assign 'DDRE = 0x06' and
write again the LCD is defaced,

(Can you reply in english? thank you)

von Ingo (Gast)


Lesenswert?

Perhaps you can post the code you are using and the schematics?

von A.K. (Gast)


Lesenswert?

Possible reason: One or two of those port E pins is stuck and using them
as output causes high current flow in or out of those pins.

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.