2000 Jan 04
26
Philips Semiconductors
Product specication
Stand-alone CAN controller
SJA1000
Notes
1. X means that the value of these registers or bits is not influenced.
2. Remarks in brackets explain functional meaning.
3. On bus-off the error warning interrupt is set, if enabled.
4. If the reset mode was entered due to a bus-off condition, the receive error counter is cleared and the transmit error
counter is initialized to 127 to count-down the CAN-defined bus-off recovery time consisting of 128 occurrences of
11 consecutive recessive bits.
5. Internal read/write pointers of the RXFIFO are reset to their initial values. A subsequent read access to the RXB
would show undefined data values (parts of old messages).
If a message is transmitted, this message is written in parallel to the receive buffer. A receive interrupt is generated
only if this transmission was forced by the self reception request. So, even if the receive buffer is empty, the last
transmitted message may be read from the receive buffer until it is overwritten by the next received or transmitted
message.
Upon a hardware reset, the RXFIFO pointers are reset to the physical RAM address ‘0’. Setting CR.0 by software or
due to the bus-off event will reset the RXFIFO pointers to the currently valid FIFO start address (RBSA register)
which is different from the RAM address ‘0’ after the first release receive buffer command.
6.4.3
MODE REGISTER (MOD)
The contents of the mode register are used to change the behaviour of the CAN controller. Bits may be set or reset by
the CPU which uses the control register as a read/write memory. Reserved bits are read as logic 0.
Table 12 Bit interpretation of the mode register (MOD); CAN address ‘0’
BIT
SYMBOL
NAME
VALUE
FUNCTION
MOD.7
reserved
MOD.6
reserved
MOD.5
reserved
MOD.4
SM
Sleep Mode; note 1
1
sleep; the CAN controller enters sleep mode if no
CAN interrupt is pending and if there is no bus
activity
0
wake-up; the CAN controller wakes up if sleeping
MOD.3
AFM
Acceptance Filter Mode;
note 2
1
single; the single acceptance lter option is
enabled (one lter with the length of 32 bit is
active)
0
dual; the dual acceptance lter option is enabled
(two lters, each with the length of 16 bit are
active)
MOD.2
STM
Self Test Mode; note 2
1
self test; in this mode a full node test is possible
without any other active node on the bus using the
self reception request command; the
CAN controller will perform a successful
transmission, even if there is no acknowledge
received
0
normal; an acknowledge is required for successful
transmission