⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 combo.h

📁 一个操作系统源代码 用于嵌入式设备 在Vc++环境下仿真 成功移植到多款处理器上
💻 H
字号:
/************************************************************************/
/*									*/
/*	Copyright (C) SEIKO EPSON CORP. 2000 - 2001			*/
/*									*/
/*	File name:	COMBO.h					*/
/*	Function:	This is EPSON S1H0F3208 Stacked-CSP Memory 	*/
/*			driver header file for EPSON C33209 MCU.	*/
/*									*/
/*	Revision history						*/
/*		2001.05.31	Andrew Yin	Start			*/
/*		2001-06-21	Sam Lu		Modify			*/
/************************************************************************/

//Command definition .
#define		READ_ARRAY		0xFF
#define		READ_ID_CODE		0x90
#define		READ_QUERY		0x98
#define		READ_STATUS_REG		0x70
#define		CLEAR_STATUS_REG	0x50
#define		WRITE_TO_BUFFER		0xE8
#define		WORD_BYTE_PROG		0x40
#define		BLOCK_ERASE_SEQUENCE1	0x20
#define		BLOCK_ERASE_SEQUENCE2	0xD0
#define		BLOCK_ERS_PROG_SUSPEND	0xB0
#define		BLOCK_ERS_PROG_RESUME	0xD0
#define		CONFIG			0xB8
#define		FIRST			0x60
#define		SET_READ_CONFIG		0x03
#define		SET_BLOCK_LOCK_BIT	0x01
#define		CLEAR_BLOCK_LOCK_BIT	0xD0
#define		PROGECTION_PROG		0xC0

#define		DPS			0x02	// Flash status SR.1 mask device protect status
#define		PSS			0x04	// Flash status SR.2 mask program suspend status
#define		VPENS			0x08	// Flash status SR.3 mask programming voltage status
#define		PSLBS			0x10	// Flash status SR.4 mask program and set lock-bit status
#define		ECLBS			0x20	// Flash status SR.5 mask erase and clear lock-bit status
#define		ESS			0X40	// Flash status SR.6 mask erase suspend status
#define		WSMS			0x80	// Flash status SR.7 mask write state machine status


//Constant define
#define		OK				0
#define		ERR				1

#define		DEVICE_PROTECT_ERR		0x0E
#define		PROG_SUSPEND			0x2
#define		VOLTAGE_RANGE_ERR		0x3
#define		PROG_SET_LOCK_BIT_ERR		0x4
#define		BLCK_ERASE_CLR_LCK_BIT_ERR	0x5
#define		ERASE_SUSPEND			0x6

#define		PAR1_ERR			0x8
#define		PAR2_ERR			0x9
#define		CHANGE				0x0A
#define		REG_ERR				0x0B
#define		CMND_SQNC_ERR			0x0C
#define		VERIFY_ERR			0x0D

#define		YES				1
#define		NO				0


//any valid address within the flash memory mapping
#define		X				0x0C00000

/*
// Command definition
#define		FLASH_ERASE1			0x20		// Flash erase command1
#define		FLASH_ERASE2			0xD0		// Flash erase command2

#define		FLASH_PROG			0x40		// Flash byte program command

#define		FLASH_RESET			0x50		// Clear flash status register

#define		READ_STAT			0x70		// Read status register

#define		READ_ARRAY			0xff		// Flash reset command

#define		STAT_REG1			0x02		// Flash status SR.1 mask
#define		STAT_REG3			0x08		// Flash status SR.3 mask
#define		STAT_REG4			0x10		// Flash status SR.4 mask
#define		STAT_REG5			0x20		// Flash status SR.5 mask
#define		STAT_REG7			0x80		// Flash status SR.7 mask
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -