CY3274
Cypress High Voltage
Programmable Powerline Communication
Development Kit Guide
Doc. # 001-53598 Rev. *G
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2009-2014. The information contained herein is subject to change without notice.
Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a
Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted
nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an
express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components
in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user.
The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such
use and in doing so indemnifies Cypress against all charges.
Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by
and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty
provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create
derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom soft-
ware and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as speci-
fied in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATE-
RIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described
herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein.
Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure
may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support sys-
tems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all
charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
PSoC® is a registered trademark of Cypress Semiconductor Corporation. All products and company names mentioned in this
document may be the trademarks of their respective holders.
Purchase of I2C components from Cypress or one of its sublicensed Associated Companies conveys a license under the
Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard
Specification as defined by Philips. As from October 1st, 2006 Philips Semiconductors has a new trade name - NXP Semicon-
ductors.
Flash Code Protection
Cypress products meet the specifications contained in their particular Cypress PSoC Data Sheets. Cypress believes that its
family of PSoC products is one of the most secure families of its kind on the market today, regardless of how they are used.
There may be methods, unknown to Cypress, that can breach the code protection features. Any of these methods, to our
knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guaran-
tee the security of their code. Code protection does not mean that we are guaranteeing the product as "unbreakable."
Cypress is willing to work with the customer who is concerned about the integrity of their code. Code protection is constantly
evolving. We at Cypress are committed to continuously improving the code protection features of our products.
2
CY3274 Cypress High Voltage Programmable PLC Development Kit Guide, Doc. # 001-53598 Rev. *G
Contents
Safety Information
1. Introduction
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
5
7
Kit Contents .................................................................................................................7
Using the PLC Kit ........................................................................................................8
The Cypress PLC Solution ..........................................................................................8
Additional Learning Resources..................................................................................10
Acronyms...................................................................................................................11
Documentation Conventions......................................................................................12
Technical Reference..................................................................................................12
Technical Support......................................................................................................12
2. Getting Started
2.1
13
2.2
2.3
2.4
2.5
Software Installation ..................................................................................................13
2.1.1 Before You Begin ...........................................................................................13
2.1.2 Prerequisites ..................................................................................................13
2.1.3 Installing PLC Control Panel Independently...................................................14
Kit Installation ............................................................................................................17
PSoC Designer ..........................................................................................................21
PSoC Programmer ....................................................................................................22
Uninstall Software......................................................................................................22
2.5.1 Uninstalling the PLC Control Panel Software.................................................22
3. Kit Operation and PLC Control Panel GUI
3.1
3.2
3.3
23
Theory of Operation...................................................................................................23
3.1.1 CY8CPLC20 Device Description....................................................................23
Functional Description ...............................................................................................25
3.2.1 Operating Conditions .....................................................................................25
PLC Control Panel GUI..............................................................................................25
3.3.1 Program CY3274 Boards with I2C-PLC Interface..........................................25
3.3.2 PLC Control Panel Quick Start.......................................................................27
3.3.3 PLC Control Panel Tabs.................................................................................30
4. PLC Development Board
4.1
4.2
4.3
41
Board Details .............................................................................................................41
CY3274 PLC Development Board Functional Overview ...........................................41
4.2.1 Operating Conditions .....................................................................................41
Hardware Description ................................................................................................42
4.3.1 Development ..................................................................................................43
4.3.2 LCD Daughter Card .......................................................................................46
4.3.3 RJ45 Connector for Debugging......................................................................47
4.3.4 RS232 COM Port ...........................................................................................47
CY3274 Cypress High Voltage Programmable PLC Development Kit Guide, Doc. # 001-53598 Rev. *G
3
Contents
4.3.5
4.3.6
4.3.7
High Voltage with Switched Mode Power Supply (SMPS)............................. 48
Transmit Filter, Transmit Amplifier, and Receive Filter................................... 48
High Voltage Coupling Circuit ........................................................................ 49
5. Code Examples
5.1
5.2
51
5.3
Code Example ...........................................................................................................51
PLC Demo ................................................................................................................. 51
5.2.1 Software Requirements ................................................................................. 51
5.2.2 Using the PLT User Module in an Example Project ....................................... 52
5.2.3 Evaluating the Example Project on Hardware ............................................... 59
5.2.4 Hardware Setup ............................................................................................. 62
Using CY3274 with PLC Control Panel using CY3240 I2USB Bridge.......................64
5.3.1 Software Requirements ................................................................................. 65
5.3.2 PLT Configuration .......................................................................................... 65
5.3.3 I2C Interface Write Packet Structure.............................................................. 67
5.3.4 I2C Interface Read Packet Structure ............................................................. 67
5.3.5 I2C Application............................................................................................... 67
5.3.6 I2C Host Example .......................................................................................... 68
5.3.7 Evaluating the Example Project on Hardware with PLC Control Panel GUI.. 68
A. Appendix
A.1
69
A.2
A.3
Schematics ................................................................................................................ 69
A.1.1 Board Overview ............................................................................................. 69
A.1.2 User Interface ................................................................................................ 70
A.1.3 Transmit and Receive Filters and Coupling ................................................... 71
A.1.4 Power Supply................................................................................................. 72
Layout........................................................................................................................ 73
A.2.1 Top Layer....................................................................................................... 73
A.2.2 Ground Layer ................................................................................................. 74
A.2.3 Power Layer................................................................................................... 75
A.2.4 Bottom Layer ................................................................................................. 76
A.2.5 Top Silkscreen ............................................................................................... 77
A.2.6 Bottom Silkscreen .......................................................................................... 78
Bill of Materials .......................................................................................................... 79
Revision History
85
4
CY3274 Cypress High Voltage Programmable PLC Development Kit Guide, Doc. # 001-53598 Rev. *G
Safety Information
The “High Voltage Programmable Power Line Communication Development Kit” CY3274 is intended
for use as a development platform for hardware or software in a laboratory environment. The board
is an open system design, which does not include a shielded enclosure. Due to this reason the board
may cause interference to other electrical or electronic devices in close proximity. In a domestic
environment, this product may cause radio interference. In such cases, the user may be required to
take adequate preventive measures. Also, this board should not be used near any medical
equipment or RF devices.
Attaching additional wiring to this product or modifying the product operation from the factory default
may affect its performance and cause interference with other apparatus in the immediate vicinity. If
such interference is detected, suitable mitigating measures should be taken.
CY3274 Cypress High Voltage Programmable PLC Development Kit Guide, Doc. # 001-53598 Rev. *G
5