Objective
This code example demonstrates CAN communication between FM4-S6E2Gx Series & PSoC® 4 M-Series using the
CY8CKIT-026 CAN and LIN Shield Kit.
Overview
This code example demonstrates the configuration of FM4 S6E2GM Pioneer Kit and CY8CKIT-044 for CAN communication
using CY8CKIT-026 as the CAN transceiver. FM4 S6E2GM acts as the CAN transmitter (Tx) and PSoC
receiver (Rx). The CAN transmitter sends data for ON/OFF status, color, and brightness of an RGB LED. This data is
transmitted over the CAN; at the CAN receiver, the RGB LED is configured to reflect the received data.
Requirements
Tool: PSoC Creator™ 3.3 SP1 (PSoC 4 M-Series) or later, Keil µVision
Programming Language: C (Armcc V5.05, ARM GCC 4.9.3 and MDK compilers)
Associated Parts: 4200-M and 4100-M, FM4
CY8CKIT-044 – PSoC 4 M-Series Pioneer Kit, FM4-176L-S6E2GM,
Related Hardware:
Design
This code example consists of two projects; one for the CAN transmitter, and one for the CAN receiver.
Network Topologyshows the hardware connections between the kits.
FM4-S6E2GM
PIONEER KIT
The transmitter project continuously transmits LED ON/OFF status, color, and brightness values. The receiver project controls
its LEDs accordingly.
www.cypress.com
Figure 1. CAN Network Topology
Jumper
Wires
CAN-Tx
CN7_9
C_Tx
CAN-Rx
CN10_3
C_Rx
CY8CKIT-026
3V3
V3.3
GND
GND
Document No. 002-11027 Rev.*A
CE211027 - CAN Communication Between
FM4-S6E2Gx Series and PSoC
Using CY8CKIT-026 CAN and LIN Shield Kit
®
5 (FM4 S6E2Gx series).
DB9
connector
C_Tx
CAN_H
CAN-Rx
C_Rx
CY8CKIT-026
CAN_L
V3.3
GND
®
4 M-Series
®
4 M as the CAN
two
CY8CKIT-026
kits
Jumper
Wires
CY8CKIT-044
(CAN_Rx)
CAN-Tx
P0.1
P0.0
V3.3
RGB LED
GND
UART_Tx
UART_Rx
Computer
(HyperTerminal)
Figure 1.
CAN
1
Need help?
Do you have a question about the CY8CKIT-026 and is the answer not in the manual?
Questions and answers