Hi Bruno,
I will try to answer your questions:
- Does the USB module behave well if the MCU is put in STOP mode without any precaution (DEEPSLEEP)?
- Regarding the table 7-2 of the RM the USB registers remains static in the STOP mode this means that once the system returns to RUN mode the registers will have the same values before the STOP mode entering. The process of going to STOP modes is normal. Please refer to one of this Application Notes AN4503 and AN4470
- If the MCU is put in STOP mode what happens with the IRC48 USB clock (does it stop?)
- Regarding the section 5.7.2 the IRC 48 MHz clock is availabel in High Speed Run, Run, WAIT and Stop modes of operation.
- If the MCU is put in STOP mode what happens with the USB regulator?
- The operation of the USB Voltage Regulator is optional while the different Low power modes (Table 7-2). The SIM_SOPT1[USBSSTBY] and SIM_SOPT1[USBVSTBY] field controls when the regulator is in standby mode.
- Is there some pre-configuration to do before putting the MCU in STOP?
- Please refer to the Application Notes mentioned before.
- The reference manual indicates that the USB transceiver should be put in suspend before enabling the asynchronous resume interrupt, but when I do that the USB module does not wake up functional!
- I am not really sure about this but I will try to find some useful information. You may find useful this Application Note AN4905
- Is there some post-configuration to do at resume, after the MCU wakes up?
- As far as I know is the normal process to resume operational modes. Please refer to the Application notes mentioned before.
Hope this information can help you.
Best Regards,
Adrian Sanchez Cano
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------