|
MEGA128CAN Datasheet, PDF (248/413 Pages) ATMEL Corporation – Microcontroller WITH 128K BYTES OF ISP FLASH AND CAN CONTROLLER | |||
|
◁ |
CAN General Interrupt
Register - CANGIT
⢠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.
Bit
Read/Write
Initial Value
7
CANIT
R
0
6
BOFFIT
R/W
0
5
OVRTIM
R/W
0
4
BXOK
R/W
0
3
SERG
R/W
0
2
CERG
R/W
0
1
FERG
R/W
0
0
AERG
R/W
0
CANGIT
⢠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 coming 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 interrupt flag
â 0 - no interrupt.
â 1 - CAN timer overrun interrupt: set when the CAN timer switches from 0xFFFF
to 0x0000.
⢠Bit 4 â BXOK: Frame Buffer Receive Interrupt
Writing a logical one resets this interrupt flag. BXOK flag can be cleared only if all CON-
MOB 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 3 â SERG: Stuff Error General
Writing a logical one resets this interrupt flag.
â 0 - no interrupt.
â 1 - stuff error interrupt: detection of more than five 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.
248 AT90CAN128
4250EâCANâ12/04
|
▷ |