2000 Jan 04 14
Philips Semiconductors Product specification
Stand-alone CAN controller SJA1000
Table 4 Bit interpretation of the command register (CMR); CAN address 1
Notes
1. The SJA1000 will enter sleep mode if the sleep bit is set to logic 1 (sleep); there is no bus activity and no interrupt is
pending. Setting of GTS with at least one of the previously mentioned exceptions valid will result in a wake-up
interrupt. After sleep mode is set, the CLKOUT signal continues until at least 15 bit times have passed, to allow a
host microcontroller clocked via this signal to enter its own standby mode before the CLKOUT goes LOW.
The SJA1000 will wake up when one of the three previously mentioned conditions is negated: after ‘Go To Sleep’ is
set LOW (wake-up), there is bus activity or
INT is driven LOW (active). On wake-up, the oscillator is started and a
wake-up interrupt is generated. A sleeping SJA1000 which wakes up due to bus activity will not be able to receive
this message until it detects 11 consecutive recessive bits (bus-free sequence). It should be noted that setting of GTS
is not possible in reset mode. After clearing of reset request, setting of GTS is possible first, when bus-free is detected
again.
2. This command bit is used to clear the data overrun condition indicated by the data overrun status bit. As long as the
data overrun status bit is set no further data overrun interrupt is generated. It is allowed to give the clear data overrun
command at the same time as a release receive buffer command.
3. After reading the contents of the receive buffer, the microcontroller can release this memory space of the RXFIFO
by setting the release receive buffer bit to logic 1. This may result in another message becoming immediately
available within the receive buffer. This event will force another receive interrupt, if enabled. If there is no other
message available no further receive interrupt is generated and the receive buffer status bit is cleared.
4. The abort transmission bit is used when the CPU requires the suspension of the previously requested transmission,
e.g. to transmit a more urgent message before. A transmission already in progress is not stopped. In order to see if
the original message had been either transmitted successfully or aborted, the transmission complete status bit
should be checked. This should be done after the transmit buffer status bit has been set to logic 1 (released) or a
transmit interrupt has been generated.
5. If the transmission request was set to logic 1 in a previous command, it cannot be cancelled by setting the
transmission request bit to logic 0. The requested transmission may be cancelled by setting the abort transmission
bit to logic 1.
BIT SYMBOL NAME VALUE FUNCTION
CMR.7 −− −reserved
CMR.6 −− −reserved
CMR.5 −− −reserved
CMR.4 GTS Go To Sleep; note 1 1 sleep; the SJA1000 enters sleep mode if no CAN
interrupt is pending and there is no bus activity
0 wake up; SJA1000 operates normal
CMR.3 CDO Clear Data Overrun;
note 2
1 clear; data overrun status bit is cleared
0 no action
CMR.2 RRB Release Receive Buffer;
note 3
1 released; the receive buffer, representing the
message memory space in the RXFIFO is
released
0 no action
CMR.1 AT Abort Transmission;
note 4
1 present; if not already in progress, a pending
transmission request is cancelled
0 absent; no action
CMR.0 TR Transmission Request;
note 5
1 present; a message will be transmitted
0 absent; no action