please choosego to mobile | Continue to access the PC version
View: 4605|Reply: 2

CAN pin confusion between manual and official FEX file

[Copy link]

4

threads

11

posts

46

credits

Novice

Rank: 1

credits
46
Published in 2015-3-31 22:32:53 | Show all floors |Read mode
Hi all.

I have bought an Orange Pi Mini recently and would like to enable CAN_TX and CAN_RX on the 40-pin CONN2. From the on-line manual the pinout is CAN_TX:PH20 and CAN_RX:PH21. From the FEX file that I fetched  the following puzzles me:
  1. [can_para]
  2. can_used = 0
  3. can_tx = port:PA16<3><default><default><default>
  4. can_rx = port:PA17<3><default><default><default>
Copy code
Which ones should I use then? PH20/21 or PA16/17?

Thanks a lot in advance.

5

threads

354

posts

2614

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2614
Published in 2015-4-1 00:17:29 | Show all floors
Edited by fritz at 2015-4-1 00:34

Hi I think checking the A20 datasheet on Allwinner github  

For PA16/17

  1. [can_para]
  2. can_used = 1
  3. can_tx = port:PA16<3><default><default><default>
  4. can_rx = port:PA17<3><default><default><default>
Copy code

For PH20/21

  1. [can_para]
  2. can_used = 1
  3. can_tx = port:PH20<4><default><default><default>
  4. can_rx = port:PH21<4><default><default><default>
Copy code


But lets see if @zhao_steven confirms.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

4

threads

11

posts

46

credits

Novice

Rank: 1

credits
46
 Author| Published in 2015-4-1 16:26:43 | Show all floors
Thank you very much, @fritz. Does that mean I can use either indifferently?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list