基于IAR的软件,CC2530可将数据存入FLASH芯片,继而可以通过串口读出
基于IAR的CC2530关于Flash的读写程序
资料详细技术说明
# include <iocc2530.h>
# include <string.h>
# define uintunsigned int
# define uchar unsigned char
# define uint8 unsigned char
# define uint16
unsigned int
# ifndef BV
# define Bv(n)
(1 << (n))
fendif
# define st (x)
do (x} while (LINE==-1)
/* SPI settings*/
# define HAL SPI CLOCK POL LO
0x00
fdefine HAL SPI CLOCK PHA O
0x00
# define HAL SPI TRANSFER MSB FIRST 0x20
fdefine FLASH CS PORT 1
//"OAFLASHDE-A9E2O
#define FLASH CS PIN
/* FLASH SPI lines */
#define FLASH CLK PORT 1
#define FLASH CLK PIN 5
3
#define FLASH MOSI PORT 1
#define FLASH MOSI PIN
#define FLASH MISO PORT 1
#define FLASH MISO PIN 7
相关技术资料推荐
下载与解压说明
下载积分规则
- 本资源下载仅需 2 积分
- 24 小时内重复下载免扣积分
- VIP 会员享专属免积分高速通道
文件解压指南
- 推荐使用 7-Zip 或新版 WinRAR 解压
- 原理图与 PCB 请使用对应 EDA 软件打开
- 压缩包内源码可直接在上方在线预览
免费获取积分
- 新用户注册即赠送 10 积分
- 上传分享工程资料可获得持续积分奖励
- 查看积分规则与会员权益 →