AMIS−49587
www.onsemi.com
19
6 DETAILED HARDWARE DESCRIPTION
6.1 CLOCK AND CONTROL
According to the IEC 61334−5−1 standard, the frame data
is transmitted at the zero crossing of the mains voltage. In
order to recover the information at the zero crossing, a zero
crossing detection of the mains is performed. A
phase−locked loop (PLL) structure is used in order to allow
a more reliable reconstruction of the synchronization. The
output of this block is the clock signal CHIP_CLK, 8 times
over sampled with the bit rate. The oscillator makes use of
a precise 24 MHz quartz. This clock signal together with
CHIP_CLK is fed into the Clock Generator and time block.
Here several internal clock signals and timings are obtained
by the use of a programmed division scheme.
Clock and Control
Zero
crossing
PLL OSC
Clock Generator
& Timer
M50Hz_IN
XIN XOUT
BIT_CLK
BYTE_CLK
FRAME_CLK
PRE_BYTE_CLK
PRE_FRAME_CLK
PRE_SLOT
CHIP_CLK
Figure 11. Clock and Control Block
6.1.1 Zero Crossing Detector
M50HZ_IN is the mains frequency analog input pin. The
signal is used to detect the zero crossing of the 50 or 60 Hz
sine wave. This information is used, after filtering with the
internal PLL, to synchronize frames with the mains
frequency. In case of direct connection to the mains it is
advised to use a series resistor of 1 MW in combination with
two external clamp diodes in order to limit the current
flowing through the internal protection diodes.
FROM
MAINS
Clock & Control
M50Hz_IN
ZeroCross
PLL
CHIP_CLK
Debounce
Filter
3V3_A
1M
W
Figure 12. Zero Cross Detector with Falling Edge Debouncer
The zero crossing detector output is logic zero when the
input is lower than the falling threshold level and a logic one
when the input is higher than the rising threshold level. The
falling edges of the output of the zero crossing detector are
de−bounced by a period between 0.5 ms and 1 ms. The
Rising edges are not de−bounced.
AMIS−49587
www.onsemi.com
20
t
10 ms
V
MAINS
ZeroCross
t
ZCD
VIR
M50HZIN
VIF
M50HZIN
t
DEBOUNCE
= 0,5 ..1 ms
Figure 13. Zero Cross Detector Signals and Timing (Example for 50 Hz)
6.1.2 50/60 Hz PLL
The output of the zero crossing detector is used as an input
for a PLL. The PLL generates the clock CHIP_CLK which
is 8 times the bit rate and which is in phase with the rising
edge crossings. The PLL locks on the zero crossing from
negative to positive phase. The bit rate is always an even
multiple of the mains frequency, so following combinations
are possible:
Table 22. CHIP_CLK IN FUNCTION OF SELECTED
BAUD RATE AND MAINS FREQUENCY
BAUD[1:0] MAINS_FREQ Baudrate CHIP_CLK
00
50 Hz
300 2400 Hz
01 600 4800 Hz
10 1200 9600Hz
11 2400 19200 Hz
00
60 Hz
360 2880 Hz
01 720 5760 Hz
10 1440 11520Hz
11 2880 23040 Hz
In case no zero crossings are detected the PLL freezes its
internal timers in order to maintain the CHIP_CLK timing.
AMIS−49587
www.onsemi.com
21
6 bit @ 300 baud
t
10 ms
V
MAINS
ZeroCross
t
ZCD
VIR
M50HZIN
CHIP _CLK
PLL in lock
Start of Physical PreFrame*
*The start of the Physical Subframe is shifted back with R_ZC_ADJUST[7:0] x 26 mS = t
ZCD
to compensate for the zero cross delay
Figure 14. Zero Cross Adjustment to Compensate for Zero Cross Delay (Example for 50 Hz)
The phase difference between the zero crossing of the
mains and CHIP_CLK can be tuned. This opens the
possibility to compensate for external delay t
ZCD
(e.g. opto
coupler) and for the 1.9 V positive threshold VIR
M50HZIN
of
the zero crossing detector. This is done by pre−loading the
PLL counter with a number value stored in register
R_ZC_ADJUST[7:0]. The adjustment period or granularity
is 26 ms. The maximum adjustment is 255 x 26 ms = 6.6 ms
which corresponds with 1/3rd of the mains sine period.
Table 23. ZERO CROSS DELAY COMPENSATION
R_ZC_ADJUST[7:0] Compensation
0000 0000
0 ms
0000 0001
26 ms
0000 0010
52 ms
0000 0011
78 ms
1111 1101
6589 ms
1111 1110
6615 ms
1111 1111
6641 ms
6.1.3 Oscillator
The oscillator works with a standard parallel resonance
crystal of 24 MHz. XIN is the input to the oscillator inverter
gain stage and XOUT is the output.
XTAL _IN XTAL _ OUT
C
X
V
SSA
C
X
R
X
24 MHz
Figure 15. Placement of the Capacitors and Crystal
with Clock Signal Generated Internally
For correct functionality the external circuit illustrated in
Figure 15 must be connected to the oscillator pins. For a
crystal requiring a parallel capacitance of 20 pF C
X
must be
around 30 pF. (Values of capacitors are indicative only and
are given by the crystal manufacturer). To guarantee startup
the series loss resistance of the crystal must be smaller than
80 W. A parallel resistor R
X
= 1 MW is recommended to
improve the clock symmetry.
The oscillator output f
CLK
= 24 MHz is the base frequency
for the complete IC. The clock frequency for the ARM f
ARM
= f
CLK.
The clock for the transmitter, f
TX_CLK
is equal to
f
CLK
/ 2 or 12 MHz. All the transmitter internal clock signals
will be derived from f
TX_CLK
. The clock for the receiver,
f
RX_CLK
is equal to f
CLK
/ 4 or 6 MHz. All the receiver
internal clock signals will be derived from f
RX_CLK
.

AMIS49587C5872RG

Mfr. #:
Manufacturer:
ON Semiconductor
Description:
Network Controller & Processor ICs PLC MODEM 2400BAUD
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union