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


Results 1 to 21 of 21

Threaded View

  1. #7
    Join Date
    Jan 2014
    Posts
    10


    Did you find this post helpful? Yes | No

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

    Ok, with the variable name you are right!

    About Point 2:

    Could be this a better Solution:

    Code:
    '******************************Shift_74HC595***********************************
    F = B
    E = 7
    Repeat
    ;D = B >> E
    ASM
      rlf _F, F
      BTFSS STATUS, C  
      BCF _D                 
      BTFSC STATUS, C  
      BSF _D    
    ENDASM
    E = E - 1
    SELECT CASE D
    CASE 1 
     Serial_Pin = 0
     @  DelayUS 1         ' min 1 µs for 1
     Serial_Pin = 1
     @  DelayUS 15        ' min 15 µs 
    Case 0
     Serial_Pin = 0
     @  DelayUS 15        ' min 15 µs for 0 
     Serial_Pin = 1
     @  DelayUS 30        ' min 30 µs 
    END SELECT    
    Until E = 0
    
    'Latch
    Serial_Pin = 0
     @  DelayUS 200        ' min 200 µs for Latch 
    Serial_Pin = 1 
     @  DelayUS 300        ' min 300 µs 
    Next
    Return
    Thanks in advance!
    Last edited by struppi81; - 26th January 2014 at 00:48.

Similar Threads

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