+ All Categories
Home > Documents > ST7538 App Notes

ST7538 App Notes

Date post: 11-Apr-2015
Category:
Upload: api-3697475
View: 213 times
Download: 2 times
Share this document with a friend
42
1/42 AN1714 APPLICATION NOTE October 2003 1. INTRODUCTION 1.1 Power Line Communication The advantages in the realizations of a communication network using the same electrical network that supply all the elements of the network are evident. Also in presence of new wide band LAN using RF sys- tem, for example Bluetooth, a narrow band communication system using the mains has valid and relevant advantages. In fact it's a common opinion that in residence or industrial field in parallel to a wide band network for im- ages, films, Internet, will be also active a narrow band LAN used to carry simples information as measure, command to actuators, check systems and so on. So there are a lot of fields that can be covered by a narrow band communication system, in a residential structure, outside the house or in industrial applications (see figure below). For example in houses or commercial building possible application are power management, light control, heating o cooling system management, remote control of appliances (by internet or telephone), control of alarm systems. Figure 1. Typical Power Line Modem Applications Scenario By Giuseppe Cantone ST7538 FSK POWER-LINE TRANSCEIVER DEMO-KIT DESCRIPTION Obsolete Product(s) - Obsolete Product(s)
Transcript
Page 1: ST7538 App Notes

1/42

AN1714APPLICATION NOTE

October 2003

1. INTRODUCTION

1.1 Power Line Communication

The advantages in the realizations of a communication network using the same electrical network thatsupply all the elements of the network are evident. Also in presence of new wide band LAN using RF sys-tem, for example Bluetooth, a narrow band communication system using the mains has valid and relevantadvantages.

In fact it's a common opinion that in residence or industrial field in parallel to a wide band network for im-ages, films, Internet, will be also active a narrow band LAN used to carry simples information as measure,command to actuators, check systems and so on.

So there are a lot of fields that can be covered by a narrow band communication system, in a residentialstructure, outside the house or in industrial applications (see figure below).

For example in houses or commercial building possible application are power management, light control,heating o cooling system management, remote control of appliances (by internet or telephone), control ofalarm systems.

Figure 1. Typical Power Line Modem Applications Scenario

By Giuseppe Cantone

ST7538 FSK POWER-LINE TRANSCEIVER DEMO-KIT DESCRIPTION

Obsolete Product(

s) - O

bsolete Product(

s)

Page 2: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

2/42

Considering external applications the main field regard the communication with the meters, in particularautomatic measure and remote control, prepaid supply systems, meter or broadcast information home ter-minal. Another relevant industrial segment can be the street lighting management.

Even if it is some years that the concepts of power line communication and home automation are present,as well different devices dedicated for power line modems are developed, the market segment of this kindof application is developing only in this last period.

There are three main factors that have conditioned up to now the field of the power line communication:

a) The slow development of international normative and standards;

b) Some technical constraints related to the electrical network;

c) Consideration about costs from a general point of view.

The first point regards standards and normative. As general consideration in an open communication sys-tem is mandatory to have rules and guidelines to guarantee that every node, independently by the manu-facturer, don't compromise the characteristics of the entire network and the performance of thecommunication system.

In the home domain this aspect is more relevant for the presences of several and different appliances andmanufacturers, and also the consideration about a common language (the protocol) are mandatory.

In the last year the CENELEC (European Committee for Electrotechnical Standardizations) have pub-lished or up gradated a series of regulations about the communication on low voltage electrical installa-tions. In particular the are the EN50065-1, concerning general requirements, frequency bands andelectromagnetic disturbances; the EN50065-4-2 about the low voltage decoupling filter and safety require-ments; the EN50065-7 about the impedance of the devices.

It is also available a preliminary version (1999) of the EN50065-2-1 about immunity requirements.

In the last period there is also a sort of lining among the appliances manufacturers on the EHS (EuropeanHome System) protocols, even if a lot of customized protocols are present, mainly in proprietary mains.More information on EHS protocol is available on EHS booklet document.

The second critical consideration regards the technical problems concerning the specific topology of theelectrical network.

The figure below represents a typical scenario of the signal present on an electrical network. For severalreasons that will be listed in the next paragraph (low impedance, different kind of disturbances, etc.) thereceived FSK signal has a very low level and it is mixed with a great level of noise.

Figure 2. Mains Signals

ST 7538 ST 7538

MAINS

Tx Rx

f f

Transmitted Signal Received Signal

ST 7538 ST 7538

f f f f f fc fc

Page 3: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

3/42

AN1714 APPLICATION NOTE

The aspects of noise and low impedance are more critical in a residential house were a lot of differentappliances are present.

Every entity of the network has to be able to manage a reliable communication also in these critical con-ditions. To realize this goal all the aspects of the application design have to be to consider carefully, fromthe coupling interface to the power management, from the type of microprocessor to the power line trans-ceiver, considering their mutual influence, too.

Last but not least the consideration about the economic point of view. It isn't a simple consideration of thenode cost respect to an equivalent wire line or wireless solution, but also other aspects as the installationand configuration cost of the entire network.

Another economic issue that has to be considered is the power consumption of a single communicationnode. The power consumption of each communication unit has to be lower as possible because everyunit must stay always on ready to receive commands from a remote transmitter. This constrains is evenmore relevant in application with a huge number of nodes. Consider for example the control of a streetlighting system with thousands of lamps or a metering system with several thousand of electricity meters.

The ST7538 has been designed considering all the issues listed before. With this device is possible torealize high efficient and reliable application for power line communication, characterized by low powerconsumption, low cost, compliant with the main normative and protocol today presents.

1.2 The Electrical Network

The communication medium consists of everything connected on power outlets. This includes house wir-ing in the walls of the building, appliance wiring, and the appliances themselves, the service panel, thetriplex wire connecting the service panel to the distribution transformer and the distribution transformer it-self. Since distribution transformers usually serve more than one residence, the loads and wiring of all res-idences connected to the same transformer must be included.

1.2.1 Impedance of Power Lines

A power line has very variable impedance depending of several factors as for example its configuration(star connection, ring connection) or the number of entities linked.

An extensive data on this subject has been published by Malack and Engstrom of IBM (ElectromagneticCompatibility Laboratory), who measured the RF impedance of 86 commercial AC power distribution sys-tems in six European countries (see Figure 3).

These measurements show that the impedance of the residential power circuits increases with frequencyand is in the range from about 1.5 to 8Ω at 100kHz. It appears that this impedance is determined by twoparameters - the loads connected to the network and the impedance of the distribution transformer. In thelast period a third element influences in a relevant way the impedance of the power line, in particular inthe a residential network. It is represented by the EMI filters mounted in the last generation of home ap-pliances (refrigerators, washing machines, television sets, hi-fi). Wiring seems to have a relatively smalleffect. The impedance is usually inductive.

For typical resistive loads, signal attenuation is expected to be from 2 to 50dB at 150kHz depending onthe distribution transformer used and the size of the loads. Moreover, it may be possible for capacitiveloads to resonate with the inductance of the distribution transformer and cause the signal attenuation tovary wildly with frequency.

For the compliance tests the normative EN50065 use two artificial mains networks conforming to subclause 11.2 of CISPR 16-1:1993. Measurements on real networks have shown that this artificial networkdo not truly represent practical network impedance. To better evaluate the performance of a real signalingsystem occurs an adaptive network that has to be used in conjunction with the CISPR 16-1 artificial net-work. The design of the adaptive circuit is included in the informative annex F of EN50065-1 (revision2001).

Page 4: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

4/42

Figure 3. Aggregate European Power Line Impedance (by Malack and Engstrom).

1.2.2 Noise

Appliances connected to the same transformer secondary to which the power line carrier system is connect-ed cause the principal source of noise. The primary sources of noise will be Triacs used in light dimmers,universal motors, switching power supply used in small and portable appliances and fluorescent lamps.

Triacs generate noise synchronous with the 50Hz power signal and this noise appears as harmonics of50Hz. Universal motors found in mixers or drills also create noise, but it is not as strong as light dimmernoise, and not generally synchronous with 50Hz.

Furthermore, light dimmers are often left on for long periods of time whereas universal motors are usedintermittently.

In the last years others two source of strong noise have been introduced in the electrical network. Theyare the Compact Fluorescent Lamps (CFL) and the switching power supplies of rechargeable battery (forexample notebook) or little appliances.

In many cases they have a working frequency or some harmonics in the range of the power line commu-nication band (from 10KHz to 150KHz). Of course the presence of continuous tones exactly at communi-cation channel frequency can affect the reliability of the communication.

The figure 4 shows some of the noise sources we talk about. The measures setup consists of an insulationtransformer with a VARIAC, a spectrum analyzer HP4395A coupled by a high voltage Capacitor (1uF) anda 2mH transformer (1:1).

Figure 4. Voltage spectra of a 100W light dimmer, a notebook PC, a desktop PC, a CFL lamp, a TLE lamp, all working with a 50Hz/~220V supply (by Cantone).

IMPEDANCE MAGNITUDE (OHM)

0.1

1.0

10.0

100.0

1000.0

0.04 0.08 0.10 0.30 0.75 2.10 5.00 15.00 30.00

FREQUENCY (MHz)

MAXIMUM

MEAN

MINIMUM

10.0

30.0

50.0

70.0

90.0

110.0

1.00E+03 1.00E+04 1.00E+05 1.00E+06 Hz

dBuV

Background CFL 11W Desktop PC Dimmer 100W TLE 22W Notebook PC

Page 5: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

5/42

AN1714 APPLICATION NOTE

1.2.3 Typical Connection LossesThe transmit range of a home automation system depends on the physical topology of the electric powerdistribution network inside the building where the system is installed.Different connection losses can be measured. For communication nodes connected to the same branchcircuit from transmitter to receiver a typical connection loss is about 10-15 dB. If transmitter and receiverare in different branches of the circuit, separated for example by a service panel, there is an additionalattenuation of 10-20 dB.In some worst conditions (socket with very low impedance) the attenuation of the transmitted signal canreaches a value of 50-60db.

1.2.4 Standing Waves

Standing wave effects will begin to occur when the physical dimensions of the communication medium aresimilar to about one-eight of a wavelength, which are about 375 and 250 meters at 100 and 150kHz re-spectively. Primarily the length of the triplex wire connecting the residences to the distribution transformerwill determine the length of the communication path on the secondary side of the power distribution sys-tem. Usually, several residences use the same distribution transformer. It would be rare that a linear runof this wiring would exceed 250 meters in length although the total length of branches might occasionallyexceed 250 meters. Thus standing wave effects would be rare at frequencies below 150kHz for residentialwiring.

1.3 ST7538 Power Line Modem

ST7538 is a transceiver designed for power line communication application on low voltage (220V) and me-dium voltage (2KV) mains. Its function is to realize the interface from the electrical network and a system(usually a microprocessor with some sensors), which will manage the application and the upper layers ofthe communication protocol.

The advanced technology used, a CMOS-LDMOS-BIPOLAR fabrication process, the package, a TQFP44with dissipating slug, and new design techniques make this device a more versatile and complete instru-ments than the previous generation of power line modems.

Figure 5. Basic Blocks and Functions of ST7538.

Linear Regulator Clock Source Watchdog Supervisor Reset Generator UVLO

Control Register Serial Interface Serial Interface Management Power line comunication status signals

PLI Receiving Section Transmitting section

ST 7538

MODEM SECTION

SERIAL INTERFACE

& CONTROL

LOGIC

µ C

SUPERVISOR

Page 6: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

6/42

The key points of this device are:

– A smart power consumption management, i.e. very low current consumption in receiving mode (5mA) and a high efficiency during transmission;

– The integration of a consistent part of the power circuits (a 2Watt power line drivers and a 5V/100mAlow drop regulators);

– A very efficient demodulation circuit with a wide dynamic range and an high selectivity;

– An automatic voltage/current regulation loop that adapts the transmitted signal to the low and variableimpedance of the mains;

– An internal register in conjunction with efficient and simple digital interface that controls easily all thefunctions of the device;

– A series of auxiliary function and blocks (zero crossing comparator, crystal driving oscillator circuit,operational amplifier, Band in use, Power Good, etc.);

All the listed above characteristics make this device a powerful tool to develop power line modem appli-cation with low power consumption, a reasonable cost, suitable to design communication node compliantwith the European normative CENELEC (EN50065), US FCC regulations.

ST7538 is a protocol independent device and it can be used to implement proprietary protocols or stan-dardize protocols like EHS V1.3a or Konnex.

A possible application circuit with the ST7538 is illustrated in figure 6. As you can notice the several fea-tures of the ST7538 simplify the overall application reducing the number of the external components.

The internal 5V regulator of the devices generates the supply for the microprocessor and other low voltagecomponents the application requires, so only one power regulator is sufficient to supply the application.The reset, the clock can be provided to the microprocessor by the ST7538, so it is possible to avoid theglue logic and the external circuitry to realize them.

The integrated power line interface with an integrated voltage regulation/current protection circuit (patentpending) and few passive external components realizes a very efficient coupling circuit able to transmit avalid signal also in the most critical condition of impedance.

All these issues explain how it is possible to make an efficient and cheaper power line communicationnode using the ST7538.

Page 7: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

7/42

AN1714 APPLICATION NOTE

Figure 6. Application Circuit.

1.4 FSK Modulation & ST7538 Architecture

The function of the devices is to receive and transmit through mains or a power line, connected with anappropriated coupling circuit, electrical signals coded according a half duplex FSK modulation (FrequencyShift Key). The FSK modulation technique translates a digital signal in a sinusoidal signal that can havetwo different frequency values, one for the logic level high of the digital signal (fh), the second one for thelow level (fl).

The average value of the two tones is the carrier frequency (fc). The difference or distance between thetwo frequencies is a function of the baud-rate (BAUD) of the digital signal (the number of symbols trans-mitted in one second) and of the deviation (dev). The relations are:

User's Application Electronics

ST7538

WD RX/TX CLR/T RxD TxD REG/DATA CD/PD TOUT PG RSTO

ZCIN

ZCOUT REGOK

TEST RAI

ATO

Vsense CL

MCLK

DVcc

DVss

AVcc

AVss XTAL1 XTAL2

VDC

BU

ATOP1

PAVcc

AC LINE

uP

Vcc

Vss

AC LINE

L6590

DRAIN

V CC VFB

COMP GND

ATOP2

RxFo

No external components for

Power Line Driver

5V Supply Voltage provided to the uC

Clock provided to the uC Voltage Regulation &

Current Protection Zero Crossing Transmission

synchronization

User's Application Electronics User's Application Electronics

ST7538

WD RX/TX CLR/T RxD TxD REG/DATA CD/PD TOUT PG RSTO

ZCIN

ZCOUT REGOK

TEST RAI

ATO

Vsense CL

MCLK

DVcc

DVss

AVcc

AVss XTAL1 XTAL2

VDC

BU

ATOP1

PAVcc

AC LINE

uP

Vcc

Vss

AC LINE

L6590

DRAIN

V CC VFB

COMP GND

ATOP2

RxFo

Single Supply Voltage

Reset provided to the uC

f h

f l

ƒh ƒl– BAUD dev ƒc⋅ƒh ƒl+

2-----------------= =

Page 8: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

8/42

The ST7538 is able to communicate using one of 8 different communications channels (60, 66, 72, 76,82.05, 86, 110, 132.5 KHz), selecting for the chosen channel four baud-rate (600, 1200, 2400, 4800) andtwo different deviations (1 and 0.5). All these parameters and other setups of the devices are configuredwriting the internal control register.

Figure 7. ST7538 Block Diagram.

The ST7538 in transmitting mode (pin RxTx at a low level) receives a digital signal at the baud-rate on theTXD signal and translate it in a FSK sinusoidal signal at the pins ATOP1/ATOP2 (the signals are in phaseopposition).In the receiving mode (pin RxTx high level), an incoming FSK signal on the RAI pin is demodulated andthe digital output is present at the pin RXD. The device recovers also the clock (baud-rate) of the receivedsignal on output pin CLR/T using an internal PLL.The communication has to use a half-duplex protocol, i.e. only one communication node at a time cantransmit. All the other nodes have to wait their turn and be sure that the communication channel isn't busybefore to communicate.For a more detailed and complete description of the ST7538 devices and of its function please refer to theproduct datasheet.

Figure 8. FSK spectrum, random sequence.

SERIALINTERFACE

CARRIERDETECTION

PLL

CD/PD

RxD

CLR/T

REG/DATA

RxTx

TxD

REGOK

PG

Vdc

PAVcc

ATOP2

ATOP1

ATO

Vsense

CL

RAI

RxFoTEST2 TEST3TEST1AVddDVdd AVssDVss BU

XOut WD TOUT RSTO MCLK ZCin ZCout C_OUT CMINUS CPLUSXIn

DIGITALFILTER

FSKDEMOD

IFFILTER

TXFILTER

FILTER

+

-

FILTER

BU

DAC

ZCOSC

AGC

AMPL

TEST

ALC

OP-AMP

PLI

VREG

CURRENTCONTROL

VOLTAGECONTROL

FSKMODULATOR

TIME BASE

CONTROLREGISTER

D03IN1407

Peak Measure - Bw = 100 Hz Ch 132.5 kHz, Baud 2400, dev 0.5

40.0

50.0

60.0

70.0

80.0

90.0

100.0

110.0

122 127 132 137 142 kHz

dBu

Page 9: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

9/42

AN1714 APPLICATION NOTE

2. DEMO BOARD FOR ST7538

2.1 Main Features

ST7538 Demo Board realizes in a two layer PCB a complete power line communication node, includingthe power line coupling circuits, a power supply section, a microcontroller and a RS232 serial interface toconnect the board to a personal computer (figure 10). This board with the related firmware load in the STmicroprocessor and the PC software realizes a complete reference about the mains aspects of the powerline communications.

Figure 9. Demo Board Picture.

Figure 10. Demo Board Layout sections.

Signal Coupling Interface

ST7

Power SupplyPC Interface

LV HV

LV HV

LV

LV

ST7538P

Signal Coupling Interface

ST7

Power SupplyPC Interface

LV HV

LV HVLV HV

LV

LV

ST7538P

Page 10: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

10/42

The aim of this board is to give a useful tool to develop and to evaluate a power line application with thedevice ST7538. So even if aspects of the board concerning size and cost aren't optimized, it's schematicgives a good design reference and a valid start point to develop power line modem applications. Moreoverthe board structure (a lot of jumpers, test points, few SMD components) allows connecting easily testprobes to realize measure and signal verification, as well to customize the application according to specificrequirements.

Figure 11. Demo Board Schematic: Micro controller & PC Interface.

C27100nF

5V_µP

5V_µP

TXD

MICRO_TXD

C28100nF

C29100nF

C3010µF

C31100nF

C24 100nF C23 100nF

C25100nF

C32100nF

R164.7K

1

5

4

3

2

5V_led

RN1COMMON

R4

R3

R2

R1

1

6

2

7

3

8

4

9

5

CN5FEMALE

D11RED

TOUT

PA4 PA5 PA6 PA7

8

7

1

6

3

2

R2IN

R1IN_A

T1OUT_A

T2OUT_A

PC INTERFACE

T2OUTT2OUT_A

C1+

V-

C1-

C26100nF

4

5

C2+

C2-

V+

5V_led

D10YELLOW

CD/PD

D12GREEN

RX

D9RED

D131N4148

TX

R1710K

2

9

5

3

1

4

6

7

10

11

12

8

J11PC5/MOSI

PC3/ICAP1_B(HS)28

26PC4/MSO/ISPDATA

MICRO_TXD

PC2/ICAP2_B(HS)

PC1/OCMP1/B

27

PC6/SCK/ISPCLK29

PC7/SS30

PA331

VDD_132

VSS_133

VSS_240

25

24PC0/OCMP2/B

23EXTCLK_A(HS)

20ICAP1_A/PF6(HS)

BU

5V_µP

5V_µP5V_µP

5V_µP

CN6

OCMP1_A/PF418

PF1/BEEP

AN2/PD216

9

19

VSSA

ANI4/PD4REG/DATA 11

ANI3/PD3WD 10

ANI0/PD0H_S 7

PB3REG_OK 5

PB2TOUT 4

PB1CLRT 3

PB0SS 2

PE1/RDIRS232_IN 1

(HS)PA4PA4 34

(HS)PA5PA5 35

(HS)PA6PA6 36

(HS)PA7PA7 37

ISPSEL

RESET

R1OUT

VDD_2

OSCOUT

ISPSEL

RESET

38

OSCINMCLK 42

PE0/TD0RS232_OUT 44

T2INH_S 10

T1INRS232_OUT 11

39

ISPDATA

ISPCLOCK

SS

CD/PD

5V_µP

CLRT

RXD

13

14

12VDDA

ANI5/PD5

JP1

D03IN1450

AN1/PD18

PB4

VSS_0

VDD_06

22

21PF2

17ZCOUTMCO/PF0

15PG

RXTX

RS232_IN 12R1IN

R1IN_A 13T1OUT

VCC

GND

T1OUT_A

5V_232

5V

J10

J8

J95V_232

14

16

43

41

R2OUT9

U4

U3

ST2334N2

15

ST232

21

3

5

7

9

5V

ISPDATA

ISPCLOCK

RESET

ISPSEL

4

6

8

10

CN7

ISP INTERFACE

Page 11: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

11/42

AN1714 APPLICATION NOTE

Figure 12. Demo Board Schematic: Line Coupling Interface & Power Supply.

L1 4

2V15

2 x

10m

A0.

3A R

AD

IOH

M

L2 2

20µH

L5 1

mH

L3 1

0µH

L4 2

2µH

LC12

10µ

H

L733

0µH

C36

4.7n

F

J7

C33

10nF

C11

33n

F22

0V X

2

C1

47nF

400V

C2

4.7µ

F40

0V

C3

4.7µ

F40

0V

D3

BZ

W06

-17

1

D4

ST

TA

106

D2

ST

PS

160A

SM

A

TR

1R

AD

IOH

M 6

9E16

H1B

1T1T

VA

C T

6040

3-40

96-X

046

F1

TR

5-F

0.5

AR

1 16

.2 2

W

R5

3.3K

R

L6 1

0

R3

10

R7

910

D6

1N41

48

D7

1N41

48

D1

1.5A

W04

C10

1µF

L810

µHC

72.

2nF

/Y1

AT

O

RX

FO

AT

OP

2

AT

OP

1

ZC

OU

T

C8

1µF

5V

5V

P10

V

C4

470µ

F16

VC

622

µF50

V

1P N

CN

1

AC

LIN

E85

VA

C to

256

VA

C

2

C17

5.6n

F/6

3V

C34

100n

FR

22.

2K

JP35

R15

4.7

K

R14 1K

C37

100p

F

R12

50K

TR

IM

D15

P6K

E6V

8A

D16

P6K

E6V

8AD17

SM

6T6V

8AR

105.

R11

750

J11 2

P10

V

CN

2

1 2 J4 J5

T2

P N

CN

3

D5

GR

EE

N

C5

470µ

F16

V1 3

GN

D

GN

D

GN

D5

876

4

DR

AIN

L659

0

U1

VC

C

VF

B

VC

OM

P

C14

10µF

C15

100n

F

C18

47p

F

C21

100n

F

C38

10µF

1x16

MH

zS

OLD

CR

YS

TA

L C

AS

ET

O G

ND

C19

18p

F

C16

100n

F

C22

22nF

SW

1

R8

4.7M

C13

220

nF

CN

4

2 3 4 5 71

VS

EN

SE

XIN

XO

UT

VD

CA

VD

DT

ES

T1

J2

CM

INU

S

CP

LUS

31 27 26

J6

C_R

910

0nF

AV

SS

25

PA

VC

C22

PA

VS

S

AT

OP

1

AT

OP

2

20

RX

FO

29

TE

ST

2JP

TIN

JP36

30

N.C

.

GN

D

17

6

3328

35

34

1921

ZC

IN

ZC

OU

T15

WD

CL

23A

TO

2432

AT

O

ZC

OU

T

WD

14

RE

G_O

KR

EG

_OK

36P

GP

G42

RE

G_D

AT

AR

EG

/DA

TA

RE

SE

T

43

RS

TO

12

TIM

EO

UT

TIM

EO

UT

7C

LRT

CLR

T8 9

BU

RA

I

BU

MC

LKM

CLK

11

CD

/PD

CD

/PD

1R

XD

RX

D3

RxT

xR

x/T

x4

TX

DT

XD

5

DV

DD

5V

DV

SS

10

C20

300n

F

1316

18

N.C

.N

.C.

TE

ST

3

44 N.C

.

DV

SS

39

GN

D4137

J3

38 40 2

C_O

UT

C_O

UT

D03

IN14

51

4

7

2

8

1 3

JP16

5V

JP13

ST

7538

PU

2

ZC

IN

6

CL

VS

EN

SE

R13 5K

TR

IM

Page 12: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

12/42

2.2 Signal Coupling Interface

The line signal interface links the application board to the mains, realizing an high efficient coupling circuitfor the received and transmitted FSK signals and a reliable filtering system for the mains voltage (220V~/50Hz or 110V~/60Hz), for noise and for bursts or surges.

It is possible to implement different topologies of coupling circuits. A first classification is between an iso-lated solution with a line transformer or a double capacitor and a non-isolated solution with a single highvoltage decoupling capacitor. The last one is more simple and cheaper, while the first one realizes betterperformances using efficiently the differential power output of the devices.

The differential solution has been also preferred for the advantage to reduce the even harmonics of thetransmitted signals.

Figure 13. Demo board ST7538 Power Line Interface.

In the design of the coupling interface a lot of technical and standard constrains have to be considered,that are different in a receiving condition respect to a transmitting status.

Here following a list of design specification for signal coupling for the European Market:

– High selectivity in receiving mode (EN50065-2-1);

– Output impedances as greater 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 the EN50065-4-2, "Low voltage decoupling filters - Safety requirements",have to be guarantee by the decoupling elements (transformer or capacitors) to be compliant with a 4KVor 6KV classes.

MAINS1:1ATOP1

ATOP2

RAI

C13

C33R11

L7C36

LC12

R10

CR9

L4 C11

T1

R8D17

D15

D16

19

21

32

Tx Band Pass Filter

Tx Band Pass FilterProtections

Rx Band Pass FilterST7538

1:11:1

L7C36

21

Page 13: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

13/42

AN1714 APPLICATION NOTE

The solution implemented in the demo board is an isolated circuit with a 1:1 transformer and a X2 classcapacitor. In the chosen topology the transmission sections components haven't any relevant influenceson the receiving circuits, so the two structures can be analyzed separately. The components values thatrealize the passive filters have been dimensioned for the 132.5KHz channel, but also with the 110KHzcommunication frequency the performances of the board have the requirement for a reliable communica-tion.

2.2.1 Transmitting Section

The function of the transmitting coupling circuits is to inject the transmitted signal coming from the poweramplifiers (ATOP1/ATOP2) to the mains with the maximum efficiencies and filter noise and spurious sig-nals over the Cenelec mask (EN50065-1, section 7 disturbances limits).

The critical frequencies of the conducted disturbances emitted are the 2nd and 3rd harmonics of the trans-mitted signal (265 KHz and 497.5 kHz for the channel at 132.5 kHz) the harmonics of the working frequen-cy of the power supply regulator and two spurious tones centered at 1.3 MHz (+/- the channel frequency)produced by the direct synthesis technique used for the transmitted signal generation.

The configuration used for the transmitted circuit realizes a 4th order band pass filter (four poles and twozeros). In order two have a good immunity to the components spread (accuracy and temperature) and tothe load variation the filter has a band of about 60 kHz (see figure 16). To obtain this characteristic twopoles can be put at a frequency of about 100 kHz and the other at a frequency of about 160kHz.

Figure 14. Demo Board ST7538 transmission coupling circuit.

For a correct dimension of the filters the mutual influence of the various components has to be considered,as well the influences due to the other elements: the leakage inductance of the transformer (from 0.1uHto 10uH), the capacitance of the transil diode (about 2nF), the ESR of the series components C13, LC12,T1, L4, C11 (from 100m ohm to 1 ohm).

For a first approximate rate of the components values the simplified circuit of figure 15 are used only thereactive components and the transformer (1:1 ratio) is considered ideal.

1:1

ATOP1

ATOP2

RAI

C13

C33 R11

L7 C36

LC12

R10

CR9

L4 C11

T1

R8 D17

D15

D16

19

21

32

50 ΩΩΩΩ 5 ΩΩΩΩ

50 µµµµ H

50 ΩΩΩΩ 5 ΩΩΩΩ

50 µµµµ H

Transmission Coupling Section

Artificial Network CISPR 16-1

100K ΩΩΩΩ

ST7538

2.5V

1:1 1:1

C33 R11

L7 C36

T1

R8

19

21

32

50 ΩΩΩΩ 5 ΩΩΩΩ

50 µµµµ H

50 ΩΩΩΩ 5 ΩΩΩΩ

Page 14: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

14/42

For the correct dimension of the filter it is better to consider the typical impedances expected for the usedmains network too (usually an inductive load). If an impedance characterization of the network isn't avail-able it is possible to use a reference load like the artificial network CISPR16-1 (50 ohms parallel 5 ohmplus 50uH). In the simplified circuit as been considered only the reactive part of the CISPR 16 artificialnetwork 2 Lc = 100uH.

Figure 15. Simplified schematic of the transmission filter.

The formulas for the two couple of poles are:

; LB = L4 + 2 · LC

The peak value of the signal current can reaches with heavy load a current peak value greater than 1 Am-pere so all the components of the coupling interfaces in series to the signal (in particular the inductorsLC12, L4 and the transformer T1) have to be guarantee for this current without saturation or overheat prob-lems. The maximum current of the inductive elements, as well the series resistance, are proportional tovalue of the inductance.

In any case the ESR of these inductive elements has to be as lower as possible to realize a good couplinginterfaces. In fact with a global impedances series greater than 2 ohm the coupling losses of the transmit-ted signal with heavy loads could be excessive.

For these reasons are been chosen in this circuit LBC (Large Bobbin Core) inductor with values small aspossible (LC12 = 10µH and L4 = 22µH)

Another constraints regard the value of the capacitor C11. This is a X2 class capacitor that has the primaryfunction to uncouple the transformer for the mains. Its better to use a value as lower as possible both foran economic reason, both to obtain a 50Hz mains current in the secondary coil of the transformer loweras possible in order to reduce saturation effects. The value choused is 33nF.

C13 LC12

CR9

L4 C11

L c = 50 µµµµ H

L c = 50 µµµµ H

CISPRLoad

1 st Loop 2 nd Loop CR9

c

L c = 50 µµµµ H

ƒp1 ƒp2 1

2 π LC12 CA⋅⋅ ⋅--------------------------------------------- 160kHz ƒp2 ƒp3

1

2 π LB CB⋅⋅ ⋅-------------------------------------- 100kHz≅ ≅=,≅ ≅=

1CA------- 1

CR9-----------

1C13---------

1 CB

-------------;+ 1CR9----------- 1

C11---------+= =

Page 15: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

15/42

AN1714 APPLICATION NOTE

Considering that all the mains voltage drop un the C11 capacitor the current value in the transformer coilis about:

Using the previous poles formulas can be rated the values of CR9 (100nF) and C13 (220nF). The require-ments about this type of capacitor are the accuracy, the temperature compensation and a low ESR values.Polyester capacitors or Polypropylene capacitor (better temperature coefficient) are suggested. The ac-curacy should be at least of ±10%.

Figure 16. Simulated characteristics of the transmission coupling filter.

Using components with standard values the real values of the poles are:

The values obtained are very close to the spec values and in agreement with the simulated results (seefigure 16). In any case for a better result it is suggested to use a simulator or an equivalent specific pro-gram to design filters.

The R10 resistor has been added to fit the output impedance requirement in receiving mode (EN50065-7).

Irms 220Vrms 2 π 50Hz C11⋅⋅ ⋅ ⋅≅ 2.3mArms=

VDB (OUTC2)dB10

0

-10

-20

-30

-40

-50

-60

-70

-80

1e+U4 1e+U5 1e+U6 2e+U6Hz

ƒp1 ƒp2 192kHz ƒp2 ƒp3 91kHz= =,= =

Page 16: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

16/42

An alternative solution for the transmission coupling circuit is showed in the picture above. It realizes a2nd order band pass Butterworth filter centered at the channel frequency.

The advantage of this solution is the symmetrical structure that compensates the non-linearity of the com-ponents (lower level for the even harmonics).

Also in this case a correct dimension of the filter has to take in account the parasitic elements of the variouscomponents, as well the load influence.

Figure 17. Coupling circuit with a 2nd order band pass Butterworth.

One of the most critical components of the application is the signal transformer. In order to have a goodpower transfer and to minimize the insertion losses it is recommended a transformer with a primary induc-tance greater than 1mH and a series resistance lower then 0.5 ohm. Another constrains regards the sat-uration current: a DC or low frequency current (50Hz) should be present.

Another parameter to take in consideration is the leakage inductance. If it has a relevant value (from 10uHto 50uH) the inductance L4 can be avoided. The drawback is that this parameter has a great variation thatinfluences the output filter characteristics. For this reason in the demo board is used a transformer with avery low leakage inductance (lower than 1uH).

The European normative (CENELEC) gives another constraint regarding the voltage insulation resistanceand dielectric strength of the application that influences the transformer. Two classes are indicated, a 4kVand a 6kV class. The classification and measurement criteria are codified in the EN50065-4-2 CENELECdocument.

In case of heavy load a smart solution is to use a 2:1 transformer. The equivalent impedance of the loadreferred to the primary coils of the transformer has a value four times bigger than with a 1:1 ratio trans-former. Also the current supplied by the power interfaces has half value. The only critical point is that tohave the same output signal level on the mains the ST7538 power interfaces has to generate a doublesignal (more problems with odd harmonics).

Seldom a low amplitude signal at high frequency (greater than 10MHz) can be present on the output sig-nal. It should be originates by a resonance from the leakage inductances and the parasitic capacitance ofthe board and of the ST7538 output stage. Usually the series inductor LC12 stops this kind of oscillations.

2.2.2 Receiving Section

The receiving circuit of the coupling interface has the main function to filter noise tones from network thatcan overcome the maximum absolute rates of the RAI pin, or in any case degrade the demodulation per-formances of the device (EN50065-2-1 Narrow-band conducted interference, 7.2.3).

MAINS 1:1 ATOP1

ATOP2

220nF 10 µµµµ H 4.7 ΩΩΩΩ

100nF

33nF X2 19

21

ST7538

220nF 10 µµµµ H

47 µµµµ H

Transmission 2nd orderBand Pass Butterworth

1:1 1:1

220nF 10 µµµµ H 4.7 ΩΩΩΩ

100nF

19

21

Page 17: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

17/42

AN1714 APPLICATION NOTE

The solution adopted in the demo board consists of a resonant parallel circuit that realizes a 2nd orderpassive filter (C36, L7 R11). The C33 capacitor is a decouple component that saves the DC value on theRAI pin (2.5V). This DC value realizes the maximum voltage input signal (2Vrms) compatible with the ab-solute of the devices.

Figure 18. Demo board ST7538 receiving circuits.

In the receive mode the ATOP1 pin has a high impedance and a DC polarization at PAVcc/2 while ATOP2pin is tied to ground internally into the device with a power MOS (few milliohm resistance). With this con-figuration the two resonant series L4, C11 and LC12, CR9, R10 can be considered as first approximationneglected (L4/C11 has the resonance at the channel frequency while the LC12/CR9 has the resonance atan higher frequency). The only effect of these components is to attenuate the amplitude of the receivedsignal, about 6 dB with the used values of CR9 and R10.

According to these consideration the dimension of the input filter frequency depends mainly by the choiceof C36 L7 and R11.

These components realize a 2nd order band pass filter. The center band frequency of the filter is the chan-nel frequency:

The other parameter to take in account for the receiving filter design is the Quality factor (Q). It 's value isa tradeoff between the selectivity requirements (high Q values) and the components and temperaturesspreads. Using a polypropylene capacitor with a 5% tolerance and a BC inductor with a tolerance of 10%a Q value betweens 2 and 3 is acceptable.

In order to don't influence the transmitting section and to reduce the DC current trough the primary coil oftransformer the value of R11 should be higher as possible. The drawback of a great value for this resistoris that produces a higher white noise. A value of 750 ohm satisfies these opposite requirements for all thecommunication channels. Fixed the resistor value and using the previous equations it is possible to ratethe values of C36 and L7.

Here following a table with some possible commercial values for these components referred to differentcommunication channel.

1:1 ATOP1

ATOP2

RAI

C13

C33 R11

L7 C36

LC12

R10

CR9

L4 C11

T1

R8 D17

D15

D16

19

21

32

ReceivingCoupling Section

22PAVCC

100K ΩΩΩΩ

60K ΩΩΩΩ

60K ΩΩΩΩ

ST7538

2.5V

1:1

C13

ƒ01

2 π L7 C36⋅⋅ ⋅----------------------------------------≅ 132.5kHz=

Q R11

C36

L7---------⋅≅ 2.85=

Page 18: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

18/42

Table 1. Parallel resonance Rx filter components

Rx Filter

C36 L7 F0

Ch 132.5 kHz 6.8nF 220uH 130.1 kHz

Ch 110 kHz 10nF 220uH 107.3 kHz

Ch 86 kHz 10nF 330uH 87.6 kHz

Ch 82.05 kHz 8.2nF 470uH 81.1 kHz

Ch 76 kHz 10nF 470uH 73.4 kHz

Ch 72 kHz 22nF 220uH 72.3 kHz

Ch 66 kHz 18nF 330uH 65.3 kHz

Ch 60 kHz 22nF 330uH 59.1 kHz

The resonance frequency of the filter is strictlylinked to the spread of these components and anexcessive spread can produce an excessive at-tenuation on the received signal. The accuracy ofL7 and C36 has to be great.

For the same reason the Q factor has a relevantpart in the design of the Rx filter. Some applicationcan use more than one communication channel atthe same time, in this case the best choice is tohave a resonance frequency at a mean values ofused frequencies and a Q factor not too high.

Figure 19. Measured filtering characteristic of the demo board at the RAI pin in re-ceive mode.

For the receiving filter a passive solution is pre-ferred to an active filter. The experience has evi-denced that active filter introduces a white noisecomparable with the received signal level.

Some receiving circuit interfaces, for example witha 2:1 signal transformer, can have a gain greaterthan 0dB (unit gain). In this case, if the band in usefunction level of the ST7538 is used, it is neces-sary an attenuation of the received signal (for ex-ample with a resistors divider) to have the samelevel of the signal present on the mains to be com-pliant with Cenelec specifications.

2.2.3 Voltage Regulation-Current protection loops

A power line networks requires an appropriatedriving circuits able to adapt the output signalcharacteristic to the different and low values of themains impedance.

Figure 20. Power Line Output Characteristics.RxFilter

-5.00E+01

-4.00E+01

-3.00E+01

-2.00E+01

-1.00E+01

0.00E+00

1.00E+04 1.00E+05 1.00E+06

Hz

dB

V

z

I zone

V zone

Line load (ohm)

Signal Amplitude

V0

Z0

V

z

I zone

V zone

Line load (ohm)

Signal Amplitude

V0

Z0Z0

Page 19: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

19/42

AN1714 APPLICATION NOTE

Figure 20 shows the characteristic of a coupling circuit. The characteristic has a range with constant volt-age amplitude of the transmitted signal. When the line impedance has reached a critical Z0 value, corre-sponding to the maximum power, the amplitude of the output signal is decreased in order to have aconstant current.

The value of Z0 depends mainly by the network impedance, while the maximum value of V0 depends bythe normative (EN50065-1) and by the maximum current capability of the power line interface.

The ST7538 integrates a control voltage / current protection circuit. It is possible to program the values ofZ0 and V0 with external resistors. R13 trimmer sets the current protection limit and R14 and R12 trimmerthe peak voltage level. The dimension of these external components influences the design of the couplinginterfaces and of the power management, too. For example all the components in series to the signal(transformer, filter inductors, decoupling capacitors, fuses) have to guarantee a maximum current or a sat-uration current greater than the maximum current programmed with R13, as well the dimension of the cur-rent capability of the power supply and the capacitors on the supply line have to be choose according tothe programmed current values.

The control loop circuit inside the devices is realized by a Voltage Controlled Amplifier (VCA) with a logiccircuits that implement the following control (figure 22): the current protection has the priority respect tothe voltage loop regulation, so if it is detected an output current greater than the programmed value (Iref> IH) the digital control acts on the VCA to reduces the output signal voltage. When the current reachesthe programmed value the gain of the VCA is frozen.

In case of no current protection condition (Iref < IL), the voltage regulation loop assumes the control andmodifies the gain of the VCA until the output signal reaches the programmed values.

The VCA changes its gain at steps of about 1dB (10%). The logic samples the current and voltages valueswith and internal clock of 5Hz, so the transmitted signal is updated every 200usec at step of 1 dB.

Figure 21. Voltage Regulation and Current Protection Components.

R 12

R 14

C 37 R 13

VSENSE

CL

ST7538 Voltage

Controlled Signal

Feedback Signal

VR PK

VCL TH

VCL HYST

ATOP/ATO

VCL HYST

Vout

Iout

C 17

Signal

VCL TH

VCL HYST

1.865 V

VCL HYST

Page 20: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

20/42

The value of the transmitted signal is programmed using the resistors divider R12/R14 (the capacitor C17has a decoupling function for the DC value on the VSENSE pin).

The regulations loop changes the VCA amplifier gain until the sinusoidal signal on the VSENSE pin reachesthe values of VCLTH (see datasheet values) with a tolerance of about ±10% (VCLHYST hysteresis value).

The following simplified formula calculates the resistors divider ratio.

For a more precise rate in the formula has to be considered also the input impedance of the VSENSE pin(~36 Kohm), and the decoupling capacitor C17 (for values of some nano farad this capacitor can be ne-glected).

Figure 22. Voltage regulation/current protection loop logic.

In the demo board it is possible to link the feedback signal (top of R12 resistor) to ATOP1 or to ATOP2 pinthrough the jumper J36. The choice of the feedback connection point depends on the network couplingcircuit topology.

If it is present a big noise coming from the mains that perturbs the voltage control loop a possible solutionis to connect the feedback to ATO pin. In this case the output signal has an half value respect to the ATOPpins, so the R12 resistor has a half value (or R14 resistor has to be doubled)

In the demo board it is possible to change the output signal voltage level acting on the R12 trimmer. Thefollowing table gives the values of the trimmer to assume some standard output values.

VRPK

R14 R12+

R14-------------------------- VCLTH VCLHIST±( )

VCLTH =190mV

VCLHIST =19mV⇒⋅≅

Test

Current Control

Test

Voltage Control

Reduce Gain

Constant Gain

Iref < IL Iref > IH

Vref > VH Vref < VL

Constant Gain

Reduce Gain

Increase Gain

Test

Current Control

Test

Voltage Control

Reduce Gain

Constant Gain

Iref < IL Iref > IH

Vref > VH Vref < VL

Constant Gain

Reduce Gain

Increase Gain

Page 21: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

21/42

AN1714 APPLICATION NOTE

Table 2. Voltage Regulation Loop (divider and R12 resistors values).

The resistor connected to the CL pin (the trimmer R13 in the demo board) has the function to programsthe current protection threshold. The capacitor C37 in parallel to the resistor has a filtering function fornoise and spikes.

On the CL pin is present a mirrored current (ratio 1:5000) of the p channel power Mos of the power lineinterface of the device (both ATOP1 and ATOP2). So the voltage on the CL pin will be proportional to theoutput current and to the resistor connected to the pin.

The peak value of this voltage is compared with an internal reference of the device: if the signal overcomesthe threshold the loop acts on the VCA reducing the transmitted signal and therefore the output current.

The resistor value determinates of the output signal that the interface is able to supply. In conjunction withthe programmed output voltage V0 the maximum current level fixes the minimum value of driving imped-ances (Z0).

Figure 23. Current Protection Loop Characteristic.

The graphics above gives the value of the CL resistor to program the maximum current value.

In the next figure are showed all the main signal of the control loop feedback, i.e. output signal, load cur-rent, VSENSE voltage and CL voltage.

Vout (Vrms) (1) Vout (dBuV) (R14+R12)/R14 R12 (Kohm) (2)

0.150 103.5 1.1 0.1

0.250 108.0 1.9 0.9

0.350 110.9 2.7 1.7

0.500 114.0 3.7 2.6

0.625 115.9 4.7 3.6

0.750 117.5 5.8 4.7

0.875 118.8 6.6 5.4

1.000 120.0 7.6 6.4

1.250 121.9 9.5 8.3

1.500 123.5 10.8 9.5

Note: 1. The regulated Vout voltage is the point linked to the voltage feedback divider (top of R12).2. The rate of R14 takes in account the input resistance on the VSENSE pin (36 Kohm).

The decoupling capacitor (C17) has been neglected.

Current Protection

100 125 150 175 200 225 250 275 300 325 350

2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 R 13 (Kohm)

mA (rms)

Page 22: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

22/42

Figure 24. Voltage Regulation & Current Protection Feedback signals

2.3 Board Power Management

The demo board has a main supply with a flyback converter using the monolithic switching regulatorL6590. The regulator can have both a 220V or an 110V supply voltage of the mains.

It is possible to use an external power supply connected to CN2, too. In this case the jumpers J4 and J5has to be removed and the connector CN3 has to be used instead of the standards socket CN1.

The correct supply of the board is evidenced by the green led D5. It is possible to turn off this led removingthe J1 jumper.

The 5V internal regulator of the ST7538 (VDC pin) supplies the microcontroller ST7, the ST232 interfacedevice and the led (D9, D10, D11, D12). Using the jumper connections J8 (ST7), J9 (leds) and J10(ST232) it is possible to monitor the current of these components or remove the supply to these demo-board parts.

The 5V supply is available also on the pin #1 of the CN6 connector.

A typical power consumption of the power line application (switched regulator excluded) is about 18mA inreceiving mode 120 mA in transmitting mode without load. Every led ON increases the current consump-tion of 4 mA.

The current consumption of the RS232 interface is about 12mA, It means that the overall current con-sumption of the microcontroller plus the ST7538 in receiving mode is about 6 mA.

The current consumption depends also on the clock frequency selected. There is a variation of 5mA froma 4MHz clock to a 16MHz clock.

Page 23: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

23/42

AN1714 APPLICATION NOTE

2.3.1 L6590 Regulator

The flyback converter configuration using the L6590 regulator has a specific topology that realizes thefeedback on a willing of the primary side of the flyback transformer. With this configuration it is possible tosave the cost of an optocoupler. The drawback of this solution is the wide load range of the regulated volt-age. In a condition of low current consumption (20mA) the value of the supply voltage is about 12V, intransmission the value is about 10.5V.

The maximum power of this configuration is about 3 Watt. The dimension of the maximum power con-sumption of the regulators is related to the current limit of the power line interface programmed with theR13 resistor on the CL pin.

If an external power supply is used it has to verify carefully that also in a continuous transmission conditionthe supply is able to supplies the requested current.

Another aspect that has to be consider with attention in a continuous transmission condition is the over-heat condition of the devices with the thermal protection activation (transmission aborted and signal TOUThigh).

In the demo board it is used a socket for the ST7538, therefore the slug of the package can't be sold to adissipating surface as recommended. For this reason, in presence of a heavy load during a continuoustransmission, it is easier to reach the thermal protection threshold.

A critical point common to all the switching solutions, especially for this kind of application, is the electro-magnetic noise and the conducted disturbance generated. In particular the mean noise frequencies aredue to the switching frequency and to the resonance of the leakage inductance with the drain capacitance.

Figure 25. Power supply EMC disturbances filter circuit.

In the demo board these critical values are at 20KHz or 66KHz (switching frequencies respectively withlow and high load condition) and at about 800KHz for the resonance.

It is important that the resonance of the input filter is at a frequency far from the communication bandsused, otherwise its low impedance attenuate the communication signals.

For the demo board the resonance frequency is from 10KHz to 20KHz.

The 15 ohm resistor R1 has the double function to protect the input stage of the supply from surge or burstand at the same time it is necessary to make the application board compliant with the EN50065-7 stan-dard.

Another consideration regards the frequencies noise generated by the supply. Even if the noise generatedis compliant with the normative mask limit, its mandatory to choose a value of switching frequency (andits first harmonics) far from the communication channel frequency. In fact the modem is able to demodu-late very low amplitude signals (500uVrms). Noise, also with a low amplitude value, can degrade the com-munication.

This consideration is valid only in a receiving condition, during the transmission a little noise at the samefrequency of the transmitted signal (2Vrms) can be neglected.

MAINSL1 L5

R1

C1

D1MAINS

L1 L5

R1

C1

D1

Page 24: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

24/42

The working frequencies of the L6590 are 20KHz with a low value current (receiving condition), and 66KHzwith high current, i.e. in a transmission condition (220 AC MAINS).

In the transmission case the 2nd harmonic at 133KHz (communication channel 132.5KHz) has an irrele-vant influence.

The value of the supply voltage is related to the amplitude of the output signal (see ST7538 datasheet),so usually a voltage of at lest 10V is mandatory to avoid distortion problems. The same voltage valuedoesn't occur in a receiving status. In case of strong constraints regarding the power consumption it ispossible to use two different power supply values. For example possible values are 10.5V during the trans-mission, and 7,5V in the receiving status. This can be done easily changing the feedback resistor dividerof the regulator using a switch controlled by the RxTx signal (pin #4) of the ST7538.

For more detailed information about the L6590 and other possible configuration please refer to the productdatasheet and related application notes.

2.3.2 ST7538 Power Supply

A fundamental aspect of the board design is the configuration of the ST7538 supply system.

It is recommended to connect all the grounds of the device to a common ground place, connected to thecopper plate of the slug.

During the transmission high current (up to 0.3Arms = 0.85App) at the signal frequencies are present overthe main supply and the ground plate. In case of ground or supply paths with a "high" resistance (also 2mohm should be critical) the high current could produce a ripple at the second harmonic of the signal fre-quency that should be coupled onto the mains:

As the rate above shows, the noise contribute has a relevant value respect to the Cenelec mask.

Figure 26. Noise generation in resistive supply or ground path

0.85App 0.002Ω 1.7mVpp 56dBµV≅=⋅

Noise

2 mΩΩΩΩ

ZL

19

21

ST753822

182 mΩΩΩΩ

Noise

PAVss

ATOP2

ATOP1

PAVcc

Noise

2 mΩΩΩΩ

ZL

19

21

ST753822

182 mΩΩΩΩ

Noise

PAVss

ATOP2

ATOP1

PAVcc

Page 25: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

25/42

AN1714 APPLICATION NOTE

Concerning the odd harmonics generally they are produced by high current (high load) and are generatedby saturations problems of external components or of the power section of the device.

Another origin of the odd harmonics with high amplitude of the voltage output signal should be a low powersupply value on PAVCC pin.

A critical aspect of the device power supply is the high peak current request at the start-up phase of thetransmission. The peak value requested from the supply from the low impedance present at the ATOPpins can reaches 2A. For this reason its mandatory to use storage capacitor (C38) with a value of at least10uF and a ESR as low as possible. For example a tantalum capacitor or a smoothing ceramic capacitor(TDK C series) could be used.

The linear low drop voltage regulator of the ST7538 supplies all the low voltage parts of the demo board,including the digital and analog (pin DVDD and AVDD) parts of the device itself. On the regulator outputVDC (pin #33) a low ESR 10uH capacitor (C14) is recommended.

In some conditions a noise present on the analog supply AVDD (pin # 28) can be transferred to the internalmodulation and demodulation blocks. To avoid this situation should be useful to filter this supply pin addingan inductor (L8) in series to the capacitor (C16) or using a specific EMC component (for example a TDKchip beads series MMZ1602C).

2.4 Crystal Oscillator

The ST7538 includes a driver circuit to realize a 16MHz crystal oscillator. The solution implemented it isrealized with a MOS amplifier working in a sub threshold condition. This choice allows to have very lowcurrent consumption that decrease strongly the overall power consumption of the device and of the com-munication node.

The circuit is able to drive a maximum load capacitance of 16pF, with a typical quartz ESR of 40 ohm. Thestop resistor technique has evidenced an ESR limit of 400 ohm. The worst case-condition is reached atlow temperature.

Figure 27. Crystal oscillator schematic circuit.

Due to the specific topology used it isn't possible to add an additional load (for example a probe with 10pF)on the XIn and XOut pins. For the same reason its strongly recommended to use the indicated values forthe resonant capacitors, that are fixed value of 18pF for C19 and a value from 36pF to 82pF for C18. Alower value of C18 produces a higher start up reserve (it is possible to use a quartz with a higher value ofESR), a higher value gives a better performance respect to the burst and surge noise.

C18

+

-

Circ

uit

5V 5V

Clk

XIn

XOut

ST7538C19

X1

27

26

+

-

+

-

Reg

ulat

ion

Sub threshold Amplifier

Page 26: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

26/42

Regarding other aspects as the layout topology, noise immunity or wet problems all the standard consid-eration on the crystal oscillator circuits are valid. It is very important to keep the quartz and the load ca-pacitors as close as possible to the device. A ground plate around the quartz is recommended to realizea good connection of the load capacitors.

The resonant circuit with the quartz has to be placed far from noise sources, as for example the switchingpower supply, the burst and surge protections, the coupling circuits to the mains.

In presence of high radio disturbances (example a GSM Antenna close to the application) it is mandatoryto connect the case of the crystal to ground.

If the application requires stronger or special constrains respect to oscillator and it is possible to providean external clock with the requested characteristics at the XOut pin. Probably in this case the global powerconsumption of the application will increase in a relevant way.

2.5 Burst & Surge Protections

The environments encompassed by this application include residential, commercial and light-industrial lo-cation, both indoor and outdoor. For this reason a series of immunity specification standard and test haveto be applied to the power line application to simulate the environmental phenomenon.

The requirements include EN610000-4-2, EN610000-4-3, EN610000-4-4, EN610000-4-5, EN610000-4-6, EN610000-4-8, EN610000-4-11 and ENV50204. All these tests are listed in the EN50065-2-1 docu-ment (part 7, immunity specifications).

These standards include surge tests, both common and differential mode (1kV/0.5kV, Tr=1.2u sec) andfast transient burst tests (2kV, Tr=5n sec, Th=50n sec, repetition frequency 5KHz).

The specific structure of the coupling interfaces circuit of the application is a weak point respect to the highvoltage tests. In fact an efficient coupling circuit with low insertion losses realizes consequently a very lowimpedances path from the mains to the power circuit of the devices that can destroy the internal powercircuits of the ST7538.

For this reason is recommended to add some specific protection on the path that links the ATOP pins tothe mains.

Figure 28. Common mode and differential mode spikes example.

In the demo board has been implemented a solution that uses three transil diodes (P6KE6V8A orSM6T6V8A) connected in a star configuration. A bi-directional transil was not used because for commonmode surge it is better to realize a discharge path to ground external to the devices.

In receiving mode the ATOP2 pin polarizes the coupling interface to ground. In this condition without thediode D17 all the external signals greater than 1.4 Volt peak to peak will be clamped by D15 and D16.

1:1

19

21

22ST7538

1:1

19

21

22ST7538

Differential Mode Common Mode

D16

D17

D15

D16

D17

1:1

Page 27: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

27/42

AN1714 APPLICATION NOTE

In some condition the transil diodes shouldn't be reliable in presence of fast transient bursts. In this caseit is possible to add some fast response ESD diodes as ESDA6V1L (two components) connected in par-allel to the transil with the same star configuration.

The solution used for the demo board can give some general guidelines but can't be generalized to alltypes of power line communication applications.

Considerations about surge and burst protections depend from several factors as coupling interfaces, theboard layout or the characteristics of the components used. Every application needs his specific analysis.

For some general considerations or a protection components list refer to the annexed application notesand documentation.

2.6 ST7 Microcontroller & RS232 Interface

To complete an application for the power line communication its necessary to have a microprocessor tomanage the upper layer of the communication protocol and eventually to elaborate other signal relativesto the application (signal from sensors, current measures, driving actuators, and so on). According specificapplication different types of microcontroller can be required.

Some application constrains, as for example real time measure or as communication protocols with heavyCRC algorithmic, can require a lot of microprocessor resources. Sometimes in this situation it is possibleto simplify the "work" of the microprocessor using glue logic to realize a frame recognizer (see next para-graph).

The demo board has a ST72C334J2 or ST72C334J4 microprocessor. This component is connected to theST232 driver interface and to the ST7538.

The loaded firmware has the function to receiver from the PC program interface (through the standardRS232 serial port) some commands to manage the control register writing and reading procedures, thetransmitting and receiving functions of the modem. The results of the executed command come back tothe PC program interface and are displayed on the monitor.

Figure 29. Microcontroller/RS232 interface

ST72C334

CN5 PC INTERFACE

PE0/TD044

PE1/RDI1

ANI0/PD07

T1IN

R1OUT

T2IN

ST23211

12

10

T1OUT14

T2OUT7

R1IN13

R1IN_A3

T1OUT_A2

T2OUT_A1

PA737

PA636

PA535

PA434

RN1

D11

D12

D10

D9

1k 1k 1k 1k

5V_led

PE0/TD0

PE1/RDI1

ANI0/PD07

11

12

14

T2OUT7

13

PA737

PA636

PA535

PA434

Page 28: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

28/42

The ST7 microprocessor controls also the led diodes D9, D10, D11, D12. The D9 (red) is turned on duringa transmission condition; the green led D12 is turned on when the receiving mode is activated. The D10yellow diode is switched on when the Band in Use signal is active. The D11 led (red) is on when a Timeoutevent occurs. To save power consumption the led are turned off removing the jumper J9.

It is possible to customize the ST7 firmware. At the connector CN6 are available some of the I/O digitalpins or Analog input pins of the microprocessor, that can be used to monitor some external signal or sen-sors and to drive relays or other external devices.

The connector CN7 is used for ST7 memory in-situ programming. For a correct programming procedurethe ST7538 has to be supplied, it is suggested to use an external 10V supply from connector CN2. Thejumper J11 has to be opened.

If an emulator is linked to the board it is recommended to program a 4 MHz clock in the ST7538 internalregister.

For more accurate and complete information on the features, characteristics and issues concerning STmicroprocessor please refer to the attached documentation or to the reference documents or go to the sitewww.stmcu.com.

2.6.1 Modem / microcontroller interface

The interface signals between modem ST7538 and the ST2C334 microcontroller can be divided in threecategories: the control signals, the communications signals and the auxiliary signals.In the first group there are the clock signal (MCLK/OSCIN) the reset signal (RSTO/RESET) and the watch-dog signal (WD/PD3).The clock signal of the microcontroller is provided by the ST7538 from the MCLK pin. The default is 4Mhzbut it is possible to increase this value (8Mhz or 16 MHz) programming the ST7538 control register.The reset of the microcontroller is provided by the modem. To the reset line is also connected to the man-ual reset (C22, R15 and SW1) and to the reset pin of the CN7 connector for the In-Situ Programming modeprocedures.The watchdog signal has to be managed from the microcontroller (PD3 output port). If the ST7538 doesn'tdetect any activity on the WD pin it generates a reset signal on the RSTO pin. It is possible to disable thisfunction trough the modem control register.The second group of signals consists of the links necessary for the modem/Micro Controller Unit commu-nication. There are the data signals RXD (from the modem to the MCU) and TXD (from MCU to the mo-dem), the transmitting/receiving status selection signal (RX/TX), the internal ST7538 register controlaccess signal REG/DATA, and the recovery clock signal CLRT.To the communication wires and to the RESET are also linked the ISP (In Situ Programming mode) sig-nals coming from the CN7 connector. Remember to open the jumper J11 during the programming phase.The simplest interfacing mode is the synchronous mode. In this case it is possible to use the SPI interfaceof the MCU: The PC5/MOSI (Slave In Data) is connected to the RXD pin, the PC4/MISO pin (Slave OutData) is connected to the TXD pin and the PC6/SCKI (SPI serial clock) pin is connected to the CLRT pin.The SPI Slave select (PC7/SS) is controlled by the MCU itself through the PB0 I/O port.The CLRT signal is connected to the PB1 I/O pin too.It is also possible to realize an asynchronous interfacing mode, and for this reason the pin RXD is alsoconnected to the PC3/ICAP1_B pin (timer B input capture).In this modality of communication the CLRT signal isn't considered and the recovered clock has to be re-built internally by the MCU. If the ST7538 control register has to be changed from the default configuration,the first access has to be done at baud rate of 2400.

The idle state of the RXD output is the low state, so with some asynchronous interface could be necessaryto invert externally this signal.

On the TXD connection line was inserted a diode (D13) and a pull down resistor R16. With these compo-

Page 29: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

29/42

AN1714 APPLICATION NOTE

nents it is possible to transmit a frame coming from an external devices (for example a BER tester). It issufficient to configure the modem in a transmitting status and the MCU has to keep low the PC4 pin. Theexternal signal can be applied at the diode cathode.

Figure 30. ST7538/microcontroller interface.

The third group of signal consists of a series of auxiliary signal coming from the ST7538 linked to somestandard input of the microcontroller.The CD/PD and BU signals give information about a carrier (or preamble detection) condition and aboutthe BU condition (according the EN50065-1).If the zero crossing comparator is used, the ZCOUT signal gives a digital signal synchronized with themains phase.The PG, TOUT and REG_OK signals are monitor signals. The PG signal indicates the correct supply levelof the internal 5V regulator of the ST7538 (VDC). If the modem regulator supplies the microcontroller orits reset is connected to the RSTO pin it is raccomended to monitor this signal. In fact when the PG signalgoes down during a shutdown procedure the microcontroller can try to stop correctly the running activities(for example a memory writing) before the UVLO threshold is reached and all the application is resetted,or before the regulator isn't able to supply correctly the micro. When a PG down is detected the transmis-sion is disabled to avoid uncontrolled access to the mains,. In any case a correct shut down procedurehas to be complete to perform a correct reset of the application.The TOUT signal is active when a transmission procedure is aborted, both for a time out event both for aoverheat condition.The REG_OK signal shoes a corruption of the internal modem register. Pay attention that the REG_OKfunction doesn't check uncontrolled control register write procedure, due for example to a voltage spikeson the REGDATA and RX/TX pins.

ST72C334 ST7538

PC3/ICAP1_B

PC5/MOSI

OSCIN

RESET

42

39

26

PC4/MISO/ISPDATA27

28

PC6/SCKI/ISPCLK29

ANI4/PD310

ANI5/PD411

ANI6/PD512

MCO/PF015

PF1/BEEP16

PF217

PB13

PB24

PB35

RXD

MCLK

RSTO

11

12

3

TXD5

CLRT8

WD14

REG/DATA43

RXTX4

PG42

BU9

ZCOUT15

TOUT7

REG_OK36

ISPCLOCK

J11

R16D13

ISP RESET

R15

C22SW1

ISPDATA

ISPSELISPSEL38

R17

CD/PD1

PA331

PB02

PC7/SS30

ST72C334 ST7538

PC3/ICAP1_BPC3/ICAP1_B

PC5/MOSIPC5/MOSI

OSCINOSCIN

RESETRESET

42

39

26

PC4/MISO/ISPDATA27

PC4/MISO/ISPDATA27

28

PC6/SCKI/ISPCLK29

PC6/SCKI/ISPCLKPC6/SCKI/ISPCLK29

ANI4/PD310

ANI4/PD310

ANI5/PD411

ANI5/PD411

ANI6/PD512

ANI6/PD512

MCO/PF015

MCO/PF0MCO/PF015

PF1/BEEP16

PF1/BEEPPF1/BEEP16

PF217

PF2PF217

PB13

PB1PB13

PB24

PB2PB24

PB35

PB3PB35

RXD

MCLK

RSTO

11

12

3

TXD5

CLRT8

WD14

REG/DATA43

RXTX4

PG42

BU9

ZCOUT15

TOUT7

REG_OK36

ISPCLOCK

J11

R16D13

ISP RESET

R15

C22SW1

ISPDATA

ISPSELISPSELISPSEL38

R17

CD/PD1

PA331

PA331

PB0PB02

PC7/SSPC7/SS30

Page 30: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

30/42

2.7 Demo Board Components List

Table 3. Power Supply Sections

Item N Name Descriptions

1 1 CN1 HEADER 2

2 1 CN2 HEADER 2

3 1 C1 47nF/250V~ Y2, EVOX RIFA, PME271Y447M

4 2 C2 4.7uF/400V Rubycon YK, 400-YK-4R7-M-T8-10x16

C3 4.7uF/400V Rubycon YK

5 2 C4 470uF/16V Rubycon ZL, 16-ZL-470-M-T8-10x12.5

C5 470uF/16V Rubycon ZL

6 1 C6 22uF/50V

7 1 C7 2.2nF/250V~ Y1 CERAMITE, 440LD22

8 1 C8 1uF

C9

9 1 C10 1uF

10 1 C34 100nF/100V

C35

11 1 D1 Rectifier 380V/1.5A, B380C1500M

12 1 D2 STPS160A SMA

13 1 D3 BZW06-171

14 1 D4 STTA106

15 1 D5 Led Green

16 2 D6 1N4148

D7 1N4148

17 1 F1 TR5-F 250V 500mA, Wickmann, 370.0500.041

18 3 J1 JUMPER CLOSED

J4 JUMPER CLOSED

J5 JUMPER CLOSED

19 1 L1 2x10mH 0.3A, Radiohm 42V15

L1 2x10mH 0.25A, TDK UF1717V-103YR25-02

20 1 L2 220uH series BC, Siemens Matsushita B781.8-S1224-J

21 1 L3 10uH series BC, Siemens Matsushita B781.8-S1103-K

22 1 L5 1mH series LBC, Siemens Matsushita B82144-A2105-J

23 1 R1 15 ohm, 3W metal film

24 1 R2 2.2 Kohm SMD

25 1 R3 22 ohm

R4

26 1 R_L6 10 ohm

27 1 R5 3320 ohm

28 1 R7 910 ohm

29 1 TR1 0.7mH, Radiohm 69E16H.1B

TR1 0.7mH, TDK SRW16ES-ExxH004

30 1 U1 L6590

Page 31: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

31/42

AN1714 APPLICATION NOTE

Table 4. Power Line Modem Section

Item N Name Descriptions

1 1 CN3 HEADER 2

2 1 CN4 HEADER 7

3 1 C11 33nF 220V/X2 (*), EVOX RIFA, PHE840EB5330MR17

4 1 C13 220nF MKT (*), EPCOS B32529-C1224-K

5 2 C14 10uF TANT SMD, AVX, TPSW106*016#0600

C30 10uF TANT SMD

6 1 C38 10uF TANT SMD, VISHAY, 293D106X_035D2_

7 4 C15 100nF SMD

C16 100nF SMD

C20 100nF SMD

C21 100nF SMD

8 1 C17 6.8nF, ARCOTRONIX, R82EC1680AA5J

9 1 C18 47pF SMD

10 1 C19 18pF SMD

11 1 C33 10nF CERAMIC

12 1 C36 4.7nF MKP 5% (*), EVOX RIFA, PFR5-472J63L4

13 1 C37 100pF SMD

14 1 C_R9 100nF MKT (*), EPCOS, B32520-C3104-K

D8

D14

15 2 D15 P6KE6V8A

D16 P6KE6V8A

16 1 D17 SM6T6V8A

17 3 J2 JUMPER CLOSED

J3 JUMPER CLOSED

J7 JUMPER CLOSED

18 1 J6 CON3

19 1 L_C12 10uH LBC Inductor (*), Siemens Matsushita B82144-A2103-K

20 1 L4 22uH 10% series LBC (*), Siemens Matsushita B82144-A2223-K

21 1 L7 330uH 5% series BC (*), Siemens Matsushita B781.8-S1334-J

22 1 L8 10uH SMD

23 1 R8 4.7 Mohm

24 1 R10 5 ohm, 1/4 Watt

25 1 R11 750 ohm

26 1 R12 50 Kohm TRIM

27 1 R13 5 Kohm TRIM

28 1 R14 1 Kohm

29 1 T1 VACuumschmelze T60403-F4096-X046, 1.7mH, 1:1 transformer

T1 TDK TRTT10U-E015A012, 2mH, 1:1 transformer

T1 SECRE T15253, 1.3mH, 1:1 transformer

T1 ETAL P2824, 1.2 mH, 1:1 transformer

T1 RADIOHM 63V192100, 2mH, 2:1 transformer

30 1 U2 ST7538 (TQFP44 CTI7010 – 044)

31 1 X1 16M, Quartz Crystal, Q 16.0-SS3-30-30/30-FU-T1

(*) Values for 132.5KHz communication channel

Page 32: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

32/42

Table 5. ST7/RS232 Section.

Item N Name Descriptions

1 1 CN5 RS232 FEMALE 9 PIN

2 1 CN6 CON12

3 1 CN7 ISP INTERFACE

4 9 C23 100nF SMD

C24 100nF SMD

C25 100nF SMD

C26 100nF SMD

C27 100nF SMD

C28 100nF SMD

C29 100nF SMD

C31 100nF SMD

C32 100nF SMD

5 1 C22 22nF SMD

6 1 D12 Led Green

7 2 D9 Led Red

D11 Led Red

8 1 D10 Led Yellow

9 1 D13 1N4148 SMD

10 5 JL1 JUMPER OPEN

J8 JUMPER CLOSED

J9 JUMPER CLOSED

J10 JUMPER CLOSED

J11 JUMPER CLOSED

11 1 RN1 R_STRIP 1 Kohm 4resis

12 1 R15 4.7 Kohm SMD

13 1 R16 47 Kohm SMD

14 1 R17 10 Kohm

15 1 SW1 SW PUSHBUTTON

16 1 U3 ST232B

17 1 U4 ST72C334J4 TQFP44 SMT

Page 33: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

33/42

AN1714 APPLICATION NOTE

3. DEMO BOARD CHARACTERIZATION

This chapter includes a series of tests and measurements to characterize the demo board. The charac-terization concerns the most critical aspects required by European standard, those are:

1) Electro conducted disturbances;

2) Immunity to narrow band conducted noise;

3) Output impedance measure.

The results of these measures have evidenced a good match and a very close value to the measured re-alized according the EN50065-1, EN50065-2-1 and EN50065-7 setup and procedures.

3.1 Conducted DisturbanceThe EN50065-1 standard describes test setup and procedures for this kind of tests.The measures have been done with 220V~ and 110V~ mains voltages. The test pattern consists of a con-tinuous transmission of a fix tone (symbol "0") or a repetition of random bytes.The output signal has a peak value of 118dBuV (output CISPR-16 measure of the not modulated signal)that means a 1.6Vrms of signal on the mains.The spectrum analyzer performs a peak measure instead of a quasi-peak measure. For continuous sinu-soidal signals the two types of measures give the same result.

Figure 31. Conducted disturbance set-up.

As showed by the spectrum plots the most critical points closer to the mask is the 2nd harmonic. The bor-derline condition is realized with the 110V~ mains supply and with the 110kHz channel.In the 110kHz channel case the output board filter centered at the 132.5kHz channel and a produce thelower attenuation of the harmonic.The other critical condition is with the 110V~ supply. In this case the switching regulator gives a lower sup-ply voltage. The effect is to comprise the top of the output sinusoidal signal producing higher odd harmon-ics. The difference is few hundred of microvolts but considering the strong constraints of the normativethey are relevant.

Spectrum AnalyzerAGILENT 4395A

50ΩΩΩΩ

Artificial NetworkCISPR 16-1 ST7538 BoardIsolation

Transformer

MAINSPC +

Demo Software

P/N D CN1

GM

CN5

Spectrum AnalyzerAGILENT 4395A

50ΩΩΩΩ

Spectrum AnalyzerAGILENT 4395A

50ΩΩΩΩ

Artificial NetworkCISPR 16-1 ST7538 BoardIsolation

Transformer

MAINSPC +

Demo Software

P/N D CN1

GM

CN5

Page 34: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

34/42

Figure 32. Output signal spectrum, channel 132.5kHz, mains 220V~, fix tone.

Figure 33. Output signal spectrum, channel 132.5kHz, mains 220V~, random sequence.

Figure 34. Output signal spectrum, channel 132.5kHz, mains 110V~, random sequence.

Ch 132.5 kHz, baud 2400, dev 0,5 Continuos Transmission - Fix Tone "0"

20.0

30.0

40.0

50.0

60.0

70.0

80.0

90.0

100.0

110.0

120.0

10000 100000 1000000 10000000 100000000

dBuV

EN50065-1 10kHz -> 150kHz (Bw = 100Hz) 150kHz -> 30MHz (Bw=10kHz)

2nd Harmonic54.3dBµV

3rd Harmonic47.9dBµV

Ch 132.5 kHz, baud 2400, dev 0,5 Continuos Transmission - Random Sequences

20.0

30.0

40.0

50.0

60.0

70.0

80.0

90.0

100.0

110.0

120.0

10000 100000 1000000 10000000 100000000

dBuV

EN50065-1 10kHz -> 150kHz (Bw = 100Hz) 150kHz -> 30MHz (Bw =10kHz)

2nd Harmonic54.3dBµV

3rd Harmonic47.8dBµV

Ch 132.5 kHz, baud 2400, dev 0,5 - mains 110V~ Continuos Transmission - Random Sequences

20.0

30.0

40.0

50.0

60.0

70.0

80.0

90.0

100.0

110.0

120.0

10000 100000 1000000 10000000 100000000

dBuV

EN50065-1 10kHz -> 150kHz (Bw = 100Hz) 150kHz -> 30MHz (Bw =10kHz)

2nd Harmonic54.0dBµV

3rd Harmonic47.2dBµV

Page 35: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

35/42

AN1714 APPLICATION NOTE

Figure 35. Output signal spectrum, channel 110kHz, mains 220V~, random sequence.

3.2 Narrow-band Conducted Interference

The setup of the narrow band conducted interferences test consists of a first transmitting demo board con-trolled by a BER (Bit Error Rate) tester that generates a random bit stream. The second board demodu-lates the received signal that is evaluated by the linked BER tester.The noise is produced by a waveform generator and injected into the artificial network by a coupling circuitconnected to a low distortion power amplifier (EN50065-2-1, 7.2.3).Two types of signal noises have been used for the test: a pure sinusoidal signal and an amplitude-modu-lated signal, (modulating signal 1kHz, modulation deep 80%).The amplitude of the noise signal is decreased until the BER measured is lower than 10-3 (one error every1000 transmitted bits).The noise measure is done disconnecting the signal source and the coupling circuits from the artificial net-work.

Figure 36. Narrow Band conducted interferences set-up.

Ch 110 kHz, baud 2400, dev 0,5 Continuos Transmission - Random Sequences

20.0

30.0

40.0

50.0

60.0

70.0

80.0

90.0

100.0

110.0

120.0

10000 100000 1000000 10000000 100000000

dBuV

EN50065-1 10kHz -> 150kHz (Bw = 100Hz) 150kHz -> 30MHz (Bw=10kHz)

2nd Harmonic54.0dBµV

3rd Harmonic47.2dBµV

Selective VoltmeterW&G PSM-13

50ΩΩΩΩ

Artificial NetworkCISPR 16-1

ST7538 BoardSTIMULUS

IsolationTransformer

Waveform GeneratorAGILENT33120A

MAINS

Artificial NetworkCISPR 16-1

50ΩΩΩΩ

ST7538 BoardUnder Test

660µµµµH

660µµµµH

Power Amplifier+

Coupler(EN50065-2-1)

BER TesterW&GPF-30

BER TesterW&GPF-30

CN1

CN1

G

D

P/N

P/N

D

M

M G

Selective VoltmeterW&G PSM-13

50ΩΩΩΩ

Selective VoltmeterW&G PSM-13

50ΩΩΩΩ

Artificial NetworkCISPR 16-1

ST7538 BoardSTIMULUS

IsolationTransformer

Waveform GeneratorAGILENT33120A

MAINS

Artificial NetworkCISPR 16-1

50ΩΩΩΩ

ST7538 BoardUnder Test

660µµµµH

660µµµµH

Power Amplifier+

Coupler(EN50065-2-1)

BER TesterW&GPF-30

BER TesterW&GPF-30

CN1

CN1

G

D

P/N

P/N

D

M

M G

Page 36: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

36/42

Here following different measures are included with a transmitted signal of 79dBuV measured at theCISPR-16 output (minus 6dB versus mains). It is also present a measure of the 110KHz channel (signallevel 85dBuV) even if receiving filter of the board is tuned on the 132.5KHz channel.

The power amplifier used represents a limit for the measure respect to the maximum noise Voltage level.In fact for the noise tones far from the channel frequency the BER obtained is zero and the power amplifierisn't able to produce a higher sinusoidal noise.

Figure 37. Signal/noise ratio for the 132.5kHz channel, signal level 85 dBuV.

Figure 38. Signal/noise ratio for the 132.5kHz channel, signal level 85 dBuV, mains 110V~.

Figure 39. Signal/noise ratio for the 110kHz channel, signal level 91 dBuV.

Ch 132.5KHz, BAUD 2400, DEV 0.5 S = 85 dBuV, BER < 10e-3 - mains 220V~

-50 -45 -40 -35 -30 -25 -20 -15 -10 -5 0 5

10 15

80 90 100 110 120 130 140 150 160 170 180 190 200 FREQ[KHz]

S/N

Fix Tone

AM 1kHz - 80%

Ch 132.5KHz, BAUD 2400, DEV 0.5 S = 85 dBuV, BER < 10e-3 - mains 110V~

-50 -45 -40 -35 -30 -25 -20 -15 -10 -5 0 5

10 15

80 90 100 110 120 130 140 150 160 170 180 190 200 FREQ[KHz]

S/N

Fix Tone

AM 1kHz - 80%

Ch 110KHz, BAUD 2400, DEV 0.5 S = 91 dBuV, BER < 10e-3 - mains 220V~

-45 -40 -35 -30 -25 -20 -15 -10 -5 0 5

10 15 20

80 90 100 110 120 130 140 150 160 170 180 FREQ[KHz]

S/N

Fix Tone

AM 1kHz - 80%

Page 37: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

37/42

AN1714 APPLICATION NOTE

3.3 Output ImpedanceThe last characterization report regards the output impedances of the application.In order to not degrade the communication network it is mandatory to guarantee a minimum value of theoutput impedance of each component of the system, both in receiving or transmitting condition. In this lastcase impedance constrains regard only the frequency ranges of the other communication bands.

Figure 40. Output board impedance measurement set-up.

The reference standard is the EN50065-7. To simplify the measure the supply of the board is obtained by alow 10V external power supply and the impedance meter has been connected directly to the mains connector.In the following plots is drawing also the normative mask for the home appliance band (95kHz - 148.5kHz).

Figure 41. Output demo board impedances (CN1) in receiving condition.

Figure 42. Output demo board impedances (CN1) in transmitting condition.

ST7538 BoardImpedance Analyzer

AGILENT 4395A

PC +

Demo Software

Power Supply10V, max 800mA

CN1

CN2

CN5ST7538 BoardImpedance Analyzer

AGILENT 4395A

PC +

Demo Software

Power Supply10V, max 800mA

CN1

CN2

CN5

Receiving Condition

1

10

100

1000

10 30 50 70 90 110 130 150

KHz

ohm

EN50065-7

Z_RX

Transmitting Condition

1

10

100

1000

10 30 50 70 90 110 130 150 KHz

ohm

EN50065-7

Z_TX

Page 38: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

38/42

4. DESIGN IDEAS FOR AUXILIARY BLOCKS

4.1 Zero Crossing Detector

It is possible to synchronize the beginning of the transmission with the mains voltage (phase 0). To realizethis function the zero crossing comparator has to be used and a reduced reproduction of the mains fre-quency (with the same phase) ha to be present on the ZCin pin (#16). The maximum voltage of this pin is±5V.

In case of a not isolated application the circuit consist of a simple resistor divider. For an isolated systema possible solution could be a main transformer. This solution is more expensive and is suggested only ifis a mains transformed is just used in the application for other purpose too.

It is possible to realize another isolated solution using for example an optocoupler component too.

In both cases a bi-directional transil has to protect the pin from the burst and surge and a capacitor haveto be added to filter high frequency noise.

Figure 43. Zero crossing coupling circuit, not isolated solutions.

Figure 44. Zero crossing coupling circuit, isolated solutions.

10 MΩΩΩΩ

ZCin

Tx Sync16

25

ST7538

15ZCout

100 KΩΩΩΩ

P

N

MAINS

10 MΩΩΩΩ

ZCin

Tx Sync16

25

ST7538

15ZCout

100 KΩΩΩΩ

P

N

MAINS

100 KΩΩΩΩ

ZCin

Tx Sync16

25

ST7538

15ZCout

100 KΩΩΩΩMAINS50

1100 KΩΩΩΩ

ZCin

Tx Sync16

25

ST7538

15ZCout

100 KΩΩΩΩMAINS50

1

Page 39: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

39/42

AN1714 APPLICATION NOTE

4.2 Frame Recognizer

The electrical network is characterized by a big noise that can produce a lot of false carrier detection andpreamble detection, too. In this condition the microprocessor has to manage many not real receiving datarequest. In same cases, for example with complex network protocols or with real time application, isn'tpossible to dedicated so many resources of the processor to the receiving activity dues to false messages.This kind of problem should be solved using a simple external logic made with an 8 bits shift register withoutput latches (M74HC595) and an 8 bits comparator (M74HC688) that realizes a hardware frame detector.

Figure 45. Hardware frame recognizer schematic.

The received bit stream from the RXD pin enters in the serial input of the shift register. An 8 bit sequences(or longer if more components are connected in series) is compared with a determinate bit configuration.In case of matching between the received stream and the fixed one a pulse is produced by the comparator.

Figure 46. Frame recognizer waveforms.

A rising edge of a pulse on the PA3 pin generates a interrupt request to start the receiving procedure. Thefirst data bit of the received frame will be available on the next rising edge of the CLR/T signal.The reference bit configuration can be part or the full header of a message (if the register has more bit apart of the address can be included, too), and in this case the interrupt for the microcontroller is generatedonly in presence of a real message. In fact the probability that the noise simulate a header sequence isvery low respect to a false carrier detection or preamble recognizing.The compared sequence of bits can be obtained directly by the microprocessor outputs or by a hardwaresolution using some jumpers (or both).

74HC595

ISPCLK

RESET

ST72C334

RXD

RSTO

ST7538

74HC688

CLR/T

PA3

PC5

29

28

31

39

12

3

8

_____SCLR

P0P1P2P3P4P5P6P7

Q0Q1Q2Q3Q4Q5Q6Q7

____P=Q

16

QAQBQCQDQEQFQGQH

10

SI14

12RCK

11SCK

From the microcontrolleror hardware selection

74HC595

ISPCLK

RESET

ST72C334

RXD

RSTO

ST7538

74HC688

CLR/T

PA3

PC5

29

28

31

39

12

3

8

_____SCLR

P0P1P2P3P4P5P6P7

Q0Q1Q2Q3Q4Q5Q6Q7

____P=Q

16

QAQBQCQDQEQFQGQH

10

SI14

12RCK

11SCK

From the microcontrolleror hardware selection

XX HEAD0 HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 HEAD6 HEAD7 DATA0 DATA1 DATA2 DATA3

CLR/T (ST7538)

RXD (ST7538)

___P=Q (74HC688)

Page 40: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

AN1714 APPLICATION NOTE

40/42

5. ANNEX A - DOCUMENTATION

5.1 ST7538

ST7538 Datasheet

Demo board user Manual

EHS Booklet

5.2 L6590 Integrated Power Supply

L6590 Datasheet

Application note AN1261

Application note AN1262

Application note AN1523

5.3 ST7 Microprocessor

ST72 series Datasheet

5.4 Surge & Burst Protections

Protection Guide

Application note AN317

Application note AN576

6. REFERENCES

[1] SGS-THOMSON - Power Line Modem & Applications data book - September 1994;

[2] CENELEC, European Committee for Electrotechnical Standardization - EN 50065-1, Signaling on low-voltage electrical installations in the frequency range 3kHz to 148,5Khz. Part 1: General requirements,frequency bands and electromagnetic disturbances - July 2001;

[3] CENELEC, European Committee for Electrotechnical Standardization - EN 50065-4-2, Signaling onlow-voltage electrical installations in the frequency range 3kHz to 148,5Khz. Part 4-2: Low voltage de-coupling filters- Safety requirements - August 2001;

[4] CENELEC, European Committee for Electrotechnical Standardization - EN 50065-7, Signaling on low-voltage electrical installations in the frequency range 3kHz to 148,5Khz. Part 7: Equipment impedance- November 2001;

[5] CENELEC, European Committee for Electrotechnical Standardization - prEN 50065-2-1, Signaling onlow-voltage electrical installations in the frequency range 3kHz to 148,5Khz. Part 2-1:Immunity require-ments for mains Communications Equipment and systems operating in the range of frequencies 95kHz to 148,5 kHz and intended for use in Residential, Commercial and Light Industrial Environments -1999;

[6] IEC, International Electrotechnical Commission, International Special Committee On Radio Interfer-ences - CISPR 16-1, Specification for radio disturbance and immunity measuring apparatus and meth-ods. Part 1: Radio disturbance and immunity measuring apparatus - first edition, August 1993;

[7] EHSA, European Home System Association - EHS specifications, version 1.3a - May 2001;

Page 41: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

41/42

AN1714 APPLICATION NOTE

Table of Contents1. Introduction.........................................................................................................................................1

1.1 Power Line Communication .....................................................................................................11.2 The Electrical Network .............................................................................................................3

1.2.1 Impedance of Power Lines.................................................................................................31.2.2 Noise ..................................................................................................................................41.2.3 Typical Connection Losses ................................................................................................51.2.4 Standing Waves .................................................................................................................5

1.3 ST7538 Power Line Modem.....................................................................................................51.4 FSK Modulation & ST7538 Architecture ..................................................................................7

2. Demo Board for ST7538 ....................................................................................................................92.1 Main Features ..........................................................................................................................92.2 Signal Coupling Interface .......................................................................................................12

2.2.1 Transmitting Section.........................................................................................................132.2.2 Receiving Section.............................................................................................................162.2.3 Voltage Regulation-Current protection loops ...................................................................18

2.3 Board Power Management ....................................................................................................222.3.1 L6590 Regulator ...............................................................................................................232.3.2 ST7538 Power Supply......................................................................................................24

2.4 Crystal Oscillator ....................................................................................................................252.5 Burst & Surge Protections......................................................................................................262.6 ST7 Microcontroller & RS232 Interface..................................................................................27

2.6.1 Modem / microcontroller interface ....................................................................................282.7 Demo Board Components List ...............................................................................................30

3. Demo Board Characterization ..........................................................................................................333.1 Conducted Disturbance..........................................................................................................333.2 Narrow-band Conducted Interference....................................................................................353.3 Output Impedance..................................................................................................................37

4. Design Ideas for Auxiliary Blocks .....................................................................................................384.1 Zero Crossing Detector ..........................................................................................................384.2 Frame Recognizer..................................................................................................................39

5. Annex A - Documentation ................................................................................................................405.1 ST7538...................................................................................................................................405.2 L6590 Integrated Power Supply.............................................................................................405.3 ST7 Microprocessor ...............................................................................................................405.4 Surge & Burst Protections......................................................................................................40

6. References .......................................................................................................................................40

Page 42: ST7538 App Notes

Obsolete Product(

s) - O

bsolete Product(

s)

Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequencesof use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is grantedby implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subjectto change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are notauthorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics.

The ST logo is a registered trademark of STMicroelectronics.All other names are the property of their respective owners

© 2003 STMicroelectronics - All rights reserved

STMicroelectronics GROUP OF COMPANIESAustralia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -

Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United Stateswww.st.com

42/42

AN1714 APPLICATION NOTE


Recommended