| Electronic Components Datasheet Search |
|
PM0222 Datasheet(PDF) 15 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0222 Datasheet(HTML) 15 Page - STMicroelectronics |
|
15 / 33 page ![]() DocID025476 Rev 1 15/33 PM0222 Flash controller 33 6 Flash controller Brain embeds 64 Kbyte (16384 x 32-bit) of internal Flash memory. A Flash interface implements instruction access and data access based on the AHB protocol. It implements the logic necessary to carry out the Flash memory operations (Program/Erase) controlled through the Flash registers. 6.1 Default configuration after boot Default configuration: Flash interface frequency = 80 MHz (internal RC) / 5 = 16 MHz REMAP bit is ‘0’ which means that the main Flash is seen at address 0x1001_0000 6.2 Flash commands (read / write / erase) Precaution for use: for any erase / write action, the system clock must be provided by the internal RC (no external clock configuration). 6.2.1 General information Writing to Flash only allows clearing bits from ‘1’ to ‘0’. This means any write from ‘0’ to ‘1’implies erasing before performing a write. Flash memory is composed of 32 pages containing 8 rows of 64 words (32 x 8 x 64 = 16384 words). Each word is 32-bit = 4 bytes long which means 64 KB of Flash. The address inside the Flash Controller ADDRESS register is built as follows: ADDRESS[13:0] = XADR[7:0] & YADR[5:0] with XADR[7:3] = page address XADR[2:0] = row address YADR[5:0] = word address (one word = four bytes) 6.2.2 Read function examples There are two possible read accesses: Read one single word: simple read as if SRAM memory: read the desired Flash address and get read data on the bus. MASSREAD command: read the full Flash memory and compare with expected content There are two ways of using MASSREAD: Full Flash contains a fixed 32-bit pattern: indicate the expected pattern (value to be compared with each read value inside Flash) in the Flash Controller DATA register and check the READOK flag in the Flash Controller Interrupt register once the command is completed. Else: request a MASSREAD command without specifying any expected read value and check the LFSRVAL register once the command is completed. This LFSRVAL register |
|
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 |