CE96999 - Basic LIN Slave Implementation in PSoC® 4 | サイプレス セミコンダクタ
CE96999 - Basic LIN Slave Implementation in PSoC® 4
These code examples demonstrate the implementation of LIN slave communication in PSoC® 4.
概要
The LIN component in PSoC 4 supports LIN slave with both LIN v1.3 and LIN v2.1/2.2 protocol specifications. This document provides two examples that show how to implement LIN slave communication.
Example1 - LIN Slave Communication:
In this code example, PSoC 4 responds to LIN master commands to:
- Set the RGB LED color on PSoC development kits such as CY8CKIT-042, CY8CKIT-044, and CY8CKIT-049
- Report the current RGB LED color setting
Example2 - Multiple Instance LIN Slave Communication:
In this code example, PSoC 4 is initialized to have two LIN slave components, which are connected to two different LIN clusters (masters). PSoC 4 scans the CapSense® linear slider centroid position and responds to both LIN masters (LIN master1 and LIN master2).
Response to LIN master1 commands:
- Stores the CapSense linear slider centroid position
- Report the saved CapSense linear slider centroid position value
Response to LIN master2 commands:
- Set the RGB LED color on PSoC development kits such as CY8CKIT-042
- Report the current RGB LED color setting