●
1 - enable mode: The CAN channel enters in enable mode once 11 recessive bits has been read.
• Bit 0 – SWRES: Software Reset Request
This auto resettable bit only resets the CAN controller.
●
●
0 - no reset
1 - reset: this reset is “ORed” with the hardware reset.
16.10.2 CAN General Status Register - CANGSTA
Bit
7
-
6
OVRG
R
5
-
4
3
2
ENFG
R
1
BOFF
R
0
TXBSY RXBSY
ERRP CANGSTA
Read/Write
Initial Value
-
-
R
0
R
0
R
0
-
0
-
0
0
• Bit 7 – Reserved Bit
This bit is reserved for future use.
• Bit 6 – OVRG: Overload Frame Flag
This flag does not generate an interrupt.
●
●
0 - no overload frame.
1 - overload frame: set by hardware as long as the produced overload frame is sent.
• Bit 5 – Reserved Bit
This bit is reserved for future use.
• Bit 4 – TXBSY: Transmitter Busy
This flag does not generate an interrupt.
●
●
0 - transmitter not busy.
1 - transmitter busy: set by hardware as long as a frame (data, remote, overload or error frame) or an ACK field is
sent. Also set when an inter frame space is sent.
• Bit 3 – RXBSY: Receiver Busy
This flag does not generate an interrupt.
●
●
0 - receiver not busy
1 - receiver busy: set by hardware as long as a frame is received or monitored.
• Bit 2 – ENFG: Enable Flag
This flag does not generate an interrupt.
●
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.
ATmega16/32/64/M1/C1 [DATASHEET]
159
7647O–AVR–01/15