Main Content

CAN

CAN module clock (in MHz)

Displays the CAN module clock in MHz.

Settings

Default: 54

Prescalar (for time quantum)

The value by which the oscillator frequency is divided for generating the bit time quanta. The bit time is built up from a multiple of this quanta.

Settings

Default: 6

Time quantum in ns (Tq=Prescalar*1000/CAN module clock)

Time quantum in nano second. Time quantum is calculated based on parameters and formula (Tq=Prescalar*1000/CAN module clock).

Settings

Default: 111.111

Bit segment 1 time quanta (BS1)

Bit segment time quanta before sample point. Valid values are 1 to 16.

Settings

Default: 6

Bit segment 2 time quanta (BS2)

Bit segment time quanta after sample point. Valid values are 1 to 8.

Settings

Default: 3

Baudrate in bits/s (1e9/((BS1+BS2+1)*Tq))

Baudrate for CAN bus calculated based on data parameters and formula (1e9/((BS1+BS2+1)*Tq)).

Settings

Default: 900000

Re-synchronization jump width

Set the synchronization jump width, which determines how many units of Tq a bit can be shortened or lengthened when resynchronizing. Where, Tq=Baud Rate Prescaler/CAN_CLK. Valid values are 1 to 4.

Settings

Default: 1

Receive pin

Select the receiving pin of CAN.

Settings

Default: PB_8

Transmit pin

Select the transmitting pin of CAN.

Settings

Default: PB_9

Test Mode

  • Normal - Does not send any acknowledge message back.

  • Loopback - Transmission remains possible. CAN reception is ignored.

  • Silent - Reception remains possible. CAN transmission is held recessive.

  • Silent loopback - Allows host self-test. Node is disconnected from CAN bus.

Settings

Default: Normal

Silent, Loopback, Silent loopback

Accept all messages (in FIFO 0)

Enable this parameter to allow all CAN messages in FIFO 0. If it is disabled, then you can select and allow only the required CAN messages.

Settings

Default: on

off

Filter bank number

Select the filter bank number. Values range between 0 to 13.

Settings

Default: 0

0 to 13

Enable filter bank #

Select enable filter bank parameter to configure the filter bank scale, filter bank mode and FIFO assignment parameters.

Settings

Default: off

on

Filter bank # scale

Select Single 32-bit or Dual 16-bit as filter bank scale.

Settings

Default: Single 32-bit

Dual 16-bit

Filter bank # mode

Select Identifier mask or Identifier list as filter bank mode.

  • Identifier mask - In mask mode the identifier registers are associated with mask registers specifying which bits of the identifier are handled.

  • Identifier list - In identifier list mode, the mask registers are used as identifier registers.

Settings

Default: Identifier mask

Identifier list

Filter bank # FIFO assignment

Select FIFO 0 or FIFO 1 as filter bank assignment.

Settings

Default: FIFO 0

FIFO 1

Filter bank # Id type

Select Standard 11-bit or Extended 29-bit as filter bank Id type.

Settings

Default: Standard 11-bit

Extended 29-bit

Id #

Specify the identifier list value based on the selection of filter bank scale and filter bank mode.

Settings

Default: 0

Mask #

Specify the identifier mask value based on the selection of filter bank scale and filter bank mode.

Settings

Default: 0

Display enabled filter banks configuration in command window

Displays all the enabled filter banks configuration in MATLAB command window.

Disable all filter banks

Click to disable all the filter banks configuration.