5 can status register – Rainbow Electronics AT91CAP9S250A User Manual
Page 717

717
6264A–CAP–21-May-07
AT91CAP9S500A/AT91CAP9S250A
39.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.
• 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 counters values. It is set when at least one of the counters values exceeds 96.
This flag is automatically reset when above condition is not satisfied.
• 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) and less than 256.
This flag is automatically reset when above condition is not satisfied.
• BOFF: Bus Off mode
0 = CAN controller is not in bus-off mode
1 = CAN controller is in bus-off mode
This flag is set depending on TEC counter value. A node is bus off when TEC counter is greater or equal to 256 (decimal).
This flag is automatically reset when above condition is not satisfied.
• SLEEP: CAN controller in Low power Mode
0 = CAN controller is not in low power mode.
1 = CAN controller is in low power 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
MB15
MB14
MB13
MB12
MB11
MB10
MB9
MB8
7
6
5
4
3
2
1
0
MB7
MB6
MB5
MB4
MB3
MB2
MB1
MB0