LCD serial


Closed Thread
Results 1 to 11 of 11

Thread: LCD serial

  1. #1
    Join Date
    Mar 2008
    Posts
    22

    Question LCD serial

    Hi to everybody,
    I use a serial LCD Devantech 4 xes 20 one wire connected to the usual pic.
    When it begins working strange things to the characters happen: they appear of of it new, they skip in low they disappear then then aloft, it returns normal for a certain time, it illuminates him jerky when he is not programmed to light up.. What can the cause be?
    thanks
    chip_select

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Not following your english very well.
    Could you give a shot at rephrasing this a bit?
    they appear of of it new, they skip in low they disappear then then aloft, it returns normal for a certain time, it illuminates him jerky when he is not programmed to light up.

  3. #3
    Join Date
    Mar 2008
    Posts
    22


    Did you find this post helpful? Yes | No

    Default lcd serial

    the display involves in strange way. it is unstable. characters that disappear or that are replaced. example:



    'my code :

    include "modedefs.bas"
    loop:
    serout portb.0,2,[" Good morning"]
    serout portb.0,2,[12,1] 'clear display
    goto loop


    'the display

    second: 1 2 3
    Good moxxx g āoox morǼinx 17od morninx and so on..

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Are you using the internal oscillator on the PIC? Might not be as stable as you think...
    Also, try adding some CHAR_PACING (it's in the manual)...at 9600 baud, 5ms should be more than enough to keep a serial LCD happy.
    Past that, try bumping down to 2400 baud and see what happens...

  5. #5
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Why are you writing to it, and then in the next line of code, clearing the screen? .... Then looping through the same sequence???
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

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


    Did you find this post helpful? Yes | No

    Default

    Is this the display you are using?
    http://www.robot-electronics.co.uk/htm/Lcd02tech.htm
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Mar 2008
    Posts
    22


    Did you find this post helpful? Yes | No

    Smile lcd solved

    THX SKIMASK,

    I have added : "define char_pacing 5 "
    Now it works fine.

    chip_select

  8. #8
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    So there is a baud rate speed mismatch between the PIC and the LCD. What oscillator speed/config are you using?

  9. #9
    Join Date
    Mar 2008
    Posts
    22


    Did you find this post helpful? Yes | No

    Default lcd

    Or INTOSC or Crystal 4Mhz whit 2 capacitor 22pF.

  10. #10
    Join Date
    Mar 2008
    Posts
    22


    Did you find this post helpful? Yes | No

    Default lcd

    Or INTOSC or Crystal 4Mhz whit 2 capacitor 22pF.
    T9600 baud

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


    Did you find this post helpful? Yes | No

    Default

    What chip?
    Can you post your whole code?
    And post how your fuses are set. Either from the *.inc or in code or if you are using one of those programs that does it for you.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. LCD serial backpacks
    By Archangel in forum Serial
    Replies: 67
    Last Post: - 30th December 2010, 04:51
  2. 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
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Serial LCD
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th November 2007, 08:31
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23: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