The relationship between CAN RXSEL function and PORT IOCR register

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

cross mob
Charlie9527
Level 2
Level 2
5 questions asked 10 sign-ins 5 replies posted

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
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

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
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

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