Summary of Contents for Cypress Semiconductor CY8CKIT-028-TFT
Page 1
CY8CKIT-026 CAN and LIN Shield Kit Guide Doc. No. 002-03798 Rev. *C Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 www.cypress.com...
Page 3
Contents 1. Introduction Kit Contents .........................6 Getting Started......................7 Additional Learning Resources..................9 Technical Support......................10 Acronyms........................10 Document Conventions .....................10 2. Installation Before You Begin.......................11 Install Software ......................12 Uninstall Software......................14 Install Hardware......................14 3. Hardware System Block Diagram ....................15 CAN Physical Layer Transceiver Circuits ..............17 LIN Physical Layer Transceiver Circuits ..............20 Status LEDs.......................22 Port Options with CY8CKIT-042/044 Pioneer Kit ............23...
Page 4
Safety Information Regulatory Compliance The CY8CKIT-026 CAN and LIN Shield Kit 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. This may cause interference to other electrical or electronic devices in close proximity.
Page 5
General Safety Instructions ESD Protection ESD can damage boards and associated components. Cypress recommends that you perform procedures only at an ESD workstation. If such a workstation is not available, use appropriate ESD protection by wearing an antistatic wrist strap attached to the chassis ground (any unpainted metal surface) on your board when handling parts.
Page 6
Introduction Thank you for your interest in the CY8CKIT-026 CAN and LIN Shield Kit. This kit is intended to ® demonstrate the CAN and LIN bus communications in Cypress’s PSoC products. The CY8CKIT-026 CAN and LIN Shield Kit is an Arduino compatible shield board that is used with several Cypress kits such as the CY8CKIT-042 PSoC 4 Pioneer Kit/CY8CKIT-044 PSoC 4 M-Series ®...
Page 7
Introduction Inspect the contents of the kit; if anything is missing, contact your nearest Cypress sales office assistance. Go to www.cypress.com/support for more information on Cypress sales offices and support. 1.1.1 Kit Compatibility This kit contains an Arduino compatible shield board and requires other Cypress kits (Ardunio compatible) to use it.
Page 8
Introduction 1.2.1 Beginner Resources An overview of PSoC devices is available at www.cypress.com/psoc. The web page includes a list of PSoC device families, integrated design environments (IDEs), and associated development kits. In addition, refer to the following documents to get started with PSoC 4 devices and CAN/LIN communication: AN79953 - Getting Started with PSoC®...
Page 9
Introduction 1.2.3.1 PSoC Creator PSoC Creator allows concurrent hardware and application firmware design of PSoC 3, PSoC 4, and PSoC 5LP systems. PSoC systems are designed using classic, familiar, schematic-capture technology supported by pre-verified, production ready PSoC Components™. PSoC Components are analog and digital virtual chips represented by icons that you can drag and drop into a design and configure to suit a broad array of application requirements.
Page 10
Introduction Technical Support For assistance, go to our support web page (www.cypress.com/support) or contact our customer support at +1(800) 541-4736 Ext. 2 (in the USA), or +1 (408) 943-2600 Ext. 2 (International). Acronyms Table 1-1. Acronyms Acronym Definition Bill of Materials Controlled Area Network Data Length Code Integrated Design Environment...
Page 11
Installation This chapter describes the steps to install the software tools and packages on a computer for using the CAN and LIN Shield Kit along with PSoC Pioneer Kits. This includes the IDE on which the projects will be built and used for programming. Before You Begin All Cypress software installations require administrator privileges, but these are not required to run the software after it is installed.
Page 12
Installation Install Software 2.2.1 Installation from Internet Perform these steps to install the CY8CKIT-026 CAN and LIN Shield Kit software from the internet (this is done to ensure the latest software is installed): 1. Go to kit page. 2. Download and run the installer executable file (CY8CKIT026Setup.exe). 3.
Page 13
Installation 5. Select the Installation Type as Typical and click Next (see Figure 2-2). Figure 2-2. Installation Type Options 6. Read and accept the End-User License Agreement and click Next to proceed with the installation. After the installation is complete, the kit contents are available at the following location: C:\Program Files (x86)\Cypress\CY8CKIT-026 CAN and LIN SHIELD KIT\<version>...
Page 14
Installation Uninstall Software Perform these steps to uninstall the CY8CKIT-026 CAN and LIN Shield Kit software: 1. Go to Start > All Programs > Cypress > Cypress Update Manager and select the Uninstall button that corresponds to the kit software. Follow the on-screen prompts to uninstall the soft- ware.
Page 15
Hardware System Block Diagram The actual kit hardware files i.e., Schematic, Gerber, BOM etc are available in the installer directory i.e., <Install_Directory>\CY8CKIT-026 CAN and LIN SHIELD KIT\<version>\Hardware The CAN and LIN Shield Kit hardware consists of the following functional blocks: 2-CAN transceiver circuits (TJA1051T and TJA1055T) ■...
Page 16
Hardware Figure 3-2 Figure 3-3 show the top and bottom view of the CY8CKIT-026. Figure 3-2. CY8CKIT-026 (Top View) Figure 3-3. CY8CKIT-026 (Bottom View) CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 17
Hardware CAN Physical Layer Transceiver Circuits The CY8CKIT-026 has two CAN transceivers: one is low speed (up to 125 Kbps baud rate) and fault tolerant, and the other is high speed (up to 2 Mbps baud rate). The PSoC 4M device supports two CAN modules, so these two transceivers enable you to use both of them to connect to CAN net- works.
Page 18
Hardware By default, pin 9 of the CAN connector is left floating. However, if the jumper (J13 for CAN1 transceiver and J21 for CAN2 transceiver) is populated, pin 9 of the CAN connector is connected to the VIN power rail of the Shield board. This is useful if you want to power up other CAN nodes through the CAN connector or if you want to power up the Shield board from the power supply of some other CAN node.
Page 19
Hardware 3.2.5 Choke Footprint A footprint for a common-mode signal suppression choke is available on the shield board for both the transceiver circuits, but these are not populated. These footprints can be populated with a B82789C0 (or equivalent) choke to suppress common-mode signals on the CAN bus. If a choke component is mounted on the L2 footprint (for CAN1 transceiver), resistors R29 and R35 must be removed from the board.
Page 20
Hardware CAN2_TX and CAN2_RX pins need to be connected to the CAN TX pin, CAN_RX pin of the PSoC (microcontroller) respectively, using external connecting wires. CAN2_EN pin is used enable/disable the transceiver which should be connected to the CAN_EN pin of the microcontroller. The trans- ceiver is enabled by default.
Page 21
Hardware Ensure extra care when connecting an analyzer to either of the LIN connectors. If the LIN analyzer provides 12 V supply already to its VBAT pin, remove jumper J16 for LIN1 connector and J7 for LIN2 connector or do not power the shield with external 12 V supply through the J11 and J12 connectors. Warning: Since the jumpers J16 and J7 are populated by default, ensure extra care while connecting the LIN analyzer VBAT pin to the shield kit pin.
Page 22
Hardware 3.3.3 LIN Master and Slave Configurations By default, both the LIN circuits are configured for LIN slave operation. Table 3-5 shows how each circuit is populated by default to configure it for the LIN slave mode. Table 3-5. Configuration for LIN Slave Operation (Default) Diode Resistor Capacitor...
Page 23
Hardware All three LEDs can be completely isolated from the rest of the Pioneer Kit by removing resistor R38, which is a 0 resistor. This is useful if the LEDs are not needed, but other circuits on the Shield Kit are needed.
Page 25
Hardware 3.6.1 12 V Supply Input A power jack (J11) is provided on the kit to give a 12 V/1 A input supply to the board. In addition, a screw terminal (J12) is provided for a power supply of up to 12 V/1 A for the same. Maximum input supply limit is 20 V/1 A, exceeding it may damage the board.
Page 26
Hardware 3.6.2 Power LED The Shield Kit has a power LED to indicate the 12 V input power supply. Figure 3-10. Power LED Schematic 3.6.3 12 V-5 V DC-DC Conversion 3.6.3.1 Regulator A regulator (U2) is provided on the CAN and LIN shield board for 12 V to 5 V dc-dc conversion. The regulated 5 V is supplied to CAN transceivers, status LEDs and the baseboard (based on the J20 jumper selection).
Page 27
Hardware 3.6.3.2 Cypress PMIC An optional 12 V-5 V circuit is provided on the kit using a Cypress PMIC which is not populated. Figure 3-12 shows the Cypress PMIC schematic. Figure 3-12. Cypress PMIC Schematic CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 28
Hardware 3.6.4 Power Selection Jumper (J20) The power selection jumper is provided on this CAN and LIN Shield Kit to select different power supplies to power the shield board and the baseboard (CY8CKIT-042/044 or other Arduino compatible kits). Figure 3-13. Jumper (J20) Schematic The Shield Kit contains the following powering options: 1.
Page 29
Hardware Table 3-8. Powering Options with Jumper (J20) J20 Connection Power Option Expected Function Baseboard Requirement Only CAN (CAN2 transceiver Baseboard power selection Power Shield Kit using the Short pin 1 and 2 circuit) communication is jumper (J9 on CY8CKIT-042/ baseboard with 5 V possible 044) must be at 5 V.
Page 30
Kit Operation This chapter explains how to set-up the hardware connections in order to establish CAN and LIN communication using CY8CKIT-026. Default Jumper Settings on CY8CKIT-026 Table 4-1 shows the default jumper settings of the CY8CKIT-026 CAN and LIN Shield Kit. Table 4-1.
Page 31
Kit Operation Figure 4-1 shows connecting two CAN and LIN Shield kits through a DB9 cable. In this figure, the kit on the left is using CAN1 while the kit on the right is using CAN2. The other transceivers may also be used by changing the jumper wire connections and DB9 connector used.
Page 32
Kit Operation Using CAN Bus Analyzer Tool This kit functions most effectively when two CY8CKIT-44 PSoC 4M Pioneer Kits and two CY8CKIT-026 Shield Kits are available. However, it is also possible to replace one CY8CKIT-044 Pioneer Kit and one CY8CKIT-026 Shield Kit with a CAN bus analyzer or emulator tool. It is even possible to use any other CAN node to communicate with this kit.
Page 33
Kit Operation Figure 4-3. CAN Analyzer Connection to CY8CKIT-026’s CAN2 Transceiver If you use a CAN bus analyzer or emulator tool to communicate with this kit, then the tool must be set up to send and receive CAN messages (at proper intervals) with proper length and message ID and at a proper baud rate.
Page 34
Kit Operation LIN Communication Hardware Setup 1. Connect the CAN and LIN Shield Kit to the Arduino header of the CY8CKIT-044/042 Pioneer Kit, as shown in Figure 1-2. 2. Connect the LIN TX, LIN RX pins and Enable/sleep control pin (GPIO) of the controller (comes from the baseboard via the Arduino header) to LINx_TX, LINx_RX and LINx_NSLP pins (on J15 connector for LIN1 transceiver, J6 connector of LIN2 transceiver) of the LIN transceiver circuit using connecting wires.
Page 35
Kit Operation Using LIN Bus Analyzer Tool The LIN code example projects demonstrate functionality of the LIN slave device, so a LIN master device must be used. A LIN bus analyzer or emulator tool can be used as the LIN master device. It is also possible to use any other LIN master node to communicate with this example project.
Page 36
Kit Operation Figure 4-6. LIN Analyzer Connection to CY8CKIT-026’s LIN2 Transceiver CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 37
Example Projects The CY8CKIT-026 CAN and LIN Shield Kit includes five example projects. This chapter explains how to use these example projects. To access the example projects, download and install the CY8CKIT-026 CAN and LIN Shield Kit setup file from www.cypress.com/CY8CKIT-026. After installation, the kit example projects will be available in the Firmware folder in the installation location.
Page 38
Example Projects 4. Build the example project by choosing Build > Build <Project Name>. A .hex file is generated after successful build process. 5. Connect the corresponding baseboard to the PC using the USB cable to program the kit with this example project.
Page 39
Example Projects 5.2.3 Verify Output To verify the CAN_Simplex_Tx_CY8CKIT-044 example project, perform these steps: 1. Program the CY8CKIT-044 PSoC 4 M-Series Pioneer Kit with CAN_Simplex_Tx_CY8CKIT-044 code example through USB connector J6. 2. Ensure that the power supply and jumper settings are proper, as explained in the Hardware Connections on page 3.
Page 40
Example Projects 4. Perform these steps, if you are using another set of CY8CKIT-044 and CY8CKIT-026 for receiving the data: a. Program the second baseboard with the CAN_Simplex_Rx_CY8CKIT-044.hex file and set the hardware connections provided in Hardware Connections on page b.
Page 41
Example Projects c. While pressing the CapSense gesture pad buttons, observe the data on the UART serial terminal software, as shown in Figure 5-4. Figure 5-4. Transmitter UART Data on Serial Terminal Note: For more details on the project, i.e., how to configure the CAN component, CapSense component, IMO trimming, pin configurations, and so on, refer to Code Example CE97311.
Page 42
Example Projects 7. Connect the CAN analyzer to the appropriate transceiver using a DB9 male to female connector, as shown in Figure 4-2 Figure 4-3 for receiving the transmitted data. 8. You can also use another CY8CKIT-044 and CY8CKIT-026 setup instead of a CAN analyzer, as shown in Figure 4-1, which should be programmed with the CAN_Simplex_Tx_CY8CKIT-044...
Page 43
Example Projects d. The Sys Tec CAN analyzer is used for this example project. To add the transmit message, go to Transmit > New. A New Transmit message window will appear. Enter the message details, as shown in Figure 5-5. Figure 5-5.
Page 44
Example Projects on the second board, as provided in Table 5-6. Table 5-6. RGB LED Status Based on CapSense Gesture Pad CapSense Gesture Pad Button RGB LED on First Kit (CY8CKIT-044) Center Button RGB LED ON Right Button LED switches the color as R R…...
Page 45
Example Projects LIN_Slave_CY8CKIT-042 5.4.1 Project Description In this example, PSoC 4200 (CY8CKIT-042) acts as a simple LIN slave. The slave monitors data that is transmitted from the LIN master (analyzer). If a predefined frame is received from the master, the slave controls the RGB LED color according to the data available in the received frame. The LIN master can get the RGB LED status by sending a frame with a predefined frame ID.
Page 46
Example Projects 5.4.3 Verify Output To verify the LIN_Slave_CY8CKIT-042 code example, perform these steps. Silicon Engines LIN/USB Data Converter is used as LIN analyzer in this example. 1. Program the CY8CKIT-042 PSoC 4 Pioneer Kit with LIN_Slave_CY8CKIT-042 example project through USB connector J10. 2.
Page 47
Example Projects 6. Add the message in the analyzer software which needs to be transmitted to the slave and send it through the analyzer, as shown in Figure 5-8. Note that the message must start with the ID. Figure 5-8. Adding and Sending Message using LIN Analyzer 7.
Page 48
Example Projects 8. If a frame with ID = 0x11 is received from the LIN Analyzer, then the slave will send the RGB LED status back to the master, as provided in Table 5-9. The message in this case only needs the message ID.
Page 49
Example Projects LIN_Slave_CY8CKIT-044 5.5.1 Project Description In this example, PSoC 4200 M (CY8CKIT-044) acts as a simple LIN slave. The slave monitors data that is transmitted from the LIN master (analyzer). If a predefined frame is received from the master, the slave controls the RGB LED color according to the data available in the received frame.
Page 50
Example Projects 5. You need to connect a 12 V supply input to the board through J11 power jack or J12 screw terminal connector, if both the analyzers DO NOT provide 12 V supply. Caution: Ensure extra care when either of the LIN analyzers provide 12 V through VBAT pin and connecting it to any of the connectors J14 and J5 and also using 12 V external supply.
Page 51
Example Projects g. The result of transmitted and received data at the LIN1 analyzer is shown in Figure 5-10. Figure 5-10. Results at LIN1 analyzer In the above figure, 'InFrame1' refers to “10 22 FF FF FF FF FF FF FF” where 10 is the frame ID and 22, FF, FF, FF, FF, FF, FF, FF are the eight data bytes.
Page 52
Example Projects b. If you are using any other analyzer, make sure that the checksum setting is selected as clas- sic checksum since LIN v1.3 specification supports only enhanced checksum (this option is not required in Silicon Engines LIN-USB converter software). c.
Page 53
Example Projects Figure 5-12, ‘InFrame2’ refers to “12 11 FF FF FF FF FF FF FF” where 12 is the frame ID and 11, FF, FF, FF, FF, FF, FF, FF are the eight data bytes. Since, the ‘InFrame2’ in LIN slave2 is configured with only 2 bytes named as InSig2 and InArraySig2, the rest of the data bytes (3 to 8) are ignored by the slave.
Page 54
Appendix Schematics Figure A-1. Power Supply Circuit Schematic CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 55
Figure A-2. CAN1 and CAN2 Transceiver Circuit Schematic CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 56
Figure A-3. LIN1 and LIN2 Transceiver Circuit Schematic CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 57
Figure A-4. Arduino Header and Status LEDs Schematic CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 58
Gerber Files Figure A-5. CY8CKIT-026 Primary Side CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 59
Figure A-6. CY8CKIT-026 Secondary Side CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 60
Figure A-7. CY8CKIT-026 Primary Silk Screen CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 61
Figure A-8. CY8CKIT-026 Secondary Silk Screen CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C...
Page 62
Bill of Materials Table 5-1. Bill of Materials (BOM) Mfr Part Item Reference Value Description Manufacturer ROHS Number Allowed Certified PCB, 125.00 mm x 85.00 mm, High Tg, Cypress Semicon- 600-60283-01 REV03 ENIG finish, 2 layer, 600-60283-01 ductor Color = RED, Silk = WHITE C11,C16,C19, CAP CER 0.1 UF...
Page 63
Table 5-1. Bill of Materials (BOM) (continued) Mfr Part Item Reference Value Description Manufacturer ROHS Number Allowed Certified D‐Sub Connector Receptacle, Female DB9 FEMALE TE Connectivity J8,J17 Sockets 9 Position 5747844-4 _CAN CONN AMP Connectors Through Hole, Right Angle Solder 12 V/1 A, CONN JACK POWER 2.1mm, PWR CUI Inc. PJ-102A 2.1 MM PCB CONN 12 V POWER TERM BLOCK 2POS ...
Page 64
Table 5-1. Bill of Materials (BOM) (continued) Mfr Part Item Reference Value Description Manufacturer ROHS Number Allowed Certified IC TXRX CAN FAULT‐ TJA1055T/3/ TJA1055T TOL 14SOIC Semiconductors C,518 Jumper Installation Instructions Rectangular Install jumper Connectors MINI J7,J10,J16,J2 across pins 1 JUMPER GF 6.0 MM Kobiconn 151-8010-E and 2...
Page 65
Table 5-1. Bill of Materials (BOM) (continued) Mfr Part Item Reference Value Description Manufacturer ROHS Number Allowed Certified Panasonic RES SMD 22 KOHM 1% ERJ- Electronic 1/10 W 0603 3EKF2202V Components Panasonic RES SMD 1 KOHM 1% ERJ- Electronic 1/8 W 0805 6ENF1001V Components Panasonic RES SMD 47 KOHM 1% ERJ- R10,R25, Electronic 1/8 W 0805 6ENF4702V Components Panasonic RES SMD 1 KOHM 1% ...
Page 66
Revision History Document Revision History Document Title: CY8CKIT-026 CAN and LIN Shield Kit Guide Document Number: 002-03798 Origin of Revision ECN# Issue Date Description of Change Change 5068393 12/29/2015 MVRE Initial version. Minor text edits across the document. Updated Introduction chapter on page Updated “Kit Contents”...
Need help?
Do you have a question about the CY8CKIT-028-TFT and is the answer not in the manual?
Questions and answers