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

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
3. Master Design IP
Once the frame definition and the buffer allocations are
complete, export these names as Global so they are used in
the main application and the LIN API. All the frame names
and buffer names must be declared with and without an
underscore. The name with the underscore is to enable the
name to be used in C functions. For the above example, the
following names are exported.
export _MasterRequest
export
export _SlaveResponse
export
export _Frame1
export
export _Frame2
export
export _Frame3
export
export _Frame4
export
export _abDiagBuffer
export
export _BufferFrame1
export
export _BufferFrame2
export
export _BufferFrame3
export
export _BufferFrame4
export
Once these names are exported, they are available to any
assembly function. To use these names in C, they must be
declared in a C header file. This is done in the SignalTable.h
file. All frame names are defined as “const char” as they are
in the Flash and the buffer names are defined as “BYTE” as
22
_MasterRequest:
db CSUM_CLASSIC
db 8
db abDiagBuffer
db MASTER_TO_SLAVE ; Direction
db 0x3C
_SlaveResponse:
db CSUM_CLASSIC
db 8
db abDiagBuffer
db SLAVE_TO_MASTER ; Direction
db 0x7D
MasterRequest:
SlaveResponse:
MasterRequest
SlaveResponse
Frame1
Frame2
Frame3
Frame4
abDiagBuffer
BufferFrame1
BufferFrame2
BufferFrame3
BufferFrame4
; Checksum Type
; Data count
; Buffer address
; ID
; Checksum Type
; Data count
; Buffer address
; ID
Cypress Semiconductor – Rev. **
they are in the RAM. The following are the entries in the
SignalTable.h file.
// Definition of Frame Buffers to be used by
the main program
extern BYTE BufferFrame1[];
extern BYTE BufferFrame2[];
extern BYTE BufferFrame3[];
extern BYTE BufferFrame4[];
extern BYTE abDiagBuffer[];
// Definition of Frame names to be used by
the main program
extern const char Frame1[];
extern const char Frame2[];
extern const char Frame3[];
extern const char Frame4[];
3.6.11
3.6.11.1
Once the frames used in the cluster are defined, you need
to create Schedule tables. The Schedule tables are found in
the “ScheduleTable.asm” file. To create a Schedule table,
you first select a name. For the example, create a Schedule
table called Schedule1. The table entries are entered in this
order.
A. Frame Name: The name of the frame to be transmitted.
B. Frame Time Constant: The number of schedule timer
This calculation does not consider the response space, byte
space or inter-frame space. The actual time used is accord-
ing to the LIN 2.0 protocol specification.
From this time, calculate the number of schedule timer over-
flows based upon the schedule timer time base.
Frame Time Constant = Frame Time / Timebase
For example, if the frame time is calculated as 20 ms and
the time base is 1 ms, then the frame time constant is 20 ms
/ 1mS = 20.
interrupts before the next frame is transmitted. This
value is derived from the “Node Capability File” of the
nodes. The node capability file has frames defined with
minimum and maximum frame times. If these values are
not given in the node capability file, then use the formula
given in “Section 2.2 Frame Slots” in the LIN 2.0 protocol
specification. The equations are:
T
T
Respone Nominal
Frame Maximum
T
Frame Nominal
T
Header Nominal
Schedule Table
Structure of Schedule Table
Nominal
= 10 * (N
= 1.4 * T
= T
= 34 * T
Header Nominal
LIN Bus 2.0 Reference Design
Frame Nominal
Data
Bit
+1) * T
+ T
Bit
October 25, 2006
Respone
Equation 1
Equation 2
Equation 3
Equation 4

Related parts for CY3220LINBUS-RD