2000 Jan 04 37
Philips Semiconductors Product specification
Stand-alone CAN controller SJA1000
Table 21 Bit interpretation of bits ECC.4 to ECC.0; note 1
Note
1. Bit settings reflect the current frame segment to distinguish between different error events.
BIT ECC.4 BIT ECC.3 BIT ECC.2 BIT ECC.1 BIT ECC.0 FUNCTION
00011start of frame
00010ID.28toID.21
00110ID.20toID.18
00100bit SRTR
00101bit IDE
00111ID.17toID.13
01111ID.12toID.5
01110ID.4toID.0
01100bit RTR
01101reserved bit 1
01001reserved bit 0
01011data length code
01010data field
01000CRC sequence
11000CRC delimiter
11001acknowledge slot
11011acknowledge delimiter
11010end of frame
10010intermission
10001active error flag
10110passive error flag
10011tolerate dominant bits
10111error delimiter
11100overload flag
If a bus error occurs, the corresponding bus error interrupt
is always forced, if enabled. At the same time, the current
position of the bit stream processor is captured into the
error code capture register. The content within this register
is fixed until the users software has read out its content
once. The capture mechanism is then activated again.
The corresponding interrupt flag located in the interrupt
register is cleared during the read access to the interrupt
register. A new bus error interrupt is not possible until the
capture register is read out once.
6.4.10 ERROR WARNING LIMIT REGISTER (EWLR)
The error warning limit can be defined within this register.
The default value (after hardware reset) is 96. In reset
mode this register appears to the CPU as a read/write
memory. In operating mode it is read only.
Note, that a content change of the EWLR is only possible,
if the reset mode was entered previously. An error status
change (see status register; Table 14) and an error
warning interrupt forced by the new register content will not
occur until the reset mode is cancelled again.
2000 Jan 04 38
Philips Semiconductors Product specification
Stand-alone CAN controller SJA1000
Table 22 Bit interpretation of the error warning limit register (EWLR); CAN address 13
6.4.11 RX ERROR COUNTER REGISTER (RXERR)
The RX error counter register reflects the current value of the receive error counter. After a hardware reset this register
is initialized to logic 0. In operating mode this register appears to the CPU as a read only memory. A write access to this
register is possible only in reset mode.
If a bus-off event occurs, the RX error counter is initialized to logic 0. The time bus-off is valid, writing to this register has
no effect.
Note, that a CPU-forced content change of the RX error counter is only possible, if the reset mode was entered
previously. An error status change (see status register; Table 14), an error warning or an error passive interrupt forced
by the new register content will not occur, until the reset mode is cancelled again.
Table 23 Bit interpretation of the RX error counter register (RXERR); CAN address 14
6.4.12 TX ERROR COUNTER REGISTER (TXERR)
The TX error counter register reflects the current value of the transmit error counter.
In operating mode this register appears to the CPU as a read only memory. A write access to this register is possible
only in reset mode. After a hardware reset this register is initialized to logic 0. If a bus-off event occurs, the TX error
counter is initialized to 127 to count the minimum protocol-defined time (128 occurrences of the bus-free signal). Reading
the TX error counter during this time gives information about the status of the bus-off recovery.
If bus-off is active, a write access to TXERR in the range from 0 to 254 clears the bus-off flag and the controller will wait
for one occurrence of 11 consecutive recessive bits (bus-free) after the reset mode has been cleared.
Table 24 Bit interpretation of the TX error counter register (TXERR); CAN address 15
Writing 255 to TXERR allows to initiate a CPU-driven bus-off event. It should be noted that a CPU-forced content change
of the TX error counter is only possible, if the reset mode was entered previously. An error or bus status change (see
status register; Table 14), an error warning or an error passive interrupt forced by the new register content will not occur
until the reset mode is cancelled again. After leaving the reset mode, the new TX counter content is interpreted and the
bus-off event is performed in the same way, as if it was forced by a bus error event. That means, that the reset mode is
entered again, the TX error counter is initialized to 127, the RX counter is cleared and all concerned status and interrupt
register bits are set.
Clearing of reset mode now will perform the protocol-defined bus-off recovery sequence (waiting for 128 occurrences of
the bus-free signal).
If the reset mode is entered again before the end of bus-off recovery (TXERR > 0), bus-off keeps active and TXERR is
frozen.
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
EWL.7 EWL.6 EWL.5 EWL.4 EWL.3 EWL.2 EWL.1 EWL.0
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
RXERR.7 RXERR.6 RXERR.5 RXERR.4 RXERR.3 RXERR.2 RXERR.1 RXERR.0
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
TXERR.7 TXERR.6 TXERR.5 TXERR.4 TXERR.3 TXERR.2 TXERR.1 TXERR.0
2000 Jan 04 39
Philips Semiconductors Product specification
Stand-alone CAN controller SJA1000
6.4.13 TRANSMIT BUFFER
The global layout of the transmit buffer is shown in Fig.7.
One has to distinguish between the Standard Frame
Format (SFF) and the Extended Frame Format (EFF)
configuration. The transmit buffer allows the definition of
one transmit message with up to eight data bytes.
6.4.13.1 Transmit buffer layout
The transmit buffer layout is subdivided into descriptor and
data fields where the first byte of the descriptor field is the
frame information byte (frame information). It describes
the frame format (SFF or EFF), remote or data frame and
the data length. Two identifier bytes for SFF or four bytes
for EFF messages follow. The data field contains up to
eight data bytes.
The transmit buffer has a length of 13 bytes and is located
in the CAN address range from 16 to 28.
Note, that a direct access to the transmit buffer RAM is
possible using the CAN address space from 96 to 108.
This RAM area is reserved for the transmit buffer.
The three following bytes may be used for general
purposes (CAN address 109, 110 and 111).
Fig.7 Transmit buffer layout for standard and extended frame format configurations.
a. Standard frame format. b. Extended frame format.
handbook, full pagewidth
MGK621
CAN address 16
TX frame information
17
TX identifier 1
18
TX identifier 2
19
TX data byte 1
20
TX data byte 2
21
TX data byte 3
22
TX data byte 4
23
TX data byte 5
24
TX data byte 6
25
TX data byte 7
26
TX data byte 8
27
unused
28
unused
CAN address
16
TX frame information
17
TX identifier 1
18
TX identifier 2
19
TX identifier 3
20
TX identifier 4
21
TX data byte 1
22
TX data byte 2
23
TX data byte 3
24
TX data byte 4
25
TX data byte 5
26
TX data byte 6
27
TX data byte 7
28
TX data byte 8
6.4.13.2 Descriptor field of the transmit buffer
The bit layout of the transmit buffer is represented in
Tables 25 to 27 for SFF and Tables 28 to 32 for EFF.
The given configuration is chosen to be compatible with
the receive buffer layout (see Section 6.4.14.1).

SJA1000T/N1,118

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
CAN Interface IC STAND ALONE CAN
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet