help......problem with lcd

Discussion in 'Embedded Systems and Microcontrollers' started by h.d, Mar 1, 2008.

  1. h.d

    Thread Starter Active Member

    Oct 22, 2007
    150
    0
    hi
    i tray to display values on lcd but there are problem
    please see the code and the output
    and please help........

    the code in mBASIC


    program lcd1test
    dim x,y as byte

    dim x1,y1 as string[3]

    main:


    lcd_config(portb,7,6,5,4,portb,1,2,3)
    lcd_cmd(lcd_clear)
    lcd_out(1,1,"timer")
    lcd_cmd(Lcd_Cursor_Off)

    lcd_out(1,8,"km/h")
    lcd_out(1,14,"km")

    lcd_out(2,8,"18")
    lcd_out(2,14,"25")


    for y=0 to 60
    bytetostr(y,y1)
    lcd_out(2,0,y1)

    for x=0 to 59
    bytetostr(x,x1)
    lcd_out(2,3,x1)
    delay_ms(1000)
    next x

    next y


    end.
     
  2. Nandini

    New Member

    Jul 10, 2007
    1
    0
    i can guide you in assembly as i dont know mbasic
     
  3. h.d

    Thread Starter Active Member

    Oct 22, 2007
    150
    0
    ok,no problem
    i know some assembly,plz help if you can.
     
Loading...