Specifications

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller
5-13
You can use as many instances of the FIFO Write block in the model as needed.
For example by using two instances of the block, different sample times at
which CAN messages are sent out can be defined. Or you can use multiple
instances to structure your model more efficiently.
FIFO Read Driver Block
The FIFO Read driver block is used to read CAN messages out of the receive
FIFO. The firmware running in FIFO mode puts received events (CAN
messages) into the receive FIFO from where the FIFO Read driver reads it out.
The FIFO Read driver block has at least one output port of type double. The
signal of this port is a matrix of size m*6, where m is the FIFO Read depth
defined in the block dialog box (see below). For example, if the FIFO read depth
is 5, then the matrix signal of port 1 has size 5*6. Therefore, one row for each
event is read out of the receive FIFO (no new message is considered as an event
as well). For information on how to extract data from the matrix signal, see See
“Examples” on page 5-40.
Each row with its 6 elements containing all the information defining a CAN
message. These are:
Port
Identifier
Event type
Data frame size
Timestamp
Data
PortThe value will be either 1 (port 1) or 2 (port 2) and reports at which port
the CAN message was received.
Identifier — This is the identifier of the CAN message being received. If it is
a Standard CAN message the range is 0 to 2047, if is an extended CAN
message, the range is 0 to 2
29
-1.