Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
84
Добавлен:
01.03.2016
Размер:
3.56 Mб
Скачать

RM0016

Controller area network (beCAN)

 

 

23.11.16 CAN filter registers

CAN filter mode register 1 (CAN_FMR1)

Address offset: See Table 71.

Reset value: 0x00

7

6

5

4

3

2

1

0

FMH3

FML3

FMH2

FML2

FMH1

FML1

FMH0

FML0

 

 

 

 

 

 

 

 

rw

rw

rw

rw

rw

rw

rw

rw

 

 

 

 

 

 

 

 

Bit 7 FMH3 Filter 3 mode high

Mode of the high identifier/mask registers of Filter 3.

0:High registers are in mask mode

1:High registers are in identifier list mode

Bit 6 FML3 Filter 3 mode low

Mode of the low identifier/mask registers of Filter 3.

0:Low registers are in mask mode

1:Low registers are in identifier list mode

Bit 5 FMH2 Filter 2 mode high

Mode of the high identifier/mask registers of Filter 2.

0:High registers are in mask mode

1:High registers are in identifier list mode

Bit 4 FML2 Filter 2 mode low

Mode of the low identifier/mask registers of Filter 2.

0:Low registers are in mask mode

1:Low registers are in identifier list mode

Bit 3 FMH1 Filter 1 mode high

Mode of the high identifier/mask registers of Filter 1.

0:High registers are in mask mode

1:High registers are in identifier list mode

Bits 2 FML1 Filter 1 mode low

Mode of the low identifier/mask registers of filter 1.

0:Low registers are in mask mode

1:Low registers are in identifier list mode

Bit 1 FMH0 Filter 0 mode high

Mode of the high identifier/mask registers of filter 0.

0:High registers are in mask mode

1:High registers are in identifier list mode

Bit 0 FML0 Filter 0 mode low

Mode of the low identifier/mask registers of filter 0.

0:Low registers are in mask mode

1:Low registers are in identifier list mode

Doc ID 14587 Rev 9

403/454

Controller area network (beCAN)

RM0016

 

 

CAN filter mode register 2 (CAN_FMR2)

Address offset: See Table 71.

Reset value: 0x00

7

6

5

4

3

2

1

0

 

 

 

 

FMH5

FML5

FMH4

FML4

 

 

Reserved

 

 

 

 

 

 

 

 

rw

rw

rw

rw

 

 

 

 

 

 

 

 

 

 

 

 

Bits 7:4 Reserved.

Bit 3 FMH5 Filter 5 mode high

Mode of the high identifier/mask registers of Filter 5.

0:High registers are in mask mode

1:High registers are in identifier list mode

Bits 2 FML5 Filter 5 mode low

Mode of the low identifier/mask registers of filter 5.

0:Low registers are in mask mode

1:Low registers are in identifier list mode

Bit 1 FMH4 Filter 4 mode high

Mode of the high identifier/mask registers of filter 4.

0:High registers are in mask mode

1:High registers are in identifier list mode

Bit 0 FML4 Filter 4 mode low

Mode of the low identifier/mask registers of filter 4.

0:Low registers are in mask mode

1:Low registers are in identifier list mode

404/454

Doc ID 14587 Rev 9

RM0016

Controller area network (beCAN)

 

 

CAN filter configuration register 1 (CAN_FCR1)

Address offset: See Table 71.

Reset value: 0x00

7

6

5

4

3

2

1

0

 

FSC11

FSC10

FACT1

 

FSC01

FSC00

FACT0

Reserved

 

 

 

Reserved

 

 

 

rw

rw

rw

rw

rw

rw

 

 

 

 

 

 

 

 

 

 

Bit 7 Reserved.

Bits 6:5 FSC1[1:0] Filter scale configuration

These bits define the scale configuration of Filter 1.

Bit 4 FACT1 Filter Active

The software sets this bit to activate Filter 1. To modify the Filter 1 registers (CAN_F1Rx), the FACT1 bit must be cleared.

0:Filter 1 is not active

1:Filter 1 is active

Bit 3 Reserved.

Bits 2:1 FSC0[1:0] Filter scale configuration

These bits define the scale configuration of Filter 0.

Bit 0 FACT0 Filter active

The software sets this bit to activate Filter 0. To modify the Filter 0 registers (CAN_F0Rx), the FACT0 bit must be cleared.

0:Filter 0 is not active

1:Filter 0 is active

Doc ID 14587 Rev 9

405/454

Controller area network (beCAN)

RM0016

 

 

CAN filter configuration register 2 (CAN_FCR2)

Address offset: See Table 71.

Reset value: 0x00

7

6

5

4

3

2

1

0

 

FSC31

FSC30

FACT3

 

FSC21

FSC20

FACT2

Reserved

 

 

 

Reserved

 

 

 

rw

rw

rw

rw

rw

rw

 

 

 

 

 

 

 

 

 

 

Bit 7 Reserved.

Bits 6:5 FSC3[1:0] Filter scale configuration

These bits define the scale configuration of Filter 3.

Bit 4 FACT3 Filter active

The software sets this bit to activate Filter 3. To modify the Filter 3 registers (CAN_F3Rx) the FACT3 bit must be cleared.

0:Filter 3 is not active

1:Filter 3 is active

Bit 3 Reserved.

Bits 2:1 FSC2[1:0] Filter scale configuration

These bits define the scale configuration of Filter 2.

Bit 0 FACT2 Filter active

The software sets this bit to activate Filter 2. To modify the Filter 2 registers (CAN_F2Rx), the FACT2 bit must be cleared.

0:Filter 2 is not active

1:Filter 2 is active

406/454

Doc ID 14587 Rev 9

RM0016

Controller area network (beCAN)

 

 

CAN filter configuration register 3 (CAN_FCR3)

Address offset: See Table 71.

Reset value: 0x00

7

6

5

4

3

2

1

0

 

FSC51

FSC50

FACT5

 

FSC41

FSC40

FACT4

Reserved

 

 

 

Reserved

 

 

 

rw

rw

rw

rw

rw

rw

 

 

 

 

 

 

 

 

 

 

Bit 7 Reserved.

Bits 6:5 FSC5[1:0] Filter scale configuration

These bits define the scale configuration of Filter 5.

Bit 4 FACT5 Filter active

The software sets this bit to activate Filter 5. To modify the Filter 5 registers (CAN_F5Rx) the FACT5 bit must be cleared.

0:Filter 5 is not active

1:Filter 5 is active

Bit 3 Reserved.

Bits 2:1 FSC4[1:0] Filter scale configuration

These bits define the scale configuration of Filter 4.

Bit 0 FACT4 Filter active

The software sets this bit to activate Filter 4. To modify the Filter 4 registers (CAN_F4Rx), the FACT4 bit must be cleared.

0:Filter 4 is not active

1:Filter 4 is active

Doc ID 14587 Rev 9

407/454

Controller area network (beCAN)

RM0016

 

 

CAN filter bank i register x (CAN_FiRx) (i = 0 .. 5, x = 1 .. 8)

Address offset: See Figure 158.

Reset value: 0xXX

7

6

5

4

3

2

1

0

 

 

 

 

FB(7:0]

 

 

 

 

 

 

 

 

 

 

 

 

rw

rw

rw

rw

 

rw

rw

rw

rw

 

 

 

 

 

 

 

 

 

Bits 7:0 FB[7:0]: Filter bits

Identifier

Each bit of the register specifies the level of the corresponding bit of the expected identifier.

0:Dominant bit is expected

1:Recessive bit is expected

Mask

Each bit of the register specifies whether the bit of the associated identifier register must match with the corresponding bit of the expected identifier or not.

0:Don’t care, the bit is not used for the comparison

1:Must match, the bit of the incoming identifier must have the same level has specified in the corresponding identifier register of the filter.

Note: Each filter i is composed of 8 registers, CAN_FiR1..8. Depending on the scale and mode configuration of the filter the function of each register can differ. For the filter mapping, functions description and mask registers association, refer to Section Figure 23.6.3: Identifier filtering.

A Mask/Identifier register in mask mode has the same bit mapping as in identifier list mode.

Note: To modify these registers, the corresponding FACT bit in the CAN_FCRx register must be cleared.

408/454

Doc ID 14587 Rev 9

Соседние файлы в папке Минимум документации STM8