📄 sst1601.h
字号:
//宏定义
#include "type.h"
#define AddrsShift 2
// define 2 if it's true that A1 of system address bus has been shifted to A0 of device address, A2 to A1, etc.
// otherwise, change it to look like:
// #define AddrsShift 1
#define DefaultBaseAddress 0x0 /* default device base address for SST39VF3201/3202 */
#define ChipEraseTime 714286 /* maximum timeout of read cycles for chip-erase, 50ms/70ns */
#define BlockEraseTime 357143 /* maximum timeout of read cycles for block-erase, 25ms/70ns */
#define SectorEraseTime 357143 /* maximum timeout of read cycles for sector-erase, 25ms/70ns */
#define WordProgramTime 143 /* maximum timeout of read cycles for word-program, 10us/70ns */
#define DBPRINT 1
#define FALSE 0
#define TRUE 1
#define BaseAddrs 0x90000000
#define BurnAddrs 0x90000200
#define SECTOR_SIZE 2048 // Must be 2048 words for 39VF160X
#define BLOCK_SIZE 32768 // Must be 32K words for 39VF160X
#define SST_ID 0x00BF // SST Manufacturer's ID code
#define SST_39VF1601 0x234B // SST39VF1601 device code
#define SST_39VF1602 0x234A // SST39VF1602 device code
#define MAX_TIMEOUT 0x07FFFFFF // A ceiling constant used by Check_Toggle_
// Ready() and Check_Data_Polling().
// The user should modify this constant accordingly.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -