Shop OBEX P1 Docs P2 Docs Learn Events
BS2p inbuilt LCD-function question — Parallax Forums

BS2p inbuilt LCD-function question

ArchiverArchiver Posts: 46,084
edited 2003-08-04 23:20 in General Discussion
I’m a new user to BS2p, jumping all the way from BS2.

I want to use the inbuilt LCD-functions on the BS2p (LCDCMD,LCDOUT),
but my Parallel LCD is a 4x40 char SEIKO LCD, with two Enable pins, E1 for
the upper two lines and E2 for lower two lines.

Then how can I use LCDCMD pin, command for the 2 first lines and then
use the same function for the next two lines. Or is it another clever way to do
this?

The datasheet tell me to use the LCD as two separate display, so line 1-2 must
be
Initialized, and then line 3-4 afterwards.

I could of course make an electronic mux to control where to guide the signal
eider to E1
Or E2, but that would be brutal.

Hope for a solutions from somebody.








____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-08-04 00:46
    I think you're in luck. Since the BS2p LCD commands allow you to use
    either pin 0 or pin 1 as the Enable pin, you can use both. Like this:

    LCDOUT 0, 1, [noparse][[/noparse]"Display 1"] ' clear display and write string
    LCDOUT 1, 1, [noparse][[/noparse]"Display 2"]

    Connect the other lines as described in the help file. As you've
    indicated, you'll have to double-up on your initialization routine, but
    you can simplify it with a loop:

    FOR ePin = 0 TO 1
    LCDCMD ePin, .....
    ...
    NEXT


    -- Jon Williams
    -- Parallax

    Original Message
    From: xystein frostad [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Pyz1yUi2fDI_gvbqIjTHlBklwNpfaqBF6F-Ap7qlhb6DShxWEwoiMB04pBhiIKWsxJGGGEAKuH9tYR5XriosLlt7D8FY]Stein_Frostad@m...[/url
    Sent: Sunday, August 03, 2003 6:22 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] BS2p inbuilt LCD-function question


    I'm a new user to BS2p, jumping all the way from BS2.

    I want to use the inbuilt LCD-functions on the BS2p (LCDCMD,LCDOUT), but
    my Parallel LCD is a 4x40 char SEIKO LCD, with two Enable pins, E1 for
    the upper two lines and E2 for lower two lines.

    Then how can I use LCDCMD pin, command for the 2 first lines and then
    use the same function for the next two lines. Or is it another clever
    way to do this?

    The datasheet tell me to use the LCD as two separate display, so line
    1-2 must be Initialized, and then line 3-4 afterwards.

    I could of course make an electronic mux to control where to guide the
    signal eider to E1
    Or E2, but that would be brutal.

    Hope for a solutions from somebody.








    ____________________________________________________________
    Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
    http://login.mail.lycos.com/r/referral?aid=27005


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-04 19:14
    It may be helpful (and factually accurate) to think of youe LCD as
    two distinct LCDs sharing all connections except the E* strobe input.

    I'd suggest a simple, OR gate x2 arrangement so that E* strobe is
    directed to one or the other (or possibly even both for
    initialization or other common actions) E* inputs. One input on
    each OR comes from a Stamp pin (so that's two pins, one for each OR
    gate) to determine which input sees the strobe. The Stamp's E*
    output drives both of the other OR inputs. A LOW on the selection
    pin will allow the EN* strobe to pass to the selected LCD.

    Regards,

    Steve

    On 3 Aug 03 at 19:21, xystein frostad wrote:

    > I'm a new user to BS2p, jumping all the way from BS2.
    >
    > I want to use the inbuilt LCD-functions on the BS2p (LCDCMD,LCDOUT),
    > but my Parallel LCD is a 4x40 char SEIKO LCD, with two Enable pins,
    > E1 for the upper two lines and E2 for lower two lines.
    >
    > Then how can I use LCDCMD pin, command for the 2 first lines and
    > then use the same function for the next two lines. Or is it another
    > clever way to do this?
    >
    > The datasheet tell me to use the LCD as two separate display, so
    > line 1-2 must be Initialized, and then line 3-4 afterwards.
    >
    > I could of course make an electronic mux to control where to guide
    > the signal eider to E1 Or E2, but that would be brutal.
    >
    > Hope for a solutions from somebody.
    >
    >
    >
    >
    >
    >
    >
    >
    > ____________________________________________________________
    > Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos
    > Mail! http://login.mail.lycos.com/r/referral?aid=27005
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-04 23:20
    I made it. Everything is working well.

    Special Thanx to Jon.
    And to Steve as well.





    --- In basicstamps@yahoogroups.com, "S Parkis" <parkiss@e...> wrote:
    > It may be helpful (and factually accurate) to think of youe LCD as
    > two distinct LCDs sharing all connections except the E* strobe
    input.
    >
    > I'd suggest a simple, OR gate x2 arrangement so that E* strobe is
    > directed to one or the other (or possibly even both for
    > initialization or other common actions) E* inputs. One input on
    > each OR comes from a Stamp pin (so that's two pins, one for each
    OR
    > gate) to determine which input sees the strobe. The Stamp's E*
    > output drives both of the other OR inputs. A LOW on the selection
    > pin will allow the EN* strobe to pass to the selected LCD.
    >
    > Regards,
    >
    > Steve
    >
    > On 3 Aug 03 at 19:21, xystein frostad wrote:
    >
    > > I'm a new user to BS2p, jumping all the way from BS2.
    > >
    > > I want to use the inbuilt LCD-functions on the BS2p
    (LCDCMD,LCDOUT),
    > > but my Parallel LCD is a 4x40 char SEIKO LCD, with two Enable
    pins,
    > > E1 for the upper two lines and E2 for lower two lines.
    > >
    > > Then how can I use LCDCMD pin, command for the 2 first lines and
    > > then use the same function for the next two lines. Or is it
    another
    > > clever way to do this?
    > >
    > > The datasheet tell me to use the LCD as two separate display, so
    > > line 1-2 must be Initialized, and then line 3-4 afterwards.
    > >
    > > I could of course make an electronic mux to control where to
    guide
    > > the signal eider to E1 Or E2, but that would be brutal.
    > >
    > > Hope for a solutions from somebody.
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > ____________________________________________________________
    > > Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos
    > > Mail! http://login.mail.lycos.com/r/referral?aid=27005
    > >
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed. Text in the
    > > Subject and Body of the message will be ignored.
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    > > http://docs.yahoo.com/info/terms/
    > >
    > >
Sign In or Register to comment.