This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Another strange question in keil51

A function(used to display something in lcd) cann't work normally for uncertain reasion.But when I put the cotent of it where it is used ,I get all I want.Even strangely ,if I wirte some structions just after this function ,it will also works normally.What's the matter at all?Is this made by the keil51 ? Expecting and thanks for your answer.

Parents
  • Hi there!

    It kinda shows, that the problem originates from an insufficient timing. Maybe your delay function doesn't work properly, maybe the compiler "optimizes" it, so there is not much of a delay. I have also experienced once, that I had to use longer delays than in the datasheet of the display. I would check the assembler code in the list file to assure that the delay is what you want it to be.

    Take care
    Sven

Reply
  • Hi there!

    It kinda shows, that the problem originates from an insufficient timing. Maybe your delay function doesn't work properly, maybe the compiler "optimizes" it, so there is not much of a delay. I have also experienced once, that I had to use longer delays than in the datasheet of the display. I would check the assembler code in the list file to assure that the delay is what you want it to be.

    Take care
    Sven

Children
No data