Announcement

Collapse
No announcement yet.

Delay between commands?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Delay between commands?

    Hi,
    I've just started using a uLCD-32PT connected to a STM32 micro-controller. I have found that if I send two commands in rapid succession the second command is ignored. As it happens the first command is clear screen ($45). A 50ms delay is enough. I see no mention of this in the manual. How long a delay is enough? Is there some way to poll the display to determine if it is ready yet?

    I am waiting for the ACK to come back from the clear screen command before sending the next command.

    Cheers,

    Mark

  • #2


    All you have to do is wait for the ACK, no delay is needed.

    Of course you need to wait for the ACK to the command you just sent and not the ACK to a 'previous' command, or some response to an accidental 'extra' command.
    Mark

    Comment


    • #3


      You are right, I have added some code to empty my receive buffer before sending a command and now it is working without any delay. There must have been an extra "ACK" somewhere so I wasn't waiting for the command's "ACK".

      Thanks,

      Mark

      Comment

      Working...
      X