CAN Communication Blocks
Controller Area Network (CAN) blocks for robust automotive and industrial communication in MPLAB Device Blocks for Simulink.
Available CAN Blocks
This section contains the following CAN peripheral blocks:
- CAN Config
- Configure CAN bus parameters (baud rate, filters, masks)
- CAN Rx
- Receive messages from CAN bus
- CAN Tx
- Transmit messages to CAN bus
Key Features
- CAN 2.0A/2.0B support - Standard and extended identifiers
- Configurable bit timing - Flexible baud rate configuration (10 kbps to 1 Mbps)
- Hardware filters - Message acceptance filters and masks
- Multiple mailboxes - Simultaneous Tx/Rx message buffers
- Error handling - Bus-off, error passive, and error warning states
- Timestamping - Precise message reception timing
Common Use Cases
- Automotive systems - Engine control, dashboard communication, diagnostics
- Industrial automation - Factory equipment networking
- Motor control - Multi-axis drive coordination
- Sensor networks - Distributed sensor data acquisition
- Diagnostics - OBD-II and CAN-based vehicle diagnostics
CAN Protocol Support
- Standard CAN (CAN 2.0A) - 11-bit identifiers
- Extended CAN (CAN 2.0B) - 29-bit identifiers
- CAN FD (Flexible Data-rate) - Supported on compatible devices
- Filtering - Hardware acceptance filters for selective message reception
See Also