Driving a 2x16 LCD with only One Pin and 74HC595


Closed Thread
Results 1 to 21 of 21

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Driving a 2x16 LCD with only One Pin and 74HC595

    STATUS,C is not a PBP system variable. You can use it.

    FOR loops, REPEAT/UNTIL, WHILE/WHEN, DO/LOOP all do not use the system vars (as long as the test condition is = or !=).
    They will use system vars if the test condition is <, <=, >, >= etc.

    Speed differences between any of the loop types will not be significant on a real chip.
    The major slow down with this interface is the timing required to activate inputs on the 595 using the capacitors.
    All those delays in the code make writing to the LCD very slow.
    DT

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


    Did you find this post helpful? Yes | No

    Default Re: Driving a 2x16 LCD with only One Pin and 74HC595

    Your include looks better with the new variable names.
    I ran it this morning, and it seems to be working.

    Have you looked at the signals going to the 595 on a scope?
    Scary stuff to be putting in a digital chip.

    Yellow is the serial data.
    Blue is after the 1.5K resistor.
    Magenta is after the 33K resistor.

    Name:  1-wire_LCD_Scope.jpg
Views: 24044
Size:  136.5 KB

    And you can see that it takes 910 uS per nibble (1.82 mS per byte).

    It would be interesting to see how it works on real hardware.
    DT

Similar Threads

  1. 2x16 LCD Graphics :)
    By Art in forum General
    Replies: 51
    Last Post: - 13th June 2015, 12:02
  2. Need advice with LCD 2x16
    By fratello in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th April 2011, 07:58
  3. LCD via 74HC595
    By helloo in forum General
    Replies: 7
    Last Post: - 31st October 2010, 21:49
  4. 2x16 lcd problem
    By k3v1nP in forum mel PIC BASIC
    Replies: 11
    Last Post: - 30th October 2008, 05:46
  5. small 2X16 LCD
    By Ron Marcus in forum Off Topic
    Replies: 2
    Last Post: - 26th October 2007, 21:37

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