文件名称:ADS7852
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-06-06
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- y***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
AVR128单片机 控制AD7852进行ad采集 ,说明,注意AD7852的供电问题-#include<avr/io.h>
#include<avr/interrupt.h>
#include<avr/iom128.h>
#include"ADS7852.h"
#define C_S1 PORTF |= (1<<PF0) //CS置1;
#define C_S0 PORTF &= ~(1<<PF0) //CS置0;
#define RD1 PORTF |= (1<<PF1) //RD置1;
#define RD0 PORTF &= ~(1<<PF1) //RD置0;
#define WR1 PORTF |= (1<<PF2) //WR置1;
#define WR0 PORTF &= ~(1<<PF2) //WR置0;
uchar bag_i,bag_j
#include<avr/interrupt.h>
#include<avr/iom128.h>
#include"ADS7852.h"
#define C_S1 PORTF |= (1<<PF0) //CS置1;
#define C_S0 PORTF &= ~(1<<PF0) //CS置0;
#define RD1 PORTF |= (1<<PF1) //RD置1;
#define RD0 PORTF &= ~(1<<PF1) //RD置0;
#define WR1 PORTF |= (1<<PF2) //WR置1;
#define WR0 PORTF &= ~(1<<PF2) //WR置0;
uchar bag_i,bag_j
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ADS7852.c