EasyManuals Logo

Texas Instruments TMS320 2833 Series User Manual

Texas Instruments TMS320 2833 Series
868 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #791 background imageLoading...
Page #791 background image
www.ti.com
eCAN Configuration
791
SPRUI07March 2020
Submit Documentation Feedback
Copyright © 2020, Texas Instruments Incorporated
Controller Area Network (CAN)
13.7.1.4 EALLOW Protection
To protect against inadvertent modification, some critical registers/bits of the eCAN module are EALLOW
protected. These registers/bits can be changed only if the EALLOW protection has been disabled.
Following are the registers/ bits that are EALLOW protected in the eCAN module:
CANMC[15:9, 7:6]
CANBTC
CANGIM
CANMIM[31..0]
CANTSC[31..0]
CANTIOC[3]
CANRIOC[3]
13.7.2 Steps to Configure eCAN
NOTE: This sequence must be done with EALLOW enabled.
The following steps must be performed to configure the eCAN for operation:
Step 1. Enable clock to the CAN module.
Step 2. Set the CANTX and the CANRX pins to CAN functions:
a. Write CANTIOC.3:0 = 0x08
b. Write CANRIOC.3:0 = 0x08
Step 3. After a reset, bit CCR (CANMC.12) and bit CCE (CANES.4) are set to 1. This allows the user
to configure the bit-timing configuration register (CANBTC).
If the CCE bit is set (CANES.4 = 1), proceed to next step; otherwise, set the CCR bit
(CANMC.12 = 1) and wait until CCE bit is set (CANES.4 = 1).
Step 4. Program the CANBTC register with the appropriate timing values. Make sure that the values
TSEG1 and TSEG2 are not 0. If they are 0, the module does not leave the initialization mode.
Step 5. For the SCC, program the acceptance masks now. For example:
Write LAM(3) = 0x3C0000
Step 6. Program the master control register (CANMC) as follows:
1. Clear CCR (CANMC.12) = 0
2. Clear PDR (CANMC.11) = 0
3. Clear DBO (CANMC.10) = 0
4. Clear WUBA (CANMC.9)= 0
5. Clear CDR (CANMC.8) = 0
6. Clear ABO (CANMC.7) = 0
7. Clear STM (CANMC.6) = 0
8. Clear SRES (CANMC.5) = 0
9. Clear MBNR (CANMC.4-0) = 0
Step 7. Initialize all bits of MSGCTRLn registers to zero.
Step 8. Verify the CCE bit is cleared (CANES.4 = 0), indicating that the CAN module has been
configured.
This completes the setup for the basic functionality.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320 2833 Series and is the answer not in the manual?

Texas Instruments TMS320 2833 Series Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320 2833 Series
CategoryController
LanguageEnglish

Related product manuals