Adding both CAN and ethernet to a PIC


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2016
    Posts
    1

    Default Adding both CAN and ethernet to a PIC

    Hi, I'm pretty new to microcontrollers, but for a project, I need one microcontroller that can send back data to a server over ethernet while also being able to communicate with multiple other microcontrollers that are controlling their own subunits and which can send sensor or status info back to this ethernet controller.
    We're using CAN for the microcontroller communication, and it looks like this one has CAN built in http://ww1.microchip.com/downloads/en/DeviceDoc/39977f.pdf

    But as I said, I need it to also have ethernet and it looks like this one has ethernet built in http://ww1.microchip.com/downloads/en/DeviceDoc/39762f.pdf

    But I couldn't find any that have both built in, so I was thinking about buying one of the above and then adding the other technology to it. It seems that it would be easier to add ethernet to the existing CAN controller, but I'm still not sure how I would go about doing that.
    It seems like the lantronix xport would be a good choice to do this (?), but I'm pretty new to this so I'm not sure.
    For the xport, I just have to make it communicate to the PIC controller over serial right?

    How feasible do you think adding on the xport to the CAN built in controller would be?

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,563


    Did you find this post helpful? Yes | No

    Default Re: Adding both CAN and ethernet to a PIC

    Hi,
    If PBP is your language, which I suppose it is since you're posting here, then definitely do the Ethernet connectivity with an external module. Doing the UDP and TCP/IP stack(s) in PBP is a major undertaking and very large project in itself. It has been done but I do not know the state of it.

    CAN you can do with an integrated peripheral (though PBP doesn't have any high level commands for using it) or you can use your favourite PIC and attach an external CAN controller/tranceiver as well.

    Adding an XPort to a PIC with a CAN peripheral, toally feasible.

    /Henrik.

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Adding both CAN and ethernet to a PIC

    Rasen58, I use the XPORT devices for all of my Ethernet connected projests and have never had any problems with them. They are a good choice...
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. Adding TCP/IP Ethernet to PIC - how?
    By gtvmarty in forum Ethernet
    Replies: 64
    Last Post: - 10th December 2010, 18:55
  2. Adding TCP/IP Ethernet to PIC - how?
    By gtvmarty in forum mel PIC BASIC Pro
    Replies: 64
    Last Post: - 10th December 2010, 18:55
  3. Ethernet <> PIC link
    By The Master in forum Off Topic
    Replies: 9
    Last Post: - 16th November 2007, 12:04
  4. Ethernet PIC
    By Christopher4187 in forum USB
    Replies: 5
    Last Post: - 17th July 2006, 04:57
  5. Adding a pic in I2C network....
    By robert0 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2005, 12:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts