beautypg.com

5 canen2 and canen1 – can enable mob registers – Rainbow Electronics ATmega64M1 User Manual

Page 187

background image

187

8209A–AVR–08/09

ATmega16M1/32M1/64M1

• Bit 4 – ENTX: Enable Transmit Interrupt

– 0 - interrupt disabled.

– 1- transmit interrupt enabled.

• Bit 3 – ENERR: Enable MOb Errors Interrupt

– 0 - interrupt disabled.

– 1- MOb errors interrupt enabled.

• Bit 2 – ENBX: Enable Frame Buffer Interrupt

– 0 - interrupt disabled.

– 1- frame buffer interrupt enabled.

• Bit 1 – ENERG: Enable General Errors Interrupt

– 0 - interrupt disabled.

– 1- general errors interrupt enabled.

• Bit 0 – ENOVRT: Enable CAN Timer Overrun Interrupt

– 0 - interrupt disabled.

– 1- CAN timer interrupt overrun enabled.

20.10.5

CANEN2 and CANEN1 – CAN Enable MOb Registers

• Bits 5:0 - ENMOB[5:0]: Enable MOb

This bit provides the availability of the MOb.
It is set to one when the MOb is enabled (i.e. CONMOB1:0 of CANCDMOB register).
Once TXOK or RXOK is set to one (TXOK for automatic reply), the corresponding ENMOB is
reset. ENMOB is also set to zero configuring the MOb in disabled mode, applying abortion or
standby mode.

– 0 - message object disabled: MOb available for a new transmission or reception.

– 1 - message object enabled: MOb in use.

• Bit 15:6 – Res: Reserved

These bits are reserved and will always read as zero.

Bit

7

6

5

4

3

2

1

0

-

-

ENMOB5

ENMOB4

ENMOB3

ENMOB2

ENMOB1

ENMOB0

CANEN2

-

-

-

-

-

-

-

-

CANEN1

Bit

15

14

13

12

11

10

9

8

Read/Write

R

R

R

R

R

R

R

R

Initial Value

0

0

0

0

0

0

0

0

Read/Write

R

R

R

R

R

R

R

R

Initial Value

0

0

0

0

0

0

0

0