problem with 2*16 lcd


Results 1 to 7 of 7

Threaded View

  1. #3
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Try this
    Code:
    define lcd_dreg portd
    define lcd_dbit 4
    define lcd_rsreg portd
    define lcd_rsbit 2
    define lcd_ereg portd
    define lcd_ebit 3
    define lcd_bits 4
    define lcd_lines 2
    main:
    low portd.1
    lcdout $fe,1, "EMBEDED SYSTEMS pro."
    pause 500
    if portb.0=0 then l2
    pause 500
    lcdout $fe,1, "project1"
    while portb.0=1
    toggle portb.1
    pause 200
    wend
    goto main
    l2:
    pause 500
    lcdout $fe,1, "project2"
    while portb.0=1
    Toggle portb.1
    pause 600
    wend
    goto main  
    end
    I didn't check the logic ... it should do the same thing you originally coded (except with a few errors fixed like changing your returns to gotos.
    Last edited by paul borgmeier; - 29th April 2007 at 09:09. Reason: undid edit - as originally posted
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Similar Threads

  1. LCD problem with 16F628
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 19th September 2016, 08:28
  2. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  3. LCD problem
    By Andre_Pretorius in forum General
    Replies: 8
    Last Post: - 27th January 2009, 15:47
  4. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts