pic18f driving usb printers


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    bot402's Avatar
    bot402 Guest

    Default

    Microcontroller USB implementation is peripheral only. In order to control a Printer or any other USB device requires a HOST.

    The only thing that a host and a peripheral has in common is the name USB. They are totally different things and are not interchangeable.

    So the bottom line is you cannot control a USB printer from a PICmicro unless you interface using a host peripheral such as ones supplied by Cypress or Philips etc. These are not simple devices to control and a knowledge of programming and USB is required. There is also the USBWIZ with its simple interface, but this may be overkill.
    Last edited by bot402; - 27th July 2005 at 16:24.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    This is what i thought. Thanks Bot402 for confirmation of my First. and Second post

    But your explanation is much better than mine
    Last edited by mister_e; - 27th July 2005 at 16:47.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    ephesus's Avatar
    ephesus Guest

    Default

    "Microcontroller USB implementation is peripheral only.",bot402,
    it's clear to understand..
    Thanks friends..
    Serkan

  4. #4
    maheshmurty's Avatar
    maheshmurty Guest

    Default Re: pic18f driving usb printers

    I wanted to ask then what is USB OTG. I read some articles over the web & came to know that USB OTG helps an embedded device to configure both as a device / host. So can't we do anything with it?

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default Re: pic18f driving usb printers

    Until Microchip (and probably PBP) announce they support USB on the go specification for 16F and 18F, our PICs will remain USB slaves and won't be able to act as USB masters.

    Only the host can schedule the configuration and data transfers over the link. The devices cannot initiate data transfers, they only respond to requests given by a host. OTG introduces the concept that a device can perform both the master and slave roles
    http://en.wikipedia.org/wiki/USB_On-The-Go

    Look at the PIC 24F family of products, they have OTG specs.

    PIC24FJ256DA210
    Universal Serial Bus Features:
    • USB v2.0 On-The-Go (OTG) Compliant
    • Dual Role Capable – Can act as either Host or Peripheral
    • Low-Speed (1.5 Mbps) and Full-Speed (12 Mbps) USB Operation in Host mode
    • Full-Speed USB Operation in Device mode
    Robert
    Last edited by Demon; - 22nd March 2012 at 02:10.

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. USB Bootloader.
    By HenrikOlsson in forum USB
    Replies: 22
    Last Post: - 2nd May 2013, 02:46
  3. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  4. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

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