serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780 - Page 2


+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 41 to 46 of 46
  1. #41
    Join Date
    May 2013
    Location
    australia
    Posts
    2,668


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780

    My code honours the timing as specified by the lcd defines , timing that most lcd displays need esp the cheapest and oldest examples of them.
    If you send data at a rate that exceeds the specified time constraints as defined it will of course fall. The solution is to either pace data transmission or set the defines to the actual speed the lcd can tolerate . The intent of my code is to match data rate to the real speed that the lcd can manage
    Warning I'm not a teacher

  2. #42
    Join Date
    Jan 2022
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780

    set pace to 1 , and it's working
    sEROUT2 lcd,baudR,pace,[254,128,"ABCDEFGHIJKLMNOP"]

    thanks.

  3. #43
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,166


    Did you find this post helpful? Yes | No

    Default Re: serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780

    I only tested at 19200 and the Backlight works OK.

    But text, could not send up to this moment.

    WIll try different Baud Rate. Though I test on a PIC16F1827 at 32MHz.

    Ioannis

  4. #44
    Join Date
    Jan 2022
    Posts
    67


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780

    when testing baud rate, usualy I start at 300 and up

    when it stopped working then I set pace = 1

    and re-start from the last baud rate tested.

    16F690 Xtal 20Mhz

    set pace to 1
    sEROUT2 lcd,baudR,pace,[254,128,"ABCDEFGHIJKLMNOP"]


    from my code here's the tested baud rate .
    and when booting the PIC's at different baud rate the sender 12F683 and receiver 16F690 the LCD screen light up right away and start displaying text, and back light on/off
    there's no lag for the first receiving if I remember correctly the pace for the sender is set = 0.


    Name:  Baud Rate Chart-A.jpg
Views: 7
Size:  45.8 KB


    Also I add baud rate selection jumpers on the Backpack''


    Name:  LCD Backpack with Jumpers.jpg
Views: 5
Size:  113.7 KB




    ' Jumpers
    '
    J3 300 600 1200 2400 4800 9600 14400 19200 28800 38400
    ' 1--2 RB7 On On On On On On
    ' 3--4 RA2 On On On On
    ' 5--6 RA1 On On On On
    ' 7--8 RA3 On On On



    ' Baud Rate SW Selection (PCB J3)
    If PORTA = 001110 And PORTB.7 = 1 Then BaudR = 3313 ' 300
    If PORTA = 001110 And PORTB.7 = 0 Then BaudR = 1646 ' 600
    If PORTA = 001010 And PORTB.7 = 1 Then BaudR = 813 ' 1200
    If PORTA = 001100 And PORTB.7 = 1 Then BaudR = 396 ' 2400
    If PORTA = 000110 And PORTB.7 = 1 Then BaudR = 188 ' 4800
    If PORTA = 001010 And PORTB.7 = 0 Then BaudR = 84 ' 9600
    If PORTA = 001100 And PORTB.7 = 0 Then BaudR = 49 ' 14400
    If PORTA = 000110 And PORTB.7 = 0 Then BaudR = 32 ' 19200
    If PORTA = 001000 And PORTB.7 = 0 Then BaudR = 15 ' 28800
    If PORTA = 000000 And PORTB.7 = 0 Then BaudR = 6 ' 38400
    Last edited by jackberg1; Today at 16:41.

  5. #45
    Join Date
    Jan 2022
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780

    from my last edit,

    ' Jumpers
    ' J3 300 600 1200 2400 4800 9600 14400 19200 28800 38400
    ' 1--2 RB7 On On On On On On
    ' 3--4 RA2 On On On On
    ' 5--6 RA1 On On On On
    ' 7--8 RA3 On On On

    I think courier new does not take spaces !
    better use screen cap


    Name:  LCD Backpack with Jumpers code.jpg
Views: 5
Size:  12.3 KB
    Last edited by jackberg1; Today at 16:54.

  6. #46
    Join Date
    Jan 2022
    Posts
    67


    Did you find this post helpful? Yes | No

    Default Re: serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780

    edited BaudR var word : baudr = 3313 and TRISA = 111110

    1st receiving random characters
    2nd normal

    what could be done to avoid the first
    thanks.

    Name:  Richard A.jpg
Views: 2
Size:  57.3 KB

Similar Threads

  1. Using 16F1503 as Serial LCD Backpack
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th March 2015, 19:58
  2. 16F877A and LCD HD44780
    By epilot in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 1st November 2013, 18:17
  3. FREE Serial LCD Backpack Board
    By rmteo in forum Off Topic
    Replies: 36
    Last Post: - 29th July 2010, 02:32
  4. Lcd Hd44780
    By alaaodeh in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th February 2007, 14:04
  5. LCD 4x20 HD44780
    By inteco in forum mel PIC BASIC
    Replies: 13
    Last Post: - 27th June 2006, 16:52

Members who have read this thread : 9

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