Unable to SET CCE bit of CAN register CCCR

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17201
Level 1
Level 1
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)?
0 Likes
1 Reply
User17869
Level 1
Level 1
Welcome! First reply posted
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.
0 Likes