PL 3120 / PL 3150 Power Line Smart Transceiver Data Book
PL 3120 / PL 3150 Power Line Smart Transceiver Data Book
@ ®
Ve r s i o n 2
005-0154-01D
Echelon, LON, LONWORKS, [Link], LonBuilder, NodeBuilder, LNS, LonTalk, Neuron, 3120, 3150, LonMaker, and the Echelon logo are
trademarks of Echelon Corporation registered in the United States and other countries.
Other brand and product names are trademarks or registered trademarks of their respective holders.
Smart Transceivers, Neuron Chips, and other OEM Products were not designed for use in equipment or systems which involve danger to human
health or safety or a risk of property damage and Echelon assumes no responsibility or liability for use of the Smart Transceivers or Neuron Chips
in such applications.
Echelon Corporation has developed and patented certain methods of implementing circuitry external to the PL 3120® and PL 3150® Power Line
Smart Transceiver chips. These patents are licensed pursuant to the Echelon PL 3120 / PL 3150 Power Line Smart Transceiver Development
Support Kit License Agreement.
Parts manufactured by vendors other than Echelon and referenced in this document have been described for illustrative purposes only, and may not
have been tested by Echelon. It is the responsibility of the customer to determine the suitability of these parts for each application.
ECHELON MAKES AND YOU RECEIVE NO WARRANTIES OR CONDITIONS, EXPRESS, IMPLIED, STATUTORY OR IN ANY
COMMUNICATION WITH YOU, AND ECHELON SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY
OR FITNESS FOR A PARTICULAR PURPOSE.
Except as expressly permitted herein, no part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by
any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Echelon Corporation.
Echelon Corporation
[Link]
Table of Contents
Chapter 1 -Introduction ...............................................................................................................................................1
Overview..................................................................................................................................................................2
Product Overview ....................................................................................................................................................2
LonWorks Networks ................................................................................................................................................2
Two Product Families ..............................................................................................................................................3
Power Line Signaling...............................................................................................................................................3
Dual Carrier Frequency Operation ...................................................................................................................4
Forward Error Correction .................................................................................................................................5
Powerful Output Amplifier...............................................................................................................................5
Wide Dynamic Range.......................................................................................................................................5
Low Current Consumption ...............................................................................................................................5
Compliant with Regulations Worldwide..................................................................................................................5
Integrated, Low-Cost and Small Form Factor Design .............................................................................................6
Electric Utility vs. Home/Commercial/Industrial Applications ..............................................................................7
Extensive Development Resources..........................................................................................................................7
Audience ..................................................................................................................................................................7
Content.....................................................................................................................................................................7
Related Documentation............................................................................................................................................7
SERVICE Pin..................................................................................................................................................32
Integrity Mechanisms ............................................................................................................................................34
Memory Integrity Using Checksums..............................................................................................................34
Reboot and Integrity Options Word................................................................................................................35
Reset Processing .............................................................................................................................................36
Signatures .......................................................................................................................................................36
Introduction
Overview
This manual provides detailed technical specifications on the electrical interfaces, mechanical interfaces, and
operating environment characteristics for the PL 3120® and PL 3150® Power Line Smart Transceivers. This manual
also provides guidelines for migrating applications to the PL Smart Transceiver using the NodeBuilder®
Development Tool.
In some cases, vendor sources are included in this manual to simplify the task of integrating the PL Smart
Transceivers with application electronics. A list of related documentation is provided in section 1.5, Related
Documentation, at the end of this chapter. The documents listed in this section can be found on the Echelon Web site
at [Link] unless otherwise noted.
Product Overview
The PL Smart Transceivers provide a simple, cost-effective method of adding LONWORKS® power line signaling and
networking to everyday devices. Compliant with the open ANSI/EIA standards, the smart transceivers are ideal for
networked appliance, audio/video, lighting, heating/cooling, security, metering, and irrigation applications.
Representing a breakthrough in price, performance and packaging size, the PL Smart Transceivers integrate a
Neuron® processor core with a power line transceiver that is fully compatible with the LONMARK® PL-20 channel
type. Essentially a system-on-a-chip, the smart transceivers feature a highly reliable ANSI/EIA 709.2 compliant,
narrow-band power line transceiver, an ANSI/EIA 709.1 compliant Neuron processor core for running applications
and managing network communications, a choice of on-board or external memory, and an extremely small form
factor. A wide variety of pre-designed, low-cost coupling circuit designs enable the PL Smart Transceivers to
communicate over virtually any AC or DC power mains, as well as over an unpowered twisted pair.
LONWORKS Networks
In almost every industry today, there is a trend away from proprietary control schemes and centralized systems. The
migration towards open, distributed, peer-to-peer LONWORKS networks is being driven by the interoperability, robust
technology, faster development time, and scale economies afforded by LONWORKS based solutions. All of the
everyday devices in a LONWORKS network communicate using the ANSI/EIA 709.1 protocol standard. This seven-
layer OSI protocol provides a set of services that allow the application program in a device to send and receive
messages from other devices in the network without needing to know the topology of the network or the functions of
the other devices.
LONWORKS networks provide a complete suite of messaging services, including end-to-end acknowledgement,
authentication, and priority message delivery. Network management services allow network tools to interact with
devices over the network, including local or remote reconfiguration of network addresses and parameters,
downloading of application programs, reporting of network problems, and start/stop/reset of device application
programs.
Neuron Chips, a family of microprocessors originally designed by Echelon and licensed to third party semiconductor
manufacturers, combine an ANSI/EIA 709.1 compliant processor core for running applications and managing the
network communications, with a media-independent communication port, memory, I/O, and a 48-bit identification
number (Neuron ID) that is unique to every device. The communication port permits short distance Neuron Chip-to-
Neuron Chip communications, and can also be used with external line drivers and transceivers of almost any type.
The Neuron 3120 Chip family includes self-contained application program memory (no external memory bus) and
the real-time operating system (RTOS) and application libraries pre-programmed in ROM. The Neuron 3150 Chip
family includes both internal memory and an external memory bus.
The PL Smart Transceivers integrate a Neuron processor core with an ANSI/EIA 709.2 compliant power line
transceiver within a single IC, eliminating the need for an external transceiver. Two variants of PL Smart
Transceivers are available:
• The PL 3120 chip includes self-contained application program memory, RTOS, and application library pre-
programmed in ROM.
• The PL 3150 chip includes both internal memory and an external memory bus.
Maximum External
Model Input Memory
Product Name Number Clock EEPROM RAM ROM Interface IC Package
PL 3120- E4T10 15311R-1000 10 MHz 4 Kbytes 2 Kbytes 24 Kbytes No 38 TSSOP
PL 3150-L10 15321R-960 10 MHz 0.5 Kbytes 2 Kbytes N/A Yes 64 LQFP
The PL 3120 Smart Transceivers are targeted at small form factor designs that require up to 4KB of application code.
The PL 3120 operates at either 6.5536MHz (A-band) or 10.0MHz (C-band), and includes 4KB of EEPROM and 2KB
of RAM. Neuron system firmware (RTOS) along with application libraries is contained in on-chip ROM.
For applications that require more memory, the PL 3150 Smart Transceivers operate at either 6.5536MHz (A-band)
or 10.0MHz (C-band), provide 0.5KB of EEPROM and 2KB of RAM, and use a 64 LQFP package. Through an
external memory bus, the PL 3150 Smart Transceiver can address up to 58KB of external memory, of which 16KB is
dedicated to Neuron system firmware.
The embedded EEPROM in both the PL Smart Transceivers can be written up to 10,000 times with no data loss. Data
stored in the EEPROM will be retained for at least 10 years.
Both PL Smart Transceivers have 12 I/O pins which can be configured to operate in one or more of 38 predefined
standard input/output modes. Combining a wide range of I/O models with two on-board timer/counters and a
hardware SCI/SPI UART enables the PL Smart Transceivers to interface to application circuits with minimal external
logic or software development.
Revision B of both PL Smart Transceivers (identified by a “B” in the lower right-hand corner of the package
marking) includes an on chip crystal oscillator. This eliminates the need for the previously required off-chip inverter
(see the section Clock Input in Chapter 2 for more information).
Band Designations
Electricity Suppliers
Utility Non-utility
Applications Applications
A-Band C-Band
Communication Communication
{
{
Restricted
"A" "C"
Restrictions Under
Consideration Restricted
PL 3120 or PL 3150
12
Smart Transceiver Coupling
Power
Reference Design Circuit
Mains
Appendix A1 Chapter 4
User's
Application VDD5 VA
Electronics
Power Supply
Chapter 5
Audience
The PL 3120/PL 3150 Power Line Smart Transceiver Databook provides specifications and user instructions for PL
Smart Transceiver customers.
Content
This User’s Guide describes the use of the PL Smart Transceivers in both utility (A-band) and home/commercial/
industrial (C-band) applications.
Related Documentation
The following documents are suggested reading:
PL 3120 and PL 3150 Smart Transceiver Data Sheet (003-0378-01)
Neuron C Programmer’s Guide (078-0002-02)
Neuron C Reference Guide (078-0140-02)
Neuron 3150 Chip External Memory Interface Engineering Bulletin (005-0013-01)
LONWORKS Microprocessor Interface Program User’s Guide (078-0017-01)
NodeBuilder User’s Guide (078-0141-01)
Parallel I/O Interface to the Neuron Chip Engineering Bulletin (005-0021-01)
PLCA-22 Power Line Communication Analyzer User’s Guide (078-0147-01)
LONWORKS PCLTA-20 PCI Interface User’s Guide (078-0179-01)
Neuron Chip Quadrature Input Function Interface Engineering Bulletin (005-0003-01)
Power Line SLTA Adapter and Power Line PSG/3 Users’s Guide (078-01188-01)
Hardware Resources
Overview
The PL 3120 Smart Transceiver is a complete SoC (system-on-a-chip) for designs that require up to 4kB of memory
while the PL 3150 Smart Transceiver supports external memory for more complex applications. The major hardware
blocks of both processors are the same, except where noted; see Table 2.1 and Figure 2.1.
Table 2.1 Comparison of PL Smart Transceivers
PL 3150 Smart PL 3120 Smart
Characteristic Transceiver Transceiver
RAM Bytes 2,048 2,048
ROM Bytes — 24,576
EEPROM Bytes 512 4,096
General purpose I/O pins 12 12
16-Bit Timer/Counters 2 2
External Memory Interface Yes No
Package 64 pin LQFP 38 pin TSSOP
XIN
Oscillator,
4 KB EEPROM
Clock, and XOUT
(0.5 KB EEPROM
for PL 3150) Control SERVICE
RESET
24 KB ROM
External Address/Data
(PL 3120 only) Bus (PL 3150 Smart
Transceiver Only)
Processor 1 is the MAC layer processor that handles layers 1 and 2 of the 7-layer LonTalk® protocol stack. This
includes driving the communications subsystem hardware and executing the media access control algorithm.
Processor 1 communicates with Processor 2 using network buffers located in shared RAM memory.
Processor 2 is the network processor that implements layers 3 through 6 of the LonTalk protocol stack. It handles
network variable processing, addressing, transaction processing, authentication, background diagnostics, software
timers, network management, and routing functions. Processor 2 uses network buffers in shared memory to
communicate with Processor 1, and application buffers to communicate with Processor 3. These buffers are also
located in shared RAM memory. Access to them is mediated with hardware semaphores to resolve contention when
updating shared data.
Communications
Port Input/Output
Shared
Processor 3 is the application processor. It executes the code written by the user, together with the operating system
services called by user code. The primary programming language used by applications is Neuron C, a derivative of
the ANSI C language optimized and enhanced for LONWORKS distributed control applications. The major
enhancements are the following (see the Neuron C Programmer’s Guide for details):
• A network communication model, based on functional blocks and network variables, that simplifies and pro-
motes data sharing between like and disparate devices.
• A network configuration model, based on functional blocks and configuration properties, that facilitates
interoperable network configuration tools.
• A type model based on standard and user resource files that expands the market for interoperable devices by
simplifying the integration of devices from multiple manufacturers.
• An extensive set of I/O drivers that support the I/O capabilities of the Neuron core.
• Powerful event driven programming extensions that provide easy handling of network,
I/O, and timer events.
The support for all these capabilities is part of the Neuron firmware, and does not need to be written by the
programmer.
Each of the three identical processors has its own register set (Table 2.2), but all three processors share data, ALUs
(arithmetic logic units) and memory access circuitry (Figure 2.3). On the PL 3150 Smart Transceiver, the internal
address, data, and R/W signals are reflected on the corresponding external lines when utilized by any of the internal
processors. Each CPU minor cycle consists of three system clock cycles, or phases; each system clock cycle is two
input clock cycles. The minor cycles of the three processors are offset from one another by one system clock cycle, so
that each processor can access memory and ALUs once during each instruction cycle. Figure 2.3 shows the active
elements for each processor during one of the three phases of a minor cycle. Therefore, the system pipelines the three
processors, reducing hardware requirements without affecting performance. This allows the execution of three
processes in parallel without time-consuming interrupts and context switching.
Table 2.2 Register Set
Mnemonic Bits Contents
FLAGS 8 CPU Number, Fast I/O Select, and Carry Bit
IP 16 Next Instruction Pointer
BP 8 Address of 256-byte Base Page
DSP 8 Data Stack Pointer Within Base Page
RSP 8 Return Stack Pointer Within Base Page
TOS 8 Top of Data Stack, ALU Input
ALUs
Latch
Figure 2.3 Processor/Memory Activity During One of the Three System Clock Cycles of a Minor Cycle
The architecture is stack-oriented; one 8-bit wide stack is used for data references, and the ALU operates on the TOS
(Top of Stack) register and the next entry in the data stack which is in RAM. A second stack stores the return
addresses for CALL instructions, and can also be used for temporary data storage. This stack architecture leads to
very compact code. Tables 2.3, 2.42.4, and 2.5 outline the instruction set.
Figure 2.4 shows the layout of a base page, which can be up to 256 bytes long. Each of the three processors uses a
different base page, whose address is given by the contents of the BP register of that processor. The top of the data
stack is in the 8-bit TOS register, and the next element in the data stack is at the location within the base page at the
offset given by the contents of the DSP register. The data stack grows from low memory towards high memory. The
assembler shorthand symbol NEXT refers to the contents of the location (BP+DSP) in memory, which is not an actual
processor register.
Pushing a byte of data onto the data stack involves the following steps: incrementing the DSP register, storing the
current contents of TOS at the address (BP+DSP) in memory, and moving the byte of data to TOS.
Popping a byte of data from the data stack involves the following steps: moving TOS to the destination, moving the
contents of the address (BP+DSP) in memory to TOS, and decrementing the DSP register.
The return stack grows from high memory towards low memory. Executing a subroutine call involves the following
steps: storing the high byte of the instruction pointer register IP at the address (BP+RSP) in memory, decrementing
RSP, storing the low byte of IP at the address (BP+RSP) in memory, decrementing RSP, and moving the destination
address to the IP register.
Similarly, returning from a subroutine involves the following steps: incrementing RSP, moving the contents of
(BP+RSP) to the low byte of the IP register, incrementing RSP, and moving the contents of (BP+RSP) to the high
byte of IP.
Return Stack
BP+RSP
TOS
BP+DSP NEXT
Data Stack
BP+0x18
BP+0x17
Sixteen Byte Registers
BP+0x8
BP+0x7
Four 16-bit
Pointer Registers
BP*
A processor instruction cycle is three system clock cycles, or six input clock (XIN) cycles. Most instructions take
between one and seven processor instruction cycles. At an input clock rate of 10MHz, instruction times vary between
0.6 µs and 4.2 µs. Execution time scales inversely with the input clock rate. The formula for instruction time is:
Tables 2.3, 2.4, and 2.5 list the processor instructions, their timings (in cycles) and sizes (in bytes). This is provided
for purposes of calculating the execution time and size of code sequences. All programming of the PL Smart
Transceiver is done with Neuron C using the NodeBuilder development tool. The Neuron C compiler can optionally
produce an assembly listing, and examining this listing can help the programmer to optimize the Neuron C source
code.
Table 2.3 Program Control Instructions
Mnemonic Cycles Size (bytes) Description Comments
NOP 1 1 No operation
Memory
See Figure 2.5 for a memory map of the PL 3150 Smart Transceiver.
• 512 bytes of in-circuit programmable EEPROM that store the following:
— Network configuration and addressing information.
— Unique 48-bit Neuron ID — written at the factory.
— User-written application code and read-mostly data. See Table 2.6 for available EEPROM space.
• 2,048 bytes of static RAM that store the following:
— Stack segment, application, and system data.
— Network and application buffers.
• The processor can access 59,392 bytes of the available 65,536 bytes of memory address space via the exter-
nal memory interface. The remaining 6,144 bytes of the memory address space are mapped internally.
• 16,384 bytes of the external memory (59,392 bytes total) are required to store the following:
— The Neuron firmware, including the system firmware executed by the MAC and Network processors, and
the executive supporting the application program.
• The rest of the external memory (43,008 bytes) is available for:
— User-written application code.
— Additional application read/write and non-volatile data.
— Additional network buffers and application buffers.
See Figure 2.6 for a memory map of the PL 3120 Smart Transceiver.
• 4,096 bytes of in-circuit programmable EEPROM that store:
— Network configuration and addressing information.
— Unique 48-bit Neuron ID — written at the factory.
— User-written application code and read-mostly data.
• 2,048 bytes of static RAM that store the following:
— Stack segment, application, and system data.
— Network buffers and application buffers.
• 24,576 bytes of ROM that store the following:
— The Neuron firmware, including the system firmware executed by the MAC and network processors, the
executive supporting the application program, and application libraries.
FFFF FFFF
1KB Reserved Space For 1KB Reserved Space For
Memory Mapped I/O Memory Mapped I/O
FC00 FC00
FBFF FBFF
2.5KB Reserved
Space
F200
Internal
F1FF
0.5KB EEPROM 3KB EEPROM Internal
F000 F000
EFFF EFFF
2KB RAM
2KB RAM
E800 E800
E7FF Unavailable
83FF
42KB of Memory 1KB EEPROM
Space Available 8000
to the User
External Unavailable
4000
3FFF
16KB Neuron
Firmware and 5FFF
Reserved Space 24KB Neuron Firmware
0000 (ROM)
0000
Figure 2.5 PL 3150 Smart Transceiver Figure 2.6 PL 3120 Smart Transceiver
Memory Map Memory Map
EEPROM
Both versions of the PL Smart Transceiver have internal EEPROM containing:
• Network configuration and addressing information.
• Unique 48-bit Neuron ID.
• Optional user-written application code and data tables.
All but 8 bytes of the EEPROM can be written under program control using an on-chip charge pump to generate the
required programming voltage. The charge pump operation is transparent to the user. The remaining 8 bytes are
written during manufacture, and contain a unique 48-bit identifier for each part called the Neuron ID, plus 16 bits for
the chip manufacturer’s device code. Each byte in the EEPROM region can be written up to 10,000 times. For both
the PL 3120 and the PL 3150 Smart Transceivers, the EEPROM stores the installation-specific information such as
network addresses and communications parameters. For the PL 3120 Smart Transceiver, the EEPROM also stores the
application program generated by the NodeBuilder development tool. The application code for the PL 3150 Smart
Transceiver can be stored either on-chip in the EEPROM memory or off-chip in external memory depending on the
size of the application code. See Table 2.6 for available EEPROM space.
For all write operations to the internal EEPROM, the Neuron firmware automatically compares the value in the
EEPROM location with the value to be written. If the two are the same, the write operation is not performed. This
prevents unnecessary write cycles to the EEPROM, and reduces the average EEPROM write cycle latency.
When the PL Smart Transceiver is not within the specified power supply voltage range, a pending or on-going
EEPROM write is not guaranteed. The PL Smart Transceiver contains a built-in low-voltage interruption (LVI)
circuit that holds the chip in reset when VDD5 is below a certain voltage. See the PL 3120 and PL 3150 Smart
Transceiver Datasheet for LVI trip points. This reduces the risk of EEPROM data corruption. For PL 3150 Smart
Transceiver devices with external FLASH memory an external pulse stretching LVI is required. See the section
RESET Pin for more information on LVI circuitry.
In the event of a fault, the on-chip EEPROM of the PL 3150 Smart Transceiver can be reset to its factory default state
by executing the EEBLANK program. To do so, program the appropriate EEBLANK file into an external memory
device, temporarily replace the application’s external ROM or flash with the chip that has EEBLANK loaded, and
power up the device. The EEBLANK files are named eeb<n>.nri where <n> is the Neuron input clock rate in kHz
and is one of the following: 20000, 10000, 05000, 02500, 01250, or 00625. If you are using an input clock between
two of these speeds, select the next slower version of EEBLANK.
After around 20 seconds (or less depending on clock speed), the device’s service LED should come on solid,
indicating that the EEPROM has been blanked. Then replace the original application ROM or flash. The EEBLANK
files are distributed with NodeBuilder 3.1 and newer development tools. Versions of EEBLANK distributed with
prior releases of the LonBuilder® and NodeBuilder tools should not be used with the PL 3150 Smart Transceiver.
The set_eeprom_lock() function can also be used for additional protection against accidental EEPROM data
corruption. This function allows the application program to set the state of the lock on the checksummed portion of
the EEPROM. Refer to the Neuron C Reference Guide for more information.
The internal EEPROM of a PL Smart Transceiver will contain a fixed amount of overhead and a network image
(configuration), in addition to user code and user data. The following table shows the maximum amount of EEPROM
space available for user code and user data assuming a minimally-sized network image. Also shown is the minimum
segment size for user data. Constant data is assumed to be part of the code space.
Table 2.6 Memory Usage
EEPROM Space Segment Size
Device Firmware Version (Bytes) (Bytes)
PL 3120 Smart Transceiver 14 3969 8
PL 3150 Smart Transceiver 14 or newer 384 2
EEPROM must be allocated in increments of the device's segment size, the smallest unit of EEPROM that can be
allocated for variable space. For example, if there are three 3-byte variables used, there must be 9 bytes of variable
space. For a PL 3120 Smart Transceiver, this would result in the allocation of 16 bytes for variable space, as 16 bytes
is the lowest increment of the device segment size (8 bytes) that can store the three 3-byte variables. For a PL 3150
Smart Transceiver, this would result in the allocation of 10 bytes for variable space, as 10 bytes is the lowest
increment of the device segment size (2 bytes) that can store the three 3-byte variables.
Static RAM
The PL Smart Transceivers contain 2048 bytes of static RAM.
The RAM state is retained as long as power is applied to the device. After reset, releasing the PL Smart Transceiver
initialization sequence will clear the RAM (see the section Reset Processes and Timing for more information).
Pre-programmed ROM
The PL 3120 Smart Transceiver contains 24,576 bytes of pre-programmed ROM. This memory contains the Neuron
firmware, including the LonTalk protocol stack, real time task scheduler, and system function libraries. The Neuron
firmware for the PL 3150 Smart Transceiver is stored in external memory. The object code is supplied with the
NodeBuilder tool.
The Neuron 3150 Chip External Memory Interface engineering bulletin provides guidelines for interfacing the PL
3150 Smart Transceiver to different types of memory. A minimum hardware configuration would use one external
ROM (PROM or EPROM), containing both the Neuron firmware and user application code. This configuration
would not allow the system engineer to change the application code over the network after installation. The network
image (network address and connection information) however, could be altered because this information resides in
internal EEPROM. If application downloads over the network are a requirement for maintenance or upgrade and the
application code will not fit into the internal EEPROM, then external EEPROM or flash will be necessary. Refer to
the Neuron C Programmer’s Guide for guidelines to reduce code size.
The pins used to interface with external memory are listed in Table 2.7. The E clock signal is used to generate read (or
write) signals to external memory. The A15 (address line 15) or a programmable array logic (PAL) decoded signal
gated with R/W can be used to generate read signals to external memory.
The preferred method of interfacing the PL Smart Transceiver to another MPU is through the 12
I/O pins using a serial or parallel connection, or through a dual-ported RAM device such as the Cypress CY7C144,
CY7C138, or CY7C1342. There are pre-defined serial and parallel I/O models for this purpose which are easily
implemented using the Neuron C programming language or MIP firmware can be used to simplify the interface. For
more details of dual-ported RAM interfacing, see Appendix B of the LONWORKS Microprocessor Interface Program
User’s Guide (Echelon 078-0017-01).
Input/Output
Pins IO4 – IO7 and IO11 have programmable pull-up current sources. They are enabled or disabled with a compiler
directive (see the Neuron C Reference Guide). Pins IO0 – IO3 have high current sink capability (20 mA @ 0.8 V).
The others have sink capability of 1.4 mA @ 0.5 V. All pins (IO0 – IO11) have TTL level inputs with hysteresis. Pins
IO0 – IO7 also have low level detect latches.
IO7
Control
IO6 Timer/Counter 1
Logic
MUX
IO5
IO4
Control
IO3 Timer/Counter 2
Logic
IO2
IO1
IO0
Clock Input
The PL Smart Transceivers require an input clock of 6.5536MHz for A-band operation and 10.0000MHz for C-band
operation. The input clock can be provided by connection of the appropriate parallel resonant crystal to the XIN and
XOUT pins of the PL Smart Transceiver as shown in Figure 2.8.
The Revision B PL 3150 and PL 3120 Smart Transceiver chips (identified by the letter “B” in the lower right hand
corner of the package marking) do not require the use of an external inverter, as was required with Revision A parts.
New reference layouts, provided as part of current Development Support Kits (DSKs), no longer include this inverter.
Refer to Appendix A for more information regarding the current PL Smart Transceiver DSK.
Current reference designs include the optional capacitors indicated in Figure 2.8. These capacitors are not needed if
the load capacitance of the crystal is matched to the capacitance provided by the combination of the PL Smart
Transceiver chip and the PCB traces. The schematic for each reference design includes a table listing the required
crystal load capacitance both with and without these optional load capacitors. These tables cover crystal load
capacitance values ranging from 15pF to 20pF.
Crystals with a load capacitance greater than 20pF should not be used with the PL Smart Transceiver chips. Even
though the optional capacitors would allow centering the frequency of oscillation with higher load capacitance
crystals, doing so could prevent the oscillator from starting under worst-case conditions. To further ensure proper
oscillator startup, the ESR specification for the crystal should be <100Ω for A-band and <60Ω for C-band operation.
Coptional
XIN
PL 3120/PL 3150
Smart Transceiver
XOUT
Coptional
The PL Smart Transceiver requires a frequency accuracy of ±200ppm over the full range of component tolerances
and operating conditions. Variation within the PL Smart Transceiver IC uses a portion of the overall ±200ppm
budget. The remaining portion of the error budget allocated for total crystal uncertainty is ±85ppm (assuming that the
selected crystal has a load capacitance specification which matches the circuit loading as described above). Total
crystal uncertainty is the combination of the crystal’s initial frequency tolerance plus its temperature and aging
tolerances.
If the load capacitance specification of the crystal is not matched to the circuit then there will be a nominal frequency
error that will reduce the portion of the error budget that is available for crystal uncertainty. For example, using a
20pF crystal in a circuit designed for 18pF of load capacitance results in a nominal frequency of oscillation about
40ppm above the specified frequency. Thus using a crystal with a load capacitance 2pF different from the actual
circuit load constrains the total available crystal tolerance to just +45/-125ppm.
In order to achieve proper frequency centering for PL Smart Transceivers starting with Rev B (and later), the
following guidelines must be followed.
• Rev B PL Smart Transceivers can be used with older reference designs, which include the off-chip inverter,
as long as the inverter is still installed.
• Do not use Rev B PL Smart Transceivers with older reference designs, which include an off-chip inverter,
without installing the off-chip inverter.
• Rev B PL Smart Transceivers can be used with new reference designs (which do not include an off-chip
inverter).
If a 10.0000MHz clock signal is already available elsewhere on a C-band circuit board (6.5536MHz for an A-band
board) then it can be used as a clock source for the PL Smart Transceiver as long as the clock signal meets several
requirements. First the clock must have an accuracy of ±200ppm over all operating conditions. Its duty cycle
symmetry must be no worse than 60/40% when connected to a 33pF load and measured using a 0.9V threshold. In
addition the voltage swing of the clock signal must be within the GND and VDD5 supply rails of the PL Smart
Transceiver. To use this clock option, the appropriate clock signal should be connected to the XIN pin of the PL
Smart Transceiver and the XOUT pin of the PL Smart Transceiver should be left open. Note also that appropriate
high frequency clock distribution techniques must be used to ensure that a clean clock signal is present at the XIN pin
of the PL Smart Transceiver.
The accuracy of any clock oscillator should be checked during the design verification phase of every PL Smart
Transceiver based product. This measurement must be made without adding any capacitance to either the XIN or
XOUT pins of the PL Smart Transceiver. Holding a probe near but not touching the clock lines and then connecting
this probe to a spectrum analyzer with an accurate time-base provides one way to make this measurement without
affecting the frequency of oscillation.
A Band-In-Use detector, as defined under CENELEC EN 50065-1:2001, must be active whenever a signal that
exceeds 86dBµVRMS anywhere in the frequency range 131.5kHz to 133.5kHz is present for at least 4ms. The Band-
In-Use detector is defined by CENELEC EN 50065-1:2001 as part of the CENELEC access protocol. The PL 3120
and PL 3150 Smart Transceiver incorporates the CENELEC access protocol, and the PL Smart Transceiver can be
programmed to enable or disable its operation (See the CENELEC Access Protocol section in Chapter 8). When the
PL Smart Transceiver is programmed such that the CENELEC access protocol is enabled, the BIU signal is active
high whenever the CENELEC-defined conditions for Band-In-Use are met. When the CENELEC access protocol is
disabled, an active BIU signal does not prevent the PL Smart Transceiver from transmitting.
The Band-In-Use function is defined for use in the CENELEC C-band and is not required for A-band operation.
When the PL Smart Transceiver is programmed with proper A-band transceiver parameters, as described in Chapter
8, an active BIU signal does not prevent the PL Smart Transceiver from transmitting.
The PKD signal is active whenever a LonTalk packet addressed to any device is being received by the PL Smart
Transceiver. The receive sensitivity of the transceiver is considerably greater than that of the BIU indicator. The PKD
signal will go active when the PL Smart Transceiver receives packets whose signal level is as small as 36dBµVRMS.
Thus it is not uncommon for the PKD indicator to signal that a packet is present without the BIU indicator turning on;
this occurs in cases where the received packet signal strength is less than the BIU threshold.
ESD protection diodes should be connected to BIU and PKD in applications where the BIU and PKD signals drive
LEDs that could be subject to ESD exceeding 2kV. Refer to the ESD Design Issues section in Chapter 6 for
recommendations regarding ESD protection. In applications where the LEDs are surrounded by a metallic ground
plane, such as a hole in a grounded metal enclosure, the ESD diodes might not be necessary.
Additional Functions
Reset Function
The reset function is a critical operation in any embedded microcontroller. In the case of the PL Smart Transceivers,
the reset function plays a key role in the following conditions:
• Initial VDD5 power up (ensures proper initialization of the PL Smart Transceiver).
• VDD5 power fluctuations (manages proper recovery of PL Smart Transceiver after VDD5 stabilizes).
• Program recovery (if an application gets lost due to corruption of address or data, an external reset can be
used for recovery or the watchdog timer could timeout, causing a watchdog reset).
• VDD5 power down (ensures proper shut down).
• Helps protect the EEPROM from major corruption.
When in reset, the pins of the PL Smart Transceiver go to the states described in the list below. Figure 2.10 shows the
state of the pins during reset and the initialization sequence just after reset.
• Oscillator continues to run
• All processor functions stop
• SERVICE pin goes to high impedance
• I/O pins go to high impedance
• All address pins go to 0xFFFF (PL 3150 Smart Transceiver only)
• All data pins become outputs with low states (PL 3150 Smart Transceiver only)
• E clock goes high (PL 3150 Smart Transceiver only)
• R/W goes low (PL 3150 Smart Transceiver only)
When the RESET pin is released back to a high state, the PL Smart Transceiver begins its initialization procedure
starting at address 0x0001. The time it takes the PL Smart Transceiver to complete its initialization differs between
PL Smart Transceivers, the different firmware versions that are being run, and the memory space used by the
application (code and data). This will be discussed later in this section.
RESET Pin
The RESET pin is both an input and an output. As an input, the RESET pin is internally pulled high by a current
source acting as a pull-up resistor. The RESET pin becomes an output when any of the following events occur:
• Watchdog Timer timeout
• Software reset.
• Internal LVI detects a low voltage
In some cases, external circuitry might be required on the RESET line. If an additional device is connected to the
RESET line, a capacitor of at least 100pF and less than 1000pF should be connected between RESET and ground to
provide noise immunity. Examples of additional devices are push buttons, microcontrollers, and external pulse
stretching LVIs. The capacitance must not exceed 1000pF in order to guarantee the PL Smart Transceiver can
successfully drive RESET below 0.8V. For even greater noise immunity, two capacitors (totaling <1000pF) can be
used with one from RESET to ground and the other from RESET to VDD5. For in-circuitry test during manufacturing,
a single test point is recommended with a very short trace length to control RESET.
For a PL 3120 Smart Transceiver with no devices attached to the RESET pin, no external capacitance is required for
noise immunity.
For a PL 3150 Smart Transceiver, an external pulse-stretching LVI of greater than 10 ms should be used (Echelon
recommends using Dallas Semiconductor Part No. DS1233-5). A capacitor of at least 100pF and less than 1000pF
should also be connected between RESET and ground to provide noise immunity. Figure 2.9 shows a typical circuit
for a PL 3150 Smart Transceiver.
Important: The RESET pin should be hard wired to ground via a “pogo pin” during all board level testing such as
ICT (in circuit testing). The PL Smart Transceivers are sensitive to disruptions in VDD5 and transients on the RESET
pin during the time it is performing its initial (one time) boot initialization sequence.
WARNING: If the proper external reset circuitry is not used, the PL Smart Transceiver can go applicationless or
unconfigured. The applicationless or unconfigured state occurs when the checksum error verification routine detects
corruption in memory which could have falsely been detected due to an improper reset sequence or noise on the
power supply. Several programming options are provided in the NodeBuilder tool to implement a reboot on
checksum failure.
Power Up Sequence
During power up sequences, the RESET pin will be held low by the internal LVI until the power supply is stable, to
prevent start-up malfunctioning. Likewise, when powering down, the PL Smart Transceiver RESET pin will go to a
low state when the power supply goes below the minimum operating voltage of the PL Smart Transceiver.
When the CPU watchdog timer expires, or a software command to reset occurs, the RESET pin is pulled low for 256
XIN clock cycles.
PL Smart Transceiver
VDD5
To Other
Devices
IN
RESET RESET
LVI Switch
CE
GND
(100 pF Min
1000 pF Max)
If using external flash, an external pulse-stretching LVI must be used
(Dallas DS1233-5).
Watchdog Timer
The PL Smart Transceivers are protected against malfunctioning software or memory faults by three watchdog
timers, one for each processor that makes up the Neuron core. If application or system software fails to reset these
timers periodically, the entire PL Smart Transceiver is automatically reset. The watchdog period is approximately 840
ms at a 10MHz input clock rate and scales inversely with the input clock rate.
LVI Considerations
The PL Smart Transceivers include an internal LVI to ensure that they only operate above the minimum voltage
threshold. See the PL 3120 and PL 3150 Smart Transceiver Datasheet for LVI trip points.
When using an external oscillator to drive the XIN pin of the PL 3150 or PL 3120 Smart Transceivers, a power-on-
pulse-stretching LVI might be needed to ensure that the external oscillator has stabilized before the PL Smart
Transceiver is released from reset.
Because the RESET pin of the PL Smart Transceiver is bidirectional, an external LVI must have an open-drain or
open-collector output. If an external LVI actively drives the RESET pin high, then the PL Smart Transceiver will not
be able to reliably assert the RESET pin (low) during internal resets. This contention on the PL Smart Transceiver
RESET pin can cause anomalous behavior, from applicationless errors to physical damage to the PL Smart
Transceiver reset circuitry.
After the RESET pin is released, the PL Smart Transceiver performs hardware and firmware initialization before
executing application programs. These tasks are:
• Oscillator start-up
• Oscillator stabilization
• Stack initialization and built-in self-test (BIST)
• SERVICE pin initialization
• State initialization
• Off-chip RAM initialization
• Random number seed calculation
• System RAM setup
• Communication port initialization
• Checksum initialization
• One-second timer initialization
• Scheduler initialization
Specified by Application
Specified by Application
Scheduler Init
Checksum Init
State Init
Oscillates
Oscillator Stabilization*
Low
DATA [7:0]
IO [11, 7:4]
R/W
E
ADDR [15:0]
SERVICE
IO [10:8, 3:0]
RESET
*NOTE: On power up, the oscillator will start running before RESET is released.
During internal oscillator start up (after power up), the PL Smart Transceiver waits for the oscillator signal amplitude
to grow before using the oscillator waveform as the system clock. This period depends on the type of oscillator used
and its frequency, and begins as soon as power is applied to the oscillator and is independent of the RESET pin.
After the oscillator has started up, the PL Smart Transceiver counts additional transitions on XIN to allow the
oscillator’s frequency to stabilize. From the time RESET is asserted until the end of the oscillator stabilization period,
the I/O pins are in a high-impedance state. The E signal goes inactive (high) immediately after reset goes low, and the
address bus becomes high (0xFFFF) to deselect external devices.
The stack initialization and BIST task tests the on-chip RAM, the timer/counter logic, and the counter logic. For the
test to pass, all three processors and the ROM must be functioning. A flag is set to indicate whether the PL Smart
Transceiver passed or failed the BIST. The RAM is cleared to all 0s by the end of this step. The SERVICE pin
oscillates between a solid low and a weak high. The memory interface signals reflect execution of these tasks.
If the RAM self-test fails, the device goes offline, the service LED comes on solid, and an error is logged in the
device’s status structure.
Self-test results are available in the first byte of RAM (0xE800) as follows:
Value Description
0 No Failure
1 RAM failure
2 Timer/counter failure
3 Counter failure
4 Configured input clock rate exceeds the chip maximum
The SERVICE pin initialization task turns off the SERVICE pin (high state).
The state initialization task determines if a PL Smart Transceiver boot is required (PL 3150 Smart Transceiver only),
and performs the boot if it is required. The PL Smart Transceiver decides to perform a boot if it is blank, or if the boot
ID does not match the boot ID in ROM.
The off-chip RAM initialization task checks the memory map to determine if any off-chip RAM is present and then
either tests and clears all of the off-chip RAM or, optionally, clears the application RAM area only. This choice is
controlled by the application program via a Neuron C compiler directive. This task applies only to the PL 3150 Smart
Transceiver.
The random number seed calculation task creates a seed for the random number generator.
The system RAM setup task sets up internal system pointers as well as the linked lists of system buffers.
The checksum initialization task generates or checks the checksums of the nonvolatile writable memories. If the boot
process was executed for the configured or unconfigured states, in the state initialization task, then the checksums are
generated; otherwise, they are checked. This process includes on-chip EEPROM, off-chip EEPROM, flash, and off-
chip nonvolatile RAM. There are two checksums, one for the configuration image and one for the application image.
In each case, the checksum is a negated two’s complement sum of the values in the image.
The one-second timer initialization task initializes the one-second timer. At this point, the network processor is
available to accept incoming packets.
The scheduler initialization task allows the application processor to perform application-related initialization as
follows:
• State wait — Wait for the device to leave the applicationless state.
• Pointer initialization — Perform a global pointer initialization.
• Initialization step — Execute initialization task, which is created by the compiler/linker to handle initializa-
tion of static variables and the timer/counters.
• I/O pin initialization step — Initialize I/O pins based on application definition. Prior to this point, I/O pins
are high impedance.
• State wait II — Wait for the device to leave the unconfigured or hard-offline state. If waiting was required,
a flag is set to indicate that the device should come up offline.
• Parallel I/O synchronization — Devices using parallel I/O attempt to execute the master/slave synchroni-
zation protocol at this point.
• Reset task — Execute the application reset task (when (reset){ }).
• If the offline flag was set, go offline and execute the offline task (when(offline){}). If the BIST flag
indicated a failure, then the SERVICE pin is turned on and the offline task is executed. Otherwise, the sched-
uler starts its normal task scheduling loop.
The amount of time required to perform these steps depends on many factors, including: PL Smart Transceiver
model; input clock rate; whether or not the device performs a boot process; whether the device is applicationless,
configured, or unconfigured; amount of off-chip RAM; whether the off-chip RAM is tested or simply cleared; the
number of buffers allocated; and application initialization. Tables 2.8 and 2.9 summarize the number of input clock
cycles (XIN) required for each of these steps for the PL 3120 and the PL 3150 Smart Transceivers. The times are
approximate and are given as functions of the most significant application variables.
Table 2.8 PL 3120 Smart Transceiver Reset Sequence Time
For example, the timing of each of these steps is shown for a PL 3120 Smart Transceiver application with the
following parameters:
• 10MHz input clock
• Crystal oscillator
• No boot required, at least 10 application and/or network buffers
For example, the timing of each of these steps is shown for a PL 3150 Smart Transceiver application with the
following parameters: 10MHz input clock, crystal oscillator, no boot required, 16k bytes external RAM, test and clear
external RAM, at least 10 application and/or network buffers, and 500 bytes of EEPROM checksummed.
# pragma ram_test_off
SERVICE Pin
The SERVICE pin alternates between input and open-drain output at a 76 Hz rate with a 50% duty cycle with a
10MHz input clock. At 6.5536MHz, the SERVICE pin alternates at a 50 Hz rate. When it is an output, it can sink 20
mA for use in driving a LED. When it is used exclusively as an input, it has an optional on-chip pull-up to bring the
input to an inactive-high state for use when the LED and pull-up resistor are not connected. Under control of the
Neuron firmware, this pin is used during configuration, installation, and maintenance of the device containing the PL
Smart Transceiver. The firmware flashes the LED at a 1/2 Hz rate when the PL Smart Transceiver has not been
configured with network address information. Grounding the SERVICE pin causes the PL Smart Transceiver to
transmit a network management message containing its unique 48-bit Neuron ID and the application’s program ID on
the network. This information can then be used by a network tool to install and configure the device. A typical circuit
for the SERVICE pin LED and push-button is shown in Figure 2.11. During reset the SERVICE pin state is
indeterminate. The default state of the SERVICE pin pull-up is enabled.
VDD
Config
LED
Pull-Up
SERVICE Broadcast
ID
20 mA
Drive Out
Sink
VSS
The SERVICE pin is active low and the service pin message is sent at maximum once per SERVICE pin transition.
The service pin message goes into the next available priority or non-priority output network buffer. Devices in the
applicationless state that do not have an external pullup will transmit the SERVICE pin message after every reset.
Integrity Mechanisms
The configuration image checksum covers the network configuration information and communication parameters
residing in the on-chip EEPROM. The default behavior is that a configuration checksum error causes the device to go
to the unconfigured state. Refer to Table 2.12 for other options.
The application image checksum covers the application code in both on-chip EEPROM and any application code in
off-chip EEPROM, NVRAM, or flash memory. This checksum can optionally be extended to cover any application
code in off-chip ROM as well. The default behavior is that an application checksum error causes the device to go to
the applicationless state. Application read/write data residing in EEPROM, NVRAM, or flash is not checksummed.
Refer to Table 2.12 for other options.
Table 2.11 Checksum Coverage of PL Smart Transceiver Memory Areas
Memory Area Checksum
System image (optionally covered by application System
checksum on the PL 3150)
Any off-chip ROM code (optionally covered by Application
Application checksum on the PL 3150)
Any off-chip flash, EEPROM, or NVRAM code Application
Any off-chip RAM code Application
Configuration image Configuration
All on-chip EEPROM code Application
In the PL 3150 Smart Transceiver, all memory areas listed in Table 2.11 except for on-chip EEPROM code have their
own checksum so that checksum errors can be further isolated. An unconfigured or configured device continually
checks its application checksum in the background at the rate of 1 byte per iteration through the network processor’s
main loop (3 bytes per millisecond when running at 10MHz with no network activity).
The system image checksum covers the system image. It is only available when the system image resides in off-chip
memory and its use is optional. A system image checksum error always forces the device to the applicationless state.
The checksums are all verified during reset processing by the network processor and as part of the background
diagnostic process. The background diagnostic process causes the device to reset when an error is detected; no state
change occurs. It is assumed that any persistent error will be found by the reset processing.
Upon detecting a checksum error, the reset process will force the appropriate state and log an error in the error log.
For the PL 3150 Smart Transceiver, a checksum must fail twice during reset processing in order for it to be deemed
bad.
The recovery process relies on the fact that the initial on-chip EEPROM image for the application, configuration, and
communication parameter data reside in the off-chip system image. During initial power up, the system image data is
copied (booted) to on-chip EEPROM. The recovery process recopies or reboots the suspect areas as dictated by the
error and the recovery options. Any changes made to the on-chip EEPROM (e.g., a network application load or
network tool initiated reconfiguration) after the initial boot are lost in the recovery process. The recovery action
is defined by setting a combination of bits as defined by the following bit masks (Table 2.12).
Table 2.12 Recovery Action Bit Masks
Recovery Word Description
0x0001 Reboot application if application fatal error.
0x0002 Always reboot application on reset (see note).
0x0004 Reboot configuration if configuration checksum fails.
0x0008 Reboot configuration on an application fatal error.
0x0010 Always reboot configuration on reset.
0x0020 Reboot communication parameters if configuration checksum fails.
0x0040 Reboot communication parameters if type or rate mismatch.
0x0080 Always reboot communication parameters on reset.
0x0100 Reboot EEPROM variables when rebooting application.
0x0200 Applicationless state is considered to be an application fatal error. If
option 0x0001 or 0x0008 is set, applicationless state will result in a
reboot. Application fatal errors are defined below (see note).
0x0400 Checksum all code, including system image.
Note: Applications exported with these options cannot be loaded over the network.
In the above options, “configuration” does not include the communication parameters because their recovery is
governed separately. Also, fatal application errors refer to application image checksum errors, memory allocation
failures, and memory map failures. Refer to Loading an Application Image in the NodeBuilder User’s Guide (Release
3 Revision 2 or later) for more information.
The configuration will be rebooted independently of the application only if all the configuration table sizes match
between EEPROM and ROM. This avoids a situation where a new application with different table sizes is loaded
over the network, and a reboot of the configuration corrupts the program.
When an EEPROM recovery occurs due to a checksum failure or other error, the event will be logged in the error
table of the Smart Transceiver. A test command will show EEPROM recovery occurred as the last error logged.
Reset Processing
During reset processing, the configuration checksum is checked first. If bad, and no configuration recovery options
are set, then a configuration checksum error is logged, the checksum repaired, and the device state is changed to
unconfigured. If the configuration recovery option is set, the configuration is recovered.
Next, the application checksum is checked. If bad, and the checksum error is in the system image, then a system
image checksum error is logged and the device state is changed to applicationless.
If the application checksum is bad, and no application recovery options are set, an application checksum error is
logged and the device state is changed to applicationless.
If the application checksum is bad and an application recovery option is set and the boot application does not contain
references to any off-chip ROM, flash, EEPROM, NVRAM, or RAM code, or there are no checksum errors in any of
these regions, then the application is recovered. Otherwise, an application checksum error is logged and the device
goes applicationless.
Signatures
All off-chip code areas have a 2-byte cyclic redundancy check (CRC) called the signature, immediately following
the area checksum. Signatures are stored in the code area and in the memory map. Mismatches between the area
signature and memory map copy of the signature result in the device going applicationless. This mechanism prevents
a partial application load over the network which is incompatible with any unloaded code (such as code in ROM).
Input/Output
Interfaces
Introduction
The PL 3120 and PL 3150 Power Line Smart Transceivers connect to application-specific external hardware via 12
pins, named IO0-IO11. These pins can be configured in numerous ways to provide flexible input and output functions
with minimal external circuitry. The programming model (Neuron C language) allows the programmer to declare one
or more pins as I/O objects. An I/O object provides programmable access to an I/O driver for a specified on-chip I/O
hardware configuration and a specified input or output waveform definition. With the exception of the SCI (UART)
model, the user’s program can then refer to these objects in io_in and io_out() system calls to perform the
actual input/output function during execution of the program. Certain events are associated with changes in input
values. The task scheduler can thus execute associated application code when these changes occur.
There are many different I/O objects available for use with the PL Smart Transceivers. Most I/O Objects are available
in the PL 3150 and PL 3120 Smart Transceiver system images by default. If an object that is not included in the
default system image is required by an application, the development tool will link the appropriate object(s) into
available memory space. For PL 3120 Smart Transceiver designs, this means that internal EEPROM space must be
used for the additional object. For PL 3150 Smart Transceiver designs, the object will be added to an external flash or
ROM region beyond the 16KB space reserved for the system image.
PL Smart Transceivers have two 16-bit timer/counters on-chip (see Figure 2.7 and 3.1). The input to timer/counter 1,
also called the multiplexed timer/counter, is selectable among pins IO4 – IO7, via a programmable multiplexer
(MUX) and its output can be connected to pin IO0. The input to timer/counter 2, also called the dedicated timer/
counter, can be connected to pin IO4 and its output to pin IO1. The timer/counters are implemented as a 16-bit load
register writable by the CPU, a 16-bit counter, and a 16-bit latch readable by the CPU. The load register and latch are
accessed a byte at a time. No I/O pins are dedicated to timer/counter functions. If, for example, timer/counter 1 is
used for input signals only, then IO0 is available for other input or output functions. Timer/counter clock and enable
inputs can be from external pins, or from scaled clocks derived from the system clock; the clock rates of the two
timer/counters are independent of each other. External clock actions occur optionally on the rising edge, the falling
edge, or both rising and falling edges of the input.
Multiple timer/counter input objects can be declared on different pins within a single application. By calling the
io_select() function, the application can use the first timer/counter to implement up to four different input
objects. If a timer/counter is configured to implement one of the output objects, or is configured as a quadrature input
object, then it can not be reassigned to another timer/counter object in the same application program.
IO0 Timer/Counter 1
IO1
IO2
IO3 Timer/Counter 2
IO4
IO5
mux
IO6
IO7
System Clock
IO8
Divide Chain
IO9
IO10
IO11
Hardware Considerations
Tables 3.1 through 3.5 list the available I/O objects. Various I/O objects of different types can be used simultaneously.
Figure 3.3 summarizes the pin configuration for each of the I/O objects. For the electrical characteristics of these
pins, refer to the PL 3120 and PL 3150 Smart Transceiver Datasheet. The following sections contain detailed
descriptions of all the I/O objects. The application program can optionally specify the initial values of digital outputs.
Pins configured as outputs can also be read as inputs, returning the value “at the I/O pin”. Pins IO4 – IO7 and IO11
have optional pull-up current sources that act like pull-up resistors (see Figure 3.1). These are enabled with a Neuron
C compiler directive (#pragma enable_io_pullups). Pins IO0 – IO3 have high sink capability. The others
have standard sink capability. Pins IO0 – IO7 have low-level detect latches. The latency and timing values
described later in this section are typical at 10MHz. The accuracy of these values is ± 10%. Most latency values
scale inversely with clock rate.
The I/O pull-ups are not enabled during the stack initialization and BIST task. I/O pull-ups are only enabled if
#pragma enable_io_pullups is specified in the Neuron C application. If an I/O pin is not used by the
application, it must either be tied high or low on the PC board or left unconnected and configured as a bit output by
the application in order to prevent unnecessary power consumption. This is particularly important for devices with
energy storage power supplies (See Chapter 5 for more information).
Table 3.1 Summary of Direct I/O Objects
I/O Object Applicable I/O Pins Input/Output Value Page
Bit Input IO0 – IO11 0, 1 binary data 46
Bit Output IO0 – IO11 0, 1 binary data 46
Byte Input IO0 – IO7 0 – 255 binary data 48
Byte Output IO0 – IO7 0 – 255 binary data 48
Leveldetect Input IO0 – IO7 Logic 0 level detected 49
Nibble Input Any adjacent 4 in IO0 – IO7 0 – 15 binary data 50
Nibble Output Any adjacent 4 in IO0 – IO7 0 – 15 binary data 50
To maintain and provide consistent behavior for external events and to prevent metastability, all 12 I/O pins of the PL
Smart Transceiver, when configured as inputs, are passed through a hardware synchronization block sampled by the
internal system clock. This is always the input clock divided by two (e.g. 10MHz ÷ 2 = 5MHz). For any signal to be
reliably synchronized with a 10MHz input clock, it must be at least 220ns in duration (see Figure 3.2).
All inputs are software sampled during when statement processing. The latency in sampling is dependent on the I/O
object which is being executed (see I/O timing specification and the Neuron C Programmer’s Guide for more
information). These latency values scale inversely with the input clock. Thus, any event that lasts longer than 220ns
will be synchronized by hardware, but there will be latency in software sampling resulting in a delay detecting the
event. If the state changes at a faster rate than software sampling can occur, then the interim changes will go
undetected.
There are three exceptions to the synchronization block. First, the chip select (CS) input used in the slave B mode of
the parallel I/O object; this input will recognize rising edges asynchronously. Second, the leveldetect input is latched
by a flip-flop with a 200ns clock. The level detect transition event will be latched, but there will be a delay in
software detection. Third, the SCI (UART) and SPI objects are buffered on byte boundaries by the hardware and are
transferred to memory using an interrupt mechanism. The input timer/counter functions are also different, in that
events on the
I/O pins will be accurately measured and a value returned to a register, regardless of the state of the application
processor. However, the application processor can be delayed in reading the register. Consult the Neuron C
Programmer’s Guide for detailed programming information.
tsetup
thold
20ns
0ns
IO0-IO11 Inputs
(220ns pulse)
Internal
System
Clock
(XIN Input Clock
10MHz divided by 2)
IO0-IO11 Inputs D Q D Q
Synchronized
IO0-IO11 Inputs
0 1 2 3 4 5 6 7 8 9 10 11
I/O Pin
DIRECT Bit Input, Bit Output
I/O
OBJECTS All Pins 0 – 7
Byte Input, Byte Output
Leveldetect Input
Nibble Input, Nibble Output Any Four Adjacent Pins Notes:
C = Clock, D = Data
Muxbus I/O Data Pins 0 – 7 ALS WS RS Bitshift, I2C, Magcard, Magtrack,
PARALLEL
I/O Data Pins 0 – 7 CS R/W HS Neurowire
OBJECTS Parallel I/O Master/Slave A
Slave B Data Pins 0 – 7 CS R/W A0 Timer/Counter 1 Devices
C D C D C D C D C D C One of:
Bitshift Input, Bitshift Output
IO_6 input quadrature
I2C I/O C D C D IO_4 input edgelog
Magcard Input Optional Timeout C D IO_0 output [triac | triggeredcount |
edgedivide] sync(IO_4..7)
Magcard Bitstream Optional Timeout C D
IO_0 output [frequency |
Magtrack1 Input Optional Timeout C D infrared_pattern | oneshot |
SERIAL pulsecount | pulsewidth]
I/O Master Optional Chip Select C D D
Neurowire I/O Or up to four of:
OBJECTS
Slave Optional Timeout C D D IO_4 input [ontime | period ⎟
pulsecount ⎟ totalcount ⎟
Serial Input dualslope ⎟ infrared] mux
Serial Output IO_5..7 input [ontime | period ⎟
pulsecount ⎟ totalcount ⎟
SCI (UART)
dualslope ⎟ infrared]
SPI
Timer/Counter 2 Devices
Touch I/O One of:
IO_4 input quadrature
Wiegand Input Any Two Pins (Optional Timeout)
IO_4 input edgelog
Dualslope Input Control IO_1 output [triac ⎟ triggeredcount ⎟
edgedivide] sync(IO_4)
TIMER/COUNTER Edgelog Input IO_1 output [frequency ⎟
INPUT infrared_pattern ⎟ oneshot ⎟
OBJECTS Infrared Input
pulsecount ⎟ pulsewidth]
Ontime Input IO_4 input [ontime ⎟ period ⎟
Period Input pulsecount ⎟ totalcount ⎟
dualslope ⎟ infrared] ded
Pulsecount Input
Quadrature Input 4+5 6+7
Totalcount Input
TIMER/ Edgedivide Output Sync Input
COUNTER Frequency Output
OUTPUT
OBJECTS Infrared Pattern Output
Oneshot Output
Pulsecount Output
Pulsewidth Output
Triac Output Control Sync Input
tww tww
tsol
IO_0
TIME
The when-clause to when-clause latency, tww, in this case includes the execution time of one io_out() function
(65 µs latency at 10MHz) and is for an event that always evaluates to TRUE. The actual tww for a given application is
driven by the actual task within the when statement as well as the when event which is evaluated.
The above example not only measures the best-case minimum latency between consecutive when clauses (whose
events evaluate to TRUE), tww, but also reveals the scheduler’s end-of-loop overhead latency, tsol. As shown in
Figure 3.4, tww is the off-time period of the output waveform and tsol is the on-time of the output waveform, minus
tww. This shows that the scheduler overhead latency, or the scheduler end-of-loop latency, occurs just before the
execution of the last when clause in the program.
The latency associated with the return from the io_out() function is small, relative to that of the execution of the
function call itself.
Note: Some I/O objects suspend application processing until the task is complete. This is because they are firmware-
driven. These are bitshift, Neurowire, parallel, software serial I/O objects, I2C, magcard, magtrack, Touch I/O, and
Wiegand. They do not suspend network communication as this is handled by the network processor and the media
access processor.
Overall accuracy is always related to the accuracy of the XIN input of the PL Smart Transceiver. Timing diagrams are
provided for all non-trivial cases to clarify the parameters given.
For more information on the operation of each of the I/O objects, refer to the Neuron C Reference Guide.
Bit Input/Output
Pins IO0 – IO11 can be individually configured as single-bit input or output ports. Inputs can be used to sense TTL-
level compatible logic signals from external logic, contact closures, and the like. Outputs can be used to drive
external CMOS and TTL level compatible logic, switch transistors and very low current relays to actuate higher-
current external devices such as stepper motors and lights. The high (20mA) current sink capability of pins IO0 – IO3
allows these pins to drive many I/O devices directly (refer to Figure 3.5). Figures 3.6 and 3.7 show the bit input and
bit output latency times, respectively. These are the times from which io_in() or io_out() is called, until a
value is returned. The direction of bit ports can be changed between input and output dynamically under application
control. (io_set_direction())
IO0 IO0
IO1 IO1
IO2 IO2
IO3 IO3
IO4 IO4
IO5 IO5
IO6 IO6
IO7 IO7
IO8 IO8
IO9 IO9
IO10 IO10
IO11 IO11
Note: After a reset, the PL Smart Transceiver disables the IO4-IO7 and IO11 pull-up resistors. The pull-up resistors
are not turned on until application initialization. Pull-ups are only enabled when specified in the application
configuration using a Neuron C directive (#pragma enable_io_pullups).
tfin tret
INPUT
TIME
tfout tret
OUTPUT
TIME
Byte Input/Output
Pins IO0 – IO7 can be configured as a byte-wide input or output port, which can be read or written using integers in
the range 0 to 255. This is useful for driving devices that require ASCII data, or other data, eight bits at a time. For
example, an alphanumeric display panel can use byte function for data, and use pins IO8 – IO11 in bit function for
control and addressing. See Figures 3.8, 3.9, and 3.10. IO0 represents the LSB of data. The direction of a byte port
can be changed between input and output dynamically under application control. (io_set_direction())
IO0 IO0
IO1 IO1
IO2 IO2
IO3 IO3
IO4 IO4
IO5 IO5
IO6 IO6
IO7 IO7
IO8 IO8
IO9 IO9
IO10 IO10
IO11 IO11
High Current Sink Drivers Optional Pull-Up Resistors
tfin tret
INPUT
TIME
tfout tret
OUTPUT
TIME
Leveldetect Input
Pins IO0 – IO7 can be individually configured as leveldetect input pins, which latch a negative-going transition of the
input level with a minimal low pulse width of 200ns, with a PL Smart Transceiver clocked at 10MHz. The application
can therefore detect short pulses on the input which might be missed by software polling. This is useful for reading
devices, such as proximity sensors. This is the only direct I/O object which is latched before it is sampled. The
latch is cleared during the when statement sampling and can be set again immediately after, if another transition
should occur (see Figure 3.11).
tfin tret
INPUT
PIN
200ns
SYSTEM
IO0 CLOCK
IO1
IO2 (@ 10MHz)
IO3
IO4 INPUT
IO5 LATCH
IO6
IO7 TIME
IO8 END OF
IO9 1ST NEGATIVE
IO10 INPUT io_in()
TRANSITION 2ND
IO11 LATCH
IS LATCHED NEGATIVE
START OF SAMPLED
Optional Pull-Up Resistors TRANSITION
io_in() AND THEN
IS LATCHED
CLEARED
Nibble Input/Output
Groups of four consecutive pins between IO0 – IO7 can be configured as nibble-wide input or output ports, which
can be read or written to using integers in the range 0 to 15. This is useful for driving devices that require BCD data,
or other data four bits at a time. For example, a 4x4 key switch matrix can be scanned by using one nibble to generate
an output (row select — one of four rows), and one nibble to read the input from the columns of the switch matrix.
See Figures 3.12, 3.13, and 3.14.
The direction of nibble ports can be changed between input and output dynamically under application control (see the
Neuron C Programmer’s Guide). The LSB of the input data is determined by the object declaration and can be any of
the IO0 – IO4 pins.
IO0
IO1
IO2
IO3
IO4
IO5
IO6
IO7
IO8
IO9
IO10
IO11
High Current Sink Drivers
Optional Pull-Up Resistors
tfin tret
INPUT
TIME
tfout tret
OUTPUT
TIME
Muxbus Input/Output
This I/O object provides a means of performing parallel I/O data transfers between the PL Smart Transceiver and an
attached peripheral device or processor (see Figure 3.15). Unlike the parallel input/output object, which makes use of
a token-passing scheme for ensuring synchronization, the muxbus input/output enables the PL Smart Transceiver to
essentially be in control of all read and write operations at all times. This relieves the burden of protocol handling
from the attached device and results in an easier-to-use interface at the expense of data throughput capacity. The data
bus remains in the last state used.
START OF END OF
io_out() END OF START OF io_in()
io_out() io_in()
Parallel Input/Output
Pins IO0 – IO10 can be configured as a bidirectional 8-bit data and 3-bit control port for connecting to an external
processor. The other processor can be a computer, microcontroller, or another PL Smart Transceiver (for gateway
applications). The parallel interface can be configured in master, slave A, or slave B mode. Typically, two PL Smart
Transceivers interface in master/slave A mode and a PL Smart Transceiver interfaces with another microprocessor in
the slave B configuration, with the other microprocessor as the master. Handshaking is used in both modes to control
the instruction execution, and application processing is suspended for the duration of the transfer (up to 255 bytes/
transfer). Consult the Neuron C Reference Guide for detailed programming instructions.
Upon a reset condition, the master processor monitors the low transition of the handshake (HS) line from the slave,
then passes a CMD_RESYNC (0x5A) for synchronization purposes. This must be done within 0.84 seconds after
reset goes high with a PL Smart Transceiver slave running at 10MHz, to avoid a watchdog reset error condition (see
the Neuron C Programmer’s Guide). The CMD_RESYNC is followed by the slave acknowledging with a
CMD_ACKSYNC (0x07). This synchronization ensures that both processors are properly reset before data transfer
occurs. When interfacing two PL Smart Transceivers, these characters are passed automatically (refer to the flow
table illustrated later in this section). However, when using parallel I/O to interface the PL Smart Transceiver to
another microprocessor, that microprocessor must duplicate the interface signals and characters that are automatically
generated by the parallel I/O function of the PL Smart Transceiver.
For additional information, see the Parallel I/O Interface to the Neuron Chip engineering bulletin.
The timing numbers shown in this section are valid for both an explicit I/O call or an implicit I/O call through a when
clause, and are assumed to be for a PL Smart Transceiver running at 10MHz.
Master/Slave A Mode
This mode is recommended when interfacing two PL Smart Transceivers. In a master/slave A configuration, the
master drives IO8 as a chip select and IO9 to specify a read or write cycle, and the slave drives IO10 as a handshake
(HS) acknowledgment (see Figure 3.16). The maximum data transfer rate is 1 byte per 4 processor instruction cycles,
or 2.4 µs per byte at a 10MHz input clock rate. The data transfer rate scales proportionally to the input clock rate (a
master write is a slave read). Timing for the case where the PL Smart Transceiver is the master (Figure 3.17), refers to
measured output timing at 10MHz. After every byte write or byte read, the HS line is monitored by the master, to
verify the slave has completed processing (when HS = 0) and the slave is ready for the next byte transfer. This is done
automatically in PL Smart Transceiver-to-PL Smart Transceiver (master/slave A mode) data transfers. The HS line
should be pulled up (inactive) with a 10kΩ resistor to ensure proper resynch behavior after the slave resets.
Slave A timing is shown in Figure 3.18.
IO0 IO0
IO1 IO1
IO2 IO2
IO3 IO3
D0 – D7 D0 – D7
IO4 IO4
IO5 IO5
IO6 IO6
IO8 CS CS IO8
IO10 HS IO10
IO11 HS IO11
PARALLEL MASTER PARALLEL SLAVE A
CS
tmhscs
tmcspw tmcspw
tmhsv tmhsv
tmhsh tmhsh
HS
tmrws tmrwh tmrws
tmhsdv
R/W
tmrdz tmwdh
tmwdd tmwds
DATA OUT
tmrds
tmrdh
DATA IN
READ CYCLE WRITE CYCLE
CS
tsahsv tsahsv
tsacspw tsacspw
tsahsh tsahsh
HS
R/W
DATA IN
DATA OUT
READ CYCLE
WRITE CYCLE
(MASTER WRITE)
(MASTER READ)
Symbol Description Min Typ Max
tsarws R/W setup before falling edge of CS 25 ns — —
tsarwh R/W hold after rising edge of CS 0 ns — —
tsacspw CS pulse width 45 ns — —
tsahsh HS hold after rising edge of CS 0 ns — —
tsahsv HS valid after rising edge of CS — — 50 ns
tsawdd Slave A drive of DATA after rising edge of R/W (Notes 1, 2) 0 ns 5 ns —
tsawds Write data valid before falling edge of HS (Note 4) 150 ns 2 XIN —
tsawdh Write data valid after rising edge of CS (Note 4) 150 ns 2 XIN —
(Note 3)
tsardz Slave A three-state DATA after falling edge of R/W (Note 1) — — 50 ns
tsards Read data setup before rising edge of CS 25 ns — —
tsardh Read data hold after rising edge of CS 10 ns — —
Figure 3.18 Slave A Mode Timing
Notes:
1. Refer to the PL 3120 and PL 3150 Smart Transceiver Datasheet for detailed measurement information.
2. For PL Smart Transceiver-to-PL Smart Transceiver operation, bus contention (tmrdz, tsawdd) is eliminated by firm-
ware, ensuring that a zero state is present when the token is passed between the master and slave. See Parallel I/O
Interface to the Neuron Chip engineering bulletin for further information.
3. If tsarwh < 150ns, then tsawdh = tsarwh.
4. XIN represents the period of the PL Smart Transceiver input clock (100ns at 10MHz).
5. In slave A mode, the HS signal is high a minimum of 4 XIN periods. The typical time HS is high during consecu-
tive data reads or consecutive data writes is also 4 XIN periods.
Slave B Mode
The slave B mode is recommended for interfacing a PL Smart Transceiver acting as the slave to another
microprocessor acting as the master. When configured in slave B mode, the PL Smart Transceiver accepts IO8 as a
chip select and IO9 to specify whether the master will read or write, and accepts IO10 as a register select input. When
CS is asserted and either IO10 is low or IO10 is high and R/W is low, pins IO0 – IO7 form the bidirectional data bus.
When IO10 is high, R/W is high, and CS is asserted, IO0 is driven as the HS acknowledgment signal to the master.
The PL Smart Transceiver can appear as two registers in the master’s address space; one of the registers being the
read/write data register, and the other being the read-only status register. Therefore, reads by the master to an odd
address access the status register for handshaking acknowledgments and all other reads or writes access the data
register for I/O transfers. The LSB of the control register, which is read through pin IO0, is the HS bit. The master
reads the HS bit after every master read or write. The D0/HS line should be pulled up (inactive) with a 10kΩ
resistor to ensure proper resynch behavior after resets.
When acting as a slave to a different microprocessor, the PL Smart Transceiver slave B mode handles all handshaking
and token passing automatically. However, the master microprocessor must read the HS bit after each transaction and
must also internally track the token passing. This mode is designed for use with a master processor that uses memory-
mapped I/O, as the LSB of the master’s address bus is typically connected to the IO10 pin of the PL Smart
Transceiver. This is illustrated in Figures 3.19 and 3.20.
D6 CS IO8
X
R/W IO9
X D7
A0 IO10
R/W = 1 R /W = 0 R /W = 0 OR 1 IO11
OR
IO10 = 1 IO10 = 1 IO10 = 0
Figure 3.19 Parallel I/O Master/Slave B (PL Smart Transceiver as Memory-Mapped I/O Device)
MASTER CS
tsbcspw tsbcspw
tsbah
MASTER A0
tsbas tsbrwh tsbrws
MASTER R/W
tsbrws tsbrdh
LATCH tsbrds
MASTER
DATA OUT tsbwdz
tsbwdv
WRITE CYCLE tsbwdh READ CYCLE
SLAVE (MASTER READ) (MASTER WRITE)
DATA OUT
Symbol Description Min Typ Max
tsbrws R/W setup before falling edge of CS
PL 3150 and PL 3120 Smart Transceivers 0 ns — —
tsbrwh R/W hold after rising edge of CS 0 ns — —
tsbcspw CS pulse width Note 1 — —
tsbas A0 setup to falling edge of CS 10 ns — —
tsbah A0 hold after rising edge of CS 0 ns — —
tsbwdv CS to write data valid — — 50 ns
tsbwdh Write data hold after rising edge of CS (Notes 2, 3) 0 ns 30 ns —
tsbwdz CS rising edge to Slave B release data bus (Note 2) — — 50 ns
tsbrds Read data setup before rising edge of CS 25 ns — —
tsbrdh Read data hold after rising edge of CS 10 ns — —
Figure 3.20 Slave B Mode Timing
Notes:
1. The slave B write cycle (master read) CS pulse width is directly related to the slave B write data valid parameter and master read
setup parameter. To calculate the write cycle CS duration needed for a special application use:
tsbcspw = tsbwdv + master’s read data setup before rising edge of CS
Refer to the master’s specification data book for the master read setup parameter. The slave read cycle minimum CS pulse
width = 50 ns.
2. Refer to the PL 3120 and PL 3150 Smart Transceiver Datasheet for detailed measurement information.
3. The data hold parameter, tsbwdh, is measured to the disable levels shown in the PL 3120 and PL 3150 Smart Transceiver
Datasheet, rather than to the traditional data invalid levels.
4. In a slave B write cycle the timing parameters are the same for a control register (HS) write as for a data write.
5. Special applications: Both the state of CS and R/W determine a slave B write cycle. If CS can not be used for a data transfer,
then toggling the R/W line can be used with no changes to the hardware. In other words, if CS is held low during a slave B
write cycle, a positive pulse (low to high to low) on R/W can execute a data transfer. The low to high transition on R/W causes
slave B to drive data with the same timing parameters as tsbwdv (redefined R/W to write data valid). Likewise, the falling edge
of R/W causes slave B to release the data bus with the same timing limits as the CS rising edge in tsbwdz. This scenario is only
true for a slave B write cycle and is not applicable to a slave B read cycle or any slave A data transitions. This application can
be helpful if the master has separate read and write signals but no CS signal. Caution must be taken to ensure the bus is free
before transfers to avoid bus contention.
Bitshift Input/Output
Pairs of adjacent pins can be configured as serial input or output lines. The first pin of the pair can be IO0-IO6, IO8,
or IO9, and is used for the clock (driven by the PL Smart Transceiver). The adjacent higher-numbered I/O pin is then
used for up to 16 bits of serial data. The bit rate can be configured as 1kbps, 10kbps, or 15kbps at a 10MHz input
clock rate. The bit rate scales proportionally to the input clock rate. The active clock edge can be specified as either
rising or falling. This object is useful for transferring data to external logic employing shift registers. This function
suspends application processing until the operation is complete (see Figures 3.21, 3.22, and 3.23).
For bitshift input, the clock output is deasserted (to the inactive level) at the same time as the start of the first bit of
data. For bitshift output, the clock output is initially inactive prior to the first bit of data (unless overridden by a bit
output overlay).
INPUT SAMPLED
thold
tfin taet ttae
OUTPUT
CLOCK
tret
DATA IN
START OF END OF
io_in() io_in()
tsetup
tfin taet ttae
OUTPUT
CLOCK
tret
DATA OUT
START OF END OF
io_in() io_in()
I2C Input/Output
This I/O object is used to interface the PL Smart Transceiver to any device which adheres to Philips Semiconductor’s
Inter-Integrated Circuit (I2C) bus protocol. The PL Smart Transceiver is always the master, with IO8 being the serial
clock (SCL) and IO9 the serial data (SDA). Alternatively, IO0 can be used as the serial clock (SCL) and IO1 as the
serial data (SDA). These I/O lines are operated in the open-drain mode in order to accommodate the special
requirements of the I2C protocol. With the exception of two pull-up resistors, no additional external components are
necessary for interfacing the PL Smart Transceiver to an I2C device.
Up to 255 bytes of data can be transferred at a time. At the start of all transfers, a right-justified 7-bit I2C address
argument is sent out on the bus immediately after the I2C “start condition.”
For more information on this protocol, refer to Philips Semiconductor’s I2C documentation.
IO0 Clock
IO1 Serial Data
IO2
IO3
IO4
IO5
IO6
IO7
IO8
IO9
IO10
IO11
SDA SDA
SCL SCL
tchd
tclch
tdcl tf tret
TIME TIME
START OF END OF
INPUT DATA
io_in() OR io_in() OR
SAMPLED
io_out() io_out()
BIT TRANSFER TIMING START AND STOP TIMING
Parameter Description Min Typ Max
tf I/O call to start condition
io_in() — 54.6 µs —
io_out() — 43.4 µs —
tstart End of start condition
io_in() 5.4 µs — —
io_out() 5.4 µs — —
tcla End of start to start of address
io_in() 24.0 µs — —
io_out() 24.0 µs — —
tcld SCL low to data for io_out() 24.6 µs — —
tdch Data to SCL high for io_out() 7.2 µs — —
tchcl Clock high to clock low for io_out() 12.6 µs — —
tchd SCL high to data sampling for io_in() 13.2 µs — —
tdcl Data sample to SCL low for io_in() 7.2 µs — —
tclch Clock low to clock high for io_in() 24.0 µs — —
tstop Clock high to data
io_in() 12.6 µs — —
io_out() 12.6 µs — —
tret SDA high to return from function
io_in() — — 4.2 µs
io_out() — — 4.2 µs
Magcard Input
This I/O object is used to transfer synchronous serial data from an ISO 7811 Track 2 magnetic stripe card reader in
real time. The data is presented as a data signal input on pin IO9, and a clock, or a data strobe, signal input on pin IO8.
The data on pin IO9 is clocked on or just following the falling (negative) edge of the clock signal on IO8, with the
LSB first. In addition, any one of the pins IO0 – IO7 can be used as a timeout pin to prevent lockup in case of
abnormal abort of the input bit stream during the input process.
Up to 40 characters can be read at one time. Both the parity and the Longitudinal Redundancy Check (LRC) are
checked by the PL Smart Transceiver.
IO0
IO1
IO2
IO3 Timeout
IO4
IO5
IO6
IO7
IO8 Clock
IO9 Serial Data
IO10
IO11
DATA
(IO9)
thold
tsetup thigh
CLOCK
(IO8)
tclk
tlow twto
TIMEOUT
tret
tfin
TIME ttret
START OF END OF
io_in() io_in()
A PL Smart Transceiver operating at 10MHz can process a bit rate at up to 8334 bits/second (of a bit density of 75
bits/inch). This equates to a card velocity of 111 inches/second. Most magnetic card stripes contain a 15-bit sequence
of zero data at the start of the card, allowing time for the application to start the card reading function. At 8334 bits/
second, this period is about 1.8ms. If the scheduler latency is greater than the 1.8ms value, the io_in( ) function
will miss the front end of the data stream. The bit rate processing capability scales with input clock rate.
Magtrack1 Input
This input object type is used to read synchronous serial data from an ISO3554 magnetic stripe card reader. The data
input is on pin IO9, and the clock, or data strobe, is presented as input on pin IO8. The data on pin IO9 is clocked in
just following the falling edge of the clock signal on IO7, with the LSB first.
IO0
IO1
IO2
IO3 Timeout
IO4
IO5
IO6
IO7
IO8 Clock
IO9 Serial Data
IO10
IO11
SDA
(IO9)
thold
tsetup thigh
CLOCK
(IO8)
tlow twto
tclk
TIMEOUT
tret
tfin ttret
TIME
START OF END OF
io_in() io_in()
The minimum period for the entire bit cycle (tclk) is greater than the sum of t low and t high. The tsetup and t hold
times should be such that the data is stable for the duration of tlow.
Data are recognized in the IATA format as a series of 6-bit characters plus an even parity bit per character. The
process begins when the start sentinel (hex 05) is recognized, and continues until the end sentinel (0x0F) is
recognized. No more than 79 characters, including the 2 sentinels and the LRC character, will be read. The data is
stored as right-justified bytes in the buffer space pointed to by the buffer pointer argument in the io_in()
function with the parity stripped, and includes the start and end sentinels. This buffer should be 78 bytes long.
The magtrack1 input object optionally uses one of the I/O pins IO0 – IO7 as a timeout/abort pin. Use of this feature is
suggested because the io_in() function will update the watchdog timer during clock wait states, and could
result in a lockup if the card were to stop moving in the middle of the transfer process. If a logic 1 level is
detected on the I/O timeout pin, the io_in() function will abort. This input can be a oneshot timer counter
output, an R/C circuit, or a DATA_VALID signal from the card reader.
A PL Smart Transceiver with a clock rate of 10MHz can process an incoming bit rate of up to 7246 bits/second when
the strobe signal has a 1/3 duty cycle (thigh = 46µs, tlow = 92µs). At a bit density of 210 bits/inch, this translates
to a card speed of 34.5 inches/second. The bit rate processing capability scales with PL Smart Transceiver
input clock rate.
IO0
IO1
IO2
IO3 Timeout
IO4
IO5
IO6
IO7
IO8 Clock
IO9 Serial Data
IO10
IO11
IO0 IO0
IO1 IO1
IO2 IO2
IO3 Select Timeout IO3
IO4 IO4
IO5 IO5
IO6 IO6
IO7 IO7
IO8 Clock Clock IO8
IO9 Data Out Data Out IO9
IO10 Data In Data In IO10
IO11 IO11
thold
tsetup
thigh tlow
CLOCK
DATA OUT
DATA IN
INPUT SAMPLED
tfin
tcs_clock tclock_cs
CLOCK
tret
SELECT
START OF END OF
io_in() OR io_out() io_in() OR io_out()
In Neurowire slave mode, pin IO8 is the clock (driven by the external master), IO9 is the serial data output, and IO10
is the serial data input. Serial data is clocked out on pin IO9 at the same time as data is clocked in from pin IO10. Data
is clocked by the rising edge of the clock signal (default), which can be up to 18kbps at 10MHz. This data rate scales
with PL Smart Transceiver input clock rate. The invert keyword changes the active clock edge to negative. One of
the IO0 – IO7 pins can be designated as a timeout pin. A logic 1 level on the timeout pin causes the Neurowire slave
I/O operation to be terminated before the specified number of bits has been transferred. This prevents the PL Smart
Transceiver watchdog timer from resetting the chip in the event that fewer than the requested number of bits are
transferred by the external clock (see Figure 3.30).
tret
tfin tcklo tcklodo
tdocki
INPUT
CLOCK
DATA OUT
DATA IN
TIME
The algorithm for each bit of output/input for the Neurowire slave objects is described below. In this description, the
default active clock edge (positive) is assumed; if the invert keyword is used, all clock levels stated should be
reversed.
1. Set IO9 to the next output bit value.
2. Test pin IO8, the clock input, for a high level. This is the test for the rising edge of the input clock. If the input
clock is still low, sample the timeout event pin and abort if high.
3. When the input clock is high, store the next data input bit as sampled on pin IO10.
4. Test the input clock for a low input level. This is the test for the falling edge of the input clock. If the input clock
is still high, sample the timeout event pin and abort if high.
5. When the input clock is low, return to step 1 if there are more bits to be processed.
6. Else return the number of bits processed.
When either clock input test fails (that is, the clock is sampled before the next transition), there is an additional
timeout check time of 19.8µs (wait for clock high) or 19.2µs (wait for clock low) added to that stage of the
algorithm.
The chip select logic for the Neurowire slave can be handled by the user through a separate bit input object, along
with an appropriate handshaking algorithm implemented by the user application program. In order to prevent
unnecessary timeouts, the setup and hold times of the chip select line, relative to the start and end of the external
clock, must be satisfied.
The timeout input pin can either be connected to an external timer or to an output pin of the PL Smart Transceiver that
is declared as a oneshot object.
Serial Input/Output
The Serial I/O object is still provided for legacy support. Echelon recommends using the SCI (UART) instead of the
legacy software I/O object (See SCI (UART) Input/Output section). The hardware UART provides much higher
performance with lower software overhead.
Pin IO8 can be configured as an asynchronous serial input line, and pin IO10 can be configured as an asynchronous
serial output line. The bit rates for input and for output can be independently specified to be 600, 1200, 2400, or 4800
bits/second at a 10MHz input clock rate. The data rate scales proportionally to the input clock rate.
The frame format is fixed at 1 start bit, 8 data bits, and 1 stop bit; and up to 255 bytes can be transferred at a time.
Either a serial input or a serial output operation (but not both) can be in effect at any one time. The interface is half-
duplex only. This function suspends application processing until the operation is completed. On input, the io_in()
request will time out after 20 character times if no start bit is received. If the stop bit has the wrong polarity (it
should be a 1), the input operation is terminated with an error. The application code can use bit I/O pins for
flow control handshaking if required. This function is useful for legacy applications that transfer data to serial
devices such as terminals, modems, and computer serial interfaces (see Figures 3.31 and 3.32).
IO0
IO1
IO2
IO3
IO4
IO5
IO6
IO7
IO8 Serial Input
IO9
IO10 Serial Output
IO11
DATA
START
START
STOP
1 2 3 4 5 6 7 8
SERIAL
INPUT
The duration of this function call is a function of the number of data bits transferred and the transmission bit rate. tfin
(max) refers to the maximum amount of time this function will wait for a start bit to appear at the input. After
this time, the function will return a 0 as data. tfin (min) is the time to the first sampling of the input pin. As an
example, the timeout period at 2400 bits/second is (20 x 10 x 1/2400) + tfin (min).
DATA
START
START
STOP
1 2 3 4 5 6 7 8
SERIAL
OUTPUT
The duration of this function call is a function of the number of data bits transferred and the transmission bit rate. As
an example, to output 100 bytes at 300 bits/second would require a time duration of (100 x 10 x 1/300) + tfout + tret.
Touch Input/Output
The Touch I/O object enables easy interface to any slave device which adheres to Dallas Semiconductor’s 1-Wire®
Memory standard. This interface is a one-wire, open-drain, bidirectional connection.
Up to eight 1-Wire Memory busses can be connected to a PL Smart Transceiver through the use of the first eight I/O
pins, IO0 – IO7. The only additional component required for this is a pull-up resistor on the data line (refer to the 1-
Wire Memory specification below on how to select the value of the pull-up resistor). The high current sink
capabilities of IO0 – IO3 pins of the PL Smart Transceiver can be used in applications where long wire lengths are
required between the 1-Wire Memory device and the PL Smart Transceiver.
The slave acquires all necessary power for its operation from the data line. Upon physical connection of a 1-Wire
Memory device to a master (in this case the PL Smart Transceiver), the 1-Wire Memory generates a low presence
pulse to inform the master that it is awaiting a command. The PL Smart Transceiver can also request a presence pulse
by sending a reset pulse to the 1-Wire Memory device.
Commands and data are sent bit by bit to make bytes, starting with the LSB. The synchronization between the PL
Smart Transceiver and the 1-Wire Memory devices is accomplished through a negative-going pulse generated by the
PL Smart Transceiver.
Figure 3.33 shows the details of the reset pulse in addition to the read/write bit slots.
Note: NodeBuilder version 3.1 and later will feature the ability to adjust the tlow, twrd, and trdi timing values.
IO0
IO1 LINE TYPE LEGEND
IO2 PL Smart Transceiver
IO3
IO4 1-Wire Memory
IO5 tf
IO6 PULL-UP RESISTOR tlow
IO7
IO8 WRITE 1 DATA LINE
IO9
IO10
IO11 tibd
twrd
High Current Sink Drivers
RESET WRITE 0 DATA LINE
AND
PRESENCE tpdl
trsto tpd trret trdi
trstl twh READ DATA LINE
DATA LINE
tret
TIME
TIME
START OF io_in() INPUT END OF NEXT
START OF INPUT END OF OR io_out() SAMPLED io_in() OR io_in() OR
touch_reset() SAMPLED touch_reset() io_out() io_out()
The leveldetect input object can be used for detection of asynchronous attachments of 1-Wire Memory devices to the
PL Smart Transceiver. In such a case, the leveldetect input object is overlaid on top of the Touch I/O object. Refer to
the Neuron C Programmer’s Guide for information on I/O object overlays.
The Touch I/O object can run at PL Smart Transceiver clock rates of 6.5536MHz and 10MHz only. This is because
the Touch I/O object is designed to meet the 1-Wire Memory timing specification at those PL Smart Transceiver
clock speeds only.
For more specific information on the mechanical, electrical, and protocol specifications, refer to the 1-Wire device
information available from Dallas Semiconductor Corporation.
Wiegand Input
This input object provides an easy interface to any card reader supporting the Wiegand standard. Data from the reader
is presented to the PL Smart Transceiver through the use of two of its first eight I/O pins, IO0 – IO7. Up to four
Wiegand devices can be connected to the PL Smart Transceiver. Data is read MSB first.
Wiegand data starts as a negative-going pulse on one of the two pins selected. One input represents a logical 0 bit and
the other pin a logical 1, as selected through the I/O declaration. The bit data on the two lines are mutually exclusive
and are spaced at least 150µs apart. Figure 3.34 shows the timing relationship of the two data lines with respect
to each other and the PL Smart Transceiver.
Any unused I/O pin from IO0 to IO7 can be optionally selected as the timeout pin. When the timeout pin goes high,
the function aborts and returns. The application processor’s watchdog timer is automatically updated during the
operation of this input object.
Incoming data on any of the Wiegand input pins is sampled by the PL Smart Transceiver every 200ns at a 10MHz
clock (scales inversely with the clock frequency). because the Wiegand data is usually asynchronous, care must be
taken in the application program to ensure that this function is called in a timely manner in order that no incoming
data is lost.
IO0
IO1
IO2
IO3
IO4
IO5
IO6
IO7
IO8
IO9
IO10
IO11
Optional Pull-Up Resistors
tdw
DATA A
tibd
DATA B
tfin
ttow
TIMEOUT
ttret
tret
TIME
START OF END OF
io_in() io_in()
transfers are also supported for full-duplex transfers. No errors are introduced (other than inter-byte spacing of
transmitted data) under these conditions.
For 6.5536MHz operation, the bit rates are limited to a maximum of 19200 bits per second for both half and full-
duplex transfers.
The frame format is one start bit, eight data bits and one or two stop bits. Up to 255 output bytes and 255 input bytes
can be transferred at a time. If an input stop bit has the wrong polarity, the interface will attempt to recover and re-
synchronize. However, a framing error will be flagged in the status register. If necessary, the application code can use
other bit I/O pins for flow-control handshaking.
This I/O model depends on interrupts to receive data at high speed. Once reception has be set up, control will be
returned to the application immediately and the application will need to poll the I/O model for reception completion.
Reception can be suspended and resumed by disabling and enabling interrupts. Turning off interrupts might be
required when going off-line, or for ensuring that other time-critical application execution is not disturbed by
background interrupts. Additionally, SCI reception can also be aborted. Note that sustained reception at 115,200bps
can starve the application processor. Care must be given to allow the PL Smart Transceiver to process received bytes
in a timely manner and update the watchdog timer.
However, data transmission is NOT handled by interrupts; control will be returned to the application only after the
last byte has been placed in the transmission shift register. It is important to note that if previously set up, reception
interrupts will work even while transmission is taking place. This provides a full duplex interface.
IO0
IO1
IO2
IO3
IO4
IO5
IO6
IO7
IO8 SCI Input
IO9
IO10 SCI Output
IO11
DATA
START
START
STOP
1 2 3 4 5 6 7 8
SCI
INPUT
ONE FRAME
SPI Input/Output
Pins IO8, IO9 and IO10 can be configured as a serial peripheral interface (SPI) port. The directions of the pins vary
with the configuration. In master mode, pin IO8 is the clock (driven by the PL Smart Transceiver), IO9 is serial data
input (Master In Slave Out or MISO) and IO10 is serial data output (Master Out Slave In or MOSI). In slave mode,
pin IO8 is the clock input, IO9 is serial data output (MISO) and IO10 is serial data input (MOSI). If the Neurowire
keyword is used, the pins assume a Neurowire compatible direction in which IO9 is always output and IO10 is always
input. Serial data is clocked out on the output pin at the same time as it is clocked in on the input pin. In SPI master
mode, no other masters are allowed on the bus. IO7 can be used as a select pin in slave mode, allowing the PL Smart
Transceiver to coexist with other slave mode devices on a 3 wire bus. A logic one level on the select line disables the
output drivers of the output pins and puts them in a high impedance state.
If the PL Smart Transceiver is the only slave device on the SPI bus and the master device does not drive the Slave
Select (SS) signal, then either
Pin IO7 should be declared as an input pin and externally grounded.
OR
Pin IO7 must be declared in the following order:
IO_7 output bit io_p7_out = 1; // initialize to '1'
IO_7 input bit io_p7_in;
As long as the IO7 output bit is initialized to a 1 and the SS is disabled, IO7 can be used as an input. Note that SS
should be used whenever possible to ensure proper synchronization and recovery in the event of framing errors from
the master device.
The bit rates supported by the SPI port are summarized in Tables 3.6 and 3.7
Table 3.6 Master mode
Clock 10MHz 6.5536MHz
7 19.531kbps 12.8kbps
6 39.063kbps 25.6kbps
5 78.125kbps 51.2kbps See Note
4 156.250kbps 102.4kbps See Note
3 312.500kbps 204.8kbps See Note
2 625.000kbps 409.6kbps See Note
1 1250.000kbps 819.2kbps See Note
0 2500.000kbps 1638.4kbps See Note
Note: For Clock 5 and higher bit rates, the bit rate shown is the peak rate. The data is burst out in pairs of bytes and
the overall average data rate is limited to approximately 40kbps and 25kbps for 10MHz and 6.5536MHz input clocks,
respectfully.
Table 3.7 Slave mode
10MHz 6.5536MHz
Max burst rate 1250kbps 819.2kbps
Max burst size 2 bytes 2 bytes
Min burst spacing 400us 640us From start of one burst
to next.
Max sustained data 40kbps 25kbps
rate
Sustained reception in slave mode at maximum bit rate can starve the application processor and cause overruns and
presents a possible risk of watchdog timeout. Care must be given to allow the PL Smart Transceiver to process
received bytes in a timely manner. Master mode has no such restriction because the PL Smart Transceiver regulates
the data transfer.
The clockedge and invert keywords are used to determine the point at which data is sampled and the idle level
of the clock signal. The clock signal is idle at the logic 1 level. The invert keyword could be used to change the
idle state to correspond to a logic 0 level. Common SPI implementations use the terms clock phase (CPHA) and
clock polarity (CPOL) to determine the behavior of the clock signal during SPI transmissions. These terms relate
directly to the clockedge and invert keywords used in this data book as follows:
CPHA
1 = clockedge(+)
0 = clockedge(-)
CPOL
1 = [default]
0 = invert
The active edge of the clock is determined by the clockedge and invert keywords. If the clock signal is idle at
logic 1 (default), then clockedge(-) indicates that the falling edge of the clock signal is active. If the invert
keyword is used, the rising edge of the clock signal would be active (see Figures 3.36 and 3.37).
[default] (CPOL = 1)
Invert (CPOL = 0)
Present bit
Sample bit
SS
[default] (CPOL = 1)
invert (CPOL = 0)
Present bit
Sample bit
SS
Up to 255 bytes can be bi-directionally transferred at a time. This I/O model depends on interrupts to process data at
high speed and does not use the io_in() and io_out() function calls. Once transfer is initiated, control will be
returned to the application immediately and the application will need to poll the I/O model for completion. Transfers
can be suspended and resumed by disabling and enabling interrupts. Turning off interrupts might be required when
going off-line, or for assuring that other time-critical application execution is not disturbed by background interrupts.
Additionally, transfers can also be aborted.
IO0 IO0
IO1 IO1
IO2 IO2
IO3 IO3
IO4 IO4
IO5 IO5
IO6 IO6
IO7 IO7
IO11 IO11
Select
Tsc
Tck
Clock
(invert for
clockedge+
or
invert=true)
Tdoc
Tcdo
Data Out
Data In
Tdis
Tdih
IO0
IO1
IO2
IO3
IO4
IO5
IO6
IO7 Select
IO8 Clock
IO9 Data Out
IO10 Data In
IO11
SPI Slave
Select
Tsc
Tck
Clock
(invert for
clockedge- or
invert=true)
Tdoc
Tcdo
Data Out
Data In
Tdis
Tdih
tfin tret
INPUT
SIGNAL
(event)
Example of a
when statement
evaluating true
(unless it is the
first event) TIME
INPUT
Example of a SIGNAL
when statement
missing a present
event but evalu-
ating a previous TIME
event
START START OF END OF
TIMER/ io_in() io_in()
COUNTER
STOP TIMER/COUNTER
READ TIMER/COUNTER FLAG AND REG- SET FLAG LOAD NEW VALUE
ISTER FROM THE PREVIOUS EVENT INTO REGISTER
Figure 3.40 Example of when Statement Processing Using the Ontime Input Function
Dualslope Input
This input object uses a timer/counter to control and measure the integration periods of a dualslope integrating analog
to digital converter (see Figure 3.41). The timer/counter provides the control output signal and senses a comparator
output signal. The control output signal controls an external analog multiplexer which switches between the unknown
input voltage and a voltage reference. The timer/counter’s input pin is driven by an external comparator which
compares the integrator’s output with a voltage reference. At the end of conversion, the external comparator will
drive a low level to one of pins IO4 – IO7. If external circuitry indicates “end of conversion” with a high level, use
the invert keyword in the I/O declaration.
The resolution and range of the timer/counter period options is shown by Table 3.8 in the Notes section at the end of
this chapter.
IO0
Timer/Counter 1 Control Output
IO1
IO2
Timer/Counter 2 IO3
IO4
IO5 From
mux
IO6 Comparator
IO7
IO8
IO9
IO10
IO11
INPUT COMPARATOR
(IO4 TO IO7) OUTPUT
INTEGRATOR
OUTPUT
Vthresh
treqo tfin
TIME
Edgelog Input
The edgelog input object can record a stream of input pulses measuring the consecutive low and high periods at the
input and storing them in user-defined storage (see Figure 3.42). The values stored represent the units of clock period
between rising and falling input signal edges. Both timer/counters of the PL Smart Transceiver are used for this
object.
The measurement series starts on the first rising (positive) edge, unless the invert keyword is used in the I/O
object declaration. The measurement process stops whenever an overflow condition is sensed on either timer/
counter.
The resolution and range of the timer/counter period options are shown in Table 3.8 in the Notes section at the end of
this chapter. This object is useful for analyzing an arbitrarily-spaced stream of input edges (or pulses), such as the
output of a UPC bar-code reader or infrared receiver.
IO0
Timer/Counter 1 IO1
IO2
IO3
Timer/Counter 2 Input
IO4 Bit Stream
IO5
IO6
IO7
IO8
IO9
IO10
IO11
twin
twtcp
INPUT
(IO4)
tsetup tret
thold toret
TIME
START OF END
OVERFLOW
io_in() OF io_in()
Note: T/C clk represents the period of the clock used during the declaration of the I/O object.
Infrared Input
The infrared input object is used to capture a stream of data generated by a class of infrared remote control devices
(see Figure 3.43). The input to the object is the demodulated series of bits from infrared receiver circuitry. The period
of the on/off cycle determines the data bit value, a shorter cycle indicating a one, and a longer cycle indicating a zero.
The actual threshold for the on/off determination is set at the time of the call of the function. The measurements are
made between the negative edges of the input bits unless the invert keyword is used in the I/O declaration.
The infrared input object, based on the input data stream, generates a buffer containing the values of the bits received.
The resolution and range of the timer/counter period options is shown in Table 3.8 in the Notes section at the end of
this chapter.
This function can be used with an off-the-shelf IR demodulator such as an NEC µPD1913 or Sharp GP1U50X to
quickly develop an infrared interface to the PL Smart Transceiver. The edgelog input object can also be used
for this purpose. However, this requires more code.
IO0
Timer/Counter 1
IO1
IO2
Timer/Counter 2 IO3
IO4
IO5 Input
mux Data Stream
IO6
IO7
IO8
IO9
IO10
IO11
twin (1 BIT)
INPUT
(IO0 TO IO7)
tfin tret
TIME
START OF END OF
io_in() io_in()
Ontime Input
A timer/counter can be configured to measure the time for which its input is asserted. Table 3.8 shows the resolution
and maximum times for different I/O clock selections. Assertion can be defined as either logic high or logic low. This
object can be used as a simple analog-to-digital converter with a voltage-to-time circuit, or for measuring velocity by
timing motion past a position sensor (see Figures 3.40 and 3.44).
IO0
IO1 Event Register
IO2
IO3 Timer/Counter 2
IO4
IO5 mux
IO6 Timer/Counter 1
IO7
IO8 Event Register
IO9 System Clock
IO10 Divide Chain
IO11
This is a level-sensitive function. The active level of the input signal gates the clock driving the internal counter in the
PL Smart Transceiver.
The actual active level of the input depends on whether or not the invert option was used in the declaration of the
function block. The default is the high level.
Period Input
A timer/counter can be configured to measure the period from one rising or falling edge to the next corresponding
edge on the input. Table 3.8 shows the resolution and maximum time measured for various clock selections. This
object is useful for instantaneous frequency or tachometer applications. Analog-to-digital conversion can be
implemented using a voltage-to-frequency converter with this object (see Figure 3.45).
IO0
IO1 Event Register
IO2
IO3 Timer/Counter 2
IO4
IO5 mux
IO6 Timer/Counter 1
IO7
IO8 Event Register
IO9 System Clock
IO10 Divide Chain
IO11
IN-
TIME
*If the measurement is new, tret = 52µs. If a new time is not being returned, tret = 22µs.
This is an edge-sensitive function. The clock driving the internal counter in the PL Smart Transceiver is free running.
The detection of active input edges stops and resets the counter each time.
The actual active edge of the input depends on whether or not the invert option was used in the declaration of the
function block. The default is the negative edge.
Because the period function measures the delay between two consecutive active edges, the invert option has no
effect on the returned value of the function for a repeating input waveform.
Pulsecount Input
A timer/counter can be configured to count the number of input edges (up to 65,535) in a fixed time (0.8388608
second) at all allowed input clock rates. Edges can be defined as rising or falling. This object is useful for average
frequency measurements, or tachometer applications (see Figure 3.46).
IO0
IO1 Event Register
IO2
IO3 Timer/Counter 2
IO4
IO5 mux
IO6 Timer/Counter 1
IO7
IO8 Event Register
IO9 System Clock
IO10 Divide Chain
IO11
0.84 s
START STOP
START OF READ END OF
io_in() TIMER/ io_in()
COUNTER
FLAG AND
EVENT
REGISTER
CLEAR FLAG
Reference Figure 3.40
This is an edge-sensitive function. The clock driving the internal counter in the PL Smart Transceiver is the actual
input signal. The counter is reset automatically every 0.839 second.
The internal counter increments with every occurrence of an active input edge. Every 0.839 second, the content of the
counter is saved and the counter is then reset to 0. This sequence is repeated indefinitely.
The actual active edge of the input depends on whether or not the invert option was used in the declaration of the
function block. The default is the negative edge.
Quadrature Input
A timer/counter can be configured to count transitions of a binary Gray code input on two adjacent input pins. The
Gray code is generated by devices such as shaft encoders and optical position sensors which generate the bit pattern
(00,01,11,10,00, …) for one direction of motion and the bit pattern (00,10,11,01,00, …) for the opposite direction.
Reading the value of a quadrature object gives the arithmetic net sum of the number of transitions because the last
time it was read (-16,384 to 16,383). The maximum frequency of the input is one-quarter of the input clock rate, for
example 2.5MHz with a 10MHz PL Smart Transceiver input clock. Quadrature devices can be connected to timer/
counter 1 via pins IO6 and IO7, and timer/counter 2 via pins IO4 and IO5 (see Figure 3.47). If the second input
transitions low while the first input is low and high while the first input is high, the counter counts up. Otherwise, the
count is down.
IO0
IO1
IO2 Event Register
IO3
IO4
Timer/Counter 2
IO5
IO6 Timer/Counter 1
IO7
IO8
IO9 Event Register
IO10
IO11
INPUT 1
INPUT 2
A call to this function returns the current value of the quadrature count because the last read operation. The counter is
then reset and ready for the next series of input transitions. The count returned is a 16-bit signed binary number,
capped at ±16K.
The number shown in the diagram above is the minimum time allowed between consecutive transitions at either input
of the quadrature function block. For more information, see the, Neuron Chip Quadrature Input Function Interface
engineering bulletin.
Totalcount Input
A timer/counter can be configured to count either rising or falling input edges, but not both. Reading the value of a
totalcount object gives the number of transitions because the last time it was read (0 to 65,535). Maximum frequency
of the input is one-quarter of the input clock rate, for example 2.5MHz at a maximum of 10MHz PL Smart
Transceiver input clock. This object is useful for counting external events such as contact closures, where it is
important to keep an accurate running total (see Figure 3.48).
IO0
IO1 Event Register
IO2
IO3
Timer/Counter 2
IO4
IO5
mux
IO6 Timer/Counter 1
IO7
IO8
Event Register
IO9
IO10
IO11
A call to this function returns the current value of the totalcount value corresponding to the total number of active
clock edges because the last call. The counter is then reset, and ready for the next series of input transitions.
The actual active edge of the input depends on whether or not the invert option was used in the declaration of the
function block. The default is the negative edge.
Edgedivide Output
This output object acts as a frequency divider by providing an output frequency on either pin IO0 or IO1. The output
frequency is a divided-down version of the input frequency applied on pins IO4 – IO7. The object is useful for any
divide-by-n operation, where n is passed to the timer/counter object through the application program and can be from
1 to 65,535. The value of 0 forces the output to the off level and halts the timer/counter.
A new divide value will not take effect until after the output toggles, with two exceptions: if the output is initially
disabled, the new (non-zero) output will start immediately after tfout; or, for a new divide value of 0, the output is
disabled immediately.
Normally the negative edges of the input sync pulses are the active edge. Using the invert keyword in the object
declaration makes the positive edge active.
The initial state of the output pin is logic 0 by default. This can also be changed to logic 1 through the object
declaration.
Figure 3.49 shows the pinout and timing information for this output object.
IO0
Timer/Counter 1 Output
IO1
IO2
Timer/Counter 2 IO3
IO4
IO5 Sync
mux
IO6 Input
IO7
IO8
IO9
IO10
IO11
tsod
OUTPUT
SYNC INPUT
tfout
twin
tret tfod
TIME
Frequency Output
A timer/counter can be configured to generate a continuous square wave of 50% duty cycle. Writing a new frequency
value to the device takes effect at the end of the current cycle. This object is useful for frequency synthesis to drive an
audio transducer, or to drive a frequency to voltage converter to generate an analog output (see Figure 3.50).
.
IO0
Timer/Counter 1
IO1
IO2
Timer/Counter 2 IO3
IO4
IO5
IO6
IO7
System Clock IO8
Divide Chain
IO9
IO10
IO11
A new frequency output value will not take effect until the end of the current cycle. There are two exceptions to this
rule. If the output is disabled, the new (non-zero) output will start immediately after tfout. Also, for a new output value
of zero, the output is disabled immediately and not at the end of the current cycle.
A disabled output is a logic zero by default unless the invert keyword is used in the I/O object declaration. The
resolution and range for this object scale with PL Smart Transceiver input clock rate.
IO0
Timer/Counter 1
IO1
IO2
Timer/Counter 2 IO3
IO4
IO5
IO6
IO7
System Clock IO8
Divide Chain
IO9
IO10
IO11
Oneshot Output
A timer/counter can be configured to generate a single pulse of programmable duration. The asserted state can be
either logic high or logic low. Retriggering the oneshot before the end of the pulse causes it to continue for the new
duration. Table 3.8 in the Notes section at the end of this chapter gives the resolution and maximum time of the pulse
for various clock selections. This object is useful for generating a time delay without intervention of the application
processor (see Figure 3.52).
IO0
Timer/Counter 1
IO1
IO2
Timer/Counter IO3
IO4
IO5
IO6
IO7
System Clock IO8
Divide Chain
IO9
IO10
IO11
tfout tfout
T
T tjit
ONESHOT
OUTPUT
tret
TIME
START
HARDWARE
OF 1ST
UPDATE/
io_out() START RETRIGGER
HARDWARE END OF 2ND
UPDATE OF io_out()
io_out()
T = User-defined oneshot output period
Pulsecount Output
A timer/counter can be configured to generate a series of pulses. The number of pulses output is in the range 0 to
65,535, and the output waveform is a square wave of 50% duty cycle. This function suspends application processing
until the pulse train is complete. The frequency of the waveform can be one of eight values given by Table 3.9 in the
Notes section at the end of this chapter with clock select values of 0 through 7. This object is useful for external
counting devices that can accumulate pulse trains, such as stepper motors (see Figure 3.53).
IO0
Timer/Counter 1
IO1
IO2
Timer/Counter 2 IO3
IO4
IO5
IO6
IO7
System Clock IO8
Divide Chain
IO9
IO10
IO11
tfout tret
Typ @
Symbol Description 10MHz
tfout Function call to first active output pulse edge 115 µs
tret Return from function 5 µs
The return from this function does not occur until all output pulses have been produced.
tfout is the time from function call to first output pulse. Therefore, the calling of this function ties up the
application processor for a period of N x (pulse period) + tfout + tret, where N is the number of specified output
pulses.
The polarity of the output depends on whether or not the invert option was used in the declaration of the function
block. The default is low with high pulses.
Pulsewidth Output
A timer/counter can be configured to generate a pulsewidth modulated repeating waveform. In pulsewidth short
function, the duty cycle ranges from 0% to 100% (0/256 to 255/256) of a cycle in steps of about 0.4% (1/256). The
frequency of the waveform can be one of eight values given by Table 3.9.
In pulsewidth long function, the duty cycle ranges from 0% to almost 100% (0/65,536 to 65,535/65,536) of a cycle in
steps of 15.25 ppm (1/65,536). The frequency of the waveform can be one of eight values given by Table 3.10 in the
Notes section at the end of this chapter. The asserted state of the waveform can be either logic high or logic low.
Writing a new pulsewidth value to the device takes effect at the end of the current cycle. A pulsewidth modulated
signal provides a simple means of digital-to-analog conversion (see Figure 3.54).
IO0
Timer/Counter 1
IO1
IO2
Timer/Counter 2 IO3
IO4
IO5
IO6
IO7
System Clock IO8
Divide Chain
IO9
IO10
IO11
tfout
PULSEWIDTH
OUTPUT
tret
TIME
Typ @
Symbol Description 10MHz
tfout Function call to output update 101 µs
tret Return from function 13 µs
The new output value will not take effect until the end of the current cycle. There are two exceptions to this rule. If
the output is disabled, the new (non-zero) output will start immediately after tfout. Also, for a new output value of
zero, the output is disabled immediately and not at the end of the current cycle.
A disabled output is a logic 0 by default unless the invert keyword is used in the I/O object declaration.
Triac Output
On the PL Smart Transceiver, a timer/counter can be configured to control the delay of an output signal with respect
to a synchronization input. This synchronization can occur on the rising edge, the falling edge, or both the rising and
falling edges of the input signal. For control of AC circuits using a triac device, the sync input is typically a zero-
crossing signal, and the pulse output is the triac trigger signal. Table 3.8 shows the resolution and maximum range of
the delay (see Figure 3.55).
The output gate pulse is gated by an internal clock with a constant period of 25.6µs at 10MHz (39.062µs at
6.5536MHz). because the input trigger signal (zero crossing) is asynchronous relative to this internal clock,
there is a jitter, tjit, associated with the output gate pulse.
The actual active edge of the sync input and the triac gate output can be set by using the clockedge or invert
parameters, respectively.
to
Timer/Counter 1 IO0 trigger
triac
IO1 output
IO2 gate
Timer/Counter 2 IO3
IO4 from
mux
IO5 sync zero
IO6 crossing
IO7 detector
System Clock
IO8
Divide Chain
IO9
IO10
IO11
AC tgpw AC tgpw
INPUT INPUT
ZERO ZERO
CROSSING CROSSING
DETECTOR DETECTOR
tjit tjit
TRIAC
TRIAC GATE
GATE
(OUTPUT)
(OUTPUT)
tret tret
TIME TIME
The hardware update does not happen until the occurrence of an external active sync clock edge. The internal timer is
then enabled and a triac gate pulse is generated after the user-defined period has elapsed. This sequence is repeated
indefinitely until another update is made to the triac gate pulse delay value.
tfout (min) refers to the delay from the initiation of the function call to the first sampling of the sync input. In
the absence of an active sync clock edge, the input is repeatedly sampled for 10ms (1/2 wave of a 50Hz line
cycle time), tfout (max), during which the application processor is suspended.
The output gate pulse is gated by an internal clock with a constant period of 25.6µs at 10MHz (39.062µs at
6.5536MHz). because the input trigger signal (zero crossing) is asynchronous relative to this internal clock,
there is a jitter, tjit, associated with the output gate pulse.
The actual active edge of the sync input and the triac gate output can be set by using the clockedge or invert
parameters, respectively.
Timer/Counter 1 IO0
Control Output
IO1
IO2
Timer/Counter 2 IO3
IO4
mux IO5
Count Input
IO6
IO7
IO8
IO9
IO10
IO11
tfout tcod
OUTPUT
SYNC
INPUT
tret
TIME
The active output level depends on whether or not the invert option was used in the declaration of the function
block. The default is high.
Notes
Various combinations of I/O pins can be configured as basic inputs or outputs. The application program can
optionally specify the initial values of basic outputs. Pins configured as outputs can also be read as inputs, returning
the value last written.
The gradient behavior of the timing numbers for different PL Smart Transceiver pins for some of the I/O objects is
due to the shift-and-mask operation performed by the Neuron firmware.
For dualslope input, edgelog input, ontime input, and period input, the timer/counter returns a value (or a table of
values, in the case of edgelog input) in the range 0 to 65,535, representing elapsed times from 0 up to the maximum
range given in Table 3.8.
For ontime input, period input, dualslope, edgelog, and infrared; the timer/counter returns a number in the range 0 to
65,535, representing elapsed times from 0 up to the maximum range given in Table 3.8.
For oneshot output, frequency output, and triac output; the timer/counter can be programmed with a number in the
range 0 to 65,535. This number represents the waveform ontime for oneshot output, the waveform period for
frequency output, and the control period from sync input to pulse/level output for the triac output. Table 3.8 gives the
range and resolution for these timer/counter objects at 10MHz. The clock select value is specified in the declaration
of the I/O object in the Neuron C application program, and can be modified at runtime.
Table 3.8 Timer/Counter Resolution and Maximum Range
Oneshot and Triac Outputs;
Dualslope, Edgelog, Ontime,
and Period Inputs Frequency Output
Maximum Maximum
Resolution Range Resolution Range
Clock Select (µs) (ms) (µs) (ms)
0 0.2 13.1 0.4 26.2
1 0.4 26.2 0.8 52.4
2 0.8 52.4 1.6 105
3 1.6 105 3.2 210
4 3.2 210 6.4 419
5 6.4 419 12.8 838
6 12.8 839 25.6 1,678
7 25.6 1,678 51.2 3,355
Note: This table is for a 10MHz input clock. Scale appropriately for other clock rates:
Resolution (µs) = 2(Clock Select + n)/(Input Clock in MHz)
Maximum Range (µs) = 65535 x Resolution (µs) x n
n = 1 for oneshot and triac output, and dualslope, edgelog, ontime, and period input
n = 2 for frequency output.
For pulsewidth short output and pulsecount output, Table 3.9 gives the possible choices for pulsetrain repetition
frequencies. Pulsecount can not be used with clock select 0.
This table is for 10MHz input clock. Scale appropriately for other clock rates:
Period (µs) = 512 x 2Clock Select / (Input Clock in MHz)
Frequency (Hz) = 1,000,000 / Period (µs).
For pulsewidth long output, the table below gives the possible choices for pulsetrain repetition frequencies.
Table 3.10 Timer/Counter Pulsetrain Output
Frequency Period
Clock Select (Hz) (ms)
0 76.3 13.1
1 38.1 26.2
2 19.1 52.4
3 9.54 105
4 4.77 210
5 2.38 419
6 1.19 839
7 0.60 1,678
This table is for 10MHz input clock. Scale appropriately for other clock rates:
Period (ms) = 131.072 x 2Clock Select / (Input Clock in MHz)
Frequency (Hz) = 1,000 / Period (ms)
As with all CMOS devices, floating I/O pins can cause excessive current consumption. To avoid this, declare all
unused I/O pins as bit output. Alternatively, unused I/O pins can be connected to + VDD5 or GND.
Coupling Circuits
Introduction
This chapter includes a technical discussion about the means by which the PL 3120 or 3150 Power Line Smart
Transceiver communication signals are coupled to power mains. Coupling circuit designs, including schematics and
electrical safety issues, are included.
L2 L1
RX
TX
RX TX
Attenuation is most easily understood in terms of a voltage-divider circuit formed by the output impedance of the
transmitter, the impedance of the various mains circuit branches, and any loads present on the mains branch circuits.
At the communication frequencies of the PL Smart Transceiver (70kHz to 138kHz), the significant impedances are
due to the series inductance of the mains wiring itself, capacitive loads between line and neutral, resistive loads
between line and neutral, and the coupling between L1 and L2 which occurs due to mutual inductance and parasitic
capacitance between phases. If these distributed impedances are lumped together and treated as if a single frequency
is being transmitted, a simple attenuation model results as shown in Figure 4.2.
Transmitter Receiver
Z oTransmitter Z Wiring Z Z Wiring
Phase-to-Phase
This model illustrates that minimizing the series impedances and maximizing the line-to-return path impedances
reduces the attenuation of the transmitted signal.
Coupling Techniques
Power Line Coupling Basics
Injecting a communication signal into a power mains circuit is normally accomplished by capacitively coupling the
output of a transceiver to the power mains. In addition to the coupling capacitor, an inductor or transformer is
generally present. The coupling capacitor and the inductor or transformer together act as a high-pass filter when
receiving the communications signal. The high-pass filter attenuates the large AC mains signal (at either 50Hz or
60Hz), while passing the communication signal of the transceiver. Figure 4.3 shows a basic mains coupling circuit.
The value of the capacitor is chosen to be large enough so that its impedance at the communication frequencies is low,
yet small enough that its impedance at the mains power frequency (50Hz or 60Hz) is high. The impedance of the
capacitor can be considered as part of the transmitter's output impedance (ZoTransmitter) shown in Figure 4.2. Keeping
the impedance of the coupling capacitor low minimizes the signal injection loss caused by the voltage divider
formed between the output impedance of the amplifier and the mains loading (ZLoad).
The value of the inductor is chosen to have a relatively high impedance at the communication frequencies of the PL
Smart Transceiver. The inductor impedance can be considered part of the receiver input impedance (Zi Receiver) shown
in Figure 4.2. Keeping the inductor impedance high helps minimize any signal loss at the receiver due to the voltage
divider formed by the wiring impedance and the receiver input impedance.
PL Transmitter
Power Line
(AC Mains)
PL Receiver
A key factor affecting the type of mains coupling circuit to be used is the wiring style of the power distribution
system to which the coupling circuit will be connected. Wiring topologies vary from application to application, e.g.,
homes versus commercial buildings, as well as from country to country. Wiring styles can be divided into two major
categories: wiring systems where a separate earth conductor is present and accessible (i.e., safety ground, which is not
the same as a neutral wire with an earth bond), and wiring systems where there is no earth conductor.
When an earth conductor is always present, a coupling method known as line-to-earth coupling is preferred. In line-
to-earth coupling, the communications signal is coupled to the line wire relative to earth, and earth is used as the
communications signal return path. This coupling technique is also referred to as earth-return coupling. Local
restrictions might apply to the use of line-to-earth coupling (see Ground Leakage Currents in the Safety Issues section
of this chapter for more information). As a general rule, line-to-earth coupling is only used in commercial
applications in North America and non-EU countries where local electrical codes require the presence of an earth
safety ground and permit the associated 50/60Hz leakage current. Figure 4.4 illustrates a simple example of a line-to-
earth coupling circuit.
PL Transmitter
Line
Earth
PL Receiver
To understand the advantage of line-to-earth coupling, recall that a major component of signal attenuation is due to
the loads presented by devices that are connected to the power mains between the line and neutral wires. These loads
do not affect signal attenuation when line-to-earth coupling is used. Field measurements have shown consistent
improvements in received signal-to-noise ratios of more than 15dB for transceivers using line-to-earth coupling,
relative to transceivers using non-earth-return coupling. For this reason, when a safety ground connection is known to
be available throughout the wiring system, a line-to-earth coupling scheme is preferred.
In applications where a safety ground connection is not always available, or where line-to-earth coupling is precluded
by local regulations, the coupling circuit must be connected between the line and neutral wires. This style of coupling
is known as either line-to-neutral or neutral-return coupling. Line-to-neutral coupling is recommended for in-home
applications and utility applications world wide, and is illustrated in Figure 4.5.
PL Transmitter
Line
Neutral
PL Receiver
In the following section the simple circuits shown in Figures 4.4 and 4.5 are expanded to make them practical in real
applications. The following discussion applies to both line-to-neutral coupling and line-to-earth coupling, as the
coupling circuit topology for each is the same. However, in addition to the different mains connections, the required
component values differ for line-to-neutral coupling and line-to-earth coupling. At the end of this chapter,
recommended coupling circuit schematics and component specifications are provided for both line-to-neutral
coupling and line-to-earth coupling.
Discrete
Interface
Circuitry C2 C1
TX
Amp
L1
PL 3120
or
PL 3150
Smart
Transceiver
RX
Front
End
Given the attenuation model presented earlier in Figure 4.2, one critical design constraint is that the series
combination of C1 and C2 must have a low impedance at the communication frequencies of the PL Smart
Transceiver. The impedance of these capacitors, along with the PL Smart Transceiver transmit amplifier’s output
impedance, corresponds to “Zo Transmitter” in Figure 4.2. Because the equivalent load impedance of the power line
can in some cases be as low as 1-2 ohms, and because the output impedance of the PL Smart Transceiver transmit
amplifier is less than 1 ohm, the impedance of these capacitors should be on the order of 1 ohm so that they do not
add significantly to “Zo Transmitter”. While the values of C1 and C2 could be set high enough to meet this goal,
doing so would significantly increase the cost of the high-voltage capacitor C1. Because C2 is connected only to low
voltage, and thus is lower cost for a given value, its value can be set higher relative to the value of the high-voltage
capacitor C1.
A simple and cost-effective way to achieve low transmit impedance with modest size capacitors is to add inductor L2,
as shown in Figure 4.7. This inductor forms a series-resonant circuit with C1 and C2, and its value can therefore be
chosen to optimize coupling at the communication frequencies of the PL Smart Transceiver while minimizing the
cost of C1 and C2. Different values of C1 and L2 are needed for A-band and C-band operation to optimize the
performance of a coupler in its respective band. The component values listed with the example coupling circuits
documented later in this chapter include values optimized for each application and band of operation.
Discrete
Interface
Circuitry C2 C1
L2
TX
Amp
L1
PL 3120
or
PL 3150
Smart
Transceiver
RX
Front
End
An important design constraint on L2 is that its DC resistance must be kept very low because it is in the transmit
signal path and effectively part of the transmitter's output impedance. Low-cost inductors with DC resistance on the
order of 0.2 ohms are widely available.
It is critical that no additional series impedance be added in the signal path between the PL Smart Transceiver
transmit amplifier and the power mains (or in the return path from the power mains to the ground pins of the
PL Smart Transceiver) unless verified to be significantly less than 1 ohm between 70 and 138kHz.
To illustrate the importance of maintaining a low impedance signal path, consider the example of a ferrite bead with
an impedance of 9 ohms at 100kHz added in series with the line. In this case the signal injected into a 1 ohm power
line would be reduced by a factor of 10. Under typical conditions, the end product would still function, however,
communication margin and reliability over a full range of power line environments would be severely compromised.
For the same reason, the impedance of series circuit protection elements must also be kept very low. Low current
fuses (<2A) and protection devices that can be reset generally add unacceptable series impedance to the signal path.
Ferrite beads, unless carefully selected to be a low impedance at 100kHz, offer too much series impedance.
Most devices built with the PL Smart Transceiver do no need ferrite beads in order to pass EMC regulations. If, due
to other noise generating circuitry ferrite beads are required, then refer to the end of Chapter 6 for a discussion of
acceptable topologies.
To maintain a low impedance signal path, all of the circuit board traces between the output of the transmit amplifier
and the AC mains wiring should be at least 1.3mm (50 mils) wide and less than 13cm (5 inches) long. The
corresponding signal return path should either be a copper plane or a trace that is at least 1.3mm wide.
Capacitors C1 and C2 should be of metallized film construction in order to minimize equivalent series resistance and
provide adequate surge immunity.
Figure 4.8 shows additions to the coupling circuit which are required to make it fully functional. The first is an
inductor, L3, connected to the PL Smart Transceiver receive filtering circuitry. The DC resistance of L3 can be up to
55 ohms. The second consists of diodes, D1 and D2, connected from the transmitter to the amplifier supply rails to
protect the inputs of the PL Smart Transceiver from large (>18V) transients. Bypass capacitor C3 also has been added
to emphasize the fact that it is an integral part of the coupling circuit. One of the functions of this capacitor is to
protect the VA supply line from excessive overshoot when positive going line surges discharge through diode D1.
Because positive polarity surge events cause high currents to flow through D1 and C3 back to ground, the trace
between D1 and C3 should be at least 1.3mm (50 mils) wide and no more than 1.3cm (0.5 inches) long. To properly
control ripple on the VA supply of the transmit amplifier, the trace between the VA input of the transmit amplifier and
C3 should also be at least 1.3mm wide and no more than 2.5cm long (see the dotted-line arrows at the top of Figure
4.8).
VA
< 2.5cm C3
< 1.3cm
Discrete D1
Interface
Circuitry C2 C1
L2 Line
TX TXOUT
Amp
D2 L1
PL 3120
Neutral or
or
Earth
PL 3150
Smart
Transceiver
RX RXIN
Front RXCOMP
End
L3
In instances where large ambient magnetic fields might be present (such as from switched mode power supply open
frame magnetic elements), it is possible that one or more of the PL Smart Transceiver coupling circuit inductors
might pick up these stray fields and conduct them onto the power mains. Depending on the frequency and amplitude
of these fields they could result in failure to meet CENELEC or FCC conducted emission regulations.
If noise from parasitic coupling is suspected, it can be confirmed by inserting a 10cm (4 inch) twisted wire pair in
series with one of the inductors in question. If the conducted noise spectrum varies by more than a few dB when this
inductor is moved closer to, and farther from, other components, then parasitic coupling might be the source of the
problem.
If stray coupling is a problem, regulations can usually be met by adjusting the location or orientation of the radiating
device relative to the coupling circuit inductors. Alternately, shielded or toroidal inductors can be used to reduce
coupling as long as all electrical parameters specified in the example coupling circuit tables given later in this chapter
are met. If, however, a toroidal or shielded inductor is used in place of L2, then the selected part must handle the
maximum output current of the PL Smart Transceiver transmit amplifier without approaching saturation. If L2 even
approaches saturation it can add harmonics of the PL Smart Transceiver transmit signal which might result in failure
to meet CENELEC or FCC emission regulations (in this instance, due to inductor distortion instead of a stray
pickup). For this reason, a shielded or toroidal inductor used for L2 should have DC current rating two or three times
higher than listed in the example circuits given later in this chapter. The recommended open frame axial inductors do
not need this extra operating margin due to the linearity provided by a magnetic path that is partly in air.
Safety Issues
This guide is intended only as an introduction to some of the safety issues associated with designing circuits using the
PL Smart Transceiver. This document is not a primer on electrical safety or electrical codes, and it is the
responsibility of the user to familiarize himself or herself with any applicable safety rules or regulations. A review of
all designs by competent safety consultants and the pertinent regulatory or safety agencies is strongly recommended.
Some products cannot rely on their enclosure as a safety isolation barrier and an alternate method of safety isolation
must then be provided. For example, a circuit board that used a non-isolated line-to-neutral coupling circuit in
conjunction with a PL Smart Transceiver whose I/O pins are user-accessible would present a potential electrical
shock hazard. Because the mains neutral lead is connected directly to the circuit board common, the user could be
exposed to a hazardous voltage at the I/O connector, especially if the line and neutral connections are accidentally
reversed. Additional circuitry is needed in such a product to provide a safety isolation barrier between the user-
accessible I/O connector and the mains line and neutral conductors.
The most common solution is to provide isolation in the coupling circuit by modifying the simple coupling circuit
described earlier. This style of coupling circuit is referred to as an isolated coupling circuit.
The preferred isolated coupling circuit uses transformer-isolation. Transformer-isolation requires substituting a
safety agency-approved transformer having the appropriate communication characteristics in place of L1 (see
Appendix C). Transformer-isolation can be used for both line-to-neutral and line-to-earth coupling. Transformer-
isolated coupling has the advantage that the resonant inductor L2 can be incorporated into the isolation transformer
by designing the leakage inductance of the transformer to match the value of L2. A transformer-isolated coupling
circuit is shown in Figure 4.9, where it can be seen that the transformer isolates the PL Smart Transceiver from the
line conductor and the neutral or earth conductor.
VA
C3
+
Discrete D1
Interface
Circuitry C2 C1
T1
Line
TX TXOUT
Amp
D2
PL 3120
or Neutral or
Earth
PL 3150
Smart
Transceiver
RX RXIN
Front
RXCOMP
End
L3
The receive-mode impedance of this circuit dips near 10kHz due to the series resonant effect between C1 and T1.
This dip in out-of-band impedance does not have any adverse effect on communication performance. If local
regulations require a minimum receive impedance at this resonant frequency of greater than 5 ohms, then an optional
series RLC circuit can be added as shown in Figure 4.10.
VA
C3
+
Descrete D1
Interface
Circuitry C2 C1
Line
TX TXOUT
Amp
C4
D2 L4 T1
PL 3120
or Neutral or
PL 3150 R2 Earth
Smart
Transceiver
RX RXIN
Front RXCOMP
End Optional Components:
C4 = same value as C1, 10%, 50V
L3 L4 = 1mH, 10%
R2 = The combination of the
DC resistance of L4 and the
resistance of R2 should be 82 ohms
Fuse Selection
Safety considerations might require a fuse in series with the mains connection. For an end product to continue to
function (without user intervention) it is necessary that the selected fuse not open following a specified line surge. A
minimum 6A time-lag (“slow blow”) rating has been shown to be necessary to avoid unintentional fusing action at
“high system exposure” surge levels specified by IEEE C62.41-1991.
If a coupling circuit that incorporates varistor protection is selected, the recommendations of the varistor
manufacturer for maximum fuse current should be followed. Several varistor manufactures recommend a maximum
fuse rating of 6A to 6.3A for use with 1200A surge-rated varistors and a maximum rating of 18A for use with 4500A
surge-rated varistors.
A 6A or 6.3A time-lag fuse is specified in all of the coupling circuit examples shown later in this chapter because it
satisfies all of the above criteria, as well as the critical requirement that it add very little resistance (<0.1 ohms) to the
transmit signal path. If a current rating greater than 6.3A is required by the application then a varistor with a surge
rating of >2000A is recommended.
VA
C3 C1A
L2A Line A
C1B
L2B Line B
Discrete D1
Interface
Circuitry C2
C1C
TXOUT L2C Line C
TX
Amp
2Ap-p
D2 T1
PL 3120
or
PL 3150
Smart Neutral or Earth
Transceiver
RXIN
RX
Front RXCOMP
End
L3
100/120V
Phase C Phase A Z1
Load 200/240V
Z3
Load
Z2 100/120V
Load
In a 2-phase system the majority of devices are connected between one of the two hot lines and the neutral line, while
higher power loads are connected between both hot lines. Figure 4.13 illustrates the wiring in a typical North
American or Japanese home. North American homes built after the 1960s would have a safety connection (E)
available at every outlet. North American homes built before 1960 typically have only Neutral (N) and either L1 or
L2 available at each 120VAC outlet. 240VAC outlets generally have E available but N is often not available. Note
that N and E are bonded together near the electricity meter.
L1
L2
N
Line 1
200/240VAC
Line 2 Electric
Utility Heater
Meter Neutral
Earth/Ground 24VAC
Thermostat
Earth-Neutral
Bond
L1 L2
N N L1
24VAC
L2
E Step down
transformer
The recommended coupling circuits for 2-phase applications are based on the assumption that 2-phase applications
require a very high degree of customer satisfaction and thus signal loss between devices on different phases (or
between single-phase and 2-phase devices) must be minimized. Coupling the communication signal to both L1 and
L2 relative to earth and taking advantage of the Neutral to Earth bond provides robust communication between a 2-
phase load and a single phase device (see Figure 4.14). This method of coupling avoids significant signal loss that
would otherwise occur when communicating between 2-phase and single-phase devices. Most 2-phase devices have
an Earth wire readily available.
In the case of an electricity meter, a “Neutral pigtail” from the meter can be screwed into the sheet metal box that the
meter plugs into. This has been found to be the best system level solution for 2-phase applications. Adding one
additional capacitor, C4, between L1 and L2 further improves system reliability by minimizing signal loss between
single-phase devices connected to opposite phases. Component values and part numbers for isolated and non-isolated
versions of this circuit are shown in Examples 7 and 8 later in this chapter.
VA
C3
+ L2A C1A
Line 1
Descrete
D1
Interface C4
Circuitry C2 L2B C1B
Line 2
TX TXOUT
Amp
D2 T1
PL 3120
or Neutral or
PL 3150 Earth
Smart
Transceiver
RX RXIN
Front RXCOMP
End
L3
Note that the return path for a 2-phase circuit can be either neutral or earth, whichever is appropriate for the
application. Note also that a 2-phase earth-return coupling circuit does not result in the same ground leakage current
as a single-phase line-to-earth coupling circuit. The ground leakage current of a 2-phase earth-return coupling circuit
is nominally zero. This is due to the cancelling effect of the two leakage currents through C1A and C1B, which are
180 degrees out of phase with each other.
Standard tests for surge immunity are defined in IEEE C62.41-19918and CEI/IEC 61000-4-57. Both documents
classify levels of surge stress by the type of surge waveform (either Ring wave or Combination wave), surge voltage,
and surge current. In addition to describing standard test methods, both documents also suggest surge immunity
levels based on the application environments described above.
The recommended test procedures described in the two documents are the same, but the suggested immunity levels
called out in IEEE C62.41-1991 substantially exceed the suggested immunity levels of CEI/IEC 61000-4-5. The more
severe (and thus more conservative) immunity levels called out in IEEE C62.41-1991 were used in characterizing the
recommended surge protection circuitry shown in the PL Smart Transceiver coupling circuit examples of this chapter
(up to the limits of available test equipment).
Surge protection with earth-return coupling is often constrained by the need to maintain low leakage current. A
varistor connected between line and earth adds leakage current that might result in violation of applicable safety
standards. For this reason the use of a varistor for surge protection in single-phase line-to-earth coupling circuits is
often prohibited. Adequate surge immunity in single-phase branch circuit applications can be achieved without
varistors by the use of an X2-type capacitor in the C1 location. Surge immunity of single-phase line-to-earth coupling
circuits can be increased to provide protection for power entry and outside wiring applications by the use of a gas tube
surge arrester between line and earth. Varistors can be used in 3-phase and 2-phase earth-return applications because
the leakage current from each of the phases cancels.
If a gas tube surge arrestor or varistor is used between line and earth, it will have to be loaded on the PCB after hi-pot
testing. Hi-pot testing between line and earth is usually performed at voltages above the break-down voltage of gas
tube surge arrestors (or the clamp voltage of varistors). The hi-pot test will fail if a gas tube surge arrestor fires (or the
varistor clamps) during the testing.
VA
C3
Discrete
D1
Interface
Circuitry
C2
L2
TX TXOUT
Amp
D2 <48Vpk
PL 3120
or
PL 3150
Smart
Transceiver
RXIN
RX
Front RXCOMP
End
L3
VA
Wall-Plug Power Supply/Coupler
L6
Z3 50/60Hz
+
Discrete D1
Interface C3
Circuitry C2 Line
TX TXOUT L2
Amp
Neutral
D2
PL 3120
or
PL 3150
Communication
Smart
Transceiver
RX RXIN
Front RXCOMP
End
L3
VA
C103
Discrete
Interface D101
Circuitry C102 C101
L102 F101 Line
TX TXOUT
Amp
L103
Table 4.2 100-240 VAC L-to-N, Non-Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
VA
C103
Discrete
Interface D101
Circuitry C102 C101
L102 Line
TX TXOUT T101 F101
Amp
D102 PROTECT
PL 3120
or R101
Neutral
PL 3150
Smart
Transceiver
RX RXIN
Front RXCOMP
End
L103
Table 4.3 100-240 VAC L-to-N Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
VA
C103
Discrete
Interface D101
Circuitry C102 C101
L102 F101 Line
TX TXOUT
Amp
L103
Table 4.4 100-277 VAC L-to-E Non-Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
C-band C-band
100- 200- C-band C-band
Comp 120VAC 277VAC Required Specifications 100-120VAC 200-277VAC
C101 0.068µF, 0.033µF, ±10%, X2 type (1) Panasonic/ Evox-Rifa/
≥120VAC ≥300VAC ECQ-U2A683KL PHE840 EA 5330M
A02
C102 1.0µF 1.0µF ±10%, ≥50VDC, metallized polyester AVX/ AVX/
BF074D0105K BF074D0105K
C103 ≥120µF ≥120µF ±20%, ≥16VDC, aluminum electrolytic, Nichicon/ Nichicon/
≤0.35Ω ESR @100kHz/20C, UHE1C121MED UHE1C121MED
≥290mARMS ripple current @105C
D101 1A 1A Reverse breakdown ≥50VDC, forward Vishay General Semi/ Vishay General Semi/
voltage ≤1.3V @1A/25C, surge current 1N4935 1N4935
≥30A for 8.3ms, reverse recovery ≤200ns,
reverse current ≤100µA @100C, typical
capacitance ≤40pF @4V
D102 1A 1A Reverse breakdown ≥50VDC, forward Fairchild/ Fairchild/
voltage ≤1.0V@1A/25C, surge current ES1B ES1B
≥30A for 8.3ms, reverse recovery ≤25ns,
reverse current ≤100µA @100C, typical
capacitance ≤40pF @4V
F101 6A or 6.3A, 6A or 6.3A, slow blow (2)
≥125VAC ≥300VAC
L101 1.0mH 1.0mH ±10%, Imax ≥30mA, RDC ≤14Ω Taiyo Yuden/ Taiyo Yuden/
LAL04TB102K/ or LAL04TB102K/ or
CTC Coils Limited/ CTC Coils Limited/
CH Series CH Series
L102 18µH 39µH ±10%, Imax ≥500mA, RDC ≤0.3Ω Taiyo Yuden/ Taiyo Yuden/
LAL05TB180K/ or LAL05TB390K/ or
CTC Coils Limited/ CTC Coils Limited/
CH Series CH Series
L103 820µH 820µH ±10%, Imax ≥30mA, RDC ≤55Ω, ACT/ ACT/
1kHz≤ test frequency ≤400kHz DD821K/ or DD821K/ or
CTC Coils Limited/ CTC Coils Limited/
CH Series CH Series
R101 1MΩ, 1MΩ, ±5%, 1/4W (3)
≥200VDC ≥450VDC
PROTECT N/A N/A For indoor branch circuits no component N/A N/A
is required
120VAC 300VAC For power entry use AC gas discharge SRC Devices/
tube (4) AC240L
120VAC 300VAC For outdoor use AC gas discharge tube (4) SRC Devices/
AC240L
NOTES:
1. An X2 capacitor is required for adequate surge immunity in branch circuit applications.
2. In some applications, a fuse might not be required. Consult applicable safety standards.
3. The working voltage rating of R101 can be achieved by using two 470kΩ resistors in series, each with a working voltage rating of at least 1/2 of
the value listed above. Also, peak power and voltage ratings of R101 must be chosen to meet the high-pot testing requirements of the application.
4. High-pot manufacturing tests must be performed prior to installation of this gas discharge tube. High-pot testing between line and earth is usually
performed at voltages above the gas tube arc-over voltage, and the test will fail if the gas tube arcs during testing. In addition, a DC high-pot tester
must be used to avoid excess current flow through C101.
VA
C103
Discrete
Interface D101
Circuitry
C102 C101
L102 Line
TX TXOUT T101 F101
Amp
PROTECT
D102
PL 3120
or R101
Earth
PL 3150
Smart
Transceiver
RX RXIN
Front RXCOMP
End
L103
Table 4.5 100-277 VAC L-to-E Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
C-band C-band
100- 200- C-band C-band
Comp 120VAC 277VAC Required Specifications 100-120VAC 200-277VAC
C101 0.068µF, 0.033µF, ±10%, X2 type (1) Panasonic/ Evox-Rifa/
≥120VAC ≥300VAC ECQ-U2A683KL PHE840 EA 5330M
A02
C102 1.0µF 1.0µF ±10%, ≥50VDC, metallized polyes- AVX/ AVX/
ter BF074D0105K BF074D0105K
C103 ≥120µF ≥120µF ±20%, ≥16VDC, aluminum electro- Nichicon/ Nichicon/
lytic, ≤0.35Ω ESR @100kHz/20C, UHE1C121MED UHE1C121MED
≥290mARMS ripple current @105C
D101 1A 1A Reverse breakdown ≥50VDC, Vishay General Semi/ Vishay General Semi/
forward voltage ≤1.3V @1A/25C, 1N4935 1N4935
surge current ≥30A for 8.3ms,
reverse recovery ≤200ns, reverse
current ≤100µA @100C, typical
capacitance ≤40pF @4V
D102 1A 1A Reverse breakdown ≥50VDC, Fairchild/ Fairchild/
forward voltage ≤1.0V @1A/25C, ES1B ES1B
surge current ≥30A for 8.3ms,
reverse recovery ≤25ns, reverse cur-
rent ≤100µA @100C, typical capaci-
tance ≤40pF @4V
F101 6A or 6.3A, 6A or 6.3A, slow blow (2)
≥125VAC ≥300VAC
L102 5.6µH 27µH ±10%, Imax ≥500mA, RDC ≤0.4Ω Taiyo Yuden/ Taiyo Yuden/
LAL04TB5R6K/ or LAL05TB270K/ or
CTC Coils Limited/ CTC Coils Limited/
CH Series CH Series
L103 820µH 820µH ±10%, Imax ≥30mA, RDC ≤55Ω, ACT/ ACT/
1kHz≤ Test Frequency ≤400kHz DD821K/ or DD821K/ or
CTC Coils Limited/ CTC Coils Limited/
CH Series CH Series
R101 1MΩ, 1MΩ, ±5%, 1/4W (3)
≥200VDC ≥450VDC
PROTECT N/A N/A For indoor branch circuits no compo- N/A N/A
nent is required
120VAC 300VAC For power entry use AC gas dis- SRC Device/
charge tube (4) AC240L
120VAC 300VAC For outdoor use AC gas discharge SRC Device/
tube (4) AC240L
T101 12µH-leakage transformer See Appendix C See Appendix C
NOTES:
1. An X2 capacitor is required for adequate surge immunity in branch circuit applications.
2. In some applications, a fuse might not be required. Consult applicable safety standards.
3. The working voltage rating of R101 can be achieved by using two 470kΩ resistors in series, each with a working voltage rating of at least 1/2 of
the value listed above. Also peak power and voltage ratings of R101 must be chosen to meet the high-pot testing requirements of the application.
4. High-pot manufacturing tests must be performed prior to installation of this gas discharge tube. High-pot testing between line and earth is usually
performed at voltages above the gas tube arc-over voltage, and the test will fail if the gas tube arcs during testing. In addition, a DC high-pot tester
must be used to avoid excess current flow through C101.
VA
C103
L102A C101A F101A
RV Line A
R101A 101A
L102B C101B F101B
Discrete D101
Interface Line B
C102 R101B RV
Circuitry
TXOUT L102C C101C 101B
TX F101C
Amp
2Ap-p Line C
L101
D102 RV
PL 3120 R101C 101C
or
PL 3150
Smart
Neutral or Earth
Transceiver
RXIN
RX Inductors L101 and L103 should be spaced >1cm
Front RXCOMP (0.4") apart to avoid undesirable parasitic coupling
End
L103
Table 4.6 100-277 VAC, 3-Phase, Non-Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
NOTES:
1. For 277VAC nominal line voltage operation, the voltage rating of these components must be increased.
2. In some applications, fuses might not be required. Consult applicable safety standards.
3. The voltage rating of R101A-C can be achieved by using two 470kΩ resistors in series, each with a working voltage rating of at
least half of the value listed above. For earth-return coupling, the peak power and peak voltage ratings of R101A-C must be
chosen to meet high-pot testing requirements of the application.
4. The voltage rating indicated is necessary to prevent damage to the varistor should the neutral (or earth) connection be lost while
all three phases are connected and live. For earth-return coupling, high-pot testing must be performed prior to installation of these
varistors. High-pot testing between line and earth is usually performed at voltages above the varistor clamp voltage, and the test
will fail if the varistors clamp during testing.
VA
C103
L102A C101A F101A
RV Line A
R101A 101A
L102B C101B F101B
Discrete D101
Interface Line B
Circuitry C102 R101B RV
TXOUT L102C C101C 101B
TX F101C
Amp
2Ap-p Line C
D102 T101 RV
PL 3120 R101C 101C
or
PL 3150
Smart
Neutral or Earth
Transceiver
RXIN
RX
Front RXCOMP
End
L103
Table 4.7 100-277 VAC, 3-Phase, Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
VA
C103
Line 1
L102A C101A F101A
Discrete D101
Interface C104
Circuitry C102 R101A RV
TXOUT L102B C101B 101A
TX F101B
Amp
Line 2
D102 L101 RV
PL 3120 R101B 101B
or
PL 3150
Smart
Neutral or
Transceiver Earth
RXIN
RX
Front RXCOMP Inductors L101 and L103 should be spaced >1cm
End
(0.4 inches) apart to avoid undesirable parasitic
coupling.
L103
Table 4.8 100-240 VAC, 2-Phase, Non-Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
VA
C103
D102 T101 RV
PL 3120 R101B
101B
or
PL 3150
Smart
Neutral or Earth
Transceiver
RXIN
RX
Front RXCOMP
End
L103
Table 4.9 100-240 VAC, 2-Phase, Isolated Coupling Circuit Component Values
Value Example Vendor/Part#
VA
C103
Discrete
Interface D101
Circuitry C102 C101
TX L102
TXOUT
Amp
D102 L101
PL 3120 <48Vpk
or
PL 3150
Smart
Transceiver
RXIN
RX
Front RXCOMP
End
L103
VA
C103
Discrete
D101
Interface
Circuitry
C102 C101
L102
TX TXOUT T101
Amp
D102 <48Vpk
PL 3120
or
PL 3150
Smart
Transceiver
RXIN
RX
Front RXCOMP
End
L103
VA
C103
Discrete
D101
Interface
Circuitry
C102
L102
TX TXOUT
Amp
D102 <48Vpk
PL 3120
or
PL 3150
Smart
Transceiver
RXIN
RX
Front RXCOMP
End
L103
VA
RX RXIN
Front RXCOMP
End
L103
Table 4.13 120, 230 VAC L-to-N, Wall-Plug Coupling Circuit Component Values
Value Example Vendor/Part#
Note: The surge level tested for this entry is the maximum level that is supported by available test equipment. Testing
outdoor products to the IEEE medium exposure level requires a surge generator that supports 10kV/5000A (20kV/
10,000A for outdoor high system exposure).
It is important to be aware that the PL Smart Transceiver used in conjunction with some of the coupling circuits listed
in this chapter might experience a reset event when subjected to higher surge levels. The system designer must
determine if their application can tolerate a reset event under high surge conditions.
Samples of the AC mains coupling circuits documented in this chapter have been demonstrated to operate without
reset when subjected to surge levels of at least 2kV. This level of immunity to reset events under surge conditions will
vary with circuit layout. The greatest immunity levels can generally be achieved by locating D1 and C3 such that
positive surge currents return to ground without passing close to the PL Smart Transceiver.
If a non-isolated coupling application requires greater reset immunity then the optional components shown in Figure
4.29 can be added. The corresponding optional components to increase reset immunity with isolated coupling circuits
are shown in Figure 4.30. Coupling circuits that include these optional components have been demonstrated to not
reset when subjected to 6kV surge events.
VA
C3
Discrete D1
Interface
Circuitry C2 1-Phase,
TXOUT L2 2-Phase, or
TX
Amp 3-Phase
Z3
D2 L1
PL 3120 Z4
or Neutral or
PL 3150 Earth
Smart
Transceiver Optional Components:
Z3 & Z4 = 1N5343B
L2 = If the selected coupling
RXIN
RX circuit does not include an
Front RXCOMP inductor at this location then
End add Steward/HI1206P121R-00
L3
VA
C3
Discrete D1
Interface
Circuitry C2 1-Phase,
TX TXOUT 2-Phase, or
Amp 3-Phase
Z3
D2 T1
PL 3120 Z4
or Neutral or
PL 3150 Earth
Smart
Transceiver Optional Components:
Z3 & Z4 = 1N5343B
RXIN
RX
Front RXCOMP
End
L3
Introduction
There are a number of power supply options available for use with the PL 3120 and PL 3150 Smart Transceivers.
These various options differ in key characteristics such as size and cost. The following table is designed to aid in the
selection of the optimal supply type.
Relative
Universal Relative Relative Design
Input Cost Size Effort
Power Supply Application Chip Safety- (see (see (see (see
Type Current Support Isolated Note 1) Note 2) Note 2) Note 2) Page
≥25mA PL 3120 No No 1 1 2 158
Energy Storage
Capacitor Smart
Input Transceiver
≥10mA PL 3120 Yes No 2 2 2 164
Energy Storage Smart
Linear Transceiver
Any PL 3120 and Yes No 3 ≥3 1 165
PL3150
Traditional Smart
Linear Transceivers
≥150mA PL 3120 and Yes No 4 4 2 165
Wall-plug PL3150
Supply and Smart
Coupler Transceivers
≥10mA PL 3120 Yes Yes 5 1 1 179
Pre-designed
Energy Storage Smart
Switcher Transceivers
≥100mA PL 3120 and Yes Yes 3 2 4 181
PL3150
Pre-designed Smart
Switcher Transceivers
Any PL 3120 and Yes Yes 10 ≥5 4 185
PL3150
Off-the-shelf Smart
Switcher Transceivers
Any PL 3120 and Optional Optional 4 ≥3 10 185
PL3150
Full Custom Smart
Switcher Transceivers
Notes:
1. Multi-country line voltage support without switches
2. Relative here is 1 = low and 10 = high.
ensures adequate transmit amplifier headroom to drive the full 7Vpp signal onto the line under lighter load
conditions.
Extending the maximum VA range above 12.6V up to a maximum of 18V is allowed providing the thermal
requirements of the transmit amplifier are met. The temperature of the amplifier depends on the on how frequently
the device will be required to transmit, the ambient temperature and the power supply voltage. The key power supply
parameter with regard to amplifier heating is the average VA supply voltage during transmission (i.e., if a loosely
regulated supply is used and the VA supply droops during transmission the average VA voltage over the duration of a
transmission determines the heat generated by the amplifier). If we express how frequently the device is required to
transmit in terms of maximum transmit duty cycle then the thermal requirements of the amplifier are met by
satisfying the following formula:
VATXAVE < (150-TAMAX)/(8*DMAX);
Where:
VATXAVE = Average VA supply voltage while transmitting
TAMAX = Maximum ambient temperature inside the product enclosure (degrees C)
DMAX = Maximum transmit duty cycle of the device (expressed as a decimal number)
The maximum transmit duty cycle generally does not exceed 64% because this is the largest value possible for a
device that uses LONMARK® interoperable transceiver parameters and transmits messages of ≤ 34 Bytes (see the Note
on page 158 in the Energy Storage Power Supplies section). Note that many products transmit infrequently and thus
have much lower transmit duty cycle requirements than 64%.
Using the above formula several common options are shown in Table 5.2.
Note: The above discussion applies to the standard 1Ap-p transmit amplifier. Refer to Appendix A for information if
the optional 2Ap-p transmit amplifier is used.
enough so that the VA supply voltage is still sufficient for proper operation by the end of a single maximum-length
packet transmission. Proper device operation is then maintained when the energy storage capacitor is selected such
that the VA power supply meets both of the following conditions:
• VA ≥10.8V after the typical IA transmit load of 120mA has been active for 140.7ms (see Note below) for an
A-band device (92.2ms for a C-band device). This condition only needs to be met at room temperature with
nominal AC line voltage.
• VA ≥8.5V after the worst case IA transmit load of 250mA has been active for 140.7ms (see Note below) for
an A-band device (92.2ms for a C-band device). For proper node operation this condition must be met over
the full range of worst-case component tolerances (including IDD5 drain), AC line voltage, and temperature.
Note: For the primary carrier frequency, a 32 byte packet corresponds to a maximum transmission duration of
113.8ms for an A-band device (74.6ms for a C-band device).
Calculating the maximum transmission duration for a packet at the secondary carrier frequency is somewhat more complicated due to the
combination of error correction and data compression used with that carrier frequency. If we consider a case where message traffic satisfies the
above condition plus three further common conditions, then the maximum transmission duration can be calculated to be 140.7ms for an A-
band device (92.2ms for a C-band device). This maximum duration is applicable for applications where: 1) there are no priority packet trans-
missions from the energy storage device; 2) subnet and node numbers are in the range 0 through 15; and 3) if a six byte domain is used, it is
assigned to be equal to a Neuron core ID number. For applications which do not meet the conditions listed in this note, contact Echelon Lon-
Support for maximum packet length calculations.
Having chosen a storage capacitor to provide adequate voltage after transmission of a single packet, the power
management feature of the PL Smart Transceiver must also be enabled to ensure adequate supply voltage over the
span of multiple packet transmissions. The power management feature prevents excessive power supply droop from
transmission of multiple back-to-back packets under worst case conditions by monitoring the voltage on the energy
storage capacitor and then, if required, regulating the time between transmissions so that the capacitor has time to
recharge.
The power management feature is enabled by first connecting an appropriate resistor voltage divider between the VA
supply and the OOGAS pin of PL 3120/PL 3150 IC, as shown in reference schematic diagrams described in
Appendix A. In addition, use of a standard transceiver type with a “-LOW” suffix is required to enable the power
management feature, as described in Chapter 8, PL Smart Transceiver Programming.
Once enabled, the power management system detects any instance where the VA supply drops below the lower power
management threshold (nominally 7.9V). The PL Smart Transceiver then delays transmission until the energy storage
capacitor has been recharged to allow transmission of a complete packet. The PL Smart Transceiver then transmits
any waiting packets once the capacitor has fully charged.
If a high packet transmission duty cycle causes VA to drop too low during packet transmission, such that a packet is
aborted prior to completion, the PL Smart Transceiver will re-transmit that packet independent of the LonTalk
protocol service in use. Even when unacknowledged service is employed, a packet that is interrupted by low supply
voltage will be re-transmitted once the power management system determines that the supply is fully recharged.
The power management circuitry of the PL Smart Transceiver adjusts the amount of time that it inhibits transmission
based on the device’s actual recharge characteristics. This feature allows energy storage devices to typically transmit
without intervention from the power management circuitry. When a device powered by an energy storage supply has
worst case component tolerances and is exposed to worst case AC line conditions, the power management circuitry of
the Smart Transceiver calculates a suitable transmit hold-off time by measuring the supply recharge rate. The formula
used to make this calculation is three times the time required for the supply to charge from its lower power
management threshold (nominally 7.9V) to its upper power management threshold (nominally 12.1V). Figure 5.1
illustrates examples of an energy storage node operating under both typical and worst case conditions.
15
10
VA
(Volts)
5
Transmission Packet
0 Abort Retransmit
Tx
Packets
Energy
Current Shunt Storage for
Source Regulator Transmission
Output
Voltage
Input Capacitor
V A (8.5V-16V)
V DD5 (5V)
AC Line 78L05
Voltage
VA (8.5V - 16V)
Raise Input Z Partial
Temperature
Compensation
V DD5 (5V)
AC Line 78L05
Voltage
Due to the low current available, the application of capacitor-input power supplies is generally limited to PL 3120
based devices which require minimal I/O application current (e.g., latching relays, SCR triggers, low-power LEDs).
Figure 5.3 presents a schematic for an A-band device based on a PL 3120 Smart Transceiver IC powered by a
capacitor-input power supply. Figure 5.4 shows the C-band version. These devices are designed to operate with an
enclosure internal air temperature range of 0-70°C. The coupling circuit shown in these figures is different from those
shown in Chapter 4 to accommodate the unique requirements of this capacitor-input node.
The A-band option provides enough stored energy to transmit a 140.7ms packet under worst-case conditions prior to
recharging. Each of the C-band options provides sufficient stored energy to transmit one complete 92.2ms packet
under worst-case conditions prior to recharging. Under typical conditions, A-band and C-band versions support a
maximum transmit duty cycle of ≥65%. Under worst-case conditions, they each support maximum transmit duty
cycles of ≥10%. Note that the use of any of these capacitor-input power supply options requires that the configuration
data of the device be programmed to enable power management, as described in Chapter 8.
L1
L3 L3 L1 L3
VA
4
min. min. min.
-
D4 VDD5
0.8A
2 1 U1
LM78L05
3 VI VO 1
J1
+
LINE
GND
3
Cin
PSA
1
2
AC2 1 2 AC1 1 2 1 2 LINE
1
1
+ C5 L1
D5 3900uF L3
1.8uF
1
1
D1 1mH 39uH
1N5350B 20% 10% AC
10% 10%
2
13V 16V 400VDC RV1
>200mA >1A Line
VDD5 5W <0.3 OHM @100KHZ Metal Poly VARISTOR
2
4 - + 3 470VDC
2
2
14mm
R5
1
1M
R4 0.8A 5%
J2
2
1K 600V 360VDC NEU
1
5% VA
VDD5 VA
2
1 2 NEU
1
LEDYA
1
L5
2
220uH
D2 10%
D3 1N4935
>200mA
LED
Chapter 5 - Power Supplies for PL Smart Transceivers
C3
VA
YEL
1uF
VDD5
10%
1
Metal Poly C7
SVC- TXOUT 1 2 RXIN 1 2 COUPL
SVC- TXOUT
50VDC 0.22uF
1
1
1mH Metal Poly
1
S1 RXCOMP 10%
SERVICE RXCOMP D6 <50 OHM
PL 3120
MUR120
2
Reference Design C8
2
(Appendix A) 1 2 NEU
2
0.22uF
GND
10%
1
400VDC
Metal Poly
L2
1.5mH Inductors L2 and L4 should be
10% spaced >0.4" apart to avoid
2
<55 OHM
undesired parasitic coupling.
L1
L3 L3 L1 L3
VA
4
min. min. min.
-
D4 VDD5
0.8A
2 1 U1
LM78L05
3 VI VO 1
J1
+
LINE
GND
3
PSA
1
2
AC2 1 2 AC1 1 2 1 2 LINE
1
1
+ C5 L1
D5 3300uF L3
1
1
D1 15uH
1N5350B 20% Cin (see below) AC
10% 10%
2
13V 16V Metal Poly 470uH RV1
>350mA <0.3 OHM Line
VDD5 5W <0.3 OHM @100KHZ 10% VARISTOR
2
4 - + 3 240VDC*
2
2
7mm
R5
1
1M
R4 0.8A L5 5%
J2
2
1K 600V 150uH >180VDC*
NEU
1
5% VA 10%
VDD5 VA >270mA
2
1 2 NEU
1
LEDYA
2
D2
D3 1N4935 L5 is needed for C7
LED 0.15uF
C3 240V AC operation only.
VA
YEL 10%
1uF
VDD5
250VDC*
10%
Metal Poly
1
Metal Poly
RXIN
RXIN L4 C8
1
NOTE:
1mH 0.15uF
1
S1 RXCOMP 10% 10% Values indicated by (*) must be
SERVICE RXCOMP D6 <50 OHM 250VDC*
PL 3120 increased for line voltages greater
MUR120 Metal Poly
2
2
(Appendix A) 1 2 NEU
GND
1
L2
1mH Inductors L2 and L4 should be
10% spaced >0.4" apart to avoid Line Line Application
2
<50 OHM Cin
undesired parasitic coupling. Voltage Frequency and I/O (µF/VDC)
(VAC) (Hz) Current
(mA)
120 60 5 2.7/250
120 60 25 3.3/250
230 50 5 1.8/400
163
Energy Storage Power Supplies
Chapter 5 - Power Supplies for PL Smart Transceivers
Transmit Receive
VA Current 250mA 0.5mA
PL 3120 Smart 13mA 13mA
Transceiver VDD5
Current
Application & I/O 10mA 10mA
Current
78L05 Regulator 5mA 5mA
Current
Total 278mA 29mA
A traditional linear supply would require a transformer with an output current rating of ≥300mA. By taking
advantage of the PL 3120 Smart Transceiver’s power management feature, an energy storage linear supply can be
built with a 100mA transformer.
Figure 5.5 shows an example of an energy storage linear supply. This example supply meets the criteria listed in the
energy storage section of this chapter, for both A-band and C-band operation. With a transient load of 120mA for
140.7ms added to a constant 29mA receive load, this supply does not drop below 10.8V. This supply also maintains
≥9.0V after a 250mA load is added to the constant 29mA load for 140.7ms. Both of these criteria hold true even with
an AC line voltage which is 10% low and an output capacitance value that is 20% low. In addition, this example
supply supports duty cycles of ≥65% under typical transmission conditions and ≥10% over worst case line voltage
and component tolerances.
AC Line Voltage
78L05 VDD5 (5V)
+ 4700 µF
25 V
±20%
Gnd
In summary, an energy storage linear supply differs from a traditional linear supply in the following ways:
• Allows the use of a smaller transformer
• Requires more output capacitance for energy storage
• Requires that the device be programmed to enable power management, as described in Chapter 8.
• Under typical conditions, exhibits transmit duty cycles which are not limited. Over the full range of line
voltage and component tolerance, the power management circuitry of the PL Smart Transceiver can act to
regulate a particular transmit duty cycle (to ≥10% in the above example) of the device.
Line
Switching Power
Supply Neutral
PL 3120/PL 3150
Smart Coupling
Transceiver Circuit Earth
Including this inductor is necessary because the increase in attenuation for a given load is much worse when the load,
in this case the switching power supply, is connected directly to the transceiver. In contrast, the loading caused by a
switching supply that is separated from the receiver is reduced by the series inductance of power line wiring.
The loading effect of a switching power supply almost always dictates the addition of the inductor for L-to-N
coupling circuits. The inductor may or may not be required for L-to-E coupling circuits depending on the EMC filter
topology of the switching power supply. In either case, the value of the inductor should be chosen such that the power
supply does not impose a low impedance onto the power line in the communication frequency range. The appropriate
value of inductance is a trade-off between required impedance, which is a function of system topology, and node cost.
The selected inductor must have a current rating which is greater than the peak current drawn by the power supply in
order to avoid impedance reduction due to inductor saturation. Higher impedances require larger inductance values
which are more expensive for a given power supply input current.
For most AC mains distribution systems, where the line impedance at the PL Smart Transceiver communication
frequencies is typically in the range of 1 to 20 ohms, a power supply input impedance of 100 ohms is sufficient to
avoid added signal attenuation. To maximize communication distance on mains distribution systems between
buildings where the system impedance can be as high as 50 ohms, a minimum power supply input impedance of 250
ohms is recommended.
An example of a system that would benefit from an input impedance >100 ohms would be one in which 100 or more
PL Smart Transceiver-based devices were connected to a 1000m (3280ft) powered, twisted pair cable. In this case the
input impedance of the power supply could limit either the maximum transmission distance and/or the maximum
number of devices that could be connected to the cable. To maximize communication distance on dedicated twisted
pair wiring where the system impedance is approximately 100 ohms, a minimum power supply input impedance of
500 ohms is recommended. For extreme cases with >100 nodes on dedicated lines longer than 1000m, a power
supply input impedance of 2000 ohms might be needed to maximize communication distance. Table 5.4 shows the
appropriate inductor value by application.
There is one further constraint on the value of the inductor. When the inductor is combined with the input capacitance
of the switching supply, the LC resonant frequency should be at least one octave away from the communication
frequency range (70kHz-90kHz for A-band and 110kHz-138kHz for C-band). The unintentional series resonance
between the inductor's reactance and the power supply's capacitive reactance can produce a low impedance at
communication frequencies if this frequency range is not avoided.
One way to reduce the size and cost of an inductor used to raise a power supply's input impedance is to purposefully
parallel resonate it at the communication frequency with a capacitor, as shown in Figure 5.7. If this option is chosen,
resistive damping must be included so that impulsive power line noise does not excite excessive filter ringing, which
could degrade the reception of weak signals. The parallel resistor has been selected to optimize receive impedance
and impulsive noise damping. Note that even though only a 100µH inductor is shown in Figure 5.7, this circuit built
with A-band values provides a series impedance of ≥150 ohms from 70kHz to 90kHz due to the parallel resonant
effect. When built with C-band values the series impedance is ≥200 ohms from 125kHz to 138kHz. Also, note that
the inductor must be rated for the peak AC current drawn by the power supply.
0.039uF A-band
(0.015uF C-band)
+10%
Figure 5.7 Reducing Attenuation Caused by a Switching Power Supply with a Resonant Circuit
amount and cost of additional circuitry to filter interference from the switching supply can be minimized. Table 5.5
below lists the recommended switching frequency ranges. The switching supply should be designed such that the
fundamental switching frequency falls within the stated ranges under all line, load, environmental, and production
conditions.
90
80 Quasi-peak detector
Average detector
70
Noise Level (dBuV)
60
50
40
30
20
1.0E+03 1.0E+04 1.0E+05 1.0E+06 1.0E+07 1.0E+08
Frequency (Hz)
Figure 5.8 Switching Power Supply Input Noise Limits for A-band CENELEC Compliance
90
80
70
Noise Level (dBuV)
60
50
40
30
20
1.0E+03 1.0E+04 1.0E+05 1.0E+06 1.0E+07 1.0E+08
Fr e que ncy (Hz )
Figure 5.9 Switching Power Supply Input Noise Limits for A-band FCC Compliance
90
80 Quasi-peak detector
70
Average detector
Noise Level (dBuV)
60
50
40
30
20
1.0E+03 1.0E+04 1.0E+05 1.0E+06 1.0E+07 1.0E+08
Frequency (Hz)
Figure 5.10 Switching Power Supply Input Noise Limits for C-band CENELEC Compliance
90
80
Noise Level (dBuV)
70
60
50
40
30
20
1.0E+03 1.0E+04 1.0E+05 1.0E+06 1.0E+07 1.0E+08
Frequency (Hz)
Figure 5.11 Switching Power Supply Input Noise Limits for C-band FCC Compliance
Table 5.6 lists the endpoints of the straight lines shown in Figure 5.8, and Table 5.7 lists those shown in Figure 5.9.
Table 5.8 lists the end points of the straight lines shown in Figure 5.10. Table 5.9 lists the levels shown in Figure 5.11.
Table 5.6 Switching Power Supply Input Noise Limits for A-band CENELEC Compliance
Table 5.7 Switching Power Supply Input Noise Limits for A-band FCC Compliance
Table 5.8 Switching Power Supply Input Noise Limits for C-band CENELEC EN 50065-1 Compliance
Table 5.9 Switching Power Supply Input Noise Limits for C-band FCC Compliance
!
A power supply that does not meet the appropriate noise mask for the power supply input might require a
filter between the local switching power supply and the power mains.
An example of a filter which both attenuates switching supply noise and provides >200 ohm input impedance is
shown in Figure 5.12. Note that both inductors must be rated for the peak AC current drawn by the power supply; the
3.3 ohm resistor should have a power rating consistent with the AC current drawn by the power supply, and its
voltage drop should be verified as acceptable.
0.039uF A-band
(0.015uF C-band)
+10%
Power
100uH +20% 100uH +10% Mains
Switching
Power 0.47uF +20%
Supply X2 Type
250VAC
This A-band version of the filter has the attenuation characteristics shown in Figure 5.13, when connected to a 50Ω
mains network. The characteristics of the C-band version of the filter into a 50Ω network are shown in Figure 5.14.
If the power supply noise drops by less than the values shown in the appropriate figure it is likely due to parasitic
coupling between the two inductors. If this occurs, filtering close to the level shown in Figures 5.13 or 5.14 can
usually be accomplished by adjusting the relative location and orientation of the inductors (orthogonal orientation
typically reduces inductor coupling). Alternately, shielded or toroidal inductors can be used to reduce coupling.
Communication
frequencies
(70 – 95kHz)
Attenuation (dB)
Frequency (Hz)
(110 - 138kHz)
In some instances it is possible that noise radiated from either the power supply or the supply filter can couple into the
inductors of the coupling circuit of the PL Smart Transceiver. The coupling circuit can then couple this noise onto the
power mains. This problem can be diagnosed by disconnecting the transceiver's coupling circuit and then analyzing
the conducted line noise.
If noise from parasitic coupling is suspected, it can be confirmed by inserting a 10cm (4 inch) twisted wire pair in
series with one of the inductors in question. If the conducted noise spectrum varies by more than a few dB when this
inductor is moved closer to, and farther from, other components, then parasitic coupling might be the source of the
problem.
There is a second, although less likely, potential cause for reduced filter effectiveness. It is possible for the inductive
reactance of the filter components to be canceled by capacitive reactance from the input of the power supply. This
problem is generally seen as narrow band noise which appears to pass through the filter unattenuated. This problem
can be remedied by either damping the unintended resonance, or by adjusting the values of the filter inductor and
capacitor to move the resonance to a non-interfering frequency. Damping can be accomplished by adding resistance
in the range of 200 ohms to 5k ohms in parallel with the filter inductor closest to the power supply.
1 µF
To 50Ω 450Ω
measuring 50Ω coax To
equipment Power Supply
50 cm pins
max
If the noise masks for either the VA or VDD5 power supplies are not met, then additional filtering must be added to the
offending supply in order to bring it into compliance. In the event that extra filtering is needed an inductor of about
10µH can be added in series with the supply line. When combined with a bulk bypass capacitor of >10µF (on the PL
Smart Transceiver side of the inductor) the LC combination will provide >20dB of attenuation at communication
frequencies. An alternate way to provide a low noise VDD5 supply is to use a dedicated 5V linear regulator to feed the
PL Smart Transceiver circuitry. In this way noise from other devices on the PCB will be isolated from the VDD5
supply line of the PL Smart Transceiver. If the a switching power supply is used which meets the recommended
operating frequencies of Table 5.5 then additional VA and VDD5 filtering will typically not be required.
110 -10
100 -20
90 -30
Noise Level (dBuV)
70 VA -50
VDD5 (3KHz filter)
60 ≤
VDD5 (?300Hz filter) -60
50 -70
40 -80
1.0E+04 1.0E+05 1.0E+06
Frequency (Hz)
Figure 5.16 VA and VDD5 Power Supply Output Noise Limits for A-band
110 -10
100 -20
90 -30
Noise Level (dBuV)
70 -50
VA
60 VDD5 (3kHz) -60
≤
VDD5 (?300Hz filter)
50 -70
40 -80
1.0E+04 1.0E+05 1.0E+06
Frequency (Hz)
Figure 5.17 VA and VDD5 Power Supply Output Noise Limits for C-band
Tables 5.10 and 5.11 list the levels shown in Figures 5.16 and 5.17 respectively.
Table 5.10 VA and VDD5 Power Supply Output Noise Limits for A-band
VDD5 Noise
VA Noise Level Level
Frequency (3kHz filter) VDD5 Noise Frequency (300 Hz filter)
(kHz) (dBV) Level (dBV) (kHz) (dBuV)
10-55 -20 -40
55-75 -35 -40
75-85 -40 -70 70-90 -60
85-110 -35 -45
110-200 -40 -45
200-1000 -40 -40
Table 5.11 VA and VDD5 Power Supply Output Noise Limits for C-band
VDD5 Noise
VA Noise Level Level
Frequency (3kHz filter) VDD5 Noise Frequency (300 Hz filter)
(kHz) (dBV) Level (dBV) (kHz) (dBuV)
10-40 -20 -40
40-55 -20 -50
55-110 -30 -50
110-115 -40 -50
115-135 -40 -70 110-138 -60
135-1000 -40 -50
energy storage design the power management feature of the PL 3120 Smart Transceiver must be enabled as described
in Chapter 8.
120Ω
78L05
>½W (see Note)
OUT IN VO L1 Line
GND
GND L2 Neutral
120Ω
>½W (see Note)
VA
PL 3120
VDD5 Coupling
Reference
Circuit
Design
(See Chapter 4)
GND (See Appendix A)
The circuit in Figure 5.18 supports the power requirements of the PL 3120 Smart Transceiver in conjunction with
10mA of application current. The design has been verified to meet the energy storage power supply requirements
described earlier in this chapter. Specifically, it provides ≥10.8V after a transient load of 120mA for 140.7ms has
been added to a 19mA static load (9mA PL 3120 typical IDD5 + 10mA application current) under conditions of
nominal AC line voltage and room temperature. In addition it has been verified to provide ≥8.5V after a 250mA load
has been added for 140.7ms to a 23mA static load (13mA PL 3120 maximum IDD5 + 10mA application current) with
105VAC line voltage, -20% output capacitor tolerance and either 0C or 70C ambient temperatures. It supports typical
transmit duty cycles of >65% and worst case transmit duty cycles of ≥30%.
This combination of Bias Power BPS 1-14-00 module and Echelon PL 3120 Smart Transceiver has been verified to
pass all of the communication performance tests described in Chapter 7. In addition, a sample of the BPS 1-14-00
used with the application schematic of Figure 5.18, has been verified to pass EN50065-1 and FCC regulations for
conducted emissions. The user of this circuit must perform their regulatory qualification of their own particular
circuit layout, but this design has been found to be relatively insensitive to layout variations. The user must also
verify communication performance as described in Chapter 7 in order to validate that the particular layout
implementation still satisfies the requirements of that chapter.
Further information regarding the Bias Power BPS 1-14-00 module contact:
Bias Power LLC
330 West Colfax Street
Palatine, IL 60067 USA
Phone: 847-358-1259
Fax: 847-358-1346
[Link]
The only custom part for this design is transformer T201 which can be obtained by contacting:
Delta Electronics Inc.
Telephone: +1-886-3-3591968 Extension 2228
FAX: +1-886-3-3591991
[Link].tw1
The performance of this power supply is somewhat sensitive to layout. Minimizing the length of the net from the
Drain of the VIPer20A IC is of particular importance in controlling conducted emissions. In order to reduce the
development time required to successfully implement this supply, a recommended layout is provided in figure 5.20.
Building this pre-designed power supply as documented here greatly simplifies the task of developing a switching
supply-based Smart Transceiver device. This is because an instance of this design has been verified to meet all of the
impedance and noise requirements described elsewhere in this chapter.
Furthermore, testing of this supply has also been conducted in combination with PL 3120 Smart Transceiver
reference design #1217 from Appendix A and the isolated Line-to-Neutral coupling circuit Example #2 from
Chapter 4. This combination passed EN50065-1 and FCC regulations for conducted emissions with 8dB of margin
and was also verified to pass all of the communication performance tests of Chapter 7. In addition, this supply in
combination with coupling circuit Example #2 passed the surge tests documented for that circuit in Table 4.14 on
page 151.
Many of the off-line switching regulators available from Power Integrations Inc. (for example,
LinkSwitch®and TinySwitch® regulators) operate at frequencies which are not within the recommended range
for use with the PL Smart Transceivers and are not recommended for use with PL Smart Transmitters. The
TopSwitch® family of off-line switching regulators from Power Integrations operate within the recommended
range of frequencies at room temperature but they do not stay within the recommended range over
temperature. TopSwitch®regulators are therefore no longer recommended for powering PL Smart
Transceiver-based devices.
.
Most 1st and 2nd generation SIMPLE SWITCHER® regulators from National Semiconductor Corporation
operate at frequencies which are not within the recommended range for use with the PL Smart Transceivers
(that is, most LM25xx parts). Use of any SIMPLE SWITCHER regulator with a nominal operating frequency
of 52kHz, 100kHz or 150kHz is not recommended because these devices have a very wide frequency tolerance
which could result in operation outside the recommend range.
Newer SIMPLE SWITCHER regulators (for example, 3rd generation LM26xx parts) with operating frequencies of
≥200kHz can be used, providing that the design has been verified to meet the noise mask requirements of this chapter
over all operating conditions.
Introduction
This chapter includes discussions of conducted and radiated electromagnetic interference (EMI) and electrostatic
discharge (ESD) design practices for products containing the PL 3130 and 3150 Smart Transceivers. These design
practices help the designer to create a product with the required Electromagnetic Compatibility (EMC).
VDD5
VDD5
Vgate
PL 3120 or PL 3150
Power
Smart Transceiver
Mains Coupling
L Circuit
C load
N
Node
Logic
Ground
GND
Leakage
"CHASSIS" Capacitances to
GND Earth Ground
When a device is mounted near a piece of metal, especially metal that is earth grounded, any leakage capacitance
from fast signal lines to that metal will provide a path for RF currents to flow. When Vgate is pulled down to logic
ground, the voltage of logic ground with respect to earth ground will increase slightly. When Vgate pulls up to VDD5,
logic ground will be pushed down slightly with respect to earth ground. As Cleak,SIGNAL increases, a larger current
flows during Vgate transitions, generating more common-mode RF current. This common-mode RF current can
generate EMI in the 500kHz-300MHz frequency band, potentially exceeding FCC/CENELEC conducted and
radiated limits, even when Cleak,SIGNAL from a clock line to earth ground is less than 1pF. This means that it is
essential to guard the clock lines.
From this discussion, it is apparent that minimizing Cleak,SIGNAL is very important. By using 0.1µF or 0.01µF
decoupling capacitors at each digital IC power pin, VDD5 and logic ground noise can be reduced. Logic ground can
then be used as a ground shield for other noisy digital signals and clock lines.
Because the PL 3150 Smart Transceiver IC has an external memory interface bus, there are more traces in a device
using a PL 3150 Smart Transceiver that need to be guarded by logic ground than there are in a PL 3120-based device.
Noise generated by the memory interface and external memory components requires more VDD5 decoupling, and
generally requires a four-layer PCB to maintain RF-quiet VDD5 and logic ground lines.
In summary, the following general observations apply:
• Better VDD5 decoupling quiets RF noise at the sources (the digital ICs), which lowers EMI
• A four-layer PCB generates less EMI than a two-layer PCB because the extra layers facilitate better VDD5
decoupling and more effective logic ground guarding
• A four-layer PCB is recommended for use with the PL 3150 Smart Transceiver
• The PL 3120 Smart Transceiver generates less EMI than the PL 3150 Smart Transceiver because the PL
3120 Smart Transceiver has no external memory interface lines
• A two-layer PL 3120 Smart Transceiver-based device can meet FCC/CENELEC EMC if good decoupling
and ground guarding are used
Early testing of prototype circuits at an EMI range should be used to determine the effectiveness of these EMC
techniques.
scanning a keypad using I/O lines, then the I/O lines to that keypad will need to be diode-clamped as shown in Figure
6.2. If a negative ESD hit discharges into the keypad, the diode clamps to ground shunt the ESD current into the
ground plane. If a positive ESD hit discharges into the keypad, the VDD5 diodes shunt the current to the ground plane
via a 0.1µF decoupling capacitor that is placed directly adjacent to the clamp diodes. The keypad connector, diodes
and decoupling capacitor should all be located so that ESD current does not pass through sensitive circuitry as it exits
from the PCB.
V DD5 V DD5
Keypad
I/O
Lines
PL 3120/PL 3150
Smart Transceiver
• Care must be taken to ensure that the residual noise floor of the entire measurement set remains at least 10dB
below the specification limit once the appropriate attenuator is installed. This is important because the pro-
cess of adding attenuation to avoid instrumentation overload reduces the signal-to-noise ratio of the mea-
surement. That is, a noise floor less than 38dBµV for FCC measurements, and a noise floor less than
36dBµV for CENELEC EN 50065-1 measurements.
• The measurements must be made with the specified detector. For both FCC and CENELEC EN 50065-1
measurements, use the quasi-peak detector and the average detector as specified in CISPR Publication 16.
Although a scan with a peak detector is common because it can be performed quickly, the limits specified by
FCC Section 15.107 and by CENELEC EN 50065-1 are for quasi-peak and average detectors only. For
power line transceivers, peak measurements often appear erroneously high relative to the quasi-peak limits.
• The measurements must be made with the specified filter. For FCC measurements, a 9kHz bandwidth filter
is specified. For CENELEC EN 50065-1 measurements, a 200Hz bandwidth filter is specified for measure-
ments below 150kHz, and a 9kHz bandwidth filter is specified above 150kHz.
• For FCC measurements, an input filter which meets the requirements of CISPR 16 is suitable. The CEN-
ELEC EN 50065-1 specification requires that the filter inside the measuring receiver have even steeper filter
skirts than the minimum required by CISPR 16.
CENELEC EN 50065-1 specifies a 9kHz filter for measurements above 150kHz. For C-band operation, the allowable
transmit level is +122dBµV between 95kHz and 140kHz (+134dBµV in some applications). The CENELEC EN
50065-1 specification limit is +66dBµV quasi-peak at 150kHz. To make a proper measurement, the filter inside the
measuring receiver must have filter skirts providing at least 64dB of attenuation 15kHz from its center (122dBµV -
66dBµV + 8dB margin).
The CENELEC EN 50065-1 sub-committee SC 105A (Mains Communicating Systems) recognized the need for a
filter with steeper skirts than the minimum specified by CISPR Publication 16. As stated in the final draft of an
amendment to
EN 50065-1 dated January, 1994, “the measuring instrument defined by the minimum requirements of CISPR 16 is
unsuitable for the measurement of mains signaling equipment that uses a signaling frequency not far below 150kHz,”
and the sub-committee SC 105A agreed that “the proper solution would be to specify the attenuation characteristic of
the measuring receiver more closely, receivers being known to be available on the market.” EN 50065-1:2002 Annex
E specifies a filter that still complies with CISPR 16 but which has steeper filter skirts. Many spectrum analyzers,
even very expensive ones, do not meet this requirement [2].
The Rohde&Schwarz EMI Test Receiver ESHS30 has been found to have adequate filter skirts. Although its
specification does not guarantee adequate filter skirts, two samples of the ESHS30 test receiver have been found to
make the measurement reliably.
In addition, care must be taken in setting up the Rohde&Schwarz EMI Test Receiver ESHS30. The “automatic” mode
for setting input attenuation selects an incorrect attenuation level that will result in an overload condition, which is
not properly reported by the overload indicator on the Test Receiver. The proper attenuation must be selected using
manual mode. A set-up program to accurately run scans for CENELEC EN 50065-1 compliance testing on the
Rohde&Schwarz EMI Test Receiver ESHS30 is available from Echelon's LONWORKS Developer's Toolbox at
[Link]/downloads in the “OEM Components” download area.
An application note from Hewlett-Packard [12] describes a test method for performing EN 50065-1 conducted
emissions tests using Hewlett-Packard EMI test receivers. The title of the application note is “Conducted Emissions
Measurements on Power Line Transceiver Products.” This application note describes an “off-the-shelf” external filter
and a methodology that allows the measurements specified in EN 50065-1 to be performed accurately.
If the unit under test is found to exceed the applicable conducted noise limit at frequencies above 500kHz, it might be
the result of unintentional coupling of noise from the node's various digital circuits. If this occurs, improvements in
grounding and printed circuit layout are generally required. Refer to Chapter 4 for a discussion of how to avoid stray
field pickup by coupling circuits.
In some instances conducted emissions above 500kHz can be adequately reduced by the addition of a small value
capacitor (e.g., 470pF) either across the AC mains or from the line conductor to ground. While devices using the PL
Smart Transceiver have been demonstrated to pass various limits without an additional capacitor, variations in node
design and layout might require the addition of this small value capacitor. If a capacitor is added across the line it
should be an X2 safety-rated type for maximum surge reliability. If capacitors are added from either line or neutral to
earth, they should be Y safety rated. Alternately, this capacitor can be added across coupling circuit inductor L101
(see Figure 4.17) or across the line-side winding of transformer T101 (see Figure 4.18). If this option is chosen, either
a metallized polyester capacitor of ≥250VDC, a ceramic 1000VDC capacitor, or a Y-type capacitor should be used for
surge reliability. Note that this extra capacitance should only be added to the line side of the coupling transformer and
not to the transceiver side of the transformer.
Adding capacitance in the above locations reduces the input impedance of the device and could therefore cause an
increase in communication signal attenuation. The maximum value of capacitance which can be added without
significantly affecting attenuation depends on the application. Table 6.1 shows the maximum value of added
capacitance by application. Under no circumstances should capacitors >4700pF be used because they will result
in excessive signal attenuation.
Table 6.1 EMC Suppression Capacitor Value vs. Application
Capacitor
Impedance at
Network Impedance Primary A-band C-band
at Communication Communication Capacitor Capacitor
Application Frequencies Frequencies Value Value
Single building 1-20 ohms ≥250 ohms ≤4700pF ≤4700pF
AC mains
Inter-building 1 - 50 ohms ≥500 ohms ≤3600pF ≤2200pF
mains
distribution
Dedicated cable 50 - 100 ohms ≥1000 ohms ≤1800pF ≤1200pF
≥100 devices
≥100m
Dedicated cable 50 - 100 ohms ≥2500 ohms ≤680pF ≤470pF
>100 devices
>100m
Another common method of EMC suppression, the addition of ferrite beads, is generally unacceptable if they are
placed anywhere in the transmit signal path. Most ferrite beads have several ohms of impedance at 100kHz. The
impedance of any element placed in series with the transmit signal or return path must be significantly less than 1
ohm as described in chapter 4. There is, however, one means whereby a ferrite bead can be used to reduce common
mode high frequency emissions without affecting the transmit signal. If both the communication signal and its return
conductor (i.e., Line and Neutral for L-to-N coupling or Line and Earth for L-to-E coupling) pass through the same
bead in a common-mode fashion, the bead will not add any series impedance to the transmitter. This is true because
the signal currents in the two conductors produce opposite polarity (canceling) flux in the ferrite bead’s core.
Common mode noise of equal polarity on both conductors will produce additive flux in the ferrite bead’s core and
will thus be attenuated. Figure 6.3 illustrates both acceptable and unacceptable topologies for high-impedance ferrite
beads.
PL 3120/
PL 3150 Coupling Power
Smart
Transceiver
Circuit Mains
Unacceptable Topology
PL 3120/ Power
PL 3150 Coupling Mains
Smart Circuit
Transceiver
Unacceptable Topology
PL 3120/
PL 3150 Coupling Power
Smart Circuit Mains
Transceiver
Unacceptable Topology
PL 3120/ Power
PL 3150 Coupling Mains
Smart Circuit
Transceiver
Acceptable Topology
Communication
Performance
Verification
Introduction
This chapter describes a simple “black box” testing methodology for determining whether or not the communication
performance of a PL Smart Transceiver-based product has been compromised. This procedure works equally well for
products employing L-N or L-E coupling.
Before starting the verification process it is essential that the checklist in Appendix B be completed in its entirety.
Verification Procedure
The recommended verification procedure is as follows:
1. Create a controlled power line environment that is isolated from typical power mains noise and loading.
2. Provide known load impedances at the communication frequencies of the PL Smart Transceiver.
3. Use the PLCA-22 Power Line Communications Analyzer (model 58022) as a calibrated reference transmitter and
receiver.
4. Test the performance independent of the product's application by making use of the service pin of the Smart
Transceiver and internal statistics features. If the product under test does not have a service pin switch then it will
need to be added to the product for testing purposes.
5. Test for unintentional noise injection and excessive loading by the product under test. This is to ensure that the
device can behave as a “good citizen” on a power line network.
6. Verify that the product's transmit signal level is within acceptable limits. This is done by deliberately loading the
isolated power mains on which the product under test is operating and comparing the output transmission level
under load against a reference level.
7. Verify that the receive sensitivity of the product is within acceptable limits. This is performed using a pair of
PLCA-22 analyzers. The communication signal level of the transmitting PLCA-22 analyzer is gradually
decreased and the receive performance of the product under test is monitored and compared against reference per-
formance levels.
8. All test results can be documented using Table 7.1 at the end of this chapter.
The transformers shown in the circuit are 50/60 Hz, 1:1 isolation transformers. The load (VA) rating of each
transformer should be chosen based on the load requirements of the devices under test. Care should be taken when
wiring the isolator to avoid inadvertent signal coupling between the input and output wiring by spacing the input and
output wires at least 15cm (6 inches) apart.
Test Equipment
In addition to the power mains isolator described in the previous section, the following “off-the-shelf” equipment will
be needed for testing:
• One pair of PLCA-22 Power Line Communications Analyzers (Model 58022). The older PLCA-21 is not
suitable.
• Two PL-20 Line-to-Neutral power line couplers, Echelon model 78200-221.
• Two 50Ω coax cables approximately 30cm long with male BNC connectors on both ends (AMP 1-221128-x
or equivalent).
• A four (or more) outlet power strip which does not include either surge protection, neon lights, or noise fil-
tering circuitry.
• One Windows 98 or Windows XP-based computer configured with either a PCLTA-20 network interface
and PLM-22 SMX transceiver or a PL-SLTA network interface.
E
open
E
open
Impedance Circuit
This circuit, as shown in Figure 7.4, should be built in a suitable enclosure with bulkhead BNC jacks (AMP 227755-
x or equivalent). This impedance circuit, placed in series with the output path of a PLCA-22 analyzer, effectively
increases its output impedance. This will allow for a more sensitive measurement of the receive mode impedance of
the product under test.
Attenuation Circuit
This circuit, as shown in Figure 7.5, should be built in a suitable enclosure with bulkhead BNC jacks (AMP 227755-
x or equivalent). This attenuation circuit, or “pad”, will provide approximately 60dB of attenuation when connected
into the receive performance verification set-up of Figure 7.9.
For the receive performance verification, a computer is required to be running NodeUtil Node Utility
([Link]). This utility is available on the Echelon Web site at [Link]/downloads under
Development Tools. The Node Status command is used to obtain a record of the number of uncorrupted packets
received by the Unit Under Test (UUT). This set-up is described in detail in the Packet Error Measurement with
NodeUtil section later in this chapter.
PLCA-22
service pin
packet detect LED
To power
mains
ISOLATOR
If either of the -72dB LEDs is on solid or if either of the -66dB LEDs flash or if the PKD LED flashes more than once
per minute, then excessive noise or interference is present. This could be caused by one or more of the following
sources:
• The UUT is generating unwanted noise internally. This is most often associated with on-board switching
power supplies. If the UUT includes a switching power supply, verify that the power supply noise masks of
Chapter 5 have been met.
• Power line communications signals present on the power input side of the isolator are not sufficiently atten-
uated. Ensure that no other power line signaling equipment is operating on the power mains when perform-
ing this test.
• The isolator is not completely isolating the test set-up from noise on the power mains. Verify the effective-
ness of the isolator as described earlier.
The source of this noise or interference must be identified and eliminated before proceeding with verification testing.
input impedance of the UUT is excessively low (<100Ω). The impedance of the UUT must be corrected before
proceeding; refer to the node checklist described in Appendix B for assistance.
6. Record the results of Step 5 in Table 7.1 at the end of this chapter.
PLCA-22
See text before powering unit.
service pin
packet detect LED
To power
mains
Isolated
ISOLATOR Power
Line
PLCA-22
coax
Impedance coax
Send Circuit PL-20
TxVpp:10V (see fig. 7.4) L-N 240V
Coupler
Isolator as shown in Figure 7.8 (if the UUT uses Line-to-Earth coupling to a single power phase then the “7Ω
load” should be used instead).
2. Verify that the UUT application program is not sending messages.
3. Press the service switch on the UUT.
4. Observe the primary signal strength LEDs on the PLCA-22 analyzer and check which of the primary LEDs illu-
minate. All primary LEDs up to, and including, the 0dB LED should flash for at least 6 out of 10 service pin mes-
sages from the UUT.
5. Record the result of Step 4 in Table 7.1 at the end of this chapter.
PLCA-22
service pin
packet detect LED
To power
mains
Isolated
ISOLATOR Power
Line
5Ω Load (7Ω
2.4ž
load L-N Load
for sgl Ø L-E
UUT)
If the correct LEDs do not illuminate, there might be a problem in the transmit path of the power mains coupling
circuit of the UUT. Possible causes of a reduced transmit signal level include:
• Additional series impedance has been inadvertently added between the transmit amplifier of the PL Smart
Transceiver and the mains connection.
• The DC resistance of the series resonant inductor in the coupling circuit (L2/L102 in Chapter 4 coupling cir-
cuit figures) is too high.
• The UUT contains a low-current line fuse that has high series resistance.
• A component of the wrong value has been inadvertently used in the UUT.
• Inadequate analog power supply (VA) voltage under conditions of full transmit current loading.
Refer to the node checklist in Appendix B for more information about verifying the design of the UUT.
=============================
The main command menu for NODEUTIL is as follows:
A -- (A)dd node to list.
C -- Set (C)lock rates of the network interface
D -- Set the (D)omain of the network interface.
E -- (E)xit this application and return to DOS.
F -- (F)ind nodes in the current domain.
G -- (G)o to node menu.............
H -- (H)elp with commands.
L -- Display node (L)ist.
M -- Change node (M)ode or state.
O -- Redirect (O)utput to a file.
P -- Send a service (P)in message from a PCLTA.
Note that 3.5Vp-p TxVpp is used for the Send PLCA-22 even though PL Smart Transceiver-based UUT’s transmit
using 7Vpp. Setting the Send PLCA-22 analyzer to 3.5Vp-p (6dB lower than the 7Vp-p transmit level of the UUT)
provides the opportunity to test for 6dB more receive sensitivity when the analyzer’s Attn is varied in later steps of
this procedure.
5. Connect the UUT test setup as shown in Figure 7.9. Once NodeUtil is running correctly and the start-up screen
shown above is displayed, press the service switch on the UUT. This will cause NodeUtil to register the service
pin message received from the device. Select the “S” command to obtain the status from the UUT (the entry in the
results screen named “Packets received by node” is the number of uncorrupted packets received by the UUT
because the last time the statistics were cleared). Type “Y” at the prompt to clear the status of the UUT. The S
command will be used in the next few steps to obtain the received packet count from the UUT. Be sure to clear the
status of the UUT after each reading.
6. Press START on the Send PLCA-22 analyzer. The test will begin and the receive packet count on the Recv
PLCA-22 analyzer should increment with a packet error rate very close to 0% (<1%). The -60dB LED on the pri-
mary frequency signal strength meter on the Recv PLCA-22 analyzer should illuminate, indicating that the
received signal is approximately -60dB relative to the 3.5Vp-p transmit level
(-66dB relative to a 7Vp-p transmit level). This level serves as a starting point; additional attenuation will be
added via the Attn function of the Send PLCA-22 analyzer in Steps 8 and 9.
7. Once the Send PLCA-22 analyzer has transmitted 1000 packets, obtain the received packet count from the UUT
using the NodeUtil S command. Record that value and the packet error rate of the Recv PLCA-22's analyzer in
columns 4 and 5 primary frequency section of Table 7.1 at the end of this chapter. Calculate the error value as a
percentage by subtracting the number of packets received by the node from 1011 and then dividing by 10 (divide
by 1000 then multiply by 100) and record the result in the right most column of Table 7.1. Refer to the notes at the
end of these steps for details of this calculation.
PLCA-22
To power
mains Isolated
ISOLATOR Power
Line coax
PL-20
L-N 240V
Coupler
PLCA-22
coax
Attenuation coax
Send Circuit PL-20
TxVpp:3.5 (see fig. 7.5) L-N 240V
Coupler
8. After moving the cursor to the Attn field, press the CHANGE and ENTER keys on the Send PLCA-22 analyzer
to increment the Attn level by 6dB. Then clear the status on the UUT by responding with a “Y” to the NodeUtil
prompt and then press START on the Send PLCA-22 analyzer.
9. Repeat Steps 7 through 8 above for all Send Attn levels up to, and including 24dB, recording the results each
time in theTable 7.1 at the end of this chapter.
10. To test the secondary operating frequency of the UUT, change the PLCA-22 analyzers from UnackPri to Unack-
Sec mode. Repeat Steps 6 through 9, above, but record the results in the secondary frequency section of Table 7.1.
Notes:
The calculation of packet error rate used in the above verification procedure avoids inaccuracies which would result from
the use of CRC error count to compute packet error rate. The material in this note is provided to explain how an accurate
measure of packet error rate is determined.
Packet error rate actually includes both packets received with an incorrect CRC plus any packets which were so weak or
corrupted they were not detected at all. These “missed packets” are, by definition, not included in the CRC error count of
a node. For a physical layer packet error rate of 10%, the percentage of missed packets is generally negligible. Under
conditions where the packet error rate is greater than 10%, a significant portion of the error rate might be due to missed
packets.
The “Packets received by node” field in NodeUtil software yields the actual number of packets correctly received by the
node. Subtracting this number from the total number of packets sent gives the exact packet error count, including missed
packets.
In addition to the number of test packets selected on the PLCA-22 analyzers, the total number of packets sent on the power
line actually includes several control packets sent between the PLCA-22 analyzers. These control packets are used by the
PLCA-22 analyzers to synchronize their settings before the test, and to exchange data related to the test immediately after
the test. Additionally, querying the status of the UUT causes a few packets to be logged. The total overhead is generally
11 packets.
Given the above, a more accurate formula for calculating the physical layer packet error rate with 1000 test packets is then:
PER% = (1011 - # “Packets received by node”) x 100 / 1011
The overall signal attenuation between the Send PLCA-22 analyzer and Recv PLCA-22 analyzer shown in Table 7.1
is the sum of the attenuation level of the attenuator circuit and the Attn level of the Send PLCA-22 analyzer plus 6dB
resulting from the use of a 3.5Vp-p transmit level on the Send PLCA-22 analyzer. A properly performing PL Smart
Transceiver-based product will show a low packet error rate (<3%) up to an overall attenuation of 78dB r.e. 7Vpp
(72dB for secondary frequency). Above these attenuations the error rate for the UUT can increase.
If the Recv PLCA analyzer and UUT error rates are not greater than 5% with 90dB of overall attenuation, then there
is a problem with the test setup. Check that everything is setup as shown in Figure 7.9. Note that it is common for the
UUT to work to approximately 6dB more overall attenuation than the Recv PLCA-22 analyzer due to enhancements
in the PL Smart Transceivers.
If the results of this test are worse than expected, it is helpful to know if the problem affects only the performance of
the UUT or if adjacent receivers are also impaired by the presence of UUT. If the receive performance of the Recv
PLCA-22 analyzer was worse than expected, disconnect the UUT and recheck the PLCA-22 analyzer error rate
versus attenuation. If it is determined that the presence of the UUT impairs the performance of the PLCA-22
analyzers then the UUT might be injecting noise back onto the power line. Note that the same symptoms would also
be observed if no corrections were made to a UUT which previously failed the Excessive Loading Verification test.
If it is determined through a comparison of the UUT's expected and observed error rates that the UUT cannot reliably
receive packets with an overall attenuation of at least 78dB r.e. 7Vp-p, then check the following:
• If the UUT includes a switching power supply, ensure that the power supply noise masks of Chapter 5 have
been met.
• Compare the values of the coupling circuit components with those recommended in Chapter 4. It is possible
that the wrong value component was inserted and partial, if compromised, receive performance was still
possible.
• Re-verify the Unintentional Output Noise Verification test earlier in this chapter.
• Re-verify the receive mode impedance of the UUT by repeating the Excessive Loading Verification Test
earlier in this chapter.
Refer to the node checklist in Appendix B for more information about verifying the design of the UUT.
Fail Pass
Preliminary Checks
VA power supply voltage 10.8V to 18.0V _________V
VDD5 power supply voltage 4.75V to 5.25V _________V
Oscillator frequency (6.5523 to 6.5549 or 9.9980 to 10.0020MHz) _________MHz
Good Citizen Verification
Unintentional Output Noise Verification-UUT and RX analyzer with no packet transmission Fail Pass
Primary signal LEDs -72dB not “on” solid and -66dB not flashing ________dB________
Secondary signal LEDs -72dB not “on” solid and -66dB not flashing ________dB________
Packet Detect LED must not flash more than once per minute ________/min
Excessive Loading Verification - Send 10Vpp through 88.7Ω and external coupler Fail Pass
RX analyzer primary LEDs -3dB LED must be “on” or flashing ____dB____on____Flash
Transmit Performance Verification - RX analyzer reading UUT svc pin msg. 5/7Ω load Fail Pass
RX analyzer primary LEDs 0dB LED must flash ≥6/10 tries ____dB____/10 tries
Receive Performance Verification - Send 1kpkts at 3.5Vpp through 30.1kΩ attenuator Fail Pass
Primary Frequency
Send PLCA Overall Recv PLCA Recv PLCA UUT UUT UUT
Transmit Attenuation UnackPri UnackPri #Pkts Pri Pri
Attenuation Error% Error% Received Error% Error%
(Attn) (Attn + 66) (expected) (observed) (observed) (expected) (1011-#Rcvd)/10
0 dB 66 dB <1% % <1% %
6 dB 72 dB <3% % <2% %
12 dB 78 dB any % <3% %
18 dB 84 dB any % any %
24 dB 90 dB ≥5% % ≥5% %
Secondary Frequency
Send PLCA Overall Recv PLCA Recv PLCA UUT UUT UUT
Transmit Attenuation UnackSec UnackSec #Pkts Sec Sec
Attenuation Error% Error% Received Error% Error%
(Attn) (Attn + 66) (expected) (observed) (observed) (expected) (1011-#Rcvd)/10
0 dB 66 dB <1% % <1% %
6 dB 72 dB any % <3% %
12 dB 78 dB any % any %
18 dB 84 dB any % any %
24 dB 90 dB ≥5% % ≥5% %
PL Smart Transceiver
Programming
Introduction
Certain parameters of PL 3120 and 3150 Smart Transceivers are programmed by the developer. This chapter provides
an explanation of the various choices and how they are programmed by way of the NodeBuilder® Development Tool
version 3.1 (or later).
The factory default transceiver type for the PL 3120 Smart Transceiver is PL-20N. This allows programming PL
3120 Smart Transceiver chips in system through the power line network without having to pre-program the parts
using a programmer.
power line signaling devices is allowed to transmit continually for a period less than or equal to one second, after
which it must cease transmitting for at least 125 milliseconds.
The PL Smart Transceivers incorporate the CENELEC access protocol and the user can enable or disable the
CENELEC access protocol at the time of channel definition. When enabled, the PL Smart Transceiver enforces the
CENELEC access protocol while still maintaining the benefits of the LonTalk protocol. When the CENELEC access
protocol is enabled, overall network throughput is reduced by 11%.
The CENELEC access protocol must be enabled to meet regulatory requirements in countries that follow CENELEC
regulations (i.e., most European countries). It is recommended that the CENELEC access protocol be disabled on
products that will be used in any country that does not follow CENELEC regulations, in order to maximize
throughput. Note that devices that have the CENELEC protocol enabled should not be installed on the same network
with devices that have the CENELEC protocol disabled. In this instance the devices with the CENELEC protocol
enabled would be prevented from transmitting whenever there was heavy traffic from the CENELEC protocol
disabled devices. Thus all of the devices on a single network should either have their CENELEC protocol enabled or
they should all have it disabled. CENELEC regulations do not specify an access protocol for use in the CENELEC A-
band. When programmed with the A-band transceiver parameters described later in this chapter, the internal
CENELEC access protocol for the PL Smart Transceiver is disabled. With this selection, an active Band-In-Use
signal will not prevent a PL Smart Transceiver from transmitting.
Power Management
PL Smart Transceivers incorporate a power management feature that supports the design of low cost power supplies
in very cost sensitive consumer applications such as networked light dimmers, switches, and household appliances.
This class of application typically requires only occasional, or low duty cycle, transmission from the consumer
device. Power supplies for these devices can take advantage of the very low receive-mode current of the PL Smart
Transceivers as well as wide VA supply operating range (+8.5VDC to +18VDC) to reduce power supply cost.
A low transmit duty cycle implies that the device transmits packets infrequently, e.g., the product waits for a
minimum of 10 packet times between transmitting each packet - a 10% transmit duty cycle. A power supply design
that takes advantage of this duty cycle can store energy on a capacitor during the relatively long period between
transmissions, when the Smart Transceiver draws very little current, and then consume the stored energy to transmit a
packet. This type of power supply, referred to as an “energy storage power supply,” stores energy by charging an
energy storage capacitor to a relatively high voltage (e.g., 15V) while in receive mode. The voltage on the capacitor
then falls or “droops” toward a lower limit (e.g., 9.0V) while transmitting. The energy storage capacitor is then
slowly recharged to the higher voltage during the relatively long time between transmissions. Traditionally, the
proper design of such a power supply required knowledge of the maximum transmit duty cycle to be supported, and
an implementation that accounted for all worst case operating conditions (temperature, line voltage, component
variation and transmitter loading).
The cost of such a power supply can be significantly reduced if, instead of designing the supply for the maximum
possible transmit duty cycle and for the worst case environmental conditions, the supply can be designed for typical
operating conditions. However, designing for typical operating conditions implies that a mechanism is needed to
“manage” the worst case operating conditions such that reliable operation is assured. This management feature must
also address products whose operating conditions (especially transmit duty cycle) are not known in advance.
The power management feature of PL Smart Transceiver implements the needed management functionality by
intelligently monitoring the energy storage power supply. Should the device attempt to transmit too frequently, the
power management feature enforces a limit on the transmit duty cycle by preventing the PL Smart Transceiver from
transmitting until the power supply of the device recovers to the point that sufficient energy is available to transmit a
packet. Details of this feature and application examples are provided in Chapter 5.
The user can enable or disable power management by selecting how the Out-Of-Gas pin (OOGAS) of the PL Smart
Transceiver is connected and by the “standard transceiver type” that is selected at the time of channel definition. If the
OOGAS pin of the PL Smart Transceiver is connected directly to its VCORE pin then power management is disabled
independent of the standard transceiver type that is used. If the OOGAS pin of the PL Smart Transceiver is connected
to the specified VA resistive voltage divider, then the user can enable power management at the time of channel
definition by choosing a standard transceiver type with a “LOW” suffix. The only difference between a set of
standard transceiver parameters with the “LOW” suffix and the corresponding set without the “LOW” suffix is
whether the power management feature is selected or not. Enabling power management requires both, use of the
specified OOGAS voltage divider and a standard transceiver type with a “LOW” suffix.
When power management is enabled, PL Smart Transceivers require a VA supply voltage of 13.0V before they
can be assured of transmitting a packet. A product with a fixed VA power supply less than or equal to 13.0V
should never have power management enabled because it might not be allowed to transmit. Likewise a device
whose power supply relies on power management to operate correctly should never have the power
management feature disabled. Table 8.1 summarizes these points.
Table 8.1 Power Management Requirements Vs. Type of Power Supply
Energy Storage VA Power Supply
Power Management Fixed VA Power Supply ≤13.0V >13.0V in Receive Mode
Disabled OK Not allowed if the power supply design
relies on power management for worst
case duty cycle and load conditions.
Enabled Not allowed: device might not trans- OK
mit
Note that some legacy network tools load a device's communication parameters as part of the installation and
replacement process and calculate those parameters based on the channel (rather than the particular device). Such
tools can not be used for systems that contain a mixture of devices with and without power management enabled on
the same channel.
Tools based on the LNSTM network operating system, such as the LonMakerTM Integration Tool, correctly support all
configurations of PL Smart Transceiver based devices with or without power management. For a tool not based on
LNS, contact your tool vendor to determine if it can support a mixture of power management and non-power
management nodes on the same channel.
Note: If you do change the parameters to the PL-20A, be sure the change the parameters for all your PL 3120 Smart
Transceiver-based devices before shipping to the final customer.
When building devices with energy storage supplies, you must take care to insure the power supply does not drop
below 10 volts during programming or before the LOW transceiver parameters are loaded. This can be accomplished
by using a higher voltage on the power line input or by directly applying the VA voltage using pogo pins into the
device. The first step when using NodeLoad should be to download the PL 3120 Smart Transceiver parameters. See
the NodeLoad user's guide for how to download these parameters.
NodeLoad supports the Echelon standard power line network interfaces. The maximum download time is about 30
seconds for an application that consumes all available EEPROM memory in the PL 3120 Smart Transceiver. If your
production line is capable of producing one completed device every 10 seconds, then 3 NodeLoad stations will be
required to keep up with the production volume. Isolators will be required at each NodeLoad station to prevent
communications between different stations. See the Power Line Test Isolator section in Chapter 7 for details on how
to build your own isolator.
PL Smart Transceiver
Reference Designs
Introduction
This appendix describes the implementation of the external, discrete interface circuitry for the PL 3120 and PL 3150
Smart Transceivers. The interface circuitry includes the front-end filter for the receiver and the power amplifier for
the transmitter. The interface is comprised of roughly fifty components, primarily resistors and capacitors. Echelon
provides a comprehensive PL Development Support Kit (DSK) for implementing the interface circuitry. The
section that follows lists the contents of the DSK. Contact your Echelon salesperson for details about purchasing the
DSK.
Reference designs are provided with the DSK to address applications requiring different numbers of printed circuit
board (PCB) trace layers, single or double sided component assembly, various aspect ratios, and transmit current
requirements. Each PL Smart Transceiver reference design package consists of a zip archive file that contains all of
the relevant files for that design. The naming convention used for these zip files is shown in the figure below.
Revision
Version (aspect ratio, design rules, etc.)
TX1 - Transmit amplifier with 1Ap-p current limit
TX2 - Transmit amplifier with 2Ap-p current limit
1S - One sided component mounting
2S - Two sided component mounting
Number of printed circuit board layers
Development Support Kit
Smart Transceiver model
Power Line
Using the Reference [Link] Explains how to use the reference layout files
Using the [Link] Text file describing how to obtain and use a free P-CAD® viewer
012-xxxx-01_R_Schematic.dsn Schematic design file in OrCAD® format
012-xxxx-01_R_Schematic.pdf Schematic design file in PDF format
Electrical characteristics of Reference Designs with 1Ap-p Transmit Amplifier (over recommended operating
conditions)
NOTE: Minimum value can be 8.5V under certain conditions (refer to Chapter 5 for details).
The following formula must also be satisfied: VATXAVE < (150-TAMAX)/(8*DMAX);
Where: VATXAVE = Average VA supply voltage while transmitting
TAMAX = Maximum ambient temperature (degrees C)
DMAX = Maximum transmit duty cycle of the device (expressed as a decimal number)
Recommended Operating Conditions for Reference Designs with 2Ap-p Transmit Amplifier
Electrical characteristics of Reference Designs with 2Ap-p Transmit Amplifier (over recommended operating
conditions)
Note: The following formula must also be satisfied: VATXAVE < (150-TAMAX)/(5.6*DMAX);
Where: VATXAVE = Average VA supply voltage while transmitting
TAMAX = Maximum ambient temperature (degrees C)
DMAX = Maximum transmit duty cycle of the device (expressed as a decimal number)
Every Power Line Smart Transceiver transmits signals on the order of several volts and is capable of driving 1 to 2
amperes of current into a low-impedance power line. Careful circuit layout is required to ensure that heat is properly
dissipated and amplifier stability ensured across the range of operating temperatures. Ordinary circuit layout
techniques are not suitable for delivering >100kHz modulated signals at high current. The combination of voltage and
current produced by the transmit amplifier generates significant heat and dictates very careful component placement
and PCB copper design.
The DSK reference designs have been subjected to thorough electrical and thermal analysis which address all of the
above issues. DSK reference designs thoroughly validated by Echelon have:
• Passed hundreds of hours of validation testing at voltage and temperature extremes;
• Been verified to comply with a twenty-six point checklist based on knowledge drawn from dozens
of smart transceiver implementations; and
• Completed thousands of Monte Carlo simulation runs to ensure that all critical performance pa-
rameters are maintained over the full range of component tolerance and environmental conditions.
Any deviation from DSK reference layouts will very likely result in degraded performance in one or more of the areas
described in the table below.
Consequences of not
Critical Area following Guidelines Causes for Consequence(s) Solutions
Electromagnetic - Multiple PCB layout - Deviating from DSK reference lay- - Use an approved DSK reference
Compliance (e.g.,
iterations outs design without modification
conducted emis- - Field failures due to - Ignoring the coupling circuit and - Follow the recommendations in
sions, surge, ordegraded surge immunity power supply recommendations in Chapters 4 and 5
ESD) - Intermittent operation Chapters 4 and 5 - Conduct a design review with
due to degraded ESD Echelon
immunity
Heat Management - Premature field failure - Changing the relative position of - Use an approved DSK reference
components on the reference layout design without modification
- Reducing the quantity or location of - Conduct a design review with
copper on the reference layout Echelon
- Adding “thermal reliefs” to the refer-
ence design copper
Communication - Devices that function - Changing the relative proximity or - Use an approved DSK reference
Performance under typical laboratory dimensions of certain PCB tracks on design without modification
conditions may not be the reference design - Follow recommendations in
able to communicate - Ignoring the coupling circuit and Chapters 4 and 5
under worst case field power supply recommendations in - Verify that the frequency of the crys-
conditions Chapters 4 and 5 tal oscillator is centered as described
in Chapter 2
- Verify communication performance
as described in Chapter 7
- Conduct a design review with
Echelon
All of the above issues can be avoided by using DSK reference designs without modification, and by following the
coupling circuit, power supply, and crystal oscillator recommendations in Chapters 2, 4, and 5.
Echelon offers a comprehensive design review service to assist developers with respect to adherence to the DSK and
Data Book requirements. Contact your local distributor or Echelon sales person to arrange for a design review.
PL Smart Transceiver-
Based Device
Checklist
Introduction
This appendix includes a checklist to ensure that devices that use PL 3130 and 3150 Smart Transceivers perform to
their full capability. All pages of Appendix B can be copied.
Device Checklist
PL Smart Transceiver DSK (Development Support Kit) reference design layout and components
Check When
Item Completed Description
1 Reference design used:____________________________________
Use the name of the ZIP archive file containing the reference design docu-
ment. For example, PL_3120_DSK_2L1S_TX1_1_R.
2 Describe deviations, if any, in implementing Reference Design Layout:
Note: Only special and well justified cases can have deviations from the ref-
erence layout.
3 Check that the fabrication notes from the reference design package have been
followed with regard to the PCB material, layer thickness, plating and via
clearance.
4 If physical unit is available, the product has been verified to meet communi-
cation performance capabilities per Chapter 7.
5 If device utilizes power management OOGAS pin has been connected to
appropriate voltage divider to VA.
6 For non-power management devices OOGAS is connected to VCORE and
R24 and R25 are not loaded.
Note: If the design needs to support enabling and disabling power manage-
ment, then do not connect OOGAS to VCORE directly, just place R24 and
R25 as shown in the reference design. The power management feature will be
enabled/disabled by choosing the right communication channel when build-
ing the device with NodeBuilder.
7 The PL Smart Transceiver operating clock frequency has been measured and
is sufficiently close to nominal (6.5536MHz for A-band or 10.0000MHz for
C-band) such that when accounting for crystal variation and temperature
variation, the total frequency deviation from nominal will not exceed
±200ppm.
8 If used, the transceiver BIU, PKD, and TXON signals are connected to low-
current (≤12mA) LEDs via series current-limiting resistors connected to
ground.
9 If used, the transceiver BIU, PKD, and TXON signals are connected to ESD
protection diodes if a plastic or metal enclosure without a good ground con-
nection is used.
24 Capacitors added for EMI suppression (if needed) meet the requirements of
Table 6.1.
PL 3120 and PL 3150 Smart Transceiver Coupling Circuit Components Key Specifications
25 Fuse F101
6A or 6.3A rating (DC resistance ≤0.1Ω)
Time lag (slow blow type)
Proper voltage rating
26 Capacitor C101
Proper value selected
10% (or better) tolerance
Proper voltage rating (including AC or DC)
Safety listing, if applicable
27 Capacitor C102
Metallized polyester (required for surge immunity)
Proper value selected
Proper tolerance
Proper voltage rating
28 Inductor L101 (for a non-transformer isolated coupling circuit)
1.0mH value
DC current rating ≥30mA
DC resistance ≤14Ω
10% (or better) tolerance
29 Inductor L103
Proper value
DC current rating ≥30mA
DC resistance ≤55Ω
10% (or better) tolerance
30 L101 and L103 spaced > 1cm (0.4 inches) apart (for a non-transformer iso-
lated coupling circuit)
31 Inductor L102 (if needed)
Proper value selected per Chapter 4
Proper DC current rating
Proper DC resistance
10% (or better) tolerance
If toroidal inductor is used, select current rating to avoid saturation (2-3X that
of the example inductor)
32 Transformer T101 (for a transformer isolated coupling circuit)
Transformer with correct specification is selected
See Appendix C
33 Resistor R101
Proper value for discharge time requirements
Proper voltage rating (>1.4*ACRMS line voltage)
Proper power rating for hi-pot test (if applicable)
34 Capacitor C103
Proper value
Voltage rating ≥16VDC
Proper ESR@100kHz
Verify suitable lifetime rating
35 PROTECT circuit
If Varistor used:
Proper AC or DC voltage rating
Surge rating for application requirements, see Chapter 4
No varistor to earth unless hi-pot testing is performed prior to insertion of
varistor and ground leakage current is not an issue.
If gas-discharge tube used place on line side of fuse
36 Diode D101
Reverse breakdown ≥50V
forward voltage ≤1.3V@1A@25C
surge current ≥30A for 8.3ms
reverse recovery ≤200ns
reverse current ≤100uA@100C
typical capacitance ≤40pF@4V
37 Diode D102
Reverse breakdown ≥50V forward voltage ≤1.0V@1A@25C
surge current ≥30A for 8.3ms
reverse recovery ≤25ns
reverse current ≤100uA@100C
typical capacitance ≤40pF@4V
38 If a linear supply has been used, skip the remaining power supply checklist
sections.
47 All output noise masks shown in Chapter 5 are satisfied using measurements
taken over the full range of anticipated loads on the supply.
Isolation Transformer
Specifications
Schematic
2 4
Contact vendors for mechanical information, temperature ranges, safety agency compliance, and pricing information.
Table C.2 12µH-Leakage Transformer Vendors and Part Numbers
Schematic
4 8
Contact vendors for mechanical information, temperature ranges, safety agency compliance, and pricing of their parts
listed below.
Table C.4 Low-Leakage Transformer Vendors and Part Numbers
Vendor Contact Information Part Number
Precision Components, Inc. Telephone: +1-815-476-9881 0505-0821
[Link] Fax: +1-815-476-2535
Transpower Technologies, Inc. Telephone: +1-775-852-0140 TTI8231
[Link] Fax: +1-775-852-0145
Hardware Description
The test system should have the following components.
• Data acquisition hardware
• Test interface board
VCC
1
R7
10k
1/4W
3 2 5%
UUT Trigger
D1
1 2 2 Q1
N L 2N3904
Isolator AC 1N4148 TO-92
1
R6
1
C3 100k
1
0.1uF 1/4W
R5 5% 5%
100 ohm
2
1/4W
5%
2
R4
1
1 2
D/A
R2
4.7ohm 2W 1% 15k
230VAC 1/4W
L-N Coupler 5%
21
C2
1uF X2 230VAC 20%
A/D
2
Software Description
Input file
A file containing either the A-band or C-band waveform that represents the Query ID broadcast message should be
used as an input to the software. The file data represent amplitude in volts and interval between them is 1us. Any un-
configured device with a PL Smart Transceiver will respond to the appropriate waveform by transmitting its Neuron
ID. The files are available as a free download from the Echelon Web site (go to [Link]/downloads
and select OEM Components from the Search for software drop-down menu).
Test process
1. Read the waveform data into a buffer called waveform[].
2. Scale the waveform by applying proper gain and offset in order to produce a 7V p-p waveform prior to the attenu-
ation circuit. The waveform should be centered on zero volts.
3. Prepare the A/D channel to be ready for capturing the response of the UUT upon receiving a trigger signal from
the interface board.
4. Output the waveform[] signal to the UUT through the A/D channel.
5. When the UUT receives the signal, it will respond with a message that contains the Neuron ID. This will take
place in a few hundred milliseconds.
6. Capture the response and calculate the VRMS value over the first 35 bits. The measurement window should be
9.7ms for A-band and 6.36ms for C-band.
The test limit for VRMS value depends on the transceiver channel type and amplifier type that are used in the power
line device. The table below lists suggested limits.
Table D.1 Test Limits of Different Transceiver Types
Transceiver Type used in the device VRMS
C-band 7V p-p/1A 0.8 (0.65 for 1-phase
L-E coupling)
C-band 10V p-p/2A 1.3
A-band 7V p-p/1A 0.8
A-band 8V p-p/2A 1.2
Figure D.2 shows a complete test cycle with respect to transmit, receive, and trigger signals (the signal levels and
timings in the figure are not to scale but are meant to illustrate the measurement concepts).
7V p-p
D/A signal
Response from
UUT to QueryID
QueryID message seen by the message into
UUT (70dB attenuation) 5 ohm load
A/D signal
Trigger signal
Smart Transceivers communication frequencies can affect the reproducibility of the test. The power line isolator is
designed to filter noise with frequencies near the PL Smart Transceivers communication frequencies. The isolator
does not, however, filter out low frequency noise to a level that is 80dB below the PL Smart Transceivers transmit
level. In fact it is not uncommon to observe low frequency noise on the order of 1Vp-p getting through the isolator. A
consequence of this fact is that the background noise level must be measured with a frequency-selective instrument.
The simplest method of verifying the test system background noise is to connect one PLCA-22 (Power Line
Communications Analyzer, Echelon Model 58022) to the mains connection of the UUT. The PLCA-22 can be used
to monitor the noise level via its signal strength LED bar graph. The signal strength meter displays the mains signal
levels after being filtered by the transceiver’s internal digital signal processing. Thus the meter displays only the
noise that will affect the PL Smart Transceiver. The background noise should read no higher than –78dB. That is, at
most, only the –78dB LED on the signal strength meter should be illuminated. If additional LEDs are illuminated
then the isolator should be verified as described in Chapter 7.
CMOS Devices
The following steps should be observed when working with CMOS devices.
• Do not exceed the maximum ratings specified by the data sheet.
• All unused digital device inputs should be connected to VDD5 or GND.
• All low-impedance equipment (pulse generators, etc.) should be connected to CMOS inputs only after the
device is powered up. Similarly, this type of equipment should be disconnected before power is turned off.
• A circuit board containing CMOS devices is merely an extension of the device and the same handling pre-
cautions apply. Contacting connectors wired directly to devices can cause damage. Plastic wrapping should
be avoided. When external connections to a PC board address pins of CMOS integrated circuits, a resistor
should be used in series with the inputs or outputs. The limiting factor for the series resistor is the added
delay caused by the time constant formed by the series resistor and input capacitance. This resistor will help
limit accidental damage if the PC board is removed and is brought into contact with static-generating mate-
rials.
• All CMOS devices should be stored or transported in materials that are antistatic. Devices must not be
inserted into conventional plastic “snow,” Styrofoam®, or plastic trays. Devices should be left in their origi-
nal container until ready for use.
• All CMOS devices should be placed on a grounded bench surface and operators should ground themselves
prior to handling devices, because a worker can be statically charged with respect to the bench surface. Wrist
straps in contact with skin are strongly recommended. See Figure D.3.
• Nylon or other static-generating materials should not come in contact with CMOS circuits.
• If automatic handling is being used, high levels of static electricity can be generated by the movement of
devices, belts, or boards. Reduce static build-up by using ionized air blowers or room humidifiers. All parts
of machines which come into contact with the top, bottom, and sides of IC packages must be grounded metal
or other conductive material.
• Cold chambers using CO2 for cooling should be equipped with baffles, and devices must be contained on
or in conductive material, or soldered onto a PCB.
• When lead-straightening or hand-soldering is necessary, provide ground straps for the apparatus used and be
sure that soldering ties are grounded.
Wave-solder Operations
The following steps should be observed during wave-solder operations.
• The solder pot and conductive conveyor system of the wave-soldering machine must be grounded to an earth
ground.
• The loading and unloading work benches should have conductive tops which are grounded to an earth
ground.
• Operators must comply with precautions previously explained.
• Completed assemblies should be placed in antistatic containers prior to being moved to subsequent stations.
NOTES:
1. 1/16 inch conductive sheet stock covering bench-top
1 work area.
2. Ground strap.
3. Wrist strap in contact with skin.
2 4. Static neutralizer. (Ionized air blower directed at work.)
5 Primarily for use in areas where direct grounding is im-
practical.
5. Room humidifier. Primarily for use in areas where the
3 relative humidity is less than 45%. Caution: building
R = 1MΩ heating and cooling systems usually dry the air causing
the relative humidity inside a building to be less than
outside humidity.
R = 1 MΩ
• Double-check the equipment setup for proper polarity of voltage before conducting parametric or functional
testing.
• Do not reuse shipping rails. Continuous use causes deterioration of their antistatic coating.
• Wrist straps and equipment logs should be maintained and audited on a regular basis. Wrist straps malfunc-
tion and can go unnoticed. Also, equipment gets moved from time to time and grounds cannot be recon-
nected properly.
Recommended Reading
Total Control of the Static in Your Business
Available from:
Static Control Systems Div.
Box ELB-3, 225-4S
3M Center
St. Paul, MN 55144
1-800-328-1368
1-612-733-9420 (in Minnesota)
References
This appendix provides a list of the reference material used in the preparation of this manual.
[1] 47CFR15, Subpart B (Unintentional Radiators), U.S. Code of Federal Regulations, (formerly known as FCC
Part 15, Subpart J).
[2] CENELEC EN 50065-1:2001 “Signaling on low-voltage electrical installations in the frequency range 3kHz
to 148.5kHz” Part 1 “General requirements, frequency bands and electromagnetic disturbances,”.
[3] CISPR 16, CISPR Specification for radio interference measuring apparatus and measurement methods,
International Electrotechnical Commission, Second edition, 1987.
[4] IEC 61000-4-2 Electromagnetic compatibility, Part 4: Testing and measurement techniques - Section 2:
Electrostatic discharge immunity test, International Standard, First Edition, 1995-01.
[5] IEC 61000-4-3 Electromagnetic compatibility, Part 4: Testing and measurement techniques - Section 3:
Radiated, radio-frequency, electromagnetic field immunity test, International Standard, First Edition, 1995-02.
[6] IEC 61000-4-4 Electromagnetic compatibility, Part 4: Testing and measurement techniques - Section 4:
Electrical fast transient/burst immunity test, International Standard, First Edition, 1995-01.
[7] IEC 61000-4-5 Electromagnetic compatibility, Part 4: Testing and measurement techniques - Section 5: Surge
immunity test, International Standard, First Edition, 1995-02.
[8] IEEE C62.41-1991, IEEE Recommended Practice on Surge Voltage in Low-Voltage AC Power Circuits.
[9] Noise Reduction Techniques in Electronic Systems, 2nd ed., by Henry W. Ott, John Wiley & Sons, 1988.
[10] “ESD as an EMI Problem....How to Prevent and Fix,” EDN Designer's Guide to Electromagnetic
Compatibility, EDN Supplement, pp. S23-S29, 1/20/94.
[11] Protection of Electronic Circuits from Overvoltages, by Ronald B. Standler, John Wiley & Sons, 1989.
[12] Conducted Emissions Measurements on Power Line Transceiver Products: Test method for performing EN
50065-1 conducted emissions tests using Hewlett-Packard EMI test receivers, May 19, 1995. A copy of this
application note can be obtained by contacting: