+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Advanced Member level 1
    Points: 4,132, Level: 15

    Join Date
    May 2006
    Posts
    414
    Helped
    26 / 26
    Points
    4,132
    Level
    15

    data transfer between 4 PIC18f4550 using their usb port.

    hi frndzzz,

    i am trying to do some fast data communication project... serial UART of pic not fulfilling my requirement... so it possible i can send data from one controller to other controller using their USB port?????

    thx

    •   Alt29th January 2014, 14:56

      advertising

        
       

  2. #2
    Super Moderator
    Points: 70,446, Level: 64
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    11,525
    Helped
    3809 / 3809
    Points
    70,446
    Level
    64

    Re: data transfer between 4 PIC18f4550 using their usb port.

    Not with 18F4550s, their USB port only works as a client, in other words it has to be connected to a host to work. You could try SPI, it should be possible to work much faster than UART serial can manage.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



    •   Alt29th January 2014, 17:36

      advertising

        
       

  3. #3
    Advanced Member level 1
    Points: 4,132, Level: 15

    Join Date
    May 2006
    Posts
    414
    Helped
    26 / 26
    Points
    4,132
    Level
    15

    Re: data transfer between 4 PIC18f4550 using their usb port.

    i want to fetch RGB led matrix frames from SPI RAM and scan it @ 60hz.
    i have decided that one controller fetch data from SPI RAM and share it to other controllers through its USB port they will do scanning and PWM stuff. this will save complex h/w like dual port ram etc.

    any suggestion regrading this ???



    •   Alt29th January 2014, 18:52

      advertising

        
       

  4. #4
    Super Moderator
    Points: 70,446, Level: 64
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    11,525
    Helped
    3809 / 3809
    Points
    70,446
    Level
    64

    Re: data transfer between 4 PIC18f4550 using their usb port.

    If you want to use USB you will have to use one of the PIC24 devices with 'on the go' USB hosting but I doubt it would make your system any faster.

    If your SPI RAM holds data for several controllers, why not let them share an SPI bus and use addressing or hardware enabling to select the appropriate device. SPI can transfer much faster than USB and is far easier to implement. The PICs could take turns to their block of data from the RAM.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  5. #5
    Advanced Member level 3
    Points: 3,983, Level: 14
    embpic's Avatar
    Join Date
    May 2013
    Location
    india
    Posts
    742
    Helped
    80 / 80
    Points
    3,983
    Level
    14

    Re: data transfer between 4 PIC18f4550 using their usb port.

    The controller you are using which can be used as slave for USB protocol. In USB protocol ther is mainly only one Host so for that u will need to use controler support USB host. you can go with other protocol like I2C, SPI and also with UART.
    Thanks & Regards,
    embpic



    •   Alt30th January 2014, 07:09

      advertising

        
       

  6. #6
    Advanced Member level 1
    Points: 4,132, Level: 15

    Join Date
    May 2006
    Posts
    414
    Helped
    26 / 26
    Points
    4,132
    Level
    15

    Re: data transfer between 4 PIC18f4550 using their usb port.

    Quote Originally Posted by betwixt View Post
    If you want to use USB you will have to use one of the PIC24 devices with 'on the go' USB hosting but I doubt it would make your system any faster.

    If your SPI RAM holds data for several controllers, why not let them share an SPI bus and use addressing or hardware enabling to select the appropriate device. SPI can transfer much faster than USB and is far easier to implement. The PICs could take turns to their block of data from the RAM.

    Brian.
    thx Brian,
    Pls conferm PIC18f4550 have 1K dual port ram ??? if yes can i use it with SPI in DMA mode .... i mean my SPI port get data and put it on shared RAM and in main loop i do scan stuff.??? (i am not sure about this idea just getting your point off view)



--[[ ]]--