Lcd pin out help


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    The four data lines (4 bit mode) have to be on the same port going from 0-3 or 4-7.
    The othe two lines can be anywhere.
    Example:
    Code:
    DEFINE LCD_DREG     PORTC
    DEFINE LCD_DBIT     0
    DEFINE LCD_RSREG    PORTD
    DEFINE LCD_RSBIT    1
    DEFINE LCD_EREG     PORTD
    DEFINE LCD_EBIT     0
    DEFINE LCD_BITS     4
    DEFINE LCD_LINES    2
    DEFINE LCD_COMMANDUS    2000
    DEFINE LCD_DATAUS   50
    This is all standard.
    Darrel has a trick called LCD AnyPin that does as the name implies. Non standard

    can i use something like
    lcdout $fe, 1
    pause 500
    lcdout fan1 (a) fan2 (b)
    if temperature =21 then let (a)=on and (b)=off
    if temperature =23 then let (a)=off and (b)= on
    Try something like
    If temperature is whatever gotsub a subroutine.
    Dave
    Always wear safety glasses while programming.

  2. #2
    smeghead's Avatar
    smeghead Guest


    Did you find this post helpful? Yes | No

    Default

    cheers again have already wrote 4 subroutines for the various temperature fan states . just wondered if i could do it the other way will have a search for darrels ant pin routine

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17: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