i'm in trouble...help me please...


Closed Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Aug 2008
    Posts
    45

    Unhappy help me in coding for xin & xout for x-10 PLC

    i want to transmit data using x-10 powerline communication and receive the data at the receiver.but i don't have an idea how to do it.basically i just want to turn the LED at the receiver by just push the button at the transmitter.that all.please someone help me...
    Last edited by texas5; - 25th September 2008 at 19:25.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Look at the XOUT command in the manual and look at the info Dave Houston has on his site http://www.davehouston.net/
    Should get you started.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2008
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    yes, i've look a the xin & xout command but i can't understand.how can i timing the 120khz to burst at each zero crossing???help me please.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Cool

    Hi, Texas

    It would be Very Kind from you to give the subject of your "troubles" in the Thread title ...

    Thank you

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Unless I'm mistaken, doesn't using the XIN/XOUT commands remove the end user from having to worry about any of the hardware functions, other than the actual X10 modules themselves?

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by texas5 View Post
    yes, i've look a the xin & xout command but i can't understand.how can i timing the 120khz to burst at each zero crossing???help me please.
    XOUT takes care of this for you.
    From the manual:
    XOUT only processes data at each zero crossing of the AC power line as received on ZeroPin. If there are no transitions on this line, XOUT will effectively wait forever.
    Do you have an X10 module?
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2008
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    i refer to application note from microchip(an236) with a little modification(use only push button not push button + LCD).does xout & xin in the picbasic are x-10 driver.if so,that means i only have to command the xout & xin because i only want to "turn the LED at the receiver by just push the button at the transmitter".can i do that???

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by texas5 View Post
    i refer to application note from microchip(an236) with a little modification(use only push button not push button + LCD).does xout & xin in the picbasic are x-10 driver.if so,that means i only have to command the xout & xin because i only want to "turn the LED at the receiver by just push the button at the transmitter".can i do that???
    XIN/XOUT receives or sends commands from/to the X10 module.

    From the manual:
    XOUT is used to send control information to X-10 modules. These modules are available from a wide variety of sources under several trade names. An interface is required to connect the microcontroller to the AC power line. Either the PL-513 for send only, or the TW-523 for two-way X-10 communications are required. These devices contain the power line interface and isolate the microcontroller from the AC line. Since the X-10 format is patented, these interfaces also cover the license fees.
    Dave
    Always wear safety glasses while programming.

  9. #9
    Join Date
    Aug 2008
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    i've design the x-10 module using the application note from microchip(an236).
    Last edited by texas5; - 25th September 2008 at 16:06.

  10. #10
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi,

    As mackrackit pointed out, XIN and XOUT are to be used with X10's interface modules PL513 (transmit only) or TW523 (transmit and receive). If you intend to build your own mains-to-pic interface, you cannot use XIN; you will have to write your own code to receive the X10 signal.

    XOUT you could still use, as long as you get the mains interfacing right.

    Remember you are playing with mains voltages here.

    Regards,

    Anand

  11. #11
    Join Date
    Aug 2008
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    ok.thanx a lot guys...

  12. #12
    Join Date
    Aug 2008
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    and one more thing.can someone guide me where do i need to start the coding.my main idea is...

    transmitter:
    1.press push button
    2.detect each zero crossing(i don't know how to play with the delay)
    3.burst 120khz(i don't know how to play with the delay)

    receiver:
    1.detect each zero crossing(i don't know how to play with the delay)
    2.get started data (in this case, bit 1)
    3.get another data (in this case, bit 1 or 0)
    4.stored data
    5.called back the data(if 1 1=on led...if 1 0=off led)

    i really hope someone can guide me....please....

  13. #13
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by texas5 View Post
    and one more thing.can someone guide me where do i need to start the coding.my main idea is...
    Are you going to use off the shelf modules or try to make you own?

    I will advise against making your own modules.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. trouble with microcode loader
    By meho in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th August 2012, 14:39
  2. Replies: 10
    Last Post: - 2nd May 2009, 07:42
  3. Trouble with PIC12F683 - GP0 GP1 as inputs
    By erice1984 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th March 2009, 04:32
  4. Trouble using int. osc. On 18f2455
    By KPDes in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th June 2007, 10:35
  5. 12F629 Trouble
    By shahidali55 in forum General
    Replies: 26
    Last Post: - 18th May 2007, 09:22

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