Reading a slave USB with a pic


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2005
    Location
    Cesena - Italy
    Posts
    13

    Default Reading a slave USB with a pic

    Hi all
    I don't know the USB protocol...but I think the USB can communicate with a host..and a slave. The host normally is a PC ...the slave may be a USB pen..or a weather station...or...an HD.
    Do you think may be possible to handle the USB data output from a slave device with a pic (18f4550...in this way the pic work as a host device)? ....or the PIC can only work as slave device?
    May be a stupid question..but I need to read data outputted from a USB PIC (18f2550) with another pic to handle them without a computer.

    Paolo

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by pcaccia View Post
    Do you think may be possible to handle the USB data output from a slave device with a pic (18f4550...in this way the pic work as a host device)? ....or the PIC can only work as slave device?
    PIC's (as you probably know them, 18Fxx50 types) are slaves only.

    May be a stupid question..but I need to read data outputted from a USB PIC (18f2550) with another pic to handle them without a computer.
    Then don't use USB. Use serial, parallel, whatever. Don't have to use (well, can't use) the USB ports to transfer between 2 PIC's.

  3. #3
    Join Date
    May 2005
    Location
    Cesena - Italy
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Thanks Skymask for you fast reply !
    I can't choose the communications between PICS...(I like to much the serial communications)
    "SIMPLY" ...I must read data from a USB without a computer!
    An example maybe ...I must read the data outputted form an USB weather station....and reading the data I must speack all values with a sythesis voice..
    Bahhh ..think me crazy!

    Paolo

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    There are PIC's that support slave, host as well OTG. However, skimask is correct that you have to look at something other than USB as PBP does not support those PIC's.

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    I've never looked at it in depth but FTDI has a USB host controller called Viniculum which has UART, SPI & parallel interfaces. It may give you a way to do what you want.They have some sample applications interfacing PICs to USB slave devices. Unfortunately they are in C but they do show that what you want to do is possible with their chip. The chip is about $10 or for about $20 you can get an eval board.
    Last edited by dhouston; - 23rd October 2008 at 23:08.

  6. #6
    Join Date
    May 2005
    Location
    Cesena - Italy
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    This is what I'm looking for!

    Thanks all

    Paolo

  7. #7
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Let us know how it works out - along with your PBP code.

  8. #8
    Join Date
    May 2005
    Location
    Cesena - Italy
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Order executed!
    Sure I will report all in this same post!

    Paolo

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. ShiftOut. Using PIC as Slave device.
    By TonyA in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th March 2010, 19:10
  3. PIC as USB host
    By dhouston in forum USB
    Replies: 1
    Last Post: - 27th May 2008, 01:12
  4. USB Pics, ICD2, pic basic pro
    By vacpress in forum USB
    Replies: 34
    Last Post: - 20th January 2007, 20:50
  5. Need Help with PIC as SPI Slave
    By PICtron in forum Serial
    Replies: 3
    Last Post: - 16th August 2005, 19:34

Members who have read this thread : 1

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

Posting Permissions

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