The ST7538Q is a Half Duplex
synchronous/asynchronous FSK Modem
designed for power line communication network
applications. It operates from a single supply
voltage and integrates a line driver and two linear
regulators for 5V and 3.3V. The device operation
is controlled by means of an internal register,
programmable through the synchronous serial
interface. Additional functions as watchdog, clock
output, output voltage and current control,
preamble detection, time-out, band in use are
included. Realized in Multipower BCD5
technology that allows to integrate DMOS, Bipolar
and CMOS structures in the same chip.
Carrier detection sensitivity
(TxD line forced to “1”)
Band in Use Detection
Level
UART/SPI pin
forced to “1”
0.52
250
0.52
250
V
BU
7785
mV
rms
µV
rms
V
rms
mV
rms
µV
rms
dB/
µVrms
dB/
µVrms
12/44
Page 13
ST7538QElectrical characteristics
Table 4. Electrical characteristics (continued)
(AVdd = DVdd = +5V, PAVcc =+9 V, PAVss, SGND = DVss = 0V, -40°C ≤ TA ≤ 85°C, TJ < 125 °C, fc = 86kHz,
other control register parameters as default value, unless otherwise specified)
SymbolParameterTest conditionMinTypMaxUnit
5V voltage regulator
VDC
Linear regulator output
voltage
Power Good Output
PG
VDC
Voltage Threshold on VDC
pin
PG
VDC(HYS
PG on VDC pin Hysteresis250mV
)
3.3V voltage regulator
DVdd
Linear Regulator Output
Voltage
Power Good Output
PG
DVd d
Voltage Threshold on DVdd
pin
PG
DVdd
PG on DVdd pin Hysteresis250mV
HYS
(
)
Other functions
T
T
T
T
T
T
T
T
RSTO
WD
WM
WO
OUT
OFF
OFFD
CD
Reset Time
Watch-dog Pulse WidthSee Figure 213.5ms
Watch-dog Pulse PeriodSee Figure 21
Watch-dog Time OutSee Figure 211.5s
TX TIME OUT
Time Out OFF TimeSee Figure 20125ms
RxTx 0->1 vs. TOUT Delay See Figure 2020µs
Carrier Detection Time
selectable by register
0 < Io < 50mA
7.5V < PAVcc < 12.5V
0 < Io < 50mA
7.5V < PAVcc < 12.5V
See Figure 21;
Xtal = 16MHz
Control Register Bit 7
and Bit 8
See Figure 20
Control Register
bit 9 and bit10
Figure 11
-5%5.05+5%V
4.34.54.7V
-5%3.3+5%V
3.125V
50ms
T
+
WD
3.5
1490ms
1
3
500
1
3
5
s
µs
ms
ms
ms
T
M
B
DCD
CLK
AUD
CD_PD Propagation Delay Figure 11300500µs
fclock
fclock/2
fclock/4
off
600
1200
2400
4800
MHz
Baud
Master Clock Output
Selectable by register
Baud rate
Control Register
bit 15 and bit 16
see Ta b le 1 1
Control Register
bit 3 and bit 4
see Ta b le 1 1
13/44
Page 14
Electrical characteristicsST7538Q
Table 4. Electrical characteristics (continued)
(AVdd = DVdd = +5V, PAVcc =+9 V, PAVss, SGND = DVss = 0V, -40°C ≤ TA ≤ 85°C, TJ < 125 °C, fc = 86kHz,
other control register parameters as default value, unless otherwise specified)
SymbolParameterTest conditionMinTypMaxUnit
T
B
Baud rate Bit Time
BAUD
)
(=1/
Control Register
bit 3 and bit 4
see Ta b le 1 1
1667
833
417
208
Zero crossing detection
Zero Crossing Detection
ZC
DEL
delay (delay between the
Figure 221µs
ZCIN and ZCOUT signals)
ZC
ZC
ZC
(OFFSET)
(LOW)
(HIGH)
Zero Crossing Detection
Low Threshold
Zero Crossing Detection
High Threshold
-45-5mV
5+45mV
Zero Crossing Offset-20+20mV
Operational amplifier
C
OUT(Sync)
C
OUT(Source)
C
IN(Offset)
Max Sync Current152845mA
Max Source Current-30-20-10mA
Input Terminals OFFSET-38+38mV
GBWPGain Bandwidth Product679MHz
Serial interface
µs
TsSetup Timesee Figure 5, 6, 7, 8 & 95ns
T
T
T
T
T
T
CRP
H
CR
CC
DS
DH
Hold Timesee Figure 5, 6, 7, 8 & 92ns
CLR/T vs. REG_DATA or
RxTx
see Figure 5, 6, 7, 8 & 9
CLR/T vs. CLR/T see Figure 5, 6, 7, 8 & 9
Setup Timesee Figure 5, 6, 7, 8 & 9
Hold Timesee Figure 5, 6, 7, 8 & 9
T
B
/4TB/2
T
B
/4TB/2
T
B
T
H
T
B
2*T
TB/2
/4
B
14/44
Page 15
ST7538QFunctional description
5 Functional description
5.1 Carrier frequencies
ST7538Q is a multi frequency device: eight programmable Carrier Frequencies are available
(see Ta bl e 5 ).
Only one Carrier could be used a time. The communication channel could be varied during
the normal working Mode to realize a multifrequency communication.
Selecting the desired frequency in the Control Register the Transmission and Reception
filters are accordingly tuned.
Table 5. ST7538Q Channels List
FCarrierF (KHz)
F060
F166
F272
F376
F482.05
F586
5.2 Baud rates
ST7538Q is a multi Baud rate device: four Baud Rate are available (See Table 6.).
Table 6. ST7538Q mark and space tones frequency distance vs baud rate and deviation
Baud Rate [Baud]
600600
1200600
2400
48002400
1. Frequency deviation.
2. Deviation = ∆F / (Baud Rate)
3. Deviation 0.5 Not Allowed
4. Default value
F6110
(1)
F7
(1)
∆F
(Hz)
1200
(4)
1200
2400
4800
(4)
132.5
Deviation
(3)
1
0.5
1
0.5
1
0.5
1
(2)
15/44
Page 16
Functional descriptionST7538Q
5.3 Mark and space frequencies
Mark and space communication frequencies are defined by the following formula:
F ("0") = FCarrier + [
F ("1") = FCarrier - [
∆F]/2
∆F]/2
∆F is the Frequency Deviation.
With Deviation = “0.5” the difference in terms of frequency between the mark and space
tones is half the Baudrate value (∆F = 0.5*BAudrate). When the Deviation = “1” the
difference is the Baudrate itself (∆F = Baudrate). The minimal Frequency Deviation is
600Hz.
Table 7. ST7538Q synthesized frequencies
Carrier
Frequency
(KHz)
60600--82.05600--
Baud
Deviation
Rate
1597336022118170682357
12000.5597336022112000.58170682357
1594086054718138082682
24000.5594086054724000.58138082682
1587576119818089283171
48000.5587576119848000.58089283171
1576176233717959084473
Exact
Frequency [Hz]
(Clock=16MHz)
“1”“0”“1”“0”
Carrier
Frequen
cy
(KHz)
Baud
Rate
Deviation
Exact
Frequency [Hz]
(Clock=16MHz)
66600--86600--
1657556624318577586263
12000.5657556624312000.58577586263
1654306656918544986589
24000.5654306656924000.58544986589
1647796722018479887240
48000.5647796722048000.58479887240
1636396835918365988379
16/44
Page 17
ST7538QFunctional description
Table 7. ST7538Q synthesized frequencies
Carrier
Frequency
(KHz)
72600--110600--
76600--132.5600--
Baud
Deviation
Rate
171777722661109701 110352
12000.5717777226612000.5109701 110352
171452725911109375 110677
24000.5714527259124000.5109375 110677
170801732421108724 111165
48000.5708017324248000.5108724 111165
169661743821107585 112467
175684763351132161 132813
12000.5756847633512000.5132161 132813
175358766601131836 133138
24000.5753587666024000.5131836 133138
174870771481131348 133626
Exact
Frequency [Hz]
(Clock=16MHz)
“1”“0”“1”“0”
Carrier
Frequen
cy
(KHz)
Baud
Rate
Deviation
Exact
Frequency [Hz]
(Clock=16MHz)
48000.5748707714848000.5131348 133626
173568784511130046 134928
5.4 ST7538Q mains access
ST7538Q can access the Mains in two different ways:
●Synchronous access
●Asynchronous access
The choice between the two types of access can be performed by means of Control
Register bit 14 (see Ta b le 1 1) and affects the ST7538Q data flow in Transmission Mode as
in Reception Mode (for how to set the communication Mode, see Section 5.5 on page 18).
In Data Transmission Mode:
–Synchronous Mains access: on clock signal provided by ST7538Q (CLR/T line)
rising edge, data transmission line (TxD line) value is read and sent to the FSK
Modulator. ST7538Q manages the Transmission timing according to the
BaudRate Selected.
–Asynchronous Mains access: data transmission line (TxD line) value enters
directly to the FSK Modulator. The Host Controller manages the Transmission
timing (CLR/T line should be neglected).
17/44
Page 18
Functional descriptionST7538Q
In Data Reception Mode:
–Synchronous Mains access: on clock signal recovered by a PLL from ST7538Q
(CLR/T line) rising edge, value on FSK Demodulator is read and put to the data
reception line (RxD line). ST7538Q recovers the bit timing according to the
BaudRate Selected.
–Asynchronous Mains access: Value on FSK Demodulator is sent directly to the
data reception line (RxD line). The Host Controller recovers the communication
timing (CLR/T line should be neglected).
5.5 Host processor interface
ST7538Q exchanges data with the host processor through a serial interface.
The data transfer is managed by REG_DATA and RxTx Lines, while data are exchanged
using RxD, TxD and CLR/T lines.
Four are the ST7538Q working modes:
●Data Reception
●Data Transmission
●Control Register Read
●Control Register Write
REG_DATA and RxTx lines are level sensitive inputs.
Table 8. Data and control register access bits configuration
REG_DATARxTx
Data Transmission00
Data Reception 01
Control Register Read11
Control Register Write10
ST7538Q features two type of Host Communication Interfaces:
–SPI
–UART
The selection can be done through the UART/SPI pin. If UART/SPI pin is forced to “0” SPI
interface is selected while if UART/SPI pin is forced to “1” UART interface is selected
(a)
. The
type of interface affects the Data Reception by setting the idle state of RxD line. When
ST7538Q is in Receiving mode (REG_DATA=”0” and RxTx =“1”) and no data are available
on mains (or RxD is forced to an idle state, i.e. with a conditioned Detection Method), the
RxD line is forced to “0” when UART/SPI pin is forced to ”0” or to “1” when UART/SPI pin is
forced to ”1”.
a. UART Interface Mode modifies also Control Register Functions and provides one more level of Rx sensitivity
(see par. 5.11)
18/44
Page 19
ST7538QFunctional description
The UART interface allows to connect an UART compatible device instead SPI interface
allows to connect an SPI compatible device. The allowed combinations of Host
Interface/ST7538Q Mains Access are:
1. Received Data more stable than in Asynchronous Mains Access
AsynchronousSynchronous
Mains access
(1)
X
Figure 3.Synchronous and asynchronous ST7538Q/Host controller interfaces
UART/Asynchronous
Data Interface
RxD
TxD
RxTx
CLR/T
REG_DATA
ST7538QHost Controller
SPI/Synchronous
Data Interface
D03IN1415
RxD
TxD
RxTx
CLR/T
REG_DATA
ST7538QHost Controller
ST7538Q allows to interface the Host Controller using a five line interface (RxD,TxD,RxTx,
CLR/T, & REG_DATA) in case of Synchronous mains access or using a 3 line interface
(RxD,TxD & RxTx) in Asynchronous mains access. Since Control Register is not accessible
in Asynchronous mode, in this case REG_DATA pin can be tied to GND.
19/44
Page 20
Functional descriptionST7538Q
5.5.1 Communication between host and ST7538Q
The Host can achieve the Mains access by selecting REG_DATA = ”0” and the choice
between Data Transmission or Data Reception is performed by selecting RxTx line
(if RxTx =“1” ST7538Q receives data from mains, if RxTx = ”0” ST7538Q transmits data over
the mains).
Communication between Host and ST7538Q is different in Asynchronous and Synchronous
mode:
●Asynchronous mode
In Asynchronous Mode, data are exchanged without any data Clock reference. The
host controller has to recover the clock reference in receiving Mode and control the Bit
time in transmission mode.
If RxTx line is set to “1” & REG_DATA = ”0” (Data Reception), ST7538Q enters in an
Idle State. After Tcc time the modem starts providing received data on RxD line.
If RxTx line is set to “0” & REG_DATA=”0” (Data Transmission), ST7538Q enters in an
Idle State and transmission circuitry is switched on. After Tcc time the modem starts
transmitting data present on TxD line.
●Synchronous mode
In Synchronous Mode ST7538Q is always the master of the communication and
provides the clock reference on CLR/T line.
When ST7538Q is in receiving mode an internal PLL recovers the clock reference.
Data on RxD line are stable on CLR/T rising Edge.
When ST7538Q is in transmitting mode the clock reference is internally generated and
TxD line is sampled on CLR/T rising Edge.
If RxTx line is set to “1” & REG_DATA=”0” (Data Reception), ST7538Q enters in an Idle
State and CLR/T line is forced Low. After Tcc time the modem starts providing received
data on RxD line.
If RxTx line is set to “0” & REG_DATA=”0” (Data Transmission), ST7538Q enters in an
Idle State and transmission circuitry is switched on. After Tcc time the modem starts
transmitting data present on TxD line (Figure 5) .
Figure 4.Receiving and transmitting data/recovered clock timing
Receiving Bit Synchronization
CLR/T
RxD
20/44
D03IN1416
CLR/T
TxD
Transmitting Bit Synchronization
TST
H
Page 21
ST7538QFunctional description
Figure 5.Data reception -> data transmission -> data reception
CLR_T
RxD
REG_DATA
RxTx
TxD
T
B
T
CR
5.6 Control register access
The communication with ST7538Q Control Register is always synchronous. The access is
achieved using the same lines of the Mains interface (RxD, TxD, RxTx and CLR/T) plus
REG_DATA Line.
With REG_DATA = 1 and RxTx = 0, the data present on TxD are loaded into the Control
Register MSB first. The ST7538Q samples the TxD line on CLR/T rising edges. The control
Register content is updated at the end of the register access section (REG_DATA falling
edge).
In Normal Control Register mode (Control Register bit 21=”0”, see Ta bl e 11 ) if more than 24
bits are transferred to ST7538Q only latest 24 bits are stored inside the Control Register. If
less than 24 bits are transferred to ST7538Q the Control Register writing is aborted (in this
case if at least 16 bits are provided REGOK line will be activated).
T
CC
TST
H
BIT23BIT22
T
CC
T
T
DS
DH
T
CR
D03IN1402
In order to avoid undesired Control Register writings caused by REG_DATA line fluctuations
(for example because of surge or burst on mains), in Extended Control Register mode
(Control Register bit 21=”1” see Tab l e 1 1) exactly 24 or 48 bits must be transferred to
ST7538Q in order to properly write the Control Register, otherwise writing is aborted and if
at least 16 bits are provided REGOK line will be activated. If 24 bits are transferred, only the
first 24 Control Register bits (from 23 to 0) are written.
With REG_DATA = 1 and RxTx = 1, the content of the Control Register is sent on RxD port.
The Data on RxD are stable on CLR/T rising edges MSB First. In Normal Control Register
mode 24 bits are transferred from ST7538Q to the Host. In Extended Control Register mode
24 or 48 bits are transferred from ST7538Q to the Host depending on content of Control
Register bit 18 (with bit 18 = ”0” the first 24 bits are transferred, otherwise all 48 bits are
transferred, see Tab l e 1 1).
21/44
Page 22
Functional descriptionST7538Q
Figure 6.Data reception -> control register read -> data reception timing diagram
CLR_T
RXD
REG_DATA
RxTx
TDST
T
CC
DH
TDST
DH
BIT23BIT22
T
CR
T
CC
T
B
T
CR
D03IN1404
Figure 7.Data reception -> control register write -> data reception timing diagram
CLR_T
RxD
REG_DATA
RxTx
TxD
T
CC
T
T
DH
DS
T
CR
T
CR
TST
H
T
CR
BIT23BIT22
T
CC
T
B
T
CR
D03IN1403
Figure 8.Data transmission -> control reg. read data -> reception timing diagram
CLR_T
RxD
T
CC
T
B
TDST
DH
BIT23BIT22
T
CC
TDST
DH
T
REG_DATA
RxTx
TST
H
CR
T
CR
TxD
Figure 9.Data transmission -> control reg. write -> data reception timing diagram
T
CLR_T
T
B
TxD
TST
REG_DATA
H
RxTx
RxD
22/44
CC
T
CR
TST
H
BIT23BIT22
T
CR
D03IN1405
T
CC
T
CR
T
CR
T
T
DS
DH
D03IN1401
Page 23
ST7538QFunctional description
5.7 Receiving mode
The receive section is active when RxTx Pin = ”1” and REG_DATA = 0.
The input signal is read on RAI Pin using SGND as ground reference and then pre-filtered
by a Band pass Filter (62kHz max bandwidth at -3dB). The Pre-Filter can be inserted setting
one bit in the Control Register. The Input Stage features a wide dynamic range to receive
Signal with a Very Low Signal to Noise Ratio. The Amplitude of the applied waveform is
automatically adapted by an Automatic Gain Control block (AGC) and then filtered by a
Narrow Band Band-Pass Filter centered around the Selected Channel Frequency (14kHz
max at -3dB). The resulting signal is down-converted by a mixer using a sinewave generated
by the FSK Modulator. Finally an Intermediate Frequency Band Pass-Filter (IF Filter)
improves the Signal to Noise ration before sending the signal to the FSK demodulator. The
FSK demodulator then send the signal to the RX Logic for final digital filtering. Digital
filtering Removes Noise spikes far from the BAUD rate frequency and Reduces the Signal
Jitter. RxD Line is forced at logic level “0” or “1” (according the UART/SPI pin level) when
neither mark or space frequencies are detected on RAI Pin.
Mark and Space Frequency in Receiving Mode must be distant at least BaudRate/2 to have
a correct demodulation.
While ST7538Q is in Receiving Mode (RxTx pin = ”1”), the transmit circuitry, Power Line
Interface included, is turned off. This allows the device to achieve a very low current
consumption (5mA typ). In Receiving mode ATOP2 pin is internally connected to PAVSS.
5.7.1 High sensitivity mode
It is possible to increase the ST7538Q Receiving Sensitivity setting to ‘1’ the High Sensitivity
Bit of Control Register
when the ST7538Q sensitivity is the limiting factor.
(b)
. This function allows to increase the communication reliability
5.7.2 Synchronization recovery system (PLL)
ST7538Q embeds a Clock Recovery System to feature a Synchronous data exchange with
the Host Controller.
The clock recovery system is realized by means of a second order PLL. Data on the data
line (RxD) are stable on CLR/T line rising edge (CLR/T Falling edge synchronized to RxD
line transitions ± LOCK-IN Range).
The PLL Lock-in and Lock-out Range is ±π/2. When the PLL is in the unlock condition,
CLR/T and RxD lines are forced to a low logic level.
When PLL is in unlock condition it is sensitive to RxD Rising and Falling Edges. The
maximum number of transition required to reach the lock-in condition is 5. When in lock-in
condition the PLL is sensitive only to RxD rising Edges to reduce the CLR/T Jitter.
ST7538Q PLL is forced in the un-lock condition, when more than 32 equal symbols are
received.
Due to the fact that the PLL, in lock-in condition, is sensitive only to RxD rising edge,
sequences equal or longer than 15 equal symbols can put the PLL into the un-lock
condition.
b. A third level of Rx sensitivity can be selected in UART Interface Mode (see par. 5.11)
23/44
Page 24
Functional descriptionST7538Q
Figure 10. ST7538Q PLL lock-in range
CLR/T
RxD
D03IN1417
LOCK-IN RANGE
5.7.3 Carrier/preamble detection
The Carrier/Preamble Block is a digital Frequency detector Circuit.
It can be used to manage the MAINS access and to detect an incoming signal.
Two are the possible setting:
●Carrier detection: The Carrier/Preamble detection Block notifies to the host controller
the presence of a Carrier when it detects on the RAI Input a signal with an harmonic
component close to the programmed Carrier Frequency. The CD_PD signal sensitivity
is identical to the data reception sensitivity (0.5mVrms Typ. in Normal Sensitivity
Mode).
The CD_PD line is forced to a logic level low when a Carrier is detected.
●Preamble detection: The Carrier/Preamble detection Block notifies to the host
controller the presence of a Carrier modulated at the Programmed Baud Rate for at
least 4 Consecutive Symbols (“1010” or “0101” are the symbols sequences detected).
CD_PD line is forced low till a Carrier signal is detected and PLL is in the lock-in range.
To reinforce the effectiveness of the information given by CD_PD Block, a digital
filtering is applied on Carrier or Preamble notification signal (See Control Register
Paragraph). The Detection Time Bits in the Control Register define the filter
performance. Increasing the Detection Time reduces the false notifications caused by
noise on main line. The Digital filter adds a delay to CD_PD notification equal to the
programmed Detection Time. When the carrier frequency disappears, CD_PD line is
held low for a period equal to the detection time and then forced high. During this time
the some spurious data caused by noise can be demodulated.
5.7.4 Header recognition
In Extended Control Register Mode (Control Register bit 21 = ”1”, see Ta bl e 1 1 ) the CD_PD
line can be used to recognize if an header has been sent during the transmission. With
Header Recognition function enable (Control Register bit 18 = ”1”, see Ta bl e 11 ), CD_PD
line is forced low when a Frame Header is detected. If Frame Length Count function is
enabled, CD_PD is held low and a number of 16 bit word equal to the Frame Length
selected is sent to the host controller. In this case, CLR/T is forced to “0” and RxD is forced
to “0” or “1” (according the UART/SPI pin level) when Header has not been detected or after
the Frame Length has been reached.
If Frame Length Count function is disabled, an header recognition is signaled by forcing
CD_PD low for one period of CLR/T line. In this case, CLR/T and RxD signal are always
present, even if no header has been recognized.
24/44
Page 25
ST7538QFunctional description
8
Figure 11. CD_PD timing during RX
CD_PD
RAI
RxD (UART/SPI="1")
T
DCD
T
CD
T
DCD
T
CD
demodulation active on RxD pin
noise demodulated
RxD (UART/SPI="0")
Figure 12. Receiving path block diagram
RxD
CLR/T
CD_PD
BU
3
Bits 3-4 &14
8
1
9
PLL
Bits 18-21 & 24-47
HEADER
RECOGN.
Bits 3-4
Low PassBand Pass
DIGITAL
FILTER
Bits 9-10
Low Pass
Bits 3-4 & 22
FSK
DEMODULATOR
Bits 12-13 & 22
CARRIER/
PREAMBLE
DETECTION
IF FILTER
Bits 0-2
MIXER
Band Pass
CHANNEL
LOCAL
Bits 0 -2
Carrier Detection
FILTER
OSC
noise demodulated
RXFO
31
AGC
GAIN
CONTROL
BAND
IN
USE
D03IN141
Bit 23
Band Pass
PRE-FILTER
D03IN1419
32
RAI
25/44
Page 26
Functional descriptionST7538Q
5.8 Transmission mode
The transmit mode is set when RxTx Pin = ”0” and REG_DATA Pin = ”0”. In transmitting
mode the FSK Modulator and the Power Line Interface are turned ON. The transmit Data
(TXD) enter synchronously or asynchronously to the FSK modulator.
●Host Controller Synchronous Communication Mode: on CLR/T rising edge, TXD Line
Value is read and sent to the FSK Modulator. ST7538Q Manages the Transmission
timing according to the BaudRate Selected
●Host Controller Asynchronous Communication Mode: TXD data enter directly to the
FSK Modulator.The Host Controller Manages the Transmission timing
In both conditions no Protocol Bits are added by ST7538Q.
The FSK frequencies are synthesized in the FSK modulator from a 16MHz crystal oscillator
by direct digital synthesis technique. The frequencies Table in different Configuration is
reported in Ta bl e 7. The frequencies precision is same as external crystal one’s.
In the analog domain, the signal is filtered in order to reduce the output signal spectrum and
to reduce the harmonic distortion. The transition between a symbol and the following is done
at the end of the on-going half FSK sinewave cycle.
Figure 13. Transmitting path block diagram
TOUT
TxD
ZCOUT
Bit 7 & 8
TIMER
7
THERMAL
SENSOR
Bit 14
5
D-TYPE
FLIP
FLOP
8
15
Bit 0-5
DAC
FSK
MODULATOR
ZERO CROSSING
CLR/T GENERATOR
Bit 0-2
ALC
Band Pass
TRANSMISSION
FILTER
16
ZCIN
Bits 17 & 21
VOLTAGE
LOOP
CURRENT
LOOP
PLI
PLI
D03IN1420
29
Vsense
23
CL
19
ATOP1
21
ATOP2
24
ATOCLR/T
26/44
Page 27
ST7538QFunctional description
5.8.1 Automatic Level Control (ALC)
The Automatic Level Control Block (ALC) is a variable gain amplifier (with 32 non linear
discrete steps) controlled by two analog feed backs acting at the same time. The ALC gain
range is 0dB to 30 dB and the gain change is clocked at 5KHz. Each step increases or
reduces the voltage of 1dB (Typ).
Two are the control loops acting to define the ALC gain:
●The Voltage control loop acts to keep the Peak-to-Peak Voltage constant on Vsense.
The gain adjustment is related to the result of a peak detection between the Voltage
waveform on Vsense and two internal Voltage references. It is possible to protect the
Voltage Control Loop against noise by freezing the output level (see Section 6.6:
Output voltage level freeze on page 38).
If Vsense < VCL
If VCL
TH
- VCL
If Vsense > VCL
●The Current control loop acts to limit the maximum Peak Output current inside
- VCL
TH
HYST
TH
HYST
< Vsense < VCLTH + VCL
+ VLC
The next gain level is decreased by 1 step
HYST
The next gain level is increased by 1 step
HYST
No Gain Change
ATOP1 and ATOP2.
The current control loop acts through the voltage control loop decreasing the Output
Peak-to-Peak Amplitude to reduce the Current inside the Power Line Interface.
The current sensing is done by mirroring the current in the High side MOS of the Power
Amplifier (not dissipating current Sensing). The Output Current Limit (up to
400mApeak), is set by means of an external resistor (R
) connected between CL and
CL
PAVss. The resistor converts the current sensed into a voltage signal. The Peak current
sensing block works as the Output Voltage sensing Block:
If V(CL) < CCL
If CCL
TH
- CCL
If V(CL) > CCL
- CCL
TH
HYST
TH
HYST
< V(CL) < CCLTH + CCL
+ CLC
HYST
Voltage Control Loop Acting
HYST
No Gain Change
The next gain level is decreased by 1 step
Figure 14 shows the typical connection of Current an Voltage control loops.
Figure 14. Voltage and current feedback external interconnection example
VR
PK
ALC
ATOP/ATO
Vout
VOLTAGE
LOOP
CURRENT
LOOP
80 pF
D03IN1421
R1
Vsense
VCL
VCL
TH
HYST
1.865V (Typ)
CCL
CCL
TH
HYST
CL
AVss
5.6nF
RCL
R2
27/44
Page 28
Functional descriptionST7538Q
Voltage control loop formula
R1R2+
PK
--------------------
R
2
VCL
TH
±()⋅≅
VCL
HYST
VR
Table 10. Vout vs R1 & R2 resistors value
Vout (V r m s )Vout ( d B µV)(R1+R2)/R2R2 (KΩ) R1 (KΩ)
0.150103.51.17.51.0
0.250108.01.95.13.9
0.350110.92.73.65.6
0.500114.03.73.38.2
0.625115.94.73.311.0
0.750117.55.82.712.0
0.875118.86.62.011.0
1.000120.07.61.610.0
1.250121.99.51.613.0
1.500123.510.81.615.0
Note:The rate of R2 takes in account the input resistance on the SENSE pin (36 K
5.6nF capacitor effect has been neglected.
Figure 15. Typical output current vs rcl
Irms
(mA)
325
300
275
250
225
200
175
150
125
100
22.533.5
44.55
D01IN1311
Rcl(KΩ)
Ω
).
28/44
Page 29
ST7538QFunctional description
●Integrated Power Line Interface (PLI)
The Power Line Interface (PLI) is a double CMOS AB Class Power Amplifier with the
two outputs (ATOP1 and ATOP2) in opposition of phase.
Two are the possible configuration:
- Single Ended Output (ATOP1).
- Bridge Connection
The Bridge connection guarantee a Differential Output Voltage to the load with twice
the swing of each individual Output. This topology virtually eliminates the even
harmonics generation.
The PLI requires, to ensure a proper operation, a regulated and well filtered Supply
Voltage. PAVcc Voltage must fulfil the following formula to work without clipping
phenomena:
PAVcc
VATOP AC()
------------------------------- ---- - 7.5V+≥
2
To allow the driving of an external Power Line Interface, the output of the ALC is
available even on ATO pin. ATO output has a current capability much lower than ATOP1
and ATOP2.
Figure 16. PLI bridge topology
VR
PK
INVERTER
ALC
VOLTAGE
LOOP
CURRENT
LOOP
80 pF
D03IN1422
ATOP2
ATOP1
Vsense
CL
PAVss
5.6nF
RCL
R1
R2
Vout
LOAD
VR
2*VR
PK
PK
29/44
Page 30
Functional descriptionST7538Q
Figure 17. PLI startup timing diagram
RX/TX
T
ALC
ATOP2
5.9 Crystal oscillator
ST7538Q integrates a inverter driver circuit to realize a 16MHz crystal oscillator.
This circuit is able to drive a maximum load capacitance of 16pF with typical quartz ESR of
40Ω.
If the internal driver circuit is used, only one external crystal quartz and two external load
capacitors (C
Figure 18. Typical crystal configuration if internal crystal driver circuit is used
and C2) are needed to realize the oscillator function (Figure 18).
1
4V
0V
T
ST
D03IN1408
T
RXTX
STEP NUMBER 16171831
XOUTXIN
C
1
If an external oscillator is used, XOUT must be disconnected, while XIN must satisfies the
specifications given in Ta bl e 4 (see Figure 19).
30/44
C
2
D03IN1425A
Page 31
ST7538QFunctional description
Figure 19. XIN waveform if an external oscillator is used
5.10 Control register
The ST7538Q is a multi-channel and multifunction transceiver. An internal 24 or 48 Bits (in
Extended mode) Control Register allows to manage all the programmable parameters
(Ta bl e 11 ).
The programmable functions are:
●Channel Frequency
●Baud Rate
●Deviation
●Watchdog
●Transmission Timeout
●Frequency Detection Time
●Detection Method
●Mains Interfacing Mode
●Output Clock
●Sensitivity Mode
●Input Pre-Filter
In addition to these functions the Extended mode provides 24 additional bits and others
functions:
●Output Level Freeze
●Frame Header Recognizer (one 16 bits header of or two 8 bits headers) with support to
Frame Length Bit count
31/44
Page 32
Functional descriptionST7538Q
Table 11. Control register functions
BitsFunctionValueSelectionNoteDefault
Bit2 Bit1 Bit0
0 to 2Frequencies
3 to 4Baud Rate
5Deviation
6Watchdog
7 to 8
9 to 10
Transmission
Time Out
Frequency
detection
time
60 KHz
66 KHz
72 KHz
76 KHz
82.05 KHz
86 KHz
110 KHz
132.5 KHz
600
1,200
2,400
4,800
0.5
1
Disabled
Enabled (1.5 s)
Disabled
1 s
3 s
Not Used
500 µs
1 ms
3 ms
5 ms
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
Bit 4Bit 3
0
0
1
1
Bit 8Bit 7
0
0
1
1
Bit 10Bit 9
0
0
1
1
0
1
0
1
Bit 5
0
1
Bit 6
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
132.5 kHz
2400
0.5
Enabled
1 sec
1 ms
Zero
11
32/44
Crossing
Synchronizati
on
Disabled
Enabled
Bit 11
0
1
Disabled
Page 33
ST7538QFunctional description
Table 11. Control register functions (continued)
FunctionValueSelectionNoteDefault
Bit 13Bit 12
Carrier Detection
Carrier detection
without
conditioning
00
Notification on CD_PD
Line
CLR/T and RxD signal
always Present
12 to
13
14
15 to
16
17
Detection
(1)
Method
Mains
Interfacing
Mode
Output Clock
Output
Voltage Level
Freeze
Carrier detection
with conditioning
Preamble
detection
without
conditioning
Preamble
detection
with conditioning
Synchronous
Asynchronous
16 MHz
8 MHz
4 MHz
Clock OFF
Enabled
Disabled
01
10
11
Bit 14
0
1
Bit 16Bit 15
0
0
1
1
0
1
0
1
Bit 17
0
1
CLR/T and RxD lines
are forced to “0” when
Carrier is not detected
Preamble Detection
Notification on CD_PD
Line
CLR/T and RxD signal
always Present
Preamble Detection
Notification on CD_PD
Line
CLR/T and RxD lines
are forced to “0” when
Preamble has not been
detected or PLL is in
Unlock condition
Active only if Extended
Control Register is
enable (Bit 21=”1”)
Preamble
detection
without
conditioning
Asynchronou
s
4 MHz
Disabled
18
19
Header
Recognition
Frame
Length Count
Disabled
Enabled
Disabled
Enabled
Bit 18
0
1
Bit 19Active only if Header
0
1
33/44
Active only if Extended
Control Register is
enable (Bit 21=”1”)
Recognition Function
(Bit 18=”1”) and
Extended Control
Register (Bit 21=”1”)
are enable
Disabled
Disabled
Page 34
Functional descriptionST7538Q
Table 11. Control register functions (continued)
FunctionValueSelectionNoteDefault
Bit 20
Active only if Extended
Control Register is
enable (Bit 21=”1”)
Extended Register
enables Functions on
Bit 17, 18,19 and 20
16 bits
Disabled
(24 bits)
20
21
Header
Length
Extended
Register
8 bits
16 bits
Disable (24 bits)
Enabled (48 bits)
0
1
Bit 21
0
1
Bit 22
Normal
Sensitivity
High Sensitivity
0
1
Normal
22
Sensitivity
Mode
Bit 23
23Input Filter
Disabled
Enabled
0
Disabled
1
One 16 bits Header or
24 to
39
Frame
Header
from 0000h to
FFFFh
two 8 bits Headers
(MSB first) depending
9B58h
on Bit 17
40 to
47
1. The Detection method bit meaning differs depending on UART/SPI pin value. In this table is listed the SPI
mode (UART/SPI=”0”). For Detection method bit meaning in UART mode (UART/SPI=”1”) please see
Table 12.
Frame
Length
from 01h to FFh
Number of 16 bits
words expected
08h
34/44
Page 35
ST7538QFunctional description
5.11 Detection method and Rx Sensitivity in UART mode
When ST7538Q is running in UART mode (by forcing UART/SPI pin to “1”) the Control
Register Function “Detection method” differs from SPI mode as indicated in the Tab le 1 2:
Table 12. Control register functions in UART mode
FunctionValueSelectionNoteDefault
Bit 13Bit 12
This configuration
should be avoided
Not Allowed00
Not Allowed01
because it could cause
an unpredictable
behavior of the device
This configuration
should be avoided
because it could cause
an unpredictable
behavior of the device
12 to 13Detection
Method
Carrier detection
without
conditioning
Carrier detection
with conditioning
Notification on CD_PD
10
CLR/T and RxD signal
Notification on CD_PD
CLR/T Line is forced to
11
Carrier Detection
Line
always Present
Carrier Detection
Line
“0” and RxD Line is
forced to “0” or “1”
(according the
UART/SPI pin level)
when Carrier is not
detected
Carrier
detection
without
conditioning
UART mode provides also a third level of Receiving sensitivity in addition to two levels select
able by Control Register (see Tab le 1 1). By setting to “1” the TxD pin during a receiving
session the sensitivity is forced to BU threshold (this condition suppresses the Control
Register setting).
35/44
Page 36
Auxiliary analog and digital functionsST7538Q
6 Auxiliary analog and digital functions
6.1 Band in use
The Band in Use Block has a Carrier Detection like function but with a different Input
Sensibility (77dBµV Typ.)
and with a different BandPass filter Selectivity (40dB/Dec).
BU line is forced High when a signal in band is detected.
To prevent BU line false transition, BU signal is conditioned to Carrier Detection Internal
Signal.
6.2 Time out
Time Out Function is a protection against a too long data transmission. When Time Out
function is enabled after 1 or 3 second of continuos transmission the transceiver is forced in
receiving mode. This function allows ST7538Q to automatically manage the CENELEC
Medium Access specification. When a time-out event occur, TOUT is forced high, and is
held high for at least 125 ms. To Unlock the Time Out condition RxTx should be forced High.
During the time out period only register access or reception mode are enabled.
During Reset sequence if RxTx line =”0” & REG_DATA line =”0”, TIMEOUT protection is
suddendly enabled and ST7538Q must be configured in data reception after the reset event
before starting a new data transmission.
Time Out time is programmable using Control Register bits 7 and 8 (Ta b le 1 1).
Figure 20. Time-out timing and unlock sequence
RxTx
Time Out function
6.3 Reset & watchdog
RSTO Output is a reset generator for the application circuitry. During the ST7538Q startup
sequence is forced low. RSTO becomes high after a T
startup sequence.
Inside ST7538Q is also embedded a watchdog function. The watchdog function is used to
detect the occurrence of a software fault of the Host Controller. The watchdog circuitry
generates an internal and external reset (RSTO low for T
watchdog timer. The watchdog timer reset can be achieved applying a negative pulse on
WD pin (Figure 21).
T
OUT
T
OFFTOFFD
delay from the end of oscillator
RSTO
RSTO
D03IN1409
time) on expiry of the internal
36/44
Page 37
ST7538QAuxiliary analog and digital functions
Figure 21. Reset and watchdog timing
T
RSTO
RSTO
T
WD
WD
6.4 Zero crossing detection
The Mains Voltage Zero Crossing can be detected, through a proper connection of ZCIN to
the Mains. ZCIN comparator has a threshold fixed at SGND. ZCOUT is a TTL Output forced
High after a positive zero-crossing transition, and low after a negative one.
Setting the Bit 11 inside the Control Register to “1” the transmission is automatically
synchronized to the mains positive zero-crossing transition. This function is achieved turning
on the PLI when RX/TX is low and delaying the CLR/T first transition until the first zerocrossing event. The automatic synchronization procedure can work only if the synchronous
interface is programmed. If asynchronous interface is in use the Zero Crossing
synchronization can be achieved managing the ZCOUT line.
Figure 22. Synchronous zero-crossing transmission
T
WO
T
WM
T
RSTO
D03IN1410
ZCIN
RxTx
CLR/T
TxD
ZCOUT
t
ZC
DEL
D03IN1423
37/44
Page 38
Auxiliary analog and digital functionsST7538Q
6.5 Output clock
MCLK is the master clock output. The clock frequency sourced can be programed through
the control register to be a ratio of the crystal oscillator frequency (Fosc, Fosc/2 Fosc/4) or
can be disabled (off). The transition between one frequency and another is done only at the
end of the ongoing cycle.
6.6 Output voltage level freeze
The Output Level Freeze function, when enabled, turns off the Voltage Control Loop once
the ALC stays in a stable condition for about 3 periods of control loop, and maintains a
constant gain until the end of transmission. Output Level Freeze can be enabled using
Control Register bit 17 (Ta bl e 1 1). This function is available only using the Extended Control
Register (Control Register bit 21 = ”1”).
6.7 Extended control register
When Extended Control Register function is enabled, all the 48 bits of Control Register are
programmable. Otherwise, only the first 24 bits of Control Register are programmable. The
functions Header Recognition, Frame Bit Count and Output Voltage Freeze are available
only if Extended Control Register function is enabled. Extended Control Register can be
enabled setting the Control Register bit 21(Ta bl e 11 ).
6.8 Reg OK
REGOK allows to detect an incomplete writing of the Control Register content (see
Section 5.6: Control register access on page 21) or an accidental corruption of the Control
Register content. In these cases REGOK goes to “1” until a new Control Register writing
session is performed.
6.9 Under voltage lock out
The UVLO function turns off the device if the PAVcc voltage falls under 4V. Hysteresis is
340mV typically.
6.10 Thermal shutdown
The ST7538Q is provided of a thermal protection which turn off the PLI when the junction
temperature exceeds 170°C ± 10% . Hysteresis is around 30°C.
When shutdown threshold is overcome, PLI interface is switched OFF.
Thermal Shutdown event is notified to the HOST controller using TIMEOUT line. When
TIMEOUT line is High, ST7538Q junction temperature exceed the shutdown threshold (Not
Leached).
38/44
Page 39
ST7538QAuxiliary analog and digital functions
6.11 5V and 3.3V voltage regulators and power good function
ST7538Q has an embedded 5V linear regulator externally available to supply the application
circuitry.
The linear regulator has a very low quiescent current (50µA) and a current capability of
50mA. The regulator is protected against short circuitry events.
The DVdd pin can act either as 3.3V Voltage Output or as Input Digital Supply. When the
DVdd pin is externally forced to 5V all the Digital I/Os operate at 5V, otherwise all the Digital
I/Os are internally supplied at 3.3V. The DVdd pin can also source 3.3V voltage to supply
external components. The 3.3V linear regulator has a very low quiescent current (50µA) and
a current capability of 50mA. The regulator is protected against short circuitry events.
If AVdd and DVdd pins are connected to VDC pin, the 5V regulator maximum current
capability rises to 100mA
When the regulator Voltages are above of the power good thresholds V
(see Ta bl e 4 ),
PG
Power Good line is forced high, while is forced low at startup and when VDC or DVdd falls
below V
PG
- V
PGHYS
Voltage.
Figure 23. Power good function
VDC/DV
DD
4.5V/3.125V
250mV
Time
PG
PG OK
D03IN1411
Time
39/44
Page 40
Auxiliary analog and digital functionsST7538Q
6.12 Power-up procedure
To ensure ST7538Q proper power-Up sequence, PAVcc, AVdd and DVdd Supply has to fulfil
the following rules:
PAVcc rising slope must not exceed 100V/ms.
When DVdd is below 5V/3.3V and AVdd is below 5V: 100mV < PAVcc-AVdd , PAVcc-DVdd <
1.2V.
When AVdd and DVdd supplies are connected to VDC the above mentioned relation is
guarantied if VDC load < 100mA and if the filtering capacitor on VDC < 100uF.
If DVdd is not forced to 5V, the Digital I/Os are internally supplied at 3.3 V and if DVdd load <
50mA and the filtering capacitor on DVdd < 100uF the second relation can be ignored .
Figure 24. Power-UP sequence
40/44
Page 41
ST7538QAuxiliary analog and digital functions
Figure 25. Application schematic example with coupling tranformer.
circuit
Mains
Coupling
reference
AC/DC
Converter
SINGLE SUPPY
PAVCC
22
25
SGND
17
N.C.
34
N.C.
39
N.C.
44
33
N.C.
VDC
C_OUT40
AVdd
C_PLUS38C_MINUS37
28
No External Components
for POWER LINE DRIVER
ATOP2
ATO24
21
10
13
30
DVdd
TEST235TEST1
UART/SPI
RAI
32
AC LINE
LOAD
WD
ATOP1
143642
PG
R1
19
REGOK
Voltage
R2
C1
Vsense
29
ST7538Q
789
15
BU
TOUT
ZCOUT
&
Current
Protection
Regulation
CL
23
1
345
RxD
CD/PD
RCL
TxD
CLR/T
RX/TX
RxFO31
REG/DATA
Transmission
Zero Crossing
XIN27XOUT
ZCIN
16
43
5 Lines
Serial Interface
Synchronization
26
41
6
2
1820
11
12
RSTO
MCLK
Host Controller
Clock & Reset for
D03IN1412A
GND
DVSSGND
DVSS
PAVSS
5V Supply
for Host Controller
HOST
CONTROLLER
41/44
Page 42
Package mechanical dataST7538Q
3
7 Package mechanical data
In order to meet environmental requirements, ST offers these devices in ECOPACK®
packages. These packages have a Lead-free second level interconnect . The category of
second level interconnect is marked on the package and on the inner box label, in
compliance with JEDEC Standard JESD97. The maximum ratings related to soldering
conditions are also marked on the inner box label. ECOPACK is an ST trademark.
ECOPACK specifications are available at: www.st.com
Best thermal performance is achieved when slug is soldered to PCB.
It is recommended to have five solder dots (See Figure 27) without resist to connect the
Copper slug to the ground layer on the soldering side. Moreover it is recommitted to connect
the ground layer on the soldering side to another ground layer on the opposite side with 15
to 20 vias.
It is suggested to not use the PCB surface below the slug area to interconnect any pin
except ground pins.
Figure 26. ST7538Q slug drawing
Copper Slug
Solder plated
Figure 27. Soldering information
Cu plate
A
Solder dots
B
L
L
L1
L1
D03IN141
0.10mm ±0.05
Lead frame
D03IN1414
Package Sizes10x10x1.4mm
A2.00 mm
B1.00 mm
L6.00 mm
L1 (Copper plate)10.00 mm
If PCB with ground layer, connect
copper plate with 15 to 20 vias
42/44
Page 43
ST7538QRevision history
8 Revision history
Table 13. Revision history
DateRevisionChanges
12-Jul-20061Initial release.
43/44
Page 44
ST7538Q
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.