serial lcd with 16f628


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Insert DEFINE OSC 10 & be sure to set HS in config word.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    im probably sounding like an idiot now, but i just cant seem to get it to work and i have been trying for 3 days now...

    i really apreciate the help.

    @ DEVICE HS_OSC
    DEFINE OSC 10
    cmcon = 7
    TRISA = %00000000
    TRISB = %00001000

    lcd VAR PORTA.3
    baud CON 16416 '24608 16416

    Pause 2000

    start:

    SerOut2 lcd, baud,["Hello World"]
    Pause 2000
    GoTo start
    End


    thanks
    dan

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Do you have a link to the data sheet for this LCD?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    here is the link to the datasheet...

    http://www.bipom.com/lcds/manuals/lcd2041.pdf

    thanks for the help...

    danny

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Is the protocol select jumper set for TTL or RS232?

    If it's setup for RS232 then you should be able to talk to it with the Matrix uProject software. If not, check your comms wiring.

    If it's setup for TTL then you should be able to use the PIC with inverted serial.

    Have you tried resetting it to factory defaults? Might not be a bad idea just so you know it's at a specific baud rate.

    Do you have a common ground between the LCD & PIC power supplys?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    i have tried uproject, i changed the startup screen and displayed some stuff on it, then i made some custom characters... i tried changing the baud rate, but it didnt seem to work. i have since changed it to ttl by desoldering the rs232 contacts and soldering across the ttl ones.. i checked them with a mm and everything seems to be right.. it still displays my startup screen and displays other weird characters when the pic program tells it to display the "hello world".

    my setup has both the pic and the display running off of one 1A 5V reg, and a 6V battery. so it shares the same ground and the same power.

    danny

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Most 1A 5V regulators require >6V input to maintain a regulated +5V out. Have you tried bumping up the input voltage to your regulator?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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. LCD serial backpacks
    By Archangel in forum Serial
    Replies: 67
    Last Post: - 30th December 2010, 04:51
  3. Please help with EDE702 - Serial to LCD interface
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th October 2008, 02:48
  4. Serial LCD
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th November 2007, 08:31
  5. Gps with 16f628
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th June 2006, 03:38

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