Page 2
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.
4.2.1 CAN Bus Clock Accuracy................24 4.2.2 CAN Bus Connector..................24 4.2.3 CAN Bus Termination..................25 4.2.4 Choke Footprint....................25 4.2.5 CAN Circuit Isolation ..................25 LIN Physical Layer Transceiver Circuits ..............26 4.3.1 LIN Bus Connectors ..................26 CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Page 4
5.3.5.3 Timer ....................56 5.3.5.4 ISR Component ................57 5.3.5.5 Design Wide Resources ..............57 A. Appendix Schematic........................61 Bill of Materials (BOM)....................62 Regulatory Compliance Information ................62 CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
If such interference is detected, suitable mitigating measures should be taken. The CY8CKIT-017 as shipped from the factory has been verified to meet with requirements of CE as a Class A product.
Page 6
Handling Boards CY8CKIT-017 boards are sensitive to ESD. Hold the board only by its edges. After removing the board from its box, place it on a grounded, static free surface. Use a conductive foam pad if available.
Cypress Technical Support. Kit Compatibility This kit contains an expansion board and requires other Cypress kits to use it. It is designed to add CAN and LIN capabilities to the CY8CKIT-001 PSoC Development Kit (DVK). This DVK supports PSoC 1, PSoC 3, and PSoC 5 families. However, it may be necessary to obtain or purchase additional processor modules for the CY8CKIT-001 to develop applications for a particular PSoC device family.
Introduction For detailed information about the differences between PSoC 1, PSoC 3, and PSoC 5 devices, go to http://www.cypress.com/psoc. For more information about Cypress' kits, go to the Cypress Store at http://www.cypress.com/shop. PSoC Creator Cypress' PSoC Creator software is a state-of-the-art, easy-to-use software Integrated Development Environment (IDE).
Introduction Technical Support If you have any technical questions or issues related to this kit, call Cypress Customer Support +1 (800) 541-4736 Ext. 8 (in the USA), +1 (408) 943-2600 Ext. 8 (International), or visit http://www.cypress.com/go/support Document History Revision Release Date...
2.2.2 Installation from Internet Follow these steps to install the CY8CKIT-017 CAN/LIN EBK software from the internet (this is done to ensure that the latest software is installed): 1. Insert the kit CD into your computer.
Software Uninstallation Follow these steps to uninstall the CY8CKIT-017 CAN/LIN EBK software: 1. Open the Cypress Update Manager program. This is a program that is installed along with other Cypress software. 2. Click the Uninstall button associated with the CY8CKIT-017 kit software.
Programming PSoC 3 Device The code examples are provided on the Start Page of PSoC Creator after the CY8CKIT-017 kit contents are installed. This section provides details on programming the PSoC 3 device. To program the ‘CAN_Example_1’ project to the PSoC 3 silicon, follow these steps: 1.
Page 14
Note See the PSoC Development Kit Board Guide for details on connecting and programming PSoC devices. 4. Click on the code example, CAN_Example_1 located in Examples and Kits on the Start Page of PSoC Creator. Figure 3-2. PSoC Creator Start Page CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Page 15
9. Reset the device by pressing the SW4 switch on the DVK; see Figure 3-5. Figure 3-5. Reset 10.Follow steps 1 through 9 to program other code examples, CAN_Example_2 and LIN_Example, on PSoC 3. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
CAN Communication Hardware Setup 1. Connect the CAN/LIN expansion board to port A of CY8CKIT-001 DVK, as shown in Figure 3-1. 2. Connect a second CY8CKIT-017 expansion board to port A of a second CY8CKIT-001 DVK, as shown in Figure 3-1.
Page 17
7. Power up one DVK board with the 12-V power supply. Then, power up the other DVK with a 12-V power supply. The second DVK must be powered up within approximately 5 seconds of powering the first DVK. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
3. Connect Vbat, LIN bus, and GND of the LIN analyzer/LIN master to S_LIN (P5) connector of EBK. See LIN Bus Connectors on page 26 for details of LIN bus connectors. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Page 19
4. Connect a 12-V power supply adapter, which is supplied along with the CY8CKIT-001 DVK to the power jack of the DVK. Note If you are using the CY8CKIT-030 PSoC 3 DVK, connect the CY8CKIT-017 EBK to port E. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
1. When the LIN_Example project starts, the LIN Slave component is initialized. If the startup is suc- cessful, the ‘LINS Initialize Successful’ message is displayed on the LCD, followed by ‘Send the 8 bytes of data with ID 0x10’. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Page 21
5. When the frame with ID 0x11 is received, the data is sent to the LIN master. The frame ID and values of sent data is displayed on the LCD for 12 seconds. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Data published by LIN Slave Using a CAN Bus Analyzer Tool This kit functions most effectively when two CY8CKIT-001 DVKs and two CY8CKIT-017 EBKs are available. However, it is also possible to replace one CY8CKIT-001 DVK and one CY8CKIT-017 EBK with a CAN bus analyzer or emulator tool. It is even possible to use any other CAN node to communicate with this kit.
The LEDs functional block consists of three, active-low LEDs that can provide indications. These LEDs are driven by PSoC pins. The 40-pin (2x20) connector connects the configured PSoC I/O pins to the various circuits on the expansion board. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
By default, pin 9 of the CAN connector is left floating. However, if the CANEXTPWR jumper (JP3) is populated, pin 9 of the CAN connector is connected to the VIN power rail of the DVK and EBK. This CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
CAN circuit does not interfere with any other circuits that share the same pins. The footprints for R3, R5, and R10 are designed so that they can be reconnected easily with a ‘solder jumper’ instead of repopulating the footprints with a 0- resistor. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Both LIN circuits can be completely isolated from the rest of the CY8CKIT-001 DVK by removing resistors R19, R23, and R25 (to isolate the LIN1 circuit) or R20, R24, and R26 (to isolate the LIN2 CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
R2, which is a 0- resistor. This is useful if the LEDs are not needed, but other circuits on the EBK are. In this case, isolating the LEDs ensures that they do not interfere with other circuits that share the same pins. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
4.5.2 Debugging Restrictions When Using Port B When the CY8CKIT-017 EBK occupies port B, debugging is possible only through Serial Wire Debug (SWD) interface. It is not possible through JTAG and Serial Wire Viewer (SWV) debug interfaces because expansion board circuits conflict with GPIO pins of these (JTAG and SWV) interfaces.
Hardware 001 boards (both with CY8CKIT-017 EBKs) that are connected to each other between their CAN connectors or LIN connectors. In this case, it is useful to allow the VIN power supply of one DVK to power up the other DVK (and its EBK) through the LIN or CAN header.
Code Examples The CAN_Example_1 project demonstrates the implementation of a CAN node using a CY8CKIT- 001 DVK, a CY8CKIT-009 PSoC 3 processor module, and a CY8CKIT-017 CAN/LIN EBK. The test setup shown in Figure 3-8 on page 17 consists of two CAN nodes, created using two CY8CKIT-001 DVKs, two CY8CKIT-009 PSoC 3 processor modules, and two CY8CKIT-017 CAN/LIN EBKs con- nected by a DB9 cable.
Page 32
TxError == 0 && Turn Off Amber RxError == 0 and Red TxError > 127 or Turn On Red, RxError > 127 Turn Off Amber Turn On Amber, Turn Off Red CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Any tabs not shown have default settings. This is valid for all components of all code examples. Figure 5-4. CAN Configuration: General Tab Figure 5-5. CAN Configuration: Timing Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
The POT_IN pin is used to input the analog signal from the potentiometer. The pin’s drive mode is configured as High Impedance Analog, which is the default value. Figure 5-11. POT_IN Configuration: Pins > Type Tab Figure 5-12. POT_IN Configuration: Pins > General Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
BUS_CLK The BUS_CLK is used as the latching clock for the STATUS_REG component. This is an existing, high-frequency clock in the chip. Figure 5-14. BUS_CLK Configuration: Configure Clock Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
LOOPCLK is configured to generate a 100 Hz clock, which is used to generate a 10 ms period in the firmware. Figure 5-15. LOOPCLK Configuration: Configure Clock Tab Figure 5-16. LOOPCLK Configuration: Advanced Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
CAN_TX is the CAN bus transmit signal pin. This pin is configured as an output pin with a strong drive mode. It must be connected to the CAN TX input of the external CAN transceiver. Figure 5-18. CAN_TX Configuration: Pins > Type Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
CAN_RX is the CAN bus receive signal pin. This pin is configured as an input pin with a high imped- ance drive mode. It must be connected to the CAN RX pin of the external CAN transceiver. Figure 5-20. CAN_RX Configuration: Pin > Type Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
CAN_EN is external CAN transceiver enable signal pin. This pin is configured as an output pin with strong drive mode. Figure 5-23. CAN_EN Configuration: Pins > Type Tab Figure 5-24. CAN_EN Configuration: Pins > General Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
CAN_LED_OK CAN_LED_OK is configured as a software controlled output pin with strong drive mode and initial state as high. This pin is connected to the green LED on the CY8CKIT-017 CAN/LIN EBK. Figure 5-25. CAN_LED_OK Configuration: Pins > Type Tab Figure 5-26.
CAN_LED_WARN CAN_LED_WARN is configured as a software controlled output pin with strong drive mode and initial state as high. This pin is connected to the amber LED on the CY8CKIT-017 CAN/LIN EBK. Figure 5-27. CAN_LED_WARN Configuration: Pins > Type Tab Figure 5-28.
CAN_LED_ERR CAN_LED_ERR is configured as a software controlled output pin with strong drive mode and initial state as high. This pin is connected to the red LED on the CY8CKIT-017 CAN/LIN EBK. Figure 5-29. CAN_LED_ERR Configuration: Pins > Type Tab Figure 5-30.
CAN Bus Clock Accuracy on page 24 for more information on clock source requirements for the PSoC CAN controller. All clock settings of this code example are shown in Figure 5-32 Figure 5-33 on page CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
6 seconds and interrupt is generated on the Terminal Count (TC). This will be used to change the user interface messages on LCD display. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
(data present in signals InSig1 and present in signals Out Sig1 and InArraySig)” on LCD OutArraySig)” on LCD Write Data of Signal InArraySig to OutArraySig CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
For more information on hardware connections, see Hardware Connections on page 5.3.4 Verifying Output See the verify functionality described in section LIN Communication on page 20 for the LIN code example verification. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
The component figure shows only tabs in which settings have been changed from default states ■ or in which critical settings exist for proper operation. Any tabs not shown have default settings. This is valid for all components of all code examples. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Page 54
Code Examples Figure 5-37. LIN Configuration: General Tab Figure 5-38. LIN Configuration: Baud Rate Tab CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Creator (in the .cydwr file) to match port B or port C according to Table 4-4 on page 28. The pin assignment for this code example is shown in Figure 5-44. CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
Page 58
Table 5-2. Pin Assignments details of LIN Example Project Signal CY8CKIT-001 DVK (Port A) CY8CKIT-030 DVK (Port E) P2[6:0] P2[6:0] L_RXD P5[1] P0[1] L_TXD P5[5] P0[5] NSLP P5[3] P0[3] CY8CKIT-017 CAN/LIN Expansion Board Kit Guide, Doc. # 001-57814 Rev. *D...
TP19(GND..) Keystone Electronics 5002 (0.040" (1.016mm) Hole Diameter) Regulatory Compliance Information CY8CKIT-017 has been tested and verified to comply with the following electromagnetic compatibil- ity (EMC) regulations. CISPR 22 - Emissions ■ EN 55022 Class A - Immunity (Europe) ■...
Need help?
Do you have a question about the CY8CKIT-017 and is the answer not in the manual?
Questions and answers