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

AURIX™ Forum Discussions

Charlie9527
Level 1
5 sign-ins First solution authored First reply posted
Level 1

When using CAN register RXSEL to control the ports of P10.2 and P10.3 as CAN02 function:

(1) Does the configuration of RXSEL affect the value of PORTS register, such as the IOCR register of PORTS ?

(2) What happens if there is another program to modify the port configuration of P10.2 and P10.3?

0 Likes
1 Solution
dw
Moderator
Moderator 250 sign-ins 100 solutions authored First question asked
Moderator

Hi Charlie,

For (1) , there is a sequence to call setPinMode function and set IOCR register finnally. Please refer to below:

dw_0-1657162159549.png

 

For(2), the programmer should take care of the pin define in the whole project. If another function or task do some pin operations for P10.2/P10.3, the CAN node pins function could be override and leads unknown behavior.

 

dw

View solution in original post

0 Likes
1 Reply
dw
Moderator
Moderator 250 sign-ins 100 solutions authored First question asked
Moderator

Hi Charlie,

For (1) , there is a sequence to call setPinMode function and set IOCR register finnally. Please refer to below:

dw_0-1657162159549.png

 

For(2), the programmer should take care of the pin define in the whole project. If another function or task do some pin operations for P10.2/P10.3, the CAN node pins function could be override and leads unknown behavior.

 

dw

0 Likes