Problem whit At91sam7s64 and lcd

OP #1174542
Rate this post
• ▲ useful
▼ not useful
Hello I have a little problen I traind to do a little program but i have
a very rare problem i use a 16x2 LCD.

the problem is when it put energy in the procesador the  Lcd traid to
inizialiset but start in black but if i disconect the lcd and later
reconect and reset de  the chip it's start work correcty and inizialiset
de lcd correcty, why??????, i need the program start correcety when i
put de energy

i attach the main.c
Attached files:
Moderator #1174543
Rate this post
• ▲ useful
▼ not useful
Daniel Gomez wrote:
> Hello I have a little problen I traind to do a little program but i have
> a very rare problem i use a 16x2 LCD.
>
> the problem is when it put energy in the procesador the  Lcd traid to
> inizialiset but start in black but if i disconect the lcd and later
> reconect and reset de  the chip it's start work correcty and inizialiset
> de lcd correcty, why??????,
By "start in black" you mean 1 or 2 solid black lines? What happens if
you just reset the controller without "disconnect/reconnect" of the
LCD-module?

> i need the program start correcety when i
> put de energy
Usual problems causing LCD startup-problems and unreliable startup:
- some LCD-modules need some "startup-time" to stablize the internal
supplies (i.e. contrast-voltage boosters, segment-controller(s))
- the delay-times esp during init are too short (check with a scope)
- configuration of the used IO-Pins (check PIO-config, -clocking,
alternate pin-functions, check with scope)
- initial state of some pins not defined correctly esp. before the init
sequence
(write a minimal application which just toogles the pins against
pull-up/pull-down-resistors)
- logic levels are not fully compatible (compare minimum voltage for
input logic high from module's datasheet and output voltage for µC).
- signals are not "clean" (check with a scope)
- "Enable-strobe-time" short (again, check with a scope)
- LCD-module just broken, did you try with another one.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.