help with 74hc595 2 ic cascaded drive 16 relay


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Location
    egypt
    Posts
    13

    Default help with 74hc595 2 ic cascaded drive 16 relay

    help with 74hc595 2 ic cascaded drive 16 relay. i want control any port of 74ch595 without changing the status of other ports using pic 16f877a

  2. #2
    Join Date
    Apr 2011
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: help with 74hc595 2 ic cascaded drive 16 relay

    OR the existing port register with the bit pattern of the ports you want to change.

    i.e existing port state 01001010
    required port state 11001010

    OR-ing them results 11001010

    note that only the FIRST bit changes the port state output, the remainder stay the same.

  3. #3
    Join Date
    May 2009
    Location
    egypt
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: help with 74hc595 2 ic cascaded drive 16 relay

    How i can do this by math

  4. #4
    Join Date
    Apr 2011
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: help with 74hc595 2 ic cascaded drive 16 relay

    eh? When you are programming the output port you are writing a bit-pattern to it (8 bits = 1 word, usually a hex value but could be straight binary or even decimal depending on the method you decided to use when programming).

    The logical OR function is part of the programming language and is - I suppose - the 'math' you are referring to.

Similar Threads

  1. 74hc595 help?
    By FADI984 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th November 2016, 15:45
  2. LCD via 74HC595
    By helloo in forum General
    Replies: 7
    Last Post: - 31st October 2010, 20:49
  3. Drive relay between two times
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th December 2009, 09:19
  4. drive relay?
    By serdar_ozcan in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th November 2005, 11:01
  5. Display Using Cascaded 74hc595
    By charudatt in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th December 2004, 06:05

Members who have read this thread : 1

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