| 数据搜索系统,热门电子元器件搜索 |
|
AN3316 数据表(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3316 数据表(HTML) 23 Page - STMicroelectronics |
|
23 / 42 page ![]() AN3316 Device modes Doc ID 18232 Rev 2 23/42 6. Request transition to RUN0 mode: The transition from a mode to another is handled by software by accessing the mode control ME_MCTL register twice by writing: – the first time with the value of the key (0x5AF0) into the KEY bit field and the required target mode into the TARGET_MODE bit field – the second time with the inverted value of the key (0xA50F) into the KEY bit field and the required target mode into the TARGET_MODE bit field. So, in case of DRUN RUN0 transition, these two register writing should be done: ME.MCTL.R = 0x40005AF0 ME.MCTL.R = 0x4000A50F 7. DRUN RUN0 mode: Once a valid mode transition request is detected, the transition starts. Here, device switches-on/off modules and peripherals without CPU intervention. It is possible to check for transition completion through mode Transition Status bit: While (ME.GS.MTRANS != 0) //transition ongoing ... //transition completed ... In ordeI to prevent code stucking waiting for transition completion, it could be better to check transition timing through a timer. Timer timeout calculation should be based on modules/peripherals start-up timing. In this case this value is close to XTAL start-up time (at maximum 6 msec). 8. RUN0 mode: Otherwise, if transition completion is signaled by sw, the RUN0 is properly entered with the modules configured as expected. Scenario 2 (RUN0 HALT RUN0) This scenario deals with HALT mode that is the only one allowing to reduce average consumption while the application is 100% functional. In fact, reducing dynamic consumption through core switching-off and togheter with maintaining the full functionality is one of the new challenge in body. Figure 12. Scenario 2 - finite state machine Hardware triggered transition Software triggered transition RUN0 HALT XTAL, PLL = ON sysclk = PLL-64MHz CFLASH = ON DFLASH = Low Power SPI0, ADC0 = ON XTAL, PLL = ON sysclk = PLL-64MHz CFLASH = Low Power DFLASH = Low Power SPI0, ADC0 = ON CAN0 = ON |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |