AnsweredAssumed Answered

Using asynchronous data(D+/D-) interrupt in K21 USB device mode

Question asked by Rahul Hirve on Feb 15, 2016
Latest reply on Mar 11, 2016 by Rahul Hirve

Hi All,

 

I am trying to use K21 USB in device mode, my need is to wakeup device(K21) on asynchronous data interrupt from host(PC).
I am using following settings:

 

   /* Suspend USB */
   USB0_USBCTRL |= USB_USBCTRL_SUSP_MASK;
   /* Delay 5 sec */

   delay(5000);

   /*  Asynchronous Resume Interrupt Enable */
   USB0_USBTRC0 |= USB_USBTRC0_USBRESMEN_MASK;    

 

I observed that after enabling  "Asynchronous Resume Interrupt" the device is not allowing MCU to go in VLPS mode.

 

Are these correct settings? How can we use asynchronous data interrupt to wakeup k21 in device mode?

 

Thanks,
Rahul

Outcomes