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

📄 25lc320.h

📁 nrf9e5 nordic公司出品的带有无线发送接收的单片机的bootloader程序。支持xmodem下载
💻 H
字号:
#ifndef _25LC320_H__200701181050__INCLUDED_
#define _25LC320_H__200701181050__INCLUDED_

#define _25LC320_READ	0x03			//	Read data from memory array beginning at selected address
#define _25LC320_WRITE	0x02			//	Write data to memory array beginning at selected address
#define _25LC320_WRDI	0x04			//	Reset the write enable latch(disable write operations)
#define _25LC320_WREN	0x06			//	Set the write enable latch(enable write operations)
#define _25LC320_RDSR	0x05			//	Read Status register
#define _25LC320_WRSR	0x01			//	Write Status register

#define _25LC320_PAGE_SIZE		64//	32

#define Wait_25LC320_IDLE \
{while (_25LC320_ReadStatus() & 0x01) ;}

extern void Init25lc320(void);
//extern void _25LC320_ReadByteInPage(WORD data addr);//, BYTE idata *buf);
extern void _25LC320_WriteByteInPage(WORD data addr, BYTE idata *buf);
//extern BYTE  _25LC320_ReadStatus(void);
//extern void _25LC320_SetWEL(BYTE data in);
extern void _25LC320_WriteStatus(BYTE data in);


#endif

⌨️ 快捷键说明

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