2 Replies Latest reply on Jul 18, 2019 8:31 AM by LePo_1062026

    I want to use a callback ISR for reading incoming data using the USBUART.  Which is the best ISR to use?

    LePo_1062026

      To all,

      This may be an obvious question.   I'm a bit new in USB CDC programming.  However my study and empirical experiments have not make it obvious.

       

      I want to use a callback ISR for reading incoming data using the USBUART.  I can get USBUART_SOF_ISR_ExitCallback() to do what I want.  It works however ...

      It polls at a 1ms rate.  Is there another ISR that can be enabled to process input data from the host at a much lower polling rate?

       

      In my  current USBUART configuration the following ISRs are active:

      • USBUART_SOF_ISR_ACTIVE
      • USBUART_BUS_RESET_ISR_ACTIVE
      • USBUART_EP0_ISR_ACTIVE
      • USBUART_ARB_ISR_ACTIVE
      • USBUART_DP_ISR_ACTIVE
      • USBUART_EP1_ISR_ACTIVE
      • USBUART_EP2_ISR_ACTIVE
      • USBUART_EP3_ISR_ACTIVE 

      Eventually I plan to convert my IN and OUT operations for the USBUART to DMA.  This should solve my issue as well.  Until then, if I can implement my data input reads with a less intense ISR, it would be appreciated.

       

      Len