USB Interface using PIC


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    154


    Did you find this post helpful? Yes | No

    Default

    Having now got my USB PICs for development (all of the 18F USB Series), are there any examples of how to switch the outputs of the PIC HIGH or LOW as driven by the PC.

    I'm looking at an application where by the front end is developed using VB, but then the control is by the PIC. So VB sends a command to the PIC to make a desired PORT HIGH or LOW.

    It seems fairly simple in its concept, but i can't find any examples of this on the WEB / Forums.

    Any help / pointers would be appriciated.

    Thanks.

    Steve.

  2. #2
    OXIMBIT's Avatar
    OXIMBIT Guest


    Did you find this post helpful? Yes | No

    Default

    Aren't there any examples included with the compiler?

  3. #3
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    154


    Did you find this post helpful? Yes | No

    Default

    Not as far as im aware, but i may be wrong. They just seem to be about complex data transfer opposed to simple switching commands.

    Of course if you are aware of any, then please correct me if i'm wrong.

    I'm using PicBasic Pro.

    Many thanks,

    Steve

  4. #4
    OXIMBIT's Avatar
    OXIMBIT Guest


    Did you find this post helpful? Yes | No

    Default

    The Compiler I'm using has many demos including one to Implement the functionality of a Jan Axelson demo which flashes Leds at the Pic end in response to inputs made at the PC. And I just remembered one where as I move my mouse pointer of a picture of a Prototype board the Led's light up on the real board.

    I can only suggest you contact Melabs for more help.
    Last edited by OXIMBIT; - 25th April 2005 at 18:33.

  5. #5
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    154


    Did you find this post helpful? Yes | No

    Default

    Sounds like what exactly after. Two questions then, what Compiler are you using and can you send these demos to me on email? I've sent you a PM with my email address.

    Many thanks,

    Steve

  6. #6
    OXIMBIT's Avatar
    OXIMBIT Guest


    Did you find this post helpful? Yes | No

    Default

    Steve I have sent you a PM with some example code.

    Tim

  7. #7


    Did you find this post helpful? Yes | No

    Default

    DOes any of you have a schematic of how to connect the PIC18F2455 to the usb?

  8. #8
    Tgq's Avatar
    Tgq Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Tissy
    Having now got my USB PICs for development (all of the 18F USB Series), are there any examples of how to switch the outputs of the PIC HIGH or LOW as driven by the PC.
    look at this
    http://www.alecmcnamara.freeserve.co.uk/piccalc/
    you find HIDcomm component from Microchip for really easy VB development

  9. #9
    robbenaz's Avatar
    robbenaz Guest


    Did you find this post helpful? Yes | No

    Default facing problem with compiler in usb subject

    i face the error message

    "ERROR: Macro USBINIT? not found in macro file"

    how to solve this problem

    soni

  10. #10
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    if you are german, look at http://www.sprut.de there are the basic for USB & PIC18Fxx55 !
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by robbenaz
    i face the error message

    "ERROR: Macro USBINIT? not found in macro file"

    how to solve this problem

    soni
    Tell us wich PIC you're using and post your code here.
    Steve

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

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Reading a slave USB with a pic
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2008, 12:00
  3. Replies: 15
    Last Post: - 30th October 2007, 19:25
  4. USB bluetooth interface to PIC
    By naidab in forum Bluetooth
    Replies: 15
    Last Post: - 17th March 2007, 22:37
  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