Datasheet

515
SAM7X Series [DATASHEET]
6120K–ATARM–11-Feb-14
36.8.5 CAN Status Register
Name: CAN_SR
Access Type: Read-only
MBx: Mailbox x Event
0 = No event occurred on Mailbox x.
1 = An event occurred on Mailbox x.
An event corresponds to MRDY, MABT fields in the CAN_MSRx register.
ERRA: Error Active Mode
0 = CAN controller is not in Error Active Mode.
1 = CAN controller is in Error Active Mode.
This flag is set depending on TEC and REC counter values. It is set when node is neither in Error Passive Mode nor in Bus Off
Mode.
This flag is automatically reset when above condition is not satisfied. Refer to Section 36.6.4.6 “Error Interrupt Handler” on page
492 for more information.
WARN: Warning Limit
0 = CAN controller Warning Limit is not reached.
1 = CAN controller Warning Limit is reached.
This flag is set depending on TEC and REC counter values. It is set when at least one of the counter values exceeds 96.
This flag is automatically reset when above condition is not satisfied. Refer to Section 36.6.4.6 “Error Interrupt Handler” on page
492 for more information.
ERRP: Error Passive Mode
0 = CAN controller is not in Error Passive Mode.
1 = CAN controller is in Error Passive Mode.
This flag is set depending on TEC and REC counters values.
A node is error passive when TEC counter is greater or equal to 128 (decimal) or when the REC counter is greater or equal to 128
(decimal).
This flag is automatically reset when above condition is not satisfied. Refer to Section 36.6.4.6 “Error Interrupt Handler” on page
492 for more information.
BOFF: Bus Off Mode
0 = CAN controller is not in Bus Off Mode.
1 = CAN controller is in Bus Off Mode.
31 30 29 28 27 26 25 24
OVLSY TBSY RBSY BERR FERR AERR SERR CERR
23 22 21 20 19 18 17 16
TSTP TOVF WAKEUP SLEEP BOFF ERRP WARN ERRA
15 14 13 12 11 10 9 8
––––––––
76543210
MB7MB6MB5MB4MB3MB2MB1MB0