5 can enable mob registers - canen2 and canen1 – Rainbow Electronics ATmega64C1 User Manual
Page 189

189
7647A–AVR–02/08
ATmega32/64/M1/C1
– 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.
16.10.5
CAN Enable MOb Registers - CANEN2 and CANEN1
• Bits 5:0 - ENMOB5: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 – Reserved Bits
These bits are reserved for future use.
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