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

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
LIN Bus 2.0 Reference Design
October 25, 2006
}
// Check if Frame4 has completed successfully
// This frame carries the switch status of Slave1.
// LEDs 1 to 4 with Bits 7,6,5,4 of the Slave1 switch Status
// Update the Indicator Status with Bits 0 and 1
if(BufferFrame4[0] & bfLAST_TRANSACTION_OK)
{
// If Bit 0 of second byte is 1, then switch On LED5
if(TempBuffer[1] & 0x01)
{
}
// Else switch it off
else
{
}
// If Bit 0 of first byte is 1, then switch On LED6
if(TempBuffer[0] & 0x01)
{
}
// Else switch it off
else
{
}
Transmitter_PutCRLF();
// Clear the bfLAST_TRANSACTION_OK flag
BufferFrame4[0] &= ~bfLAST_TRANSACTION_OK;
// Read the data byte of Frame4 to TempBuffer
l_bytes_rd(Frame4, 1, 1, TempBuffer);
// Update LEDs 1 to 4
PRT1DR |= 0xF0;
PRT1DR &= (~TempBuffer[0] | 0x0F);
// Update the Indicator switch status variable.
// Mask off bits other than 0 and 1
IndicatorStatus = TempBuffer[0] & 0x03;
// Now update the Indicator status on the buffer
// of Frame5.
l_bytes_wr(Frame5, 1, 1, &IndicatorStatus);
// Send the Slave1 switch status to Serial Port
Transmitter_CPutString("Slave-1 Switch Status: ");
Temp = 0x80;
for(i=0; i<8; i++)
{
PRT1DR &= ~0x08;
Transmitter_CPutString("ON
PRT1DR |= 0x08;
Transmitter_CPutString("OFF ");
PRT1DR &= ~0x04;
Transmitter_CPutString("ON
PRT1DR |= 0x04;
Transmitter_CPutString("OFF ");
This new data will be sent when Frame5 is due.
Cypress Semiconductor – Rev. **
");
");
Update
5. Demonstration Projects
49

Related parts for CY3220LINBUS-RD