Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2236|Reply: 2

CAN pin confusion between manual and official FEX file

[Copy link]

4

Threads

11

Posts

46

Credits

Novice

Rank: 1

Credits
46
Post time 2015-3-31 22:32:53 | Show all posts |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 the Code
Which ones should I use then? PH20/21 or PA16/17?

Thanks a lot in advance.

5

Threads

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-4-1 00:17:29 | Show all posts
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 the 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 the 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| Post time 2015-4-1 16:26:43 | Show all posts
Thank you very much, @fritz. Does that mean I can use either indifferently?
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-12-14 16:22 GMT+8 , Processed in 0.028270 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list