text message

Discussion in 'Programmer's Corner' started by meratzadeh, Feb 6, 2010.

  1. meratzadeh

    Thread Starter New Member

    Feb 5, 2010
    1
    0
    hi everybody,I am going to make a scrolling text massege by at89c52 & 74hc595 ,may sombody to helpe me to write the assembly language to use of dptr.thanks.:rolleyes:
     
  2. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,015
    Why does it need to be assembler? You don't make things easy do you? :)

    I can give you an algorithm.


    You will have a large string of characters which is your message. You will have two indexes. A beginning index and an ending index.

    You output all of the characters from the beginning index to the ending index to the LCD. Increment both indexes. Check both indexes when either exceeds the max index, set that index to zero. Do a short delay and start all over again.

    Hopefully I have not missed anything. :)
     
Loading...