CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C
45
Example Projects
5.4
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.
5.4.2
Hardware Connections
1. Plug-in the CY8CKIT-026 kit to the CY8CKIT-042 using the Arduino connectors.
2. Since there are two LIN transceivers on the CY8CKIT-026, choose either of the transceivers to
use (U5 - LIN1 transceiver or U3 - LIN2 transceiver). Connect the Arduino header pins (which are
connected to the baseboard controller) to the appropriate LIN transceiver using jumper wires, as
provided in
3. Connect the LIN analyzer to the J14 connector to use LIN1 transceiver or J5 connector to use
LIN2 transceiver
4. If the LIN analyzer
DOES
provide 12 V supply through the VBAT pin then you can power the
board with that supply without using any additional 12 V supply since the corresponding jumper
(J16 for LIN1 & J7 for LIN2) are populated by default.
5. You need to connect a 12 V supply input to the board through J11 power jack or J12 screw termi-
nal connector, if the analyzer
DOES NOT
provides 12 V supply.
6. The baseboard (CY8CKIT-042) can be powered using USB or it can be powered from the Shield
kit by selecting jumper J20 appropriately. Refer to the
Power Selection Jumper (J20) on page 28
for more details on power connection options.
Table 5-7. Pin Connection on CY8CKIT-026
Arduino Header Pins
LIN1 Transceiver
LIN2 Transceiver
J3_10 (SCL)
J15_1 (LIN1_RX)
J6_1 (LIN2_RX)
J3_9 (SDA)
J15_2 (LIN1_TX)
J6_2 (LIN2_TX)
J2_13
J15_3 (LIN1_NSLP)
J6_3 (LIN2_NSLP)
Caution:
Ensure extra care when the LIN analyzer provides 12 V through the VBAT pin and con-
necting it to any of the connectors J14 and J5 and also using a 12 V external supply. Since the
jumpers J16 and J7 are populated (by default); it will short the VIN supply rail to the VBAT pin of
the LIN connector. In that case, either remove the external 12 V supply or remove the correspond-
ing jumper (J16 or J7). Otherwise, the Shield Kit, Baseboard and supply adapter could be dam-
aged.