Hi
Is there an example that shows how to manage the suspend and resume events on the MK22FN512 (or other MCU with the same USB module) in order to comply with the USB spec (Icc<2.5mA)
- Does the USB module behave well if the MCU is put in STOP mode without any precaution (DEEPSLEEP)?
- If the MCU is put in STOP mode what happens with the IRC48 USB clock (does it stop?)
- If the MCU is put in STOP mode what happens with the USB regulator?
- Is there some pre-configuration to do before putting the MCU in STOP?
- 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!
- Is there some post-configuration to do at resume, after the MCU wakes up?
...Some example would be welcome...!
解決済! 解決策の投稿を見る。
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)?
- If the MCU is put in STOP mode what happens with the IRC48 USB clock (does it stop?)
- If the MCU is put in STOP mode what happens with the USB regulator?
- Is there some pre-configuration to do before putting the MCU in STOP?
- 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!
- Is there some post-configuration to do at resume, after the MCU wakes up?
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!
-----------------------------------------------------------------------------------------------------------------------
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)?
- If the MCU is put in STOP mode what happens with the IRC48 USB clock (does it stop?)
- If the MCU is put in STOP mode what happens with the USB regulator?
- Is there some pre-configuration to do before putting the MCU in STOP?
- 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!
- Is there some post-configuration to do at resume, after the MCU wakes up?
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!
-----------------------------------------------------------------------------------------------------------------------
Hi Adrian
Many thanks for these answers. Regarding the question about the asynchronous resume interrupt being only enabled when the USB transceiver is suspended, maybe I am interpreting this wrong:
- The table at section 43.4.27 of the Ref Manual indicates about USBRESMEN: "This interrupt should only be enabled when the transceiver is in suspend". I interpreted that as to say I should put the transceiver in suspend (using the SUSP bit of USB0_USBCTRL) BEFORE enabling the asynchronous resume interrupt. But maybe it really means that the USB BUS should be in suspend (suspend-state detected on the bus) before the async resume interrupt is enabled...?
Thanks
Bruno