LM3S5632 Luminary Micro, Inc, LM3S5632 Datasheet - Page 504

no-image

LM3S5632

Manufacturer Part Number
LM3S5632
Description
Lm3s5632 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM3S5632-IQR50-A0
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S5632-IQR50-A0
Manufacturer:
TI/德州仪器
Quantity:
20 000
Part Number:
LM3S5632-IQR50-A0T
Manufacturer:
Texas Instruments
Quantity:
10 000
Reset
Reset
Type
Type
Controller Area Network (CAN) Module
CAN Status (CANSTS)
CAN0 base: 0x4004.0000
Offset 0x004
Type R/W, reset 0x0000.0000
504
Bit/Field
31:8
RO
RO
7
6
5
31
15
0
0
RO
RO
Register 2: CAN Status (CANSTS), offset 0x004
The status register contains information for interrupt servicing such as Bus-Off, error count threshold,
and error types.
The LEC field holds the code that indicates the type of the last error to occur on the CAN bus. This
field is cleared to 0 when a message has been transferred (reception or transmission) without error.
The unused error code 7 may be written by the CPU to manually set this field to an invalid error so
that it can be checked for a change later.
An Error Interrupt is generated by the BOff and EWarn bits and a Status Interrupt is generated by
the RxOK, TxOK, and LEC bits, assuming that the corresponding enable bits in the CAN Control
(CANCTL) register are set. A change of the EPass bit or a write to the RxOK, TxOK, or LEC bits
does not generate an interrupt.
Reading the CAN Status (CANSTS) register clears the CAN Interrupt (CANINT) register, if it is
pending.
30
14
0
0
RO
RO
29
13
reserved
0
0
EWarn
EPass
Name
BOff
RO
RO
28
12
0
0
reserved
RO
RO
27
11
0
0
Type
RO
RO
RO
RO
RO
RO
26
10
0
0
0x0000
RO
RO
Reset
25
0
9
0
0
0
0
Preliminary
RO
RO
24
0
8
0
reserved
Description
Software should not rely on the value of a reserved bit. To provide
compatibility with future products, the value of a reserved bit should be
preserved across a read-modify-write operation.
Bus-Off Status
0: Module is not in bus-off state.
1: Module is in bus-off state.
Warning Status
0: Both error counters are below the error warning limit of 96.
1: At least one of the error counters has reached the error warning limit
of 96.
Error Passive
0: The CAN module is in the Error Active state, that is, the receive or
transmit error count is less than or equal to 127.
1: The CAN module is in the Error Passive state, that is, the receive or
transmit error count is greater than 127.
BOff
RO
RO
23
0
7
0
EWarn
RO
RO
22
0
6
0
EPass
RO
RO
21
0
5
0
RxOK
R/W
RO
20
0
4
0
TxOK
R/W
RO
19
0
3
0
R/W
RO
18
0
2
0
LEC
R/W
RO
17
0
1
0
June 02, 2008
R/W
RO
16
0
0
0

Related parts for LM3S5632