Datasheet
20.11.2. CAN General Status Register
Name: CANGSTA
Offset: 0xD9
Reset: 0x0
Property:
R
Bit 7 6 5 4 3 2 1 0
OVRG TXBSY RXBSY ENFG BOFF ERRP
Access
Reset 0 0 0 0 0 0
Bit 6 – OVRG: Overload Frame Flag
This flag does not generate an interrupt.
Value Description
0 No overload frame
1 Overload frame: set by hardware as long as the produced overload frame is sent
Bit 4 – TXBSY: Transmitter Busy
This flag does not generate an interrupt.
Value Description
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.
Value Description
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.
Value Description
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.
Value Description
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.
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Complete-10/2016
245