beautypg.com

8 canbt1 – can bit timing register 1 – Rainbow Electronics ATmega64M1 User Manual

Page 188

background image

188

8209A–AVR–08/09

ATmega16M1/32M1/64M1

20.10.6

CANIE2 and CANIE1 – CAN Enable Interrupt MOb Registers

• Bits 5:0 - IEMOB[5:0]: Interrupt Enable by MOb

– 0 - interrupt disabled.

– 1 - MOb interrupt enabled

Note:

Example: CANIE2 = 0000 1100

b

: enable of interrupts on MOb 2 & 3.

• Bit 15:6 –Res: Reserved

These bits are reserved for future use. For compatibility with future devices, it must be written to
zero when CANIE1 & CANIE2 are written.

20.10.7

CANSIT2 and CANSIT1 – CAN Status Interrupt MOb Registers

• Bits 5:0 - SIT[5:0]: Status of Interrupt by MOb

– 0 - no interrupt.

– 1- MOb interrupt.

Note:

Example: CANSIT2 = 0010 0001

b

: MOb 0 & 5 interrupts.

• Bit 15:6 – Res: Reserved

These bits are reserved and will always read as zero.

20.10.8

CANBT1 – CAN Bit Timing Register 1

• Bit 7– Res: Reserved

This bit is reserved for future use. For compatibility with future devices, it must be written to zero
when CANBT1 is written.

Bit

7

6

5

4

3

2

1

0

-

-

IEMOB5

IEMOB4

IEMOB3

IEMOB2

IEMOB1

IEMOB0

CANIE2

-

-

-

-

-

-

-

-

CANIE1

Bit

15

14

13

12

11

10

9

8

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Read/Write

R

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Bit

7

6

5

4

3

2

1

0

-

-

SIT5

SIT4

SIT3

SIT2

SIT1

SIT0

CANSIT2

-

-

-

-

-

-

-

-

CANSIT1

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

Bit

7

6

5

4

3

2

1

0

-

BRP5

BRP4

BRP3

BRP2

BRP1

BRP0

-

CANBT1

Read/Write

-

R/W

R/W

R/W

R/W

R/W

R/W

-

Initial Value

-

0

0

0

0

0

0

-