USBSERVICE And SERIN2 Odd Behavior


Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644

    Default Re: USBSERVICE And SERIN2 Odd Behavior

    I believe that the USBSERVICE should be done every 10 milli seconds or less, is this correct? Is there a better way to do what I'm trying to accomplish?
    its not so much as to service it every 10ms or less but to respond to polls before the host times you out. i use the isr option for usb service

    Code:
    ASM
    INT_LIST  macro    ; IntSource,        Label,           Type,   ResetFlag?
           
           INT_Handler    USB_INT,  _DoUSBSERVICE,   ASM,  yes
          
        endm
        INT_CREATE
        INT_ENABLE  USB_INT   
    ENDASM
    Code:
    DoUSBSERVICE:
           USBSERVICE                   ; Run the SERVICE routines
    @ INT_RETURN
    main issue with that is that bitbanged comms like serin/out can't tolorate the interrupts
    serial comms needs to be via the eusart
    Last edited by richard; - 12th July 2020 at 05:37.
    Warning I'm not a teacher

Similar Threads

  1. USBSERVICE + serout2 problem
    By EToscano in forum USB
    Replies: 51
    Last Post: - 22nd December 2011, 15:35
  2. Odd behavior if too many instructions
    By dksoba in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th February 2010, 21:58
  3. USBSERVICE timing question
    By Kamikaze47 in forum USB
    Replies: 2
    Last Post: - 17th July 2007, 21:16
  4. USBSERVICE & timer
    By Shamir in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd August 2006, 17:47
  5. USBinit and USBservice
    By Christopher4187 in forum General
    Replies: 5
    Last Post: - 4th March 2006, 15:50

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