Controlling Relays


Results 1 to 11 of 11

Threaded View

  1. #10
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    1. There is no Key8.
    2. You can send the content of the whole PORTB when a change occurs; may be it would be more convenient but it is up to your choice.

    For example:

    Code:
    FindKey:
         CLEAR
         KeyData = PORTB                    
         PAUSE 50
         IF PORTB = KeyData THEN FindKey   'Transmit only if there is at least a (one) change on PORTB. 
    
         SEROUT SerPin,N2400,[PreAmble,Synch,PORTB]
         PAUSE 50
             
         GOTO FindKey
    This code will transmit the content of the PORTB every time there is a change on PORTB.
    Thus, for instance, if PORTB.0 is 0, it will transmit, and then if it is still 0, it will NOT transmit.
    If PORTB.0 is still 0 and then another change occurs at say PORTB.1 then it will transmit.

    This way, you can handle the process at receiver side.
    Last edited by sayzer; - 29th January 2008 at 11:59.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Replies: 10
    Last Post: - 17th February 2012, 07:19
  2. SMS control for Relays
    By charudatt in forum Code Examples
    Replies: 15
    Last Post: - 2nd May 2009, 00:08
  3. PIC relays control
    By flipper_md in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 1st October 2008, 16:03
  4. High End Pre with PIC 16F876A
    By abidr in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th May 2008, 08:13
  5. Controlling a DC solenoid
    By The Master in forum Off Topic
    Replies: 2
    Last Post: - 23rd December 2007, 01:26

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