using lm016l display

Discussion in 'Homework Help' started by smokeygolf, Apr 12, 2007.

  1. smokeygolf

    Thread Starter Member

    Oct 23, 2006
    12
    0
    hi, my task was to get this display up and running and to put out one letter. i have written the code in assembler. i am having problems setting up the display. i want to put out the letter n. the code i wrote is below:

    org 0000H
    mov a, #38h
    mov dptr, #8000h
    movx @ dptr, a
    acall delay
    mov a, #0eh
    movx @ dptr, a
    acall delay
    mov a, #01h
    movx @ dptr, a
    acall delay
    mov dptr, #8010h
    disp: mov a, #04eh
    delay: mov r4, #255
    here: djnz r4, here
    ret
    end


    anyone got any pointers or see a fault?
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    If this character-type LCD display is like many of those on the market, it will need to be initialized before you can begin outputing character data to the display.

    Take a look at this website on LCD inferfacing. It should help you get started.

    hgmjr
     
  3. smokeygolf

    Thread Starter Member

    Oct 23, 2006
    12
    0
    i have set up the display now and the cursor is showing on the top left of the screen, just cant output a letter:(
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Make certain that you are sending the display the row and character position location where you want the character to appear. These displays often have RAM space that maps to a position that is not in the viewable screen space. This is so that you can set up a message off screen and then scroll it across the screen with the appropriate commands.

    hgmjr
     
Loading...