| Electronic Components Datasheet Search |
|
PM0059 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0059 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 29 page ![]() Flash memory interface PM0059 8/29 DocID15687 Rev 5 2.4 Read interface 2.4.1 Relation between CPU clock frequency and Flash memory read time To correctly read data from Flash memory, the number of wait states (LATENCY) must be correctly programmed in the Flash access control register (FLASH_ACR) according to the frequency of the CPU clock (HCLK) and the supply voltage of the device. Table 3 shows the correspondence between wait states and CPU clock frequency. The prefetch must be disabled when the supply voltage is below 2.1 V. After reset, the CPU clock frequency is 16 MHz and 0 wait state (WS) is configured in the FLASH_ACR register. It is highly recommended to use the following software sequences to tune the number of wait states needed to access the Flash memory with the CPU frequency. Increasing the CPU frequency 1. Program the new number of wait states to the LATENCY bits in the FLASH_ACR register 2. Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register 3. Modify the CPU clock source by writing the SW bits in the RCC_CFGR register 4. If needed, modify the CPU clock prescaler by writing the HPRE bits in RCC_CFGR 5. Check that the new CPU clock source or/and the new CPU clock prescaler value is/are taken into account by reading the clock source status (SWS bits) or/and the AHB prescaler value (HPRE bits), respectively, in the RCC_CFGR register. Table 3. Number of wait states according to CPU clock (HCLK) frequency Wait states (WS) (LATENCY) HCLK (MHz) Voltage range 2.7 V - 3.6 V Voltage range 2.4 V - 2.7 V Voltage range 2.1 V - 2.4 V Voltage range 1.8 V - 2.1 V(1) 0 WS (1 CPU cycle) 0 <HCLK ≤ 30 0 <HCLK ≤ 24 0 <HCLK ≤ 18 0 < HCLK ≤ 16 1 WS (2 CPU cycles) 30 <HCLK ≤ 60 24 < HCLK ≤ 48 18 <HCLK ≤ 36 16 <HCLK ≤ 32 2 WS (3 CPU cycles) 60 <HCLK ≤ 90 48 < HCLK ≤ 72 36 < HCLK ≤ 54 32 < HCLK ≤ 48 3 WS (4 CPU cycles) 90 <HCLK ≤ 120 72 < HCLK ≤ 96 54 <HCLK ≤ 72 48 < HCLK ≤ 64 4 WS (5 CPU cycles) 96 < HCLK ≤ 120 72 < HCLK ≤ 90 64 < HCLK ≤ 80 5 WS (6 CPU cycles) 90 < HCLK ≤ 108 80 < HCLK ≤ 96 6 WS (7 CPU cycles) 108 < HCLK ≤ 120 96 < HCLK ≤ 112 7 WS (8 CPU cycles) 112 < HCLK ≤ 120 1. If IRROFF is set to VDD on STM32F20xx devices, this value can be lowered to 1.65 V when the device operates in a reduced temperature range. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |