HSEROUT to LCD with 16F887


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    So, take your project, figure out what it's outputting, take the device you're talking to, figure out what it wants, take your project again and change it to match...
    According to his post <b>#3</b> his serial LCD is accepting N9600, he need to read the data sheet for that device and change it to Txxxx to use HSEROUT. Most likely it requires moving a shorting block on a three pin header.
    Last edited by Archangel; - 25th June 2008 at 23:57.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    from the LCD data sheet:
    "Serial input...............RS-232, or inverted TTL/CMOS, 2400 or 9600, N81"
    http://www.seetron.com/pdf/bpi_bpk.pdf

    I do not see any documentation beside changing the speed from 2400 to 9600 using the SW on its back.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by menta View Post
    from the LCD data sheet:
    "Serial input...............RS-232, or inverted TTL/CMOS, 2400 or 9600, N81"
    http://www.seetron.com/pdf/bpi_bpk.pdf

    I do not see any documentation beside changing the speed from 2400 to 9600 using the SW on its back.
    Exactly...so...read it again...the backpack takes RS232 or inverted TTL/CMOS, which if you have read my last post completely and understood it, you would know that from a logic level standpoint (not a voltage level) RS232 = inverted TTL.

    Therefore, without any external hardware, only one subset of the PBP serial format communication commands can successfully communicate with this LCD module.

    So, to quote myself once again...
    SERIN/SERIN2/SEROUT/SEROUT2/DEBUG/DEBUGIN - software driven
    You can set the modes, normal, inverted, whatever. Totally and completely driven by software. You can emulate the logical levels of standard RS232, but not the actual voltages present in standard RS232 (i.e. inverted)...or... You can emulate the logic levels and voltage levels of what is sometimes called TTL-RS232 (i.e. normal)...

    HSERIN/HSERIN2/HSEROUT/HSEROUT2 - hardware driven
    You can NOT change the modes here, only the baud rates, bits per character, and a few other parameters. This is completely driven by the hardware inside the PIC. There is NO inversion anywhere inside the PIC, whether it be thru hardware or software.

    In short:
    HSERxxx - needs a MAX232 device if talking to an RS232 compliant device. May or may not need a MAX232 type device if talking to any other type device (i.e. directly to another PIC. What drives a Serial LCD? Anyone?).

    SERxxx - may or may not need a MAX232 type device depending on the application.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    According to his post <b>#3</b> his serial LCD is accepting N9600, he need to read the data sheet for that device and change it to Txxxx to use HSEROUT. Most likely it requires moving a shorting block on a three pin header.
    Can't do that with this particular module. Only takes RS232 (inverted) inputs.

  5. #5
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    Thanks....

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    You can use a single transistor and a couple resistors to invert the signal from the USART.

    You don't have to go with a full MAX232.
    DT

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. LCD and HSEROUT do not mix well ?
    By Johan in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th November 2008, 16:38
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. Controlling an 240x128 LCD Touchpanel Display
    By Vincent in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 7th June 2006, 23:36

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