| 数据搜索系统,热门电子元器件搜索 |
|
PM0222 数据表(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0222 数据表(HTML) 8 Page - STMicroelectronics |
|
8 / 33 page ![]() Clock configurations PM0222 8/33 DocID025476 Rev 1 3 Clock configurations 3.1 Peripheral clock gating Brain provides a functional clock gating for each peripheral through the CRMU register CCR2. This allows saving power consumption by activating the clock only when a peripheral is in use. It is the role of the software to deactivate the clock of each peripheral as soon as the peripheral is not in use. After a reset, all peripheral clocks are disabled. For more details, see Brain reference manual, CRMU registers chapter, CRMU_CCR2 description. 3.2 CPU clock configuration Changing the CPU clock also impacts the GPIO, SPI and Timer clocks, thus changing data/count rates in these peripherals. For more details about clock generation logic, see Brain reference manual, §5.2.1 - Generic description. 3.2.1 Flash wait states When changing the CPU clock, the software must also change the Flash wait states accordingly before the next Flash read access. Wait states and REGISTERED values to program according to the CPU clock frequency are provided in a table in the Brain reference manual, Embedded Flash memory chapter, CONFIG register description. Executing from Flash When executing from Flash, it is mandatory to adjust the number of wait states before changing the CPU clock because Cortex-M0 continuously fetches instructions from Flash. The correct sequence is: Increase CPU clock frequency: – Set a number of wait states allowed for the new clock frequency by writing to the FLASH.CONFIG register (see Brain reference manual, Embedded Flash memory chapter, CONFIG register description) – Set the new higher clock frequency by writing to the CRMU.CCR0 register Decrease CPU clock frequency: – Set the new lower clock frequency by writing to the CRMU.CCR0 register – Set a number of wait states allowed for the new clock frequency by writing to the FLASH.CONFIG register (see Brain reference manual, Embedded Flash memory chapter, CONFIG register description) Executing from RAM When executing from RAM, no Flash wait state adjustment is necessary when changing the CPU clock until the software needs to read data from Flash in which case, it must: – either go back to a lower clock frequency compatible with the current wait state configuration (FLASH.CONFIG register) – or set a wait state configuration compatible with the current clock frequency |
|
链接网址 |
| 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 |