USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: USBDemo, something to learn USB a little bit

    Well I though I'd leverage Darrel's heavy lifting and put the USB code (including the interrupt structure) together with the SD card code and make myself basically an overly complicated and expensive thumb drive, purely for my education. It seems, however, that the includes consume more than the 2K space for variables, and after about an hour of trying to make things less generic by eliminating variables wherever possible in favor of fixed values, I still don't have enough space. I'm also not sure if I'm even getting close - is there any way to have the compiler tell you how much you are over by, rather than simply "unable to fit"?

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


    Did you find this post helpful? Yes | No

    Default Re: USBDemo, something to learn USB a little bit

    Charlie,

    I had a similar problem once; so I copied the Includes in the code and removed all the variables I didn't need. That worked in my particular situation.

    Robert

  3. #3
    Join Date
    Nov 2006
    Location
    Ventura, CA
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: USBDemo, something to learn USB a little bit

    I'm just getting my feet wet with USB. I currently have PBP (2.60C). I'd like to get some recommendations, before I get too far into this project:

    1) Is there any benefit to upgrading to PBP 3.0, specifically for my USB experiments?
    2) I have very little experience with VB6, but some experience with VBA (in Excel). Back on post 248, Steve said, "...VB6 being a dead duck for ages now...". I _have_ VB6, but was wondering if there was a more current alternative (other than going out and trying to learn a completely new language, like C)

    Any tips would be greately appreciated!

    Jeff

  4. #4
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: USBDemo, something to learn USB a little bit

    [QUOTE=JBKerner;112633Steve said, "...VB6 being a dead duck for ages now...". I _have_ VB6, but was wondering if there was a more current alternative (other than going out and trying to learn a completely new language, like C)
    [/QUOTE]

    VB.NET;

    http://www.picbasic.co.uk/forum/cont...-USB-to-VB.NET
    Thanks and Regards;
    Gadelhas

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


    Did you find this post helpful? Yes | No

    Default Re: USBDemo, something to learn USB a little bit

    Jeff, read this thread:
    http://www.picbasic.co.uk/forum/showthread.php?t=16234

    It's exactly about this topic.

    Robert

  6. #6
    Join Date
    Dec 2011
    Posts
    4


    Did you find this post helpful? Yes | No

    Unhappy Re: USBDemo, something to learn USB a little bit

    hi,

    i use USBDemo.HEX file. i send it to my PIC using USB PIC programmer (not boot loader). i use;

    18f4550
    4 MHZ crystal (with 22pF capacitors)
    3 parallel 100nF (not polarized) capacitors on pin18
    10k resistor on mclr
    100nF capacitor between VCC and GND

    my pc doesn't recognise the device. nothing happens when i connect PIC to my pc

    what is wrong. i couldn't work it. i am workin on it for months and i am going crazy.

    thanks

  7. #7
    Join Date
    Jun 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: USBDemo, something to learn USB a little bit

    ...well looking back it appears you can use a 4mhz. I used a 20mhz crystal when I was able to get it working.

    Do you have a schematic.
    Last edited by UnaKRon; - 19th November 2012 at 14:53.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. How to receive stream of bytes using PIC USART
    By unifoxz in forum mel PIC BASIC Pro
    Replies: 34
    Last Post: - 20th June 2009, 10:38
  3. Replies: 9
    Last Post: - 31st July 2008, 08:56
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

Members who have read this thread : 1

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