Difference between revisions of "Powerline Carrier"

From X10Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
X10 powerline carrier transmissions are synchronized to the zero
+
X10 powerline carrier transmissions are synchronized to the zero crossing point of the AC power line. The goal should be to transmit as close to the zero crossing point as possible, but certainly within 200 microseconds of the zero crossing point. The PL513 and TW523 provide a 60 Hz square wave with a maximum delay of 100 sec from the zero crossing point of the AC power line. The maximum delay between signal
crossing point of the AC power line. The goal should be to transmit as close to the zero
+
envelope input and 120 kHz output bursts is 50 µsec. Therefore, it should be arranged that outputs to the PL513 and TW523 be within 50 µs of this 60 Hz zero crossing reference square wave.
crossing point as possible, but certainly within 200 microseconds of the zero crossing
 
point. The PL513 and TW523 provide a 60 Hz square wave with a maximum delay of 100 µsec
 
from the zero crossing point of the AC power line. The maximum delay between signal
 
envelope input and 120 kHz output bursts is 50 µsec. Therefore, it should be arranged
 
that outputs to the PL513 and TW523 be within 50 µs of this 60 Hz zero crossing reference
 
square wave.
 
  
http://graphics.x10.com/images/x10tech1.gif
+
[[Image:x10tech1.gif]]
  
A Binary 1 is represented by a 1 millisecond burst of 120 kHz at
 
the zero crossing point, and a Binary 0 by the absence of 120 kHz. The PL513 and TW523
 
modulate their inputs (from the O.E.M.) with 120 kHz, therefore only the 1 ms
 
"envelope" need be applied to their inputs. These 1 millisecond bursts should
 
equally be transmitted three times to coincide with the zero crossing point of all three
 
phases in a three phase distribution system. Figure 1 shows the timing relationship of
 
these bursts relative to zero crossing.
 
  
http://graphics.x10.com/images/x10tech2.gif
+
A Binary 1 is represented by a 1 millisecond burst of 120 kHz at the zero crossing point, and a Binary 0 by the absence of 120 kHz. The PL513 and TW523 modulate their inputs (from the O.E.M.) with 120 kHz, therefore only the 1 ms "envelope" need be applied to their inputs. These 1 millisecond bursts should equally be transmitted three times to coincide with the zero crossing point of all three phases in a three phase distribution system. Figure 1 shows the timing relationship of these bursts relative to zero crossing.  
  
A complete code transmission encompasses eleven cycles of the power
+
[[Image:x10tech2.gif]]
line. The first two cycles represent a Start Code. The next four cycles represent the
 
House Code and the last five cycles represent either the Number Code (1 thru 16) or a
 
Function Code (On, Off, etc.). This complete block, (Start Code, House Code, Key Code)
 
should always be transmitted in groups of 2 with 3 power line cycles between each group of
 
2 codes. Bright and dim are exceptions to this rule and should be transmitted continuously
 
(at least twice) with no gaps between codes. See Figure 2.
 
  
http://graphics.x10.com/images/x10tech3.gif
 
  
Within each block of
+
A complete code transmission encompasses eleven cycles of the power line. The first two cycles represent a Start Code. The next four cycles represent the House Code and the last five cycles represent either the Number Code (1 thru 16) or a Function Code (On, Off, etc.). This complete block, (Start Code, House Code, Key Code) should always be transmitted in groups of 2 with 3 power line cycles between each group of
data, each four or five bit code should be transmitted in true compliment form on
+
2 codes. Bright and dim are exceptions to this rule and should be transmitted continuously (at least twice) with no gaps between codes. See Figure 2.
alternate half cycles of the power line. I.E. if a 1 millisecond burst of signal is
 
transmitted on one half cycle (binary 1) then no signal should be transmitted on the next
 
cycle, (binary 0). See Figure 3.The Tables in Figure 4 show
 
the binary codes to be transmitted for each House Code and Key Code. The Start Code is
 
always 1110 which is a unique code and is the only code which does not follow the true
 
complimentary relationship on alternate half cycles.  
 
  
 +
[[Image:x10tech3.gif]]
  
http://graphics.x10.com/images/x10tech4.gif
 
  
 +
Within each block of data, each four or five bit code should be transmitted in true compliment form on alternate half cycles of the power line. I.E. if a 1 millisecond burst of signal is transmitted on one half cycle (binary 1) then no signal should be transmitted on the next cycle, (binary 0). See Figure 3.The Tables in Figure 4 show the binary codes to be transmitted for each House Code and Key Code. The Start Code is
 +
always 1110 which is a unique code and is the only code which does not follow the true complimentary relationship on alternate half cycles.
  
[1] Hail Request is transmitted to see if there are any X10
+
 
transmitters within listening range. This allows the O.E.M. to assign a different
+
[[Image:x10tech4.gif]]
Housecode if a &quot;Hail Acknowledge&quot; is received. <BR>
+
 
[2] In a Pre-Set Dim instruction, the D8 bit represents the Most Significant Bit of the level
+
 
and H1, H2, H4 and H8 bits represent the Least Significant Bits.<BR>
+
 
[3] The Extended Data code is followed by 8 bit bytes which can
+
[1] Hail Request is transmitted to see if there are any X10 transmitters within listening range. This allows the O.E.M. to assign a different Housecode if a &quot;Hail Acknowledge&quot; is received. <BR>
represent Analog Data (after A to D conversion). There should be no gaps between the
+
 
Extended Data code and the actual data, and no gaps between data bytes. The first 8 bit
+
[2] In a Pre-Set Dim instruction, the D8 bit represents the Most Significant Bit of the level and H1, H2, H4 and H8 bits represent the Least Significant Bits.<BR>
byte can be used to say how many bytes of data will follow. If gaps are left between data
+
 
bytes, these codes could be received by X10 modules causing erroneous operation.
+
[3] The Extended Data code is followed by 8 bit bytes which can represent Analog Data (after A to D conversion). There should be no gaps between the Extended Data code and the actual data, and no gaps between data bytes. The first 8 bit byte can be used to say how many bytes of data will follow. If gaps are left between data bytes, these codes could be received by X10 modules causing erroneous operation.
Extended Code is similar to Extended Data: 8 Bit bytes which follow
+
 
Extended Code (<b>with no gaps</b>) can represent additional codes. This allows the
+
Extended Code is similar to Extended Data: 8 Bit bytes which follow Extended Code (<b>with no gaps</b>) can represent additional codes. This allows the designer to expand beyond the 256 codes presently available.
designer to expand beyond the 256 codes presently available.
 
  
  
 
==Notes==
 
==Notes==
 +
 +
 
'''NOTE 1'''  
 
'''NOTE 1'''  
X10 Receiver Modules require a &quot;silence&quot; of at least 3 power cycles between each
+
 
pair of 11 bit code transmissions (no gaps between each pair). The one exception to this
+
X10 Receiver Modules require a &quot;silence&quot; of at least 3 power cycles between each pair of 11 bit code transmissions (no gaps between each pair). The one exception to this rule is '''bright and dim''' codes. These are transmitted '''continuously''' with no gaps between each 11 bit dim code or 11 bit bright code. A 3 cycle gap is necessary between different codes, i.e. between bright and dim, or 1 and dim, or on and bright, etc.
rule is '''bright and dim''' codes. These are transmitted '''continuously''' with no
 
gaps between each 11 bit dim code or 11 bit bright code. A 3 cycle gap is necessary
 
between different codes, i.e. between bright and dim, or 1 and dim, or on and bright, etc.
 
  
 
'''NOTE 2'''  
 
'''NOTE 2'''  
The TW523 Two-Way Power Line Interface cannot receive Extended Code or Extended Data because
+
 
these codes have no gaps between them. The TW523 can only receive standard
+
The TW523 Two-Way Power Line Interface cannot receive Extended Code or Extended Data because these codes have no gaps between them. The TW523 can only receive standard &quot;pairs&quot; of 11 bit X10 codes with 3 power line cycle gaps between each pair.
&quot;pairs&quot; of 11 bit X10 codes with 3 power line cycle gaps between each pair.
 
  
 
'''NOTE 3'''
 
'''NOTE 3'''
The TW523 can receive dim and bright codes but the output will represent the first dim or bright
 
code received, followed by every third code received. i.e. the output from the TW523 will
 
not be a continuous stream of dim and bright codes like the codes which are transmitted.
 
  
 +
The TW523 can receive dim and bright codes but the output will represent the first dim or bright code received, followed by every third code received. i.e. the output from the TW523 will not be a continuous stream of dim and bright codes like the codes which are transmitted.
 +
 +
 +
A Square wave representing zero crossing detect is provided by the PL513/TW523 and is within 100 µs of the zero crossing point of the AC power line. The output signal envelope from the O.E.M. should be within 50 µs of this zero crossing detect. The signal envelope should be 1 ms (-50s +100s). See Figure 5.
  
A Square wave representing zero crossing detect is provided by the
+
[[Image:default2.gif]]
PL513/TW523 and is within 100 µs of the zero crossing point of the AC power line. The
 
output signal envelope from the O.E.M. should be within 50 µs of this zero crossing
 
detect. The signal envelope should be 1 ms (-50µs +100µs). See Figure 5.
 
  
http://graphics.x10.com/images/default2.gif
 
  
 
===Opto-Coupled 60 Hz reference output (''from'' the PL513/TW523)===
 
===Opto-Coupled 60 Hz reference output (''from'' the PL513/TW523)===
Transmissions are to be synchronized to
 
the zero crossing point of the AC power line and should be as close to true zero crossing
 
as possible. The PL513 and TW523 are designed to be interfaced to other microprocessor
 
circuitry which outputs X10 codes synchronized to the zero crossing point of the AC power
 
line. It is therefore necessary to provide a zero crossing reference for the O.E.M.
 
microprocessor. It is likely that this microprocessor will
 
have its own &quot;isolated&quot; power supply. It is necessary to maintain this
 
isolation, therefore the trigger circuit normally used in X10 POWERHOUSE controllers is <b>not</b>
 
desirable as this would reference the O.E.M. power supply to the AC power line. It is also
 
<b>not</b> desirable to take the trigger from the secondary side of the power supply
 
transformer as some phase shift is likely to occur. It is therefore necessary to provide
 
an opto-coupled 60 Hz reference.
 
  
An opto-coupled 60 Hz square wave is provided at the output of the
+
Transmissions are to be synchronized to the zero crossing point of the AC power line and should be as close to true zero crossing as possible. The PL513 and TW523 are designed to be interfaced to other microprocessor circuitry which outputs X10 codes synchronized to the zero crossing point of the AC power line. It is therefore necessary to provide a zero crossing reference for the O.E.M. microprocessor. It is likely that this microprocessor will have its own &quot;isolated&quot; power supply. It is necessary to maintain this isolation, therefore the trigger circuit normally used in X10 POWERHOUSE controllers is <b>not</b> desirable as this would reference the O.E.M. power supply to the AC power line. It is also <b>not</b> desirable to take the trigger from the secondary side of the power supply transformer as some phase shift is likely to occur. It is therefore necessary to provide an opto-coupled 60 Hz reference.
PL513 and TW523. X10 codes generated by the O.E.M. product are to be synchronized to this
+
 
zero crossing reference. The X10 code envelope generated by the O.E.M. is applied to the
+
An opto-coupled 60 Hz square wave is provided at the output of the PL513 and TW523. X10 codes generated by the O.E.M. product are to be synchronized to this zero crossing reference. The X10 code envelope generated by the O.E.M. is applied to the PL513 or TW523 which modulates the envelope with 120 kHz and capacitively couples it to the AC power line.<br>
PL513 or TW523 which modulates the envelope with 120 kHz and capacitively couples it to
+
 
the AC power line.<br>
 
  
 
===Opto-Coupled Signal Input (''to'' the PL513/TW523)===
 
===Opto-Coupled Signal Input (''to'' the PL513/TW523)===
The input signal required from the O.E.M. product is the signal
 
&quot;envelope&quot; of the X10 code format, i.e. '''High''' for 1 ms. coincident with zero crossing represents a
 
binary &quot;1&quot; and gates the 120 kHz oscillator through to the output drive circuit
 
thus transmitting 120 kHz onto the AC power line for 1 ms. '''Low''' for 1 ms. coincident with the zero crossing point
 
represents a binary '0' and turns the 120 kHz oscillator/output circuit off for the duration of the 1 ms. input.
 
  
http://graphics.x10.com/images/x10tech6.gif
+
The input signal required from the O.E.M. product is the signal &quot;envelope&quot; of the X10 code format, i.e. '''High''' for 1 ms. coincident with zero crossing represents a binary &quot;1&quot; and gates the 120 kHz oscillator through to the output drive circuit thus transmitting 120 kHz onto the AC power line for 1 ms. '''Low''' for 1 ms. coincident with the zero crossing point represents a binary '0' and turns the 120 kHz oscillator/output circuit off for the duration of the 1 ms. input.
 +
 
 +
[[Image:x10tech6.gif]]
 +
 
  
 
[[Category:reference]]
 
[[Category:reference]]

Latest revision as of 21:42, 28 May 2014

X10 powerline carrier transmissions are synchronized to the zero crossing point of the AC power line. The goal should be to transmit as close to the zero crossing point as possible, but certainly within 200 microseconds of the zero crossing point. The PL513 and TW523 provide a 60 Hz square wave with a maximum delay of 100 sec from the zero crossing point of the AC power line. The maximum delay between signal envelope input and 120 kHz output bursts is 50 µsec. Therefore, it should be arranged that outputs to the PL513 and TW523 be within 50 µs of this 60 Hz zero crossing reference square wave.

X10tech1.gif


A Binary 1 is represented by a 1 millisecond burst of 120 kHz at the zero crossing point, and a Binary 0 by the absence of 120 kHz. The PL513 and TW523 modulate their inputs (from the O.E.M.) with 120 kHz, therefore only the 1 ms "envelope" need be applied to their inputs. These 1 millisecond bursts should equally be transmitted three times to coincide with the zero crossing point of all three phases in a three phase distribution system. Figure 1 shows the timing relationship of these bursts relative to zero crossing.

X10tech2.gif


A complete code transmission encompasses eleven cycles of the power line. The first two cycles represent a Start Code. The next four cycles represent the House Code and the last five cycles represent either the Number Code (1 thru 16) or a Function Code (On, Off, etc.). This complete block, (Start Code, House Code, Key Code) should always be transmitted in groups of 2 with 3 power line cycles between each group of 2 codes. Bright and dim are exceptions to this rule and should be transmitted continuously (at least twice) with no gaps between codes. See Figure 2.

X10tech3.gif


Within each block of data, each four or five bit code should be transmitted in true compliment form on alternate half cycles of the power line. I.E. if a 1 millisecond burst of signal is transmitted on one half cycle (binary 1) then no signal should be transmitted on the next cycle, (binary 0). See Figure 3.The Tables in Figure 4 show the binary codes to be transmitted for each House Code and Key Code. The Start Code is always 1110 which is a unique code and is the only code which does not follow the true complimentary relationship on alternate half cycles.


X10tech4.gif


[1] Hail Request is transmitted to see if there are any X10 transmitters within listening range. This allows the O.E.M. to assign a different Housecode if a "Hail Acknowledge" is received.

[2] In a Pre-Set Dim instruction, the D8 bit represents the Most Significant Bit of the level and H1, H2, H4 and H8 bits represent the Least Significant Bits.

[3] The Extended Data code is followed by 8 bit bytes which can represent Analog Data (after A to D conversion). There should be no gaps between the Extended Data code and the actual data, and no gaps between data bytes. The first 8 bit byte can be used to say how many bytes of data will follow. If gaps are left between data bytes, these codes could be received by X10 modules causing erroneous operation.

Extended Code is similar to Extended Data: 8 Bit bytes which follow Extended Code (with no gaps) can represent additional codes. This allows the designer to expand beyond the 256 codes presently available.


Notes

NOTE 1

X10 Receiver Modules require a "silence" of at least 3 power cycles between each pair of 11 bit code transmissions (no gaps between each pair). The one exception to this rule is bright and dim codes. These are transmitted continuously with no gaps between each 11 bit dim code or 11 bit bright code. A 3 cycle gap is necessary between different codes, i.e. between bright and dim, or 1 and dim, or on and bright, etc.

NOTE 2

The TW523 Two-Way Power Line Interface cannot receive Extended Code or Extended Data because these codes have no gaps between them. The TW523 can only receive standard "pairs" of 11 bit X10 codes with 3 power line cycle gaps between each pair.

NOTE 3

The TW523 can receive dim and bright codes but the output will represent the first dim or bright code received, followed by every third code received. i.e. the output from the TW523 will not be a continuous stream of dim and bright codes like the codes which are transmitted.


A Square wave representing zero crossing detect is provided by the PL513/TW523 and is within 100 µs of the zero crossing point of the AC power line. The output signal envelope from the O.E.M. should be within 50 µs of this zero crossing detect. The signal envelope should be 1 ms (-50s +100s). See Figure 5.

Default2.gif


Opto-Coupled 60 Hz reference output (from the PL513/TW523)

Transmissions are to be synchronized to the zero crossing point of the AC power line and should be as close to true zero crossing as possible. The PL513 and TW523 are designed to be interfaced to other microprocessor circuitry which outputs X10 codes synchronized to the zero crossing point of the AC power line. It is therefore necessary to provide a zero crossing reference for the O.E.M. microprocessor. It is likely that this microprocessor will have its own "isolated" power supply. It is necessary to maintain this isolation, therefore the trigger circuit normally used in X10 POWERHOUSE controllers is not desirable as this would reference the O.E.M. power supply to the AC power line. It is also not desirable to take the trigger from the secondary side of the power supply transformer as some phase shift is likely to occur. It is therefore necessary to provide an opto-coupled 60 Hz reference.

An opto-coupled 60 Hz square wave is provided at the output of the PL513 and TW523. X10 codes generated by the O.E.M. product are to be synchronized to this zero crossing reference. The X10 code envelope generated by the O.E.M. is applied to the PL513 or TW523 which modulates the envelope with 120 kHz and capacitively couples it to the AC power line.


Opto-Coupled Signal Input (to the PL513/TW523)

The input signal required from the O.E.M. product is the signal "envelope" of the X10 code format, i.e. High for 1 ms. coincident with zero crossing represents a binary "1" and gates the 120 kHz oscillator through to the output drive circuit thus transmitting 120 kHz onto the AC power line for 1 ms. Low for 1 ms. coincident with the zero crossing point represents a binary '0' and turns the 120 kHz oscillator/output circuit off for the duration of the 1 ms. input.

X10tech6.gif