USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mpardinho View Post
    i use 18F4550
    470 nf in Vusb / Vss
    .1 uf ceramic in Vcc/Vss
    4k7 in MCLR / Vcc
    resonator 4mhz
    I've used
    220nF Vusb / Vss
    .1 uF ceramic too
    10k MCLR/Vcc
    USB B type Connector
    and it works fine now ;-)

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


    Did you find this post helpful? Yes | No

    Default

    Out of curiosity... Anyone tried USBDemo with Windows Vista? Working?
    Steve

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

  3. #3
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    No, but I'll give it a go this weekend I can feel a backup coming on....

    BTW,

    I need a decent way to debounce a number of switch's connected to my pic.
    I'm using a dirty PAUSE 50 to do just that, but finding unless I put USBSERVICE everywhere (ie after checking the status of each switch), the switch's arent being sent to the pc (via usb).

    I borrowed the ASM timer interrupts from the usbdemo code, but that doesnt help either. I'm thinking that TMR interrupts aren't independent of PAUSE statements. Is this true?

    I don't want to use the BUTTON command.

    cheers
    Squib

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


    Did you find this post helpful? Yes | No

    Default

    If you're using ON INTERRUPT... yes PAUSE will screw up things. Using Darrel's interrupt + it's USBDemo code modification ( AKA POST 148), should solve it.
    http://www.picbasic.co.uk/forum/show...&postcount=148

    Depending how you implemented the interrupt debounce/read plah plah, it may work as well with ON INTERRUPT..
    Steve

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

  5. #5
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    Ok Great I'll have to try it. Good to know there could be a work around.

    BTW I tried running usbdemo on Vista, but I need the mchid.dll, which I have on floppy disk but can't get it on to the laptop running vista.

    Don't supose you can upload it on to the website so I can download it straight onto my laptop eh?

    Cheers
    squib

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


    Did you find this post helpful? Yes | No

    Default

    That DLL came with Mecanique EasyHID. I'm not sure if David allow to link the DLL even if the software is 100% free.
    Steve

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

  7. #7
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    If you're using ON INTERRUPT... yes PAUSE will screw up things. Using Darrel's interrupt + it's USBDemo code modification ( AKA POST 148), should solve it.
    http://www.picbasic.co.uk/forum/show...&postcount=148

    Depending how you implemented the interrupt debounce/read plah plah, it may work as well with ON INTERRUPT..
    Hi Steve,

    Thanks for the tip, it works a treat!

    I rekkon melabs should incorporate DTs instant interrupts into their next version of pbp and do away with ON INTERRUPT altogether......

    Cheers buddy.

    Squib

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Squibcakes View Post
    I rekkon melabs should incorporate DTs instant interrupts into their next version of pbp and do away with ON INTERRUPT altogether......
    Of course that would assume they do anything at all.......
    Come On MELABS...you're falling behind!!!

  9. #9
    Join Date
    Jan 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default 18F2550 Config

    What would the __CONFIG lines look like using the ECIO mode with a 48MHz half size oscillator on pin 9?

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08: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, 11:38
  3. Replies: 9
    Last Post: - 31st July 2008, 09:56
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 01:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02: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