Embedded Target for Motorola MPC555 |
 |
TouCAN Receive
Receive CAN messages from the TouCAN module on the MPC555
Library
Embedded Target for Motorola MPC555
Description

The TouCAN Receive block receives CAN messages from the TouCAN module.
The TouCAN Receive block can reserve any of the 16 buffers on the TouCAN module. Alternatively, you can instruct the TouCAN Receive block to select a hardware buffer automatically from the available buffers.
The TouCAN Receive block has two outputs: a data output and a function call trigger output. The TouCAN Receive block polls its message buffer at a rate determined by the block's sample time. When the TouCAN Receive block detects that a message has arrived, the function call trigger is activated. You should use a function call subsystem, activated by the trigger, to decode the message available at the TouCAN Receive data output.
Dialog Box

- TouCAN module
- Selects one of the two TouCAN modules (A or B) on the MPC555. The TouCAN modules can receive messages independently.
- CAN message type
- The type of message you want to receive. Select either
Standard(11-bit identifier)
or Extended(29-bit identifier)
.
- CAN message identifier
- The identifier of the message you want to receive. Note that if you have set the TouCAN configuration parameters (see MPC555 Resource Configuration) in your model to mask out certain bits (e.g., the message identifier field) you may receive messages with identifiers other than the identifier specified here.
- Automatically select buffer
- When this option is selected, the TouCAN Receive block automatically selects a receive buffer from the available buffers. We recommend that you use this automatic buffer selection, unless you want to use buffer 14 or 15 to receive multiple CAN message identifiers in a single buffer. See also TouCAN Configuration Parameters.
- Buffer number [0..15]
- This field is enabled if the Automatically select buffer option is cleared. Buffer number specifies the identifier of the receive buffer for this block. We recommend that you select Automatically select buffer instead of manually specifying the buffer, unless you want to use buffer 14 or 15 to receive multiple CAN message IDs in a single buffer. See also TouCAN Configuration Parameters.
- Sample time
- Determines the rate at which to sample the buffer to see if a new message has arrived.
Note
The TouCAN Receive block sample time must be set to a value that is smaller than the minimum time between CAN messages that will be received into the corresponding buffer. If more than one message is received into a buffer during a single sample interval, the older message will be overwritten.
|
- Enable pass through (show simulation input)
- Lets you provide a signal to this block for use in simulation. When this option is enabled, inports appear on the block. The block inputs are passed through, unaltered, to the outputs during simulation. This option affects simulation only.
| TouCAN Interrupt Generator | | TouCAN Soft Reset |  |