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

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
1. LIN Bus 2.0 Kit
Figure 1-3. Switch-to-LED Control Relationship
The master node performs the following operations.
Then the master node performs the following operations in
an infinite loop:
8
Initializes the LIN communication.
Calls the node configuration function to configure slave 1
and slave 2 nodes.
Initializes the Schedule table. The frame sequence and
time allotted for each frame is configured in the Sched-
ule table.
Checks if the current frame transfer is complete and
if the LIN hardware is ready to send the next frame. If
yes, calls the l_sch_tick function that loads the next
frame due and initiates the transfer.
Checks if Frame1 completion flag is set. Frame1 car-
ries the master's dip-switch information. If Frame1
flag is set, the master updates the Frame1 buffer
with the dip-switch information and sends the dip-
switch information over serial port.
Checks if Frame2 completion flag is set. Frame2 car-
ries the resistance information from slave 1. If
Frame2 flag is set, converts the 2-byte HEX integer
to an ASCII string and sends this string over the
serial port.
Checks if Frame3 completion flag is set. Frame3 car-
ries the switch status of slave 2. If Frame3 flag is set,
updates LED 5 and LED 6 according to the switch
status and sends the Slave-2 switch status over
serial port.
Cypress Semiconductor – Rev. **
Master Switch Status: ON ON ON ON ON ON ON ON
Slave 2 Switch Status: ON OFF
Slave 1 Resistance: 25000
Slave 1 Switch Status: ON ON ON ON ON ON ON ON
Checks if Frame4 completion flag is set. Frame4 car-
ries the dip-switch status of slave 1. If Frame4 flag is
set, updates LED 1 to LED 4 as per status of SW8 to
SW5 of slave 1. Then updates the Frame5 buffer
with the status of SW1 and SW2 of slave 1. When
Frame5 is due, this information is sent to slave 2 and
slave 2 blinks D4 or D5, accordingly. Then it sends
the Slave-1 switch status over serial port.
The master's data over serial port may be observed
by using a HyperTerminal and connecting the mas-
ter's serial port to the PC. The serial port setting is
38.4 kbps, 8 data bits, no parity, 1 stop bit. The fol-
lowing is an example output on the serial port:
LIN Bus 2.0 Reference Design
October 25, 2006

Related parts for CY3220LINBUS-RD