Shop OBEX P1 Docs P2 Docs Learn Events
Bpi-216 lcd — Parallax Forums

Bpi-216 lcd

dbjdbj Posts: 75
edited 2006-11-26 19:56 in General Discussion
Cant find any working code for the BPI-216 serial LCD, all code in help files wont even load, error! bad comands ect. Does anyone know of any Good code for this LCD for sx28b or bs2p I cant get it to work with any! tried diferant baud rates. reset power on lcd after change nothing seems to work. Have got it to self test once. all other times run programs displays a saw tooth pattern all the way across the screen. Thanks David

Comments

  • Clock LoopClock Loop Posts: 2,069
    edited 2006-11-25 01:53
    do you have a datasheet on the lcd?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-11-25 02:02
    D/L it at www.seetron.com/pdf/bpi_bpk.pdf

    Sawtooth??




    Post Edited (PJ Allen) : 11/25/2006 2:07:19 AM GMT
  • David BDavid B Posts: 592
    edited 2006-11-25 03:17
    Here's a little demo program that·writes a few lines to my Seetron 2-line 20 character LCD on an sx28.

    From a BPI-216 data sheet I found on the web, the interface and control commands used for my 20 character Seetron LCD look identical to the 16 character unit.

    There are a number of things that will mess up this display. Its' data line has to be held low for about a second when it powers up or else it will enter debug mode. Its data bit polarity may need reversing from a "normal" serial output. And of course, you've got to get the baud rate pretty close to perfect.

    A sawtooth sounds like a typical symptom of an incorrect bitrate. You are using a crystal, right? For RS232, you need good frequency control.

    But once all those set properly, it's a great little display.

    This code is set for 9600 baud - check that the switch on the rear is set for the baud rate that you want. The code used to be set up for a 20 mHz crystal, but I recently converted it for 8 mHz. There are some notes on how to calculate the various ISR settings for the right 9600 baud RS232 for different crystal rates. They're not real detailed but maybe they'll help.

    David
  • dbjdbj Posts: 75
    edited 2006-11-25 23:13
    Thanks David that did it now I can move on.
  • JonnyMacJonnyMac Posts: 9,213
    edited 2006-11-26 19:56
    I've attached the SEROUT example from the help file in case you want to use it as reference for future projects.
Sign In or Register to comment.