USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    FormMain.frm is missing...

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by pedja089 View Post
    FormMain.frm is missing...
    Thanks pedja089, I just added it.
    http://www.scalerobotics.com

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    Excellent project!
    Not too complicated, but there are interesting examples of communication and usage of DT's include files.
    Perhaps you should add the LCD.
    Here is my example how to sendtext from winamp to lcd:
    http://www.elektronika.ba/506/lcd-winamp-plugin-on-usb/
    I hope that you will manage the translation...

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


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default

    5 years later and this thread always evolve and got some more user in the "USB freaks" loops. Glad to see that. Congrats to all!

    Now I wish I have time to revamp it and share some part of what i've done for .NET (C# & VB) ...VB6 being a dead duck for ages now... and the .dll not that suitable now (but still workable) and then on the top of it, new PBP version

    Helm PCB (Amr Bekhit) did a good work on my first .NET version though http://helmpcb.com/?p=166
    Steve

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

  5. #5
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

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

    Reading through this it looks like there was a sample of code were the 18F2550 was using an external resonator at 20mhz using the HS fuse. Looking at the datasheet, this would only enable low speed USB, right?

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

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

    With those chips ... you can get Full Speed with any crystal that's a multiple of 4Mhz (up to 24Mhz).
    And the processor can run at 48Mhz too.

    They have a really nice Oscillator/PLL.
    Adjusting the Configuration bits is a little tricky though.
    DT

  7. #7
    Join Date
    Dec 2010
    Location
    Tokyo
    Posts
    3


    Did you find this post helpful? Yes | No

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

    Hello

    I use a PIC18F2550 for CDC serial port emulation based on cdc_demo.bas:

    USBInit

    For input and output I use:
    inloop:
    icnt = inbuff
    USBService
    USBIn 3, inbuffer, icnt, inloop

    outloop:
    USBService
    ocnt = outbuff
    USBOut 3, outbuffer, ocnt, outloop

    and it works really fine.


    At start PIC tests 5V from PC-USB-Port to wait with 'USBInit'. Sometimes PC is rebooting w/o switch off, but equipmend with the PIC interface still running. Is it possible to let the PIC routine know that Windows VSP is gone and the 'USBInit' has to be done again?

    Thanks to everybody who can help

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