USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    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

  2. #2
    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!!!

  3. #3
    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?

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


    Did you find this post helpful? Yes | No

    Default

    i would guess...
    Code:
    asm
        __CONFIG    _CONFIG1L, _PLLDIV_12_1L  & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
                                ;              ;                      ; USB clock source comes from the 96 MHz PLL divided by 2
                                ;              ; [OSC1/OSC2 Src: /1][96 MHz PLL Src: /2]
                                ; Divide by 12 (48 MHz oscillator input)
    
    
        __CONFIG    _CONFIG1H, _FOSC_ECPLLIO_EC_1H & _FCMEN_OFF_1H & _IESO_OFF_1H 
                                ;                  ;               ; Oscillator Switchover mode disabled
                                ;                  ; Fail-Safe Clock Monitor disabled
                                ; External clock, PLL enabled, port function on RA6, EC used by USB
                                
        ;
        ;   other __Config
        ;
    endasm
    Look table 2-3 in the data sheet. there's few other setting available. Not sure the divide by 12 is the best option when you can feed it directly.
    Last edited by mister_e; - 14th May 2007 at 12:49.
    Steve

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

  5. #5
    Join Date
    Jan 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Thanks for the quick reply

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