CY3220LINBUS-RD Cypress Semiconductor Corp, CY3220LINBUS-RD Datasheet - Page 50

KIT REF DESIGN LIN BUS

CY3220LINBUS-RD

Manufacturer Part Number
CY3220LINBUS-RD
Description
KIT REF DESIGN LIN BUS
Manufacturer
Cypress Semiconductor Corp
Series
PSoC®r
Datasheet

Specifications of CY3220LINBUS-RD

Main Purpose
Interface, LIN
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
CY8C27143, CY8C27443
Processor To Be Evaluated
CY8C27143-24PXI and CY8C27443-24PXI
Interface Type
RS-232
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
428-1926
5. Demonstration Projects
48
}
// Check if Frame1 has completed succesfully
if(BufferFrame1[0] & bfLAST_TRANSACTION_OK)
{
}
// Check if Frame2 has completed succesfully
if(BufferFrame2[0] & bfLAST_TRANSACTION_OK)
{
}
// Check if Frame3 has completed successfully
// This is the switch status from Slave 2.
// as per the Slave2 switch status
if(BufferFrame3[0] & bfLAST_TRANSACTION_OK)
{
NextTask = l_sch_tick();
// Clear the bfLAST_TRANSACTION_OK flag
BufferFrame1[0] &= ~bfLAST_TRANSACTION_OK;
// Update the signals in Frame1
UpdateFrame1();
// Transmit the Master switch status on serial port
Transmitter_CPutString("Master Switch Status : ");
for(i=0; i<8; i++)
{
}
Transmitter_PutCRLF();
// Clear the bfLAST_TRANSACTION_OK flag
BufferFrame2[0] &= ~bfLAST_TRANSACTION_OK;
// Read from the Buffer
l_bytes_rd(Frame2, 1, 2, TempBuffer);
// Update Resistance Value from the updated TempBuffer
Resistance = (TempBuffer[1] << 8) | TempBuffer[0];
// Convert the Resistance to String value.
itoa(OutputString, Resistance, 10);
// Send the Resistance value on the Serial Port
Transmitter_CPutString("Slave-1 Resistance
Transmitter_PutString(OutputString);
Transmitter_PutCRLF();
// Clear the bfLAST_TRANSACTION_OK flag
BufferFrame3[0] &= ~bfLAST_TRANSACTION_OK;
// Read the bytes from Frame3 to TempBuffer
l_bytes_rd(Frame3, 1, 2, TempBuffer);
// Transmit the Master switch status on serial port
Transmitter_CPutString("Slave-2 Switch Status: ");
if(BufferFrame1[i+1] == 0)
else
Transmitter_CPutString("OFF ");
Transmitter_CPutString("ON
Cypress Semiconductor – Rev. **
");
Update LED5 and LED6
: ");
LIN Bus 2.0 Reference Design
October 25, 2006

Related parts for CY3220LINBUS-RD