beautypg.com

4 cangie – can general interrupt enable register – Rainbow Electronics ATmega64M1 User Manual

Page 186

background image

186

8209A–AVR–08/09

ATmega16M1/32M1/64M1

– 0 - no interrupt.

– 1 - burst receive interrupt: set when the frame buffer receive is completed.

• Bit 3 – SERG: Stuff Error General

Writing a logical one resets this interrupt flag.

– 0 - no interrupt.

– 1 - stuff error interrupt: detection of more than 5 consecutive bits with the same

polarity.

• Bit 2 – CERG: CRC Error General

Writing a logical one resets this interrupt flag.

– 0 - no interrupt.

– 1 - CRC error interrupt: the CRC check on destuffed message does not fit with the

CRC field.

• Bit 1 – FERG: Form Error General

Writing a logical one resets this interrupt flag.

– 0 - no interrupt.

– 1 - form error interrupt: one or more violations of the fixed form in the CRC delimiter,

acknowledgment delimiter or EOF.

• Bit 0 – AERG: Acknowledgment Error General

Writing a logical one resets this interrupt flag.

– 0 - no interrupt.

– 1 - acknowledgment error interrupt: no detection of the dominant bit in acknowledge

slot.

20.10.4

CANGIE – CAN General Interrupt Enable Register

• Bit 7 – ENIT: Enable all Interrupts (Except for CAN Timer Overrun Interrupt)

– 0 - interrupt disabled.

– 1- CANIT interrupt enabled.

• Bit 6 – ENBOFF: Enable Bus Off Interrupt

– 0 - interrupt disabled.

– 1- bus off interrupt enabled.

• Bit 5 – ENRX: Enable Receive Interrupt

– 0 - interrupt disabled.

– 1- receive interrupt enabled.

Bit

7

6

5

4

3

2

1

0

ENIT

ENBOFF

ENRX

ENTX

ENERR

ENBX

ENERG

ENOVRT

CANGIE

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