文件名称:ADS7852
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.