CY8CKIT-026 CAN and LIN Shield Kit Guide, Doc. No. 002-03798 Rev. *C
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. Add the message/frame in the analyzer software which needs to be transmitted to the slave
and send it through the analyzer shown in
.
d. If a frame with ID = 0x12 is received from the LIN2 analyzer, then the slave controls the RGB
LED based on the received data command from master, as provided in
.
Note that
the frame must contain eight data bytes even though the first data byte is the only one used
by the slave. The other seven data bytes may be set to any value.
d. If a frame with ID = 0x13 is received from the LIN2 analyzer, then the slave will send the RGB
LED status back to the master, as provided in
e. The result of transmitted and received data at the LIN2 analyzer is shown in
.
Figure 5-12. Results at LIN2 analyzer
Table 5-11. Slave Response as per the Commands from Master
Command
Slave Response
0x11
Turns ON Red LED
0x22
Turns ON Green LED
0x33
Turns ON Blue LED
0x00
Turns OFF RGB LED
Table 5-12. RGB LED Status
RGB LED Status
Data Byte
Red LED ON
0xAA
Green LED ON
0xBB
Blue LED ON
0xCC
RGB LED OFF
0xDD