| поискавой системы для электроныых деталей |
|
BLUENRG-2 датащи(PDF) 108 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
BLUENRG-2 датащи(HTML) 108 Page - STMicroelectronics |
|
108 / 190 page ![]() Functional details BlueNRG-2 108/190 DocID030675 Rev 2 1. Full Flash contains a fixed 32-bit pattern: indicate the expected pattern (value to be compared with each read value inside Flash) in the DATA register and check the READOK flag in the Interrupt register once the command is completed. 2. Request a MASSREAD command without specifying any expected read value and check the LFSRVAL register once the command is completed. This LFSRVAL register contains a signature of the memory read, built according to the following polynomial: x32 + x31 + x4 + x3 + x1 + 1 (seed value = 0xFFFF_FFFF). MASSREAD sequence: 1. Write in the DATA register the expected value (if MASSREAD is used in combination with the READOK flag). 2. Write the MASSREAD command (0x55) in the COMMAND register. 3. Wait for the CMDSTART flag in the IRQSTAT register (polling mode or interrupt mode) indicating that the command has been taken into account and is under execution. 4. Clear the CMDSTART flag by writing CMDSTART to ‘1’ in the IRQSTAT register. 5. Wait for the CMDDONE flag in the IRQSTAT register (polling mode or interrupt mode) indicating that the command is completed. 6. Check the READOK flag (expected high) in the IRQSTAT register or the LFSRVAL register value to ensure Flash memory content is the expected result. 7. Clear the CMDDONE flag by writing CMDDONE to ‘1’ in the IRQSTAT register. 3.11.2.2 Erasing Flash The Flash controller allows erasing one page or the full main Flash. ERASE sequence (erase one page): 1. Write the page address to be erased by writing in the ADDRESS register the following value: a. ADDRESS[15:9] = XADR[9:3] = page address to erase b. ADDRESS[8:0] = 9’b0 (row and word addresses at zero). 2. Write the ERASE command (0x11) in the COMMAND register. 3. Wait for the CMDSTART flag in the IRQSTAT register (polling mode or interrupt mode) indicating command is taken into account and under execution. 4. Clear the CMDSTART flag by writing CMDSTART to ‘1’ in the IRQSTAT register. 5. Wait for the CMDDONE flag in the IRQSTAT register (polling mode or interrupt mode) indicating that the command is completed. 6. Clear the CMDDONE flag by writing CMDDONE to ‘1’ in the IRQSTAT register. After this command, the erased page will contain only bits set to ‘1’. MASSERASE sequence (erase completely main flash): 1. Write the MASSERASE command (0x22) in the COMMAND register. 2. Wait for the CMDSTART flag in the IRQSTAT register (polling mode or interrupt mode) indicating that the command has been taken into account and is under execution. 3. Clear the CMDSTART flag by writing CMDSTART to ‘1’ in the IRQSTAT register. 4. Wait for the CMDDONE flag in the IRQSTAT register (polling mode or interrupt mode) indicating that the command is completed. 5. Clear the CMDDONE flag by writing CMD DONE to ‘1’ in the IRQSTAT register. After this command, the full main Flash will contain only bits set to ‘1’. 3.11.2.3 Write function examples The Flash Controller allows writing one word (WRITE), up to 4 words (BURSTWRITE) or the full main Flash memory (with a single fixed word). |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |