The advantages in the implementation of a communication network using the same
electrical network that supplies all the elements of the network are evident. In the presence
of new wideband LANs using an RF system, for example Bluetooth, a narrowband
communication system using the mains has considerable advantages also.
It is widely accepted that in residential or industrial areas, in parallel to a wideband network
for audio/video streaming and Internet, having a narrowband LAN is useful to carry simple
information such as measurements, commands to actuators, system controls and so on.
Many applications can be covered by a narrowband communication system in a residential
structure, outside the house or in industrial applications (see Figure 1 below).
For example in houses or commercial buildings possible applications are power
management, lighting control, heating or cooling system management, remote control of
appliances (by internet or telephone), and control of alarm systems.
Considering external applications, the main areas concern communication with meters, in
particular automatic measuring and remote control, prepaid supply systems, meter or inhome remote displays. Another relevant industrial segment could be street lighting
management.
Although the concepts of power line communication and home automation, as well as the
development of different devices dedicated for power line communication, have been
present for several years, the market segment for this kind of application has only recently
been growing.
The three main factors that have contributed up to now to the field of the powerline
communication are:
a) The slow development of international norms and standards
b) Some technical constraints related to the electrical network
c) General consideration of costs
The first point concerns standards and norms. A general consideration in an open
communication system is to have mandatory rules and guidelines to guarantee that every
node, whatever the manufacturer, does not compromise the characteristics of the entire
network and the performance of the communication system.
For residential products this aspect is quite relevant considering the presence of many
different appliances and manufacturers, and also the concern for a common language (the
protocol) which is mandatory.
In 2002 the CENELEC (European Committee for Electrotechnical Standardizations)
published or updated a series of regulations about communication on low-voltage electrical
installations. We refer in particular to the EN50065-1, concerning general requirements,
frequency bands and electromagnetic disturbances; the EN50065-4-2 about the low-voltage
decoupling filter and safety requirements; and the EN50065-7 about the impedance of the
devices.
A preliminary version (1999) of the EN50065-2-1 about immunity requirements is also
available.
There has been a certain alignment among the appliance manufacturers on the EHS
(European Home System) protocols, even if a lot of customized protocols are present,
mainly in proprietary mains. More information on EHS protocol is available in the EHS
booklet.
The second critical consideration concerns the technical problems regarding the specific
topology of the electrical network.
Figure 2 shows what happens to a signal transmitted on an electrical network. For several
reasons that are listed in the next paragraph (low impedance, different kind of disturbances,
etc.) the received FSK signal has a very low level and it is mixed with a great level of noise.
5/46
Powerline communicationAN1714
Figure 2.Mains signals
MAINS
Tx Rx
ST 7538
ST 7538
ST 7538
ST 7538
Received Signal
fc
f
f f f f
Transmitted Signal
fc
f
f
The aspects of noise and low impedance are more critical in a residential house where
many different appliances are present.
Every entity of the network has to be able to manage reliable communication also under
these critical conditions. To achieve this goal all aspects of the application design have to be
to
carefully considered, from the coupling interface to the power management, from the type
of microprocessor to the powerline transceiver, as well as considering their mutual
influences.
Last but not least, we must consider the economic point of view. It isn’t a simple calculation
of the node cost with respect to an equivalent wireline or wireless solution, but a
consideration of other aspects such as the installation and configuration cost of the entire
network.
Another economic issue that has to be considered is the power consumption of a single
communication node. The power consumption of each communication unit has to be lower
as possible because every unit must always stay on ready to receive commands from a
remote transmitter. This constraint is even more relevant in applications with a huge number
of nodes. Consider for example the control of a street lighting system with thousands of
lamps or a metering system with several thousands of electricity meters.
The ST7538Q has been designed considering all issues previously listed. With this device it
is possible to obtain highly efficient and reliable applications for powerline communication,
characterized by low power consumption, low cost, and compliance with the main norms
and protocol currently in place.
1.1 The electrical network
The communication medium consists of everything connected to power outlets. This
includes house wiring in the walls of the building, appliance wiring, and the appliances
themselves, the service panel, the triplex wire connecting the service panel to the
distribution transformer and the distribution transformer itself. Since distribution transformers
usually serve more than one residence, the loads and wiring of all residences connected to
the same transformer must be included.
6/46
AN1714Powerline communication
1.1.1 Impedance of powerlines
A powerline has very variable impedance depending on several factors such as its
configuration (star connection, ring connection) or the number of entities linked.
Extensive data on this subject has been published by Malack and Engstrom of IBM
(Electromagnetic Compatibility Laboratory), who measured the RF impedance of 86
commercial AC power distribution systems in six European countries (see Figure 3).
These measurements show that the impedance of the residential power circuits increases
with frequency and is in the range from about 1.5 to 8 Ω at 100 kHz. It appears that this
impedance is determined by two parameters - the loads connected to the network and the
impedance of the distribution transformer. Recently a third element influences the
impedance of the powerline, in particular in residential networks. It is represented by the
EMI filters mounted in the last generation of home appliances (refrigerators, washing
machines, television sets, stereos). Wiring seems to have a relatively small effect. The
impedance is usually inductive.
For typical resistive loads, signal attenuation is expected to be from 2 to 50 dB at 150 kHz
depending on the distribution transformer used and the size of the loads. Moreover, it may
be possible for capacitive loads to resonate with the inductance of the distribution
transformer and cause the signal attenuation to vary wildly with frequency.
For the compliance tests the normative EN50065 use two artificial mains networks
conforming to sub clause 11.2 of CISPR 16-1:1993. Measurements on real networks have
shown that this artificial network does not truly represent practical network impedance. To
better evaluate the performance of a real signaling system, an adaptive network must be
used in conjunction with the CISPR 16-1 artificial network. The design of the adaptive circuit
is included in the informative annex F of EN50065-1 (revision 2001).
Figure 3.Aggregate European powerline impedance (by Malack and Engstrom)
1.1.2 Noise
Appliances connected to the same transformer secondary to which the powerline carrier
system is connected cause the principal source of noise. The primary sources of noise are
Triacs used in light dimmers, universal motors, switching power supplies used in small and
portable appliances and fluorescent lamps.
IMPEDANCE MAGNITUDE (OHM)
1000.0
100.0
10.0
MAXIMUM
1.0
0.1
0.040.080.100.300.752.105.00 15.00 30.00
FREQUENCY (MHz)
MEAN
MINIMUM
7/46
Powerline communicationAN1714
Triacs generate noise synchronous with the 50 Hz power signal and this noise appears as
harmonics of 50 Hz. Universal motors found in mixers or drills also create noise, but it is not
as strong as light dimmer noise, and not generally synchronous with 50 Hz.
Furthermore, light dimmers are often left on for long periods of time whereas universal
motors are used intermittently.
In the last years two other sources of strong noise have been introduced in the electrical
network. They are Compact Fluorescent Lamps (CFL) and the switching power supplies of
rechargeable battery (for example notebook PCs) or small appliances.
In many cases they have a working frequency or some harmonics in the range of the
powerline communication band (from 10 kHz to 150 kHz). Of course the presence of
continuous tones exactly at communication channel frequency can affect the reliability of
communication.
The Figure 4 shows some of the noise sources we refer to. The measurement setup
consists of an insulation transformer with a VARIAC, a spectrum analyzer HP4395A coupled
by a high voltage capacitor (1µF) and a 2 mH transformer (1:1).
Figure 4.Voltage spectra of a 100 W light dimmer, a notebook PC, a desktop PC, a
CFL lamp, a TLE lamp, all working with a 50 Hz/~220 V supply
dBuV
110.0
90.0
70.0
50.0
30.0
10.0
Background
CFL 11W
Desktop PC
Dimmer 100W
TLE 22W
Notebook PC
1.00E+031.00E+041.00E+051.00E+06
1.1.3 Typical connection losses
The transmitting range of a home automation system depends on the physical topology of
the electric power distribution network inside the building where the system is installed.
Different connection losses can be measured. For communication nodes connected to the
same branch circuit from transmitter to receiver a typical connection loss is about 10-15 dB.
If transmitter and receiver are in different branches of the circuit, separated for example by a
service panel, there is an additional attenuation of 10-20 dB.
In some worst-case conditions (socket with very low impedance) the attenuation of the
transmitted signal can reach a value of 50-60 db.
Hz
1.1.4 Standing waves
Standing wave effects begin to occur when the physical dimensions of the communication
medium are similar to about one-eighth of a wavelength, which are about 375 and 250
8/46
AN1714Powerline communication
meters at 100 and 150 kHz respectively. Primarily the length of the triplex wire connecting
the residences to the distribution transformer determines the length of the communication
path on the secondary side of the power distribution system. Usually, several residences
use the same distribution transformer. It would be rare that a linear run of this wiring would
exceed 250 meters in length although the total length of branches might occasionally
exceed 250 meters. Thus standing wave effects would be rare at frequencies below 150 kHz
for residential wiring.
1.2 ST7538Q FSK powerline transceiver description
The ST7538Q transceiver performs a half-duplex communication over the powerline
network using Frequency Shift Keying (FSK) modulation. The FSK modulation technique
translates a digital signal into a sinusoidal signal that can have two different frequency
values, one for the high logic level of the digital signal (f
(f
), as depicted in Figure 5.
L
Figure 5.FSK modulation
), the second one for the low level
H
The average value of the two tones is the carrier frequency (f
). The difference or distance
C
between the two frequencies is a function of the baud-rate (BAUD) of the digital signal (the
number of symbols transmitted in one second) and of the deviation (dev). The relationship
is:
Equation 1
fHfL–BAUD dev–=
The ST7538Q can be programmed to communicate using eight different frequency
channels (60, 66, 72, 76, 82.05, 86, 110 and 132.5 kHz), four baud rates (600, 1200, 2400
and 4800 symbols per second) and two frequency deviations (1 and 0.5).
The device operates from a 7.5 to 12.5 V single supply voltage (PAVcc) and integrates a
differential-output PowerLine Interface (PLI) stage and two linear regulators providing 5 V
(VDC) and 3.3 V (DVdd).
Many auxiliary functions are integrated. The transmission section includes automatic control
on PLI output voltage and current, programmable timeout function and thermal shutdown.
The reception section includes automatic input level control, carrier/preamble detection and
band-in-use signaling.
Additional features are included, such as a watchdog timer, zero-crossing detector, internal
oscillator and a general purpose op-amp.
The serial interface (configurable as UART or SPI) allows interfacing to a host
microcontroller, intended to manage the communication protocol. A reset output (RSTO)
and a programmable 4-8-16 MHz clock (MCLK) can be provided to the microcontroller to
simplify the application.
9/46
Powerline communicationAN1714
Communication on the powerline can be either synchronous or asynchronous with the data
clock (CLR/T) provided by the transceiver at the programmed baud rate.
When in Transmission mode (i.e. RxTx line at low level), the ST7538Q transceiver samples
the data on the TxD line, generating an FSK modulated signal on the ATO pin. The same
signal is fed into the differential power amplifier to get four times the voltage swing and a
current capability up to 370 mA rms.
When in Reception mode (i.e. RxTx line at high level), an incoming signal at the RAI line is
demodulated and converted in a digital bit stream on the RxD pin.
The internal Control Register, which contains the operating parameters of the ST7538Q
transceiver, can be programmed only using the SPI interface. The Control Register settings
include the Header Recognition and Frame Length Count functions, which can be used to
apply byte and frame synchronization to the received messages.
Figure 6.ST7538Q transceiver block diagram
For a more detailed and complete description of the ST7538Q device please refer to the
product datasheet.
10/46
AN1714Demonstration board for ST7538Q
2 Demonstration board for ST7538Q
2.1 Main features
The ST7538Q demonstration board implements in a two layer PCB a complete powerline
communication node, including the powerline coupling circuits, a power supply section, a
microcontroller and a RS232 serial interface to connect the board to a personal computer
(Figure 8). This board with the related firmware load in the ST microprocessor and the PC
software is a complete reference for the mains aspects of powerline communications.
Figure 7.ST7538Q demonstration board
Figure 8.Demonstration board layout
LV HV
LV HVLV HV
LV
LV
Power Supply
Power Supply
PC Interface
PC Interface
Q
ST7538P
ST7
ST7
The aim of this board is to give a useful tool to develop and to evaluate a powerline
application with the device ST7538Q. So even if aspects of the board concerning size and
cost aren't optimized, its schematic gives a good design reference and a valid starting point
ST7538P
LV
LV
Signal Coupling
Signal Coupling
Interface
Interface
LV HV
LV HV
11/46
Demonstration board for ST7538QAN1714
to develop powerline modem applications. Moreover the board structure (a lot of jumpers,
test points, few SMD components) allows easily connecting test probes to take measures
and signal verifications, as well as customizing the application according to specific
requirements.
Figure 9.Demonstration board schematic: microcontroller and PC interface
TXD
D13
1N4148
MICRO_TXD
H_S
RS232_OUT
RS232_IN
R1IN_A
T1OUT_A
5V_232
C24 100nF C23 100nF
5V_ P
RESET
RS232_OUT
MCLK
ISPSEL
PA7
PA6
PA5
PA4
RS232_IN
SS
CLRT
TOUT
REG_OK
H_S
WD
REG/DATA
RXTX
ZCOUT
PG
JP1
R2OUT
T2IN
T1IN
R1OUT
R1IN
T1OUT
VCC
GND
OSCOUT
VDD_2
RESET
PE0/TD0
OSCIN
ISPSEL
(HS)PA7
(HS)PA6
(HS)PA5
(HS)PA4
PE1/RDI
ANI0/PD0
ANI3/PD3
ANI4/PD4
ANI5/PD5
MCO/PF0
PB0
PB1
PB2
PB3
VDDA
PF2
VSSA
R16
4.7K
9
10
11
ST232
12
13
14
16
15
5V_ P
C28
C29
C30
C27
100nF
R2IN
T2OUT
C2-
C2+
C1-
C1+
V-
100nF
T2OUT_A
C26
100nF
C25
100nF
C32
100nF
100nF
U3
8
7
5
4
3
1
6
2
V+
10 F
CN5
FEMALE
PC INTERFACE
5
9
4
8
3
7
2
6
1
C31
100nF
R1IN_A
T1OUT_A
T2OUT_A
5V
RN1
1
5
4
3
2
TOUT
U4
VDD_1
41
43
39
44
42
38
37
36
35
34
1
2
3
4
5
7
10
11
12
13
17
15
14
ST2334N2
32
PA3
31
PC7/SS
30
PC6/SCK/ISPCLK
29
PC5/MOSI
28
PC3/ICAP1_B(HS)
26
PC4/MSO/ISPDATA
27
PC2/ICAP2_B(HS)
25
PC1/OCMP1/B
24
PC0/OCMP2/B
23
EXTCLK_A(HS)
20
ICAP1_A/PF6(HS)
19
OCMP1_A/PF4
18
PF1/BEEP
16
AN2/PD2
9
AN1/PD1
8
PB4
6
VDD_0
21
VSS_0
22
VSS_1
33
VSS_2
40
5V_ P5V_ P
CN7
21
3
4
5
6
7
8
10
9
ISP INTERFACE
COMMON
R4
R3
R2
R1
D11
D10
RED
YELLOW
CD/PD
PA4PA5PA6PA7
5V
5V_ P
CD/PD
SS
ISPCLOCK
CLRT
J11
RXD
ISPDATA
MICRO_TXD
BU
5V_ P
D03IN1450
5V_led
RX
J10
J9
J8
CN6
R17
10K
12
11
10
7
6
4
8
3
5
9
2
1
ISPDATA
ISPCLOCK
RESET
ISPSEL
D12
GREEN
5V_232
5V_led
5V_ P
D9
RED
TX
12/46
AN1714Demonstration board for ST7538Q
Figure 10. Demonstration board schematic: line coupling interface and power
supply
P
2
5.1Ω
ATOP2
VDCAVDDTEST1
N.C.
N
J4
J5
4096-X046
VAC T60403-
D16
P6KE6V8A
C13 220nF
50K
R12
TRIM
VSENSE
ATOP1
RXFO29TEST2
19
31
21
332835
17
3
37
1
RXD
CD/PD
CPLUS
CMINUS
RXD
CD/PD
J2
J6
CL
VSENSE
D03IN1451
C36
4.7nF
L7
330H
750
R11
P10V
C38
10 F
1K
R14
C17
5.6nF/63V
C21
100nF
JPTIN
AVSS25PAVCC22PAVSS
GND
6
30
Q
ST7538P
5
42
4
40
C_OUT
C_OUT
J3
RxTx
Rx/Tx
TXD
5V
REG_OK
TXD
36
PG
REG_DATA
PG
REG_OK
38
C18 47pF
XIN
20
U2
43
12
RSTO
R15 4.7K
REG/DATA
RESET
C33
10nF
J7
C37
100pF
TO GND
C19 18pF
SOLD CRYSTAL CASE
ZCOUT
1x
16MHz
ZCOUT
RAI
XOUT
15
32
27
26
10
2
41
18
GND
DVSS
DVSS
DVDD
SW1
C20
C22
22nF
300nF
5V
WD
WD
CL
14
7
CLRT
TIMEOUT
TIMEOUT
23
8
CLRT
ATO
BU
ATO
24
1316
44
34
39
11
9
BU
R13
5K
ZCIN
N.C.
N.C. N.C.TEST3
MCLK
MCLK
TRIM
JP16
JP13
5V
P10V
TR1
4
RADIOHM 69E16H1B
L2 220 H
D1
1.5A W04
C1
47nF
R1 16.2 2W
L5 1mH
P
N
F1 TR5-F 0.5A
1
CN1
CN4
L3 10 H
D2
STPS160ASMA
D3
BZW06-
C3
4.7 F
C2
4.7 F
L1 42V15
400V
2
ACLINE
234
1
ZCIN
CN2
J1
7
D4
171
400V
400V
2 x 10mA
0.3A RADIOHM
AC
to 256V
AC
85V
ZCOUT
1
C5
C4
281
STTA106
DRAIN
ATOP1
R2
470 F
470 F
C34
VCC
1
L6590
ATOP2
2
2.2K
16V
16V
100nF
3
5
C6
GND
RXFO
D5
D6 1N4148
R3 10
6
6
ATO
GREEN
50V
22 F
7
GND
D7 1N4148
R5 3.3K RL6 10
VFB
U1
GND
CN3
1
R8
4.7M
220V X2
C11 33nF
7
L4 22 H
1T1T
T2
D17
SM6T6V8A
D15
P6KE6V8A
R10
C_R9
100nF
LC12 10 H
JP36
3
C15
100nF
1F
C10
R7
58
4
910
C8
VCOMP
1F
C14
10 F
L8
10 H
C16
100nF
5V
JP35
C7
2.2nF/Y1
2.2 Signal coupling interface
The line signal interface links the application board to the mains, obtaining a highly efficient
coupling circuit for the received and transmitted FSK signals and a reliable filtering system
for the mains voltage (220 V~/50 Hz or 110 V~/60 Hz), for noise and for bursts or surges.
13/46
Demonstration board for ST7538QAN1714
It is possible to implement different topologies of coupling circuits. A first classification is
between an isolated solution with a line transformer or a double capacitor and a nonisolated
solution with a single high-voltage decoupling capacitor. The last one is simpler and
cheaper, while the first one achieves better performances using efficiently the differential
power output of the devices.
The differential solution has been also preferred for the advantage in reducing the even
harmonics of the transmitted signals.
In the design of the coupling interface many technical and standard constraints have to be
considered that are different in a receiving condition with respect to a transmitting status.
Following is a list of design specifications for signal coupling for the European market:
●High selectivity in receiving mode (EN50065-2-1)
●Output impedances as great as possible (EN50065-7)
●Low noise in receiving mode
●Wide voltage and current signal compatibility in every condition (EN50065-1)
●Very low distortion in transmission mode (EN50065-1)
●High coupling efficiency in transmission mode (also with high loads)
●High reliability to burst and surge spikes (EN50065-2-1)
A series of constraints listed in EN50065-4-2, "Low voltage decoupling filters - Safety
requirements", have to be guaranteed by the decoupling elements (transformer or
capacitors) in order to be compliant with a
4 kV or 6 kV class.
The solution implemented in the demonstration board is an isolated circuit with a 1:1
transformer and a X2 class capacitor. In the chosen topology the transmission sections
components do not haveany relevant influences on the receiving circuits, so the two
structures can be analyzed separately. The component values that consitute the passive
filters have been dimensioned for the 132.5 kHz channel, but also with the 110 kHz
communication frequency, the performances of the board meet the requirement for reliable
communication.
14/46
Loading...
+ 32 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.