Reference Guide: TMS320F2833x, 2823x Enhanced Controller Area Network (eCAN)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 82

32Message

MailboxRAM
4X32BitWords
foreachmailbox)
MemoryManagement
Unit
CPUInterface,
ReceiveControlUnit,
TimerManagementUnit
Controlandstatus
registers
32 32
MessageController
32 32 32 32 32 32
EnhancedCANController
32
Controls Address Data ECAN1INT ECAN0INT
8
SN65HVD23x
3.3VCAN Transceiver
CANBus
Communication
fers
A
buf
















Bit length 1 12 or 32
Start bit
Arbitration field which contains:
6 0-8 bytes
Data field
Control bits
16
CRC bits
7
End
2
Acknowledge
11-bit identifier + RTR bit for standard frame format
29-bit identifier + SRR bit + IDE bit + RTR bit for extended frame format
Where: RTR = Remote Transmission Request
SRR = Substitute Remote Request
IDE = Identifier Extension
Note: Unless otherwise noted, numbers are amount of bits in field.





































CANBus
CANcontroller
MessageController
CANProtocolKernel(CPK)
CAN Transceiver
RX TX
CPU
ReceiveBuffer
A
TransmitBuffer
A


























































































Global Acceptance Mask CANGAM
Mailbox Enable CANME
Mailbox Direction CANMD
Transmission Request Set CANTRS
Transmission Request Reset CANTRR
Transmission Acknowledge CANTA
Abort Acknowledge CANAA
Received Message Pending CANRMP
Received Message Lost CANRML
Remote Frame Pending CANRFP
Master Control CANMC
BitTiming Configuration CANBTC
Error and Status CANES
Transmit Error Counter CANTEC
Receive Error Counter CANREC
Global Interrupt Flag 0 CANGIF0
Global Interrupt Mask CANGIM
Mailbox Interrupt Mask CANMIM
Mailbox Interrupt Level CANMIL
Overwrite Protection Control CANOPC
TX I/O Control CANTIOC
RX I/O Control CANRIOC
TimeStamp Counter CANTSC
Global Interrupt Flag 1 CANGIF1
TimeOut Control CANTOC
TimeOut Status CANTOS
Reserved
eCANA Control and Status Registers
Message Identifier MSGID (32 bits) 61E8h61E9h
Message Control MSGCTRL (32 bits)
Message Data Low CANMDL (4 bytes)
Message Data High CANMDH (4 bytes)
Message Mailbox (16 Bytes)
Control and Status Registers
6000h
603Fh
Local Acceptance Masks (LAM)
(32 32Bit RAM)
6040h
607Fh
6080h
60BFh
60C0h
60FFh
eCANA Registers (512 Bytes)
Message Object Time Stamps (MOTS)
(32 32Bit RAM)
Message Object TimeOut (MOTO)
(32 32Bit RAM)
Mailbox 0 6100h6107h
Mailbox 1 6108h610Fh
Mailbox 2 6110h6117h
Mailbox 3 6118h611Fh
eCANA Mailbox RAM (512 Bytes)
Mailbox 4 6120h6127h
Mailbox 28 61E0h61E7h
Mailbox 29 61E8h61EFh
Mailbox 30 61F0h61F7h
Mailbox 31 61F8h61FFh
61EAh61EBh
61ECh61EDh
61EEh61EFh




Mailbox Enable CANME
Mailbox Direction CANMD
Transmission Request Set CANTRS
Transmission Request Reset CANTRR
Transmission Acknowledge CANTA
Abort Acknowledge CANAA
Received Message Pending CANRMP
Received Message Lost CANRML
Remote Frame Pending CANRFP
Global Acceptance Mask CANGAM
Master Control CANMC
BitTiming Configuration CANBTC
Error and Status CANES
Transmit Error Counter CANTEC
Receive Error Counter CANREC
Global Interrupt Flag 0 CANGIF0
Global Interrupt Mask CANGIM
Mailbox Interrupt Mask CANMIM
Mailbox Interrupt Level CANMIL
Overwrite Protection Control CANOPC
TX I/O Control CANTIOC
RX I/O Control CANRIOC
Time Stamp Counter CANTSC
Global Interrupt Flag 1 CANGIF1
TimeOut Control CANTOC
TimeOut Status CANTOS
Reserved
eCANB Control and Status Registers
Message Identifier MSGID 63E8h63E9h
Message Control MSGCTRL
Message Data Low CANMDL
Message Data High CANMDH
Message Mailbox (16 Bytes)
Control and Status Registers
6200h
623Fh
Local Acceptance Masks (LAM)
(32 32Bit RAM)
6240h
627Fh
6280h
62BFh
62C0h
62FFh
eCANB Memory (512 Bytes)
Message Object Time Stamps (MOTS)
(32 32Bit RAM)
Message Object TimeOut (MOTO)
(32 32Bit RAM)
Mailbox 0 6300h6307h
Mailbox 1 6308h630Fh
Mailbox 2 6310h6317h
Mailbox 3 6318h631Fh
eCANB Memory RAM (512 Bytes)
Mailbox 4 6320h6327h
Mailbox 28 63E0h63E7h
Mailbox 29 63E8h63EFh
Mailbox 30 63F0h63F7h
Mailbox 31 63F8h63FFh
63EAh63EBh
63ECh63EDh
63EEh63EFh










































































































































































































































































































































































































































































































































































































































































































































( ) 1
2 /
1
+ =
reg
BRP
SYSCLKOUT
TQ








































































































































































































































































































































































































Normal mode
(CCR = 0)
(CCE = 0)
Configuration mode requested
(CCR = 1)
(CCE = 0)
Wait for configuration mode
(CCR = 1)
(CCE = 0)
CCE = 0
Configuration mode active
(CCR = 1)
(CCE = 1)
Changing of bit timing
parameters enabled
Normal mode requested
(CCR = 0)
CCE = 1
Wait for normal mode
(CCR = 0)
(CCE = 1)
CCE = 1
Initialization complete
Normal mode






















Nominal bit time
SYNCSEG
1 TQ
TSEG2 TSEG1
Transmit point
Sample point
SJW SJW

Time Bit
2 /
rate Bit

=
BRP
SYSCLKOUT





























Bit-time = (TSEG1
reg
+ 1) + (TSEG2
reg
+ 1) + 1
Bit-time = TSEG1 + TSEG2 + 1
























































































































































































































































































































AAIF
Abort
acknowledge
Message
objects
GMIF0
System
32 transmit
or receive
mailboxes
TA [0]
RMP[0]
MIM[0]
MIL[0]
0
1
CANMIL
TA [n]
RMP[n]
MIM[n]
MIL[n]
0
1
TA [31]
RMP[31]
MIM[31]
MIL[31]
0
1
ECAN0INT
ECAN1INT
CANGIF0
GMIF1
CANGIF1
MIV0[4:0]
MIV1[4:0]
MTOF0
MTOM
MIL[n]
0
1
MTOF1
AAIF0
AAIF1
RMLIF
AAIM
0
1
Receive
message lost
WDIF0
WDIF1
WDIF
WDIM
0
1
Write
denied
WUIF0
WUIF1
WUIF
WUIM
0
1
Wake-up
BOIF0
BOIF1
BOIF
BOIM
0
1
Bus off
EPIF0
EPIF1
EPIF
EPIM
0
1
Error
passive
WLIF0
WLIF1
WLIF
WLIM
0
1
Warning
level
GIL
CANGIM
Interrupt level
select
Interrupt
masks
Interrupt
sources
Interrupt
level 0 flags
Interrupt
level 1 flags
TCOIF0
TCOIF1
TCOIF
TCOIM
0
1
Timer
overflow
RMLIF0
RMLIF1
RMLIM
0
1
CANGIM
I0EN
I1EN
Mailbox Timeout
CANMIM

You might also like