| 
    Stima V4 Slave RAIN
    4.2
    
   | 
 
This file contains all the description of the AT25SF161 QSPI memory. More...
Go to the source code of this file.
Macros | |
| #define | AT25SF161_FLASH_SIZE 0x200000 /* 16 MBits => 2MBytes */ | 
| AT25SF161 Configuration.  More... | |
| #define | AT25SF161_SECTOR64_SIZE 0x10000 /* 32 sectors of 64KBytes */ | 
| #define | AT25SF161_SECTOR_SIZE 0x8000 /* 64 sectors of 32KBytes */ | 
| #define | AT25SF161_BLOCK_SIZE 0x1000 /* 512 blocks of 4kBytes */ | 
| #define | AT25SF161_PAGE_SIZE 0x100 /* 8192 pages of 256 bytes */ | 
| #define | AT25SF161_DUMMY_CYCLES_READ 1 | 
| #define | AT25SF161_DUMMY_CYCLES_READ_QUAD 4 | 
| #define | AT25SF161_BULK_ERASE_MAX_TIME 25000 | 
| #define | AT25SF161_SECTOR_ERASE_MAX_TIME 3000 | 
| #define | AT25SF161_BLOCK_ERASE_MAX_TIME 300 | 
| #define | READ_CMD 0x03 | 
| AT25SF161 Commands.  More... | |
| #define | FAST_READ_CMD 0x0B | 
| #define | DUAL_OUT_FAST_READ_CMD 0x3B | 
| #define | DUAL_INOUT_FAST_READ_CMD 0xBB | 
| #define | QUAD_OUT_FAST_READ_CMD 0x6B | 
| #define | QUAD_INOUT_FAST_READ_CMD 0xEB | 
| #define | QUAD_CONTINUOUS_READ_MODE_RESET 0xFF | 
| #define | WRITE_ENABLE_CMD 0x06 | 
| #define | WRITE_DISABLE_CMD 0x04 | 
| #define | READ_STATUS_REG_CMD 0x05 | 
| #define | READ_STATUS2_REG_CMD 0x35 | 
| #define | WRITE_STATUS_REG_CMD 0x01 | 
| #define | WRITE_EN_VOLAT_STATUS_REG_CMD 0x50 | 
| #define | PAGE_PROG_CMD 0x02 | 
| #define | BLOCK_ERASE_CMD 0x20 | 
| #define | SECTOR_ERASE_CMD 0x52 | 
| #define | SECTOR64_ERASE_CMD 0xD8 | 
| #define | BULK_ERASE_CMD 0xC7 | 
| #define | PROG_ERASE_RESUME_CMD 0x7A | 
| #define | PROG_ERASE_SUSPEND_CMD 0x75 | 
| #define | READ_SEC_REG_PAGE_CMD 0x48 | 
| #define | WRITE_SEC_REG_PAGE_CMD 0x42 | 
| #define | READ_ID_CMD 0x90 | 
| #define | READ_ID_CMD2 0x9F | 
| #define | DEEP_POWER_DOWN_CMD 0xB9 | 
| #define | RESUME_FROM_DEEP_PWD_CMD 0xAB | 
| #define | AT25SF161_SR_BUSY ((uint32_t)0x0001) | 
| AT25SF161 Registers.  More... | |
| #define | AT25SF161_SR_WEL ((uint32_t)0x0002) | 
| #define | AT25SF161_SR_BLOCKPR ((uint32_t)0x005C) | 
| #define | AT25SF161_SR_PRBOTTOM ((uint32_t)0x0020) | 
| #define | AT25SF161_SR_SRP0 ((uint32_t)0x0080) | 
| #define | AT25SF161_SR_SRP1 ((uint32_t)0x0100) | 
| #define | AT25SF161_SR_QE ((uint32_t)0x0200) | 
| #define | AT25SF161_SR_LB ((uint32_t)0x3800) | 
| #define | AT25SF161_SR_CMP ((uint32_t)0x4000) | 
| #define | AT25SF161_FS_ERSUS ((uint32_t)0x8000) | 
This file contains all the description of the AT25SF161 QSPI memory.
(Flash Register and Config 2_MByte)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/licenses/.
Definition in file AT25SF161.h.
| #define AT25SF161_BLOCK_ERASE_MAX_TIME 300 | 
Definition at line 54 of file AT25SF161.h.
| #define AT25SF161_BLOCK_SIZE 0x1000 /* 512 blocks of 4kBytes */ | 
Definition at line 46 of file AT25SF161.h.
| #define AT25SF161_BULK_ERASE_MAX_TIME 25000 | 
Definition at line 52 of file AT25SF161.h.
| #define AT25SF161_DUMMY_CYCLES_READ 1 | 
Definition at line 49 of file AT25SF161.h.
| #define AT25SF161_DUMMY_CYCLES_READ_QUAD 4 | 
Definition at line 50 of file AT25SF161.h.
| #define AT25SF161_FLASH_SIZE 0x200000 /* 16 MBits => 2MBytes */ | 
AT25SF161 Configuration.
Definition at line 43 of file AT25SF161.h.
| #define AT25SF161_FS_ERSUS ((uint32_t)0x8000) | 
Erase operation suspended
Definition at line 126 of file AT25SF161.h.
| #define AT25SF161_PAGE_SIZE 0x100 /* 8192 pages of 256 bytes */ | 
Definition at line 47 of file AT25SF161.h.
| #define AT25SF161_SECTOR64_SIZE 0x10000 /* 32 sectors of 64KBytes */ | 
Definition at line 44 of file AT25SF161.h.
| #define AT25SF161_SECTOR_ERASE_MAX_TIME 3000 | 
Definition at line 53 of file AT25SF161.h.
| #define AT25SF161_SECTOR_SIZE 0x8000 /* 64 sectors of 32KBytes */ | 
Definition at line 45 of file AT25SF161.h.
| #define AT25SF161_SR_BLOCKPR ((uint32_t)0x005C) | 
Block protected against program and erase operations
Definition at line 118 of file AT25SF161.h.
| #define AT25SF161_SR_BUSY ((uint32_t)0x0001) | 
| #define AT25SF161_SR_CMP ((uint32_t)0x4000) | 
Complement Block Protection
Definition at line 125 of file AT25SF161.h.
| #define AT25SF161_SR_LB ((uint32_t)0x3800) | 
Lock security register
Definition at line 124 of file AT25SF161.h.
| #define AT25SF161_SR_PRBOTTOM ((uint32_t)0x0020) | 
Protected memory area defined by BLOCKPR starts from top or bottom
Definition at line 119 of file AT25SF161.h.
| #define AT25SF161_SR_QE ((uint32_t)0x0200) | 
Quad Enable
Definition at line 123 of file AT25SF161.h.
| #define AT25SF161_SR_SRP0 ((uint32_t)0x0080) | 
Status register protection bit 0
Definition at line 120 of file AT25SF161.h.
| #define AT25SF161_SR_SRP1 ((uint32_t)0x0100) | 
Status register protection bit 1
Definition at line 122 of file AT25SF161.h.
| #define AT25SF161_SR_WEL ((uint32_t)0x0002) | 
Write enable latch
Definition at line 117 of file AT25SF161.h.
| #define BLOCK_ERASE_CMD 0x20 | 
Definition at line 94 of file AT25SF161.h.
| #define BULK_ERASE_CMD 0xC7 | 
Definition at line 97 of file AT25SF161.h.
| #define DEEP_POWER_DOWN_CMD 0xB9 | 
Definition at line 108 of file AT25SF161.h.
| #define DUAL_INOUT_FAST_READ_CMD 0xBB | 
Definition at line 75 of file AT25SF161.h.
| #define DUAL_OUT_FAST_READ_CMD 0x3B | 
Definition at line 74 of file AT25SF161.h.
| #define FAST_READ_CMD 0x0B | 
Definition at line 73 of file AT25SF161.h.
| #define PAGE_PROG_CMD 0x02 | 
Definition at line 91 of file AT25SF161.h.
| #define PROG_ERASE_RESUME_CMD 0x7A | 
Definition at line 98 of file AT25SF161.h.
| #define PROG_ERASE_SUSPEND_CMD 0x75 | 
Definition at line 99 of file AT25SF161.h.
| #define QUAD_CONTINUOUS_READ_MODE_RESET 0xFF | 
Definition at line 78 of file AT25SF161.h.
| #define QUAD_INOUT_FAST_READ_CMD 0xEB | 
Definition at line 77 of file AT25SF161.h.
| #define QUAD_OUT_FAST_READ_CMD 0x6B | 
Definition at line 76 of file AT25SF161.h.
| #define READ_CMD 0x03 | 
AT25SF161 Commands.
Definition at line 72 of file AT25SF161.h.
| #define READ_ID_CMD 0x90 | 
Definition at line 106 of file AT25SF161.h.
| #define READ_ID_CMD2 0x9F | 
Definition at line 107 of file AT25SF161.h.
| #define READ_SEC_REG_PAGE_CMD 0x48 | 
Definition at line 102 of file AT25SF161.h.
| #define READ_STATUS2_REG_CMD 0x35 | 
Definition at line 86 of file AT25SF161.h.
| #define READ_STATUS_REG_CMD 0x05 | 
Definition at line 85 of file AT25SF161.h.
| #define RESUME_FROM_DEEP_PWD_CMD 0xAB | 
Definition at line 109 of file AT25SF161.h.
| #define SECTOR64_ERASE_CMD 0xD8 | 
Definition at line 96 of file AT25SF161.h.
| #define SECTOR_ERASE_CMD 0x52 | 
Definition at line 95 of file AT25SF161.h.
| #define WRITE_DISABLE_CMD 0x04 | 
Definition at line 82 of file AT25SF161.h.
| #define WRITE_EN_VOLAT_STATUS_REG_CMD 0x50 | 
Definition at line 88 of file AT25SF161.h.
| #define WRITE_ENABLE_CMD 0x06 | 
Definition at line 81 of file AT25SF161.h.
| #define WRITE_SEC_REG_PAGE_CMD 0x42 | 
Definition at line 103 of file AT25SF161.h.
| #define WRITE_STATUS_REG_CMD 0x01 | 
Definition at line 87 of file AT25SF161.h.