Xin Xout in Europe


Closed Thread
Results 1 to 9 of 9
  1. #1

    Default Xin Xout in Europe

    Is there anyone who has used the Xi,Xout command in europe at 50HZ ?

    I interfaced a basic circuit to a XM10 TTL interface (TW523)

    but i can not switch on a device

    Any help welcome

    Walter

  2. #2


    Did you find this post helpful? Yes | No

    Default More details

    As it was already late here are some additional informations:

    For years i'm using PBP but never used Xin xOut.

    I have the following questions/problems

    I just want to switch on and off a module with adres B 2
    the zerocros pin looks ok with a scoop, I see TXdata, and when receiving from another X-10 transimitter
    I see RX data, so I may assume that the X-10 to TTL converter is working properly except for Logic inversion see Question 3)

    1) Is there any difference in timing or parameters (define) for 60hz or 50Hz operation ? (Europe 50Hz)
    2) I found in the latest on-line documentation a define: DEFINE XOUTXLAT_ OFF 1 but dont find any additional explication
    3) I use the XM-10 TTL interface optocoupled (european version of the 2 way TW-523) what about logic inversion ?
    they suggest to invert the TXdata as showed here: http://www.marmitek.com/en/pdf/8942.pdf
    4) are there any other code examples ? and any X-10 European users ?

  3. #3


    Did you find this post helpful? Yes | No

    Default No X-10 users from Europe ??? please help

    No X-10 users from Europe ??? please help

  4. #4
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default X10 in Europe

    Hi,

    I had replied to your earlier post on the same subject ( Xin & Xout Europe (50hz) vs US (60hz) ).

    1) Is there any difference in timing or parameters (define) for 60hz or 50Hz operation ? (Europe 50Hz)

    No; as long as your transmitter and receiver are on the same electrical phase it would make no difference. If they are on different phases, there would technically be a timing issue. However, in the real world as long as you have signal couplers (0,1 uF caps) accross the phases, it works fine, This is on account of the relatively wide 'listen' window deined by the X10 protocol for receivers.

    2) I found in the latest on-line documentation a define: DEFINE XOUTXLAT_ OFF 1 but dont find any additional explication.

    I have done dome development work on X10, but not used the XIN / XOUT, so here I'm guessing (vaguely remembering something I'd heard). DEFINE XOUTXLAT_ OFF puts PBP in a mode where it reproduced the raw data coming in from an X10 receiver, as against a house code, unit code, or a command. With the TW523, and for simple switching of loads, do not bother with this define as the defaults work fine.

    3) Logic inversion is not required with a TW523 and PBP, but pull-up resistors are. Are you using them?

    Regards,

    Anand Dhuru

  5. #5


    Did you find this post helpful? Yes | No

    Default Xin/Xout 50Hz vs 60Hz The story

    I have been looking with a scoop to the timings regarding to the zerocrossing as reference

    In a 60hz system timings are as followed:
    Bursts are at 120 Khz, 1 millisecond long
    1 half periode = 1/120 hz (2x 60hz) = 0,0083333333333333333333333333333333 sec There are 3 burst per zerocrossing Timing between each burst regarding to zerocrossing from 60hz is 2.778 ms,5.556 ms and 8.333 ms

    In a 50hz system timings should be as followed:
    Bursts are at 120 Khz, 1 millisecond long
    1 half periode = 1/100 hz (2x 50hz) = 0,01 sec
    There are 3 burst per zerocrossing
    Timing between each burst regarding to zerocrossing from 50hz is 3.333 ms,6.666 ms and 10.000 ms

    I had the same problem with another US X-10 microcrontroller project and we arranged it this week

    So a conclusion is: X-10 Xin/Xout can not work on a 50Hz system
    I contacted Melabs to inform them, and I got some immediate support
    I hope that they come with a solution soon
    Attached Images Attached Images  

  6. #6
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hi,
    You are right, there are 3 transmissions per zero crossing. The first is almost at the zero crossing, the second and third 2.778 ms and 5.556 ms later (in a 60 Hz environment) respectively. These last two are transmitted solely to cater to receivers which might be on other phases, and which would therefore see their zero crossings 2.7 ms and 5.56 ms later (again as per 60 Hz) .

    Therefore, as long as the transmitter and receiver are on the same phase, they experience the zero crossing simultaneously, and the frequency itself is immaterial.

    Regards,

    Anand Dhuru

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Well the first takes place 2.778 ms after zerocrossing for 60hz
    To get this working properly it needs to be 3.3333 ms for 50hz

    So even if you use one phase and the same phase this timing needs to be correct

  8. #8
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    So even if you use one phase and the same phase this timing needs to be correct

    No, you're mistaken here; if you look at the graph, you'll notice the first transmission is *at* the zero crossing. The 2nd after 2.778 ms, and the 3rd after 5.556 ms. The next *zero crossing* happens after 8.33 ms (or 10 ms in the case of 50 Hz), but this is irrelevant as no transmission happens at this time. Anyway, trust me, the TW523 does work happily on 50 HZ.

    Regards,

    Anand.

  9. #9


    Did you find this post helpful? Yes | No

    Default

    Hi

    With some support of Melabs i changed timings in the
    PBP lib file and correct them for 50hz

    Now X-10 is working

    So timing is important, even if you work on a single fase

    I now will work on Xin with Melabs

    Will post if its work

Similar Threads

  1. HSERIN and XOUT command
    By aratti in forum General
    Replies: 20
    Last Post: - 12th May 2009, 11:58
  2. X-10 and the proper XOUT statement for 18F2620
    By JohnP in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th December 2007, 22:04
  3. x10 - europe FYI
    By jrt4fun in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 3rd October 2007, 02:25
  4. Xin & Xout Europe (50hz) vs US (60hz)
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd May 2005, 11:49
  5. xout / xin tw523
    By chrispol in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th February 2004, 11:59

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