176
ATmega16M1/32M1/64M1 [DATASHEET]
8209E–AVR–11/2012
– 0 - CAN controller disable: because an enable/standby command is not immediately effective, this
status gives the true state of the chosen mode
– 1 - CAN controller enable
Bit 1 – BOFF: Bus Off Mode
BOFF gives the information of the state of the CAN channel. Only entering in bus off mode generates the BOFFIT
interrupt.
– 0 - no bus off mode
– 1 - bus off mode
Bit 0 – ERRP: Error Passive Mode
ERRP gives the information of the state of the CAN channel. This flag does not generate an interrupt.
– 0 - no error passive mode
– 1 - error passive mode
19.10.3
CANGIT – CAN General Interrupt Register
Bit 7 – CANIT: General Interrupt Flag
This is a read only bit.
– 0 - no interrupt
– 1 - CAN interrupt: image of all the CAN controller interrupts except for OVRTIM interrupt. This bit can
be used for polling method
Bit 6 – BOFFIT: Bus Off Interrupt Flag
Writing a logical one resets this interrupt flag. BOFFIT flag is only set when the CAN enters in bus off mode (com-
ing from error passive mode).
– 0 - no interrupt
– 1 - bus off interrupt when the CAN enters in bus off mode
Bit 5 – OVRTIM: Overrun CAN Timer
Writing a logical one resets this interrupt flag. Entering in CAN timer overrun interrupt handler also reset this inter-
rupt flag
– 0 - no interrupt
– 1 - CAN timer overrun interrupt: set when the CAN timer switches from 0xFFFF to 0
Bit 4 – BXOK: Frame Buffer Receive Interrupt
Writing a logical one resets this interrupt flag. BXOK flag can be cleared only if all CONMOB fields of the MOb’s of
the buffer have been re-written before.
– 0 - no interrupt
– 1 - burst receive interrupt: set when the frame buffer receive is completed
Bit
765
43210
CANIT
BOFFIT
OVRTIM
BXOK
SERG
CERG
FERG
AERG
CANGIT
Read/write
R
R/W
Initial value
000
00000