May 29, 2019
10:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 29, 2019
10:25 PM
HI,
I am working on TC387 AURIX microcontroller.
During my CAN initialization, After setting my INIT bit to 1, when I try to set the CCE bit to 1, I am not able to do it.
After each setting each INIT and CCE bit to 1, I have a while loop which move forward only if respective bit is set to 1.
my INIT bit is able to set and my while loop code moves forward to set CCE bit, but is never able to move ahead of my CCE bit set while loop, i.e. my CCE bit is never getting set.
Is CCE bit write protected? If yes, what is the procedure to make it write accessible? Also Is there any other register that need to be set for CAN before setting CCCR register (INIT and CCE bit)?
I am working on TC387 AURIX microcontroller.
During my CAN initialization, After setting my INIT bit to 1, when I try to set the CCE bit to 1, I am not able to do it.
After each setting each INIT and CCE bit to 1, I have a while loop which move forward only if respective bit is set to 1.
my INIT bit is able to set and my while loop code moves forward to set CCE bit, but is never able to move ahead of my CCE bit set while loop, i.e. my CCE bit is never getting set.
Is CCE bit write protected? If yes, what is the procedure to make it write accessible? Also Is there any other register that need to be set for CAN before setting CCCR register (INIT and CCE bit)?
1 Reply
Aug 30, 2019
12:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 30, 2019
12:49 AM
Hi Saurabhu13,
first you have to switch on the "synchronous clock source" of CLKSEL in the MCR, before you can modify the contents of the CCCR.
first you have to switch on the "synchronous clock source" of CLKSEL in the MCR, before you can modify the contents of the CCCR.