文件名称:PIC16F87X_CAN
介绍说明--下载内容来自于网络,使用问题请自行百度
#define READ 0x03 // 读MCP2510指令代码
#define WRITE 0x02 // 写MCP2510指令代码
#define RESET 0xC0 // 复位MCP2510指令代码
#define RTS 0x80 // MCP2510请求发送指令代码
#define STA2510 0xA0 // 读MCP2510状态指令代码
#define BITMOD 0x05 // MCP2510位修改指令代码
int a[12] // SPI发送或接收数据寄存器
int b[8] // 发送或接收的数据
int c[8] // 发送或接收的数据
int i // 临时变量
int count // 发送接收计数器
int count1=0 // for test
-# Define READ 0x03// MCP2510 instructions read the code# define WRITE 0x02// MCP2510 write instruction code# define RESET 0xC0// reset the MCP2510 instruction code# define RTS 0x80// MCP2510 request command code# define STA2510 0xA0// read MCP2510 Status instruction code# define BITMOD 0x05// MCP2510-bit instruction code modification int a [12] // SPI send or receive data register int b [8] // send or receive data int c [8] // send or received data int i // temporary variable int count // send and receive counters int count1 = 0 // for test
#define WRITE 0x02 // 写MCP2510指令代码
#define RESET 0xC0 // 复位MCP2510指令代码
#define RTS 0x80 // MCP2510请求发送指令代码
#define STA2510 0xA0 // 读MCP2510状态指令代码
#define BITMOD 0x05 // MCP2510位修改指令代码
int a[12] // SPI发送或接收数据寄存器
int b[8] // 发送或接收的数据
int c[8] // 发送或接收的数据
int i // 临时变量
int count // 发送接收计数器
int count1=0 // for test
-# Define READ 0x03// MCP2510 instructions read the code# define WRITE 0x02// MCP2510 write instruction code# define RESET 0xC0// reset the MCP2510 instruction code# define RTS 0x80// MCP2510 request command code# define STA2510 0xA0// read MCP2510 Status instruction code# define BITMOD 0x05// MCP2510-bit instruction code modification int a [12] // SPI send or receive data register int b [8] // send or receive data int c [8] // send or received data int i // temporary variable int count // send and receive counters int count1 = 0 // for test
相关搜索: MCP2510
mcp2510 单片机
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PIC单片机C语言编程实例五.doc
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
