完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
void AD7799_INIT(void)
{ WriteByteToAd7799(0x10); //b0001 0000 /* Writes to Communications Register Setting Next Operation as Write to CONFIGURATION Register*/ WriteByteToAd7799(0x37); //B0011 0111 WriteByteToAd7799(0x30); //B0011 0000 /*CONFIGURATION REGISTER[00,BO(0),U/B(0),0(0),G2(1),G1(1),G0(1),0,0,REF_DET(0),BUF(1),0(0),CH2(0),CH1(0),CH0(0)]*/ WriteByteToAd7799(0x08); //b0000 1000 /* Writes to Communications Register Setting Next Operation as Write to Mode Register*/ WriteByteToAd7799(0x80); WriteByteToAd7799(0x0A); /* Writes to Mode Register Initiating Internal Zero-Scale Calibration*/ //WaiteRDY(); _delay_ms(5); /* Wait for RDY pin to go low to indicate end of calibration cycle*/ WriteByteToAd7799(0x08); /* Writes to Communications Register Setting Next Operation as Write to Mode Register*/ WriteByteToAd7799(0xA0); WriteByteToAd7799(0x0A); /* Writes to Mode Register Initiating Internal Full-Scale Calibration*/ //WaiteRDY(); // _delay_ms(5); /* Wait for RDY pin to go low to indicate end of calibration cycle*/ WriteByteToAd7799(0x08);//b0000 1000 /* Writes to Communications Register Setting Next Operation as Write to Mode Register*/ WriteByteToAd7799(0x00); //00010000 WriteByteToAd7799(0x0A); //00001111 (16.7HZ65dB) /* Mode Register[MD2(0),MD1(0),MD0(0),PSW(0),0(0),0(0),0(0),0(0),(0),(0),0(0),0(0),FS3(1),FS2(0),FS1(1),FS0(0)]*/ /* Continuous-Conversion Mode. Fadc=16.7HZ;*/ } |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
7 浏览 0 评论
26 浏览 1 评论
基于瑞萨FPB-RA4E2智能床头灯项目——1编译环境搭建与点亮驱动ws2812全彩LED
13 浏览 0 评论
嵌入式学习-飞凌嵌入式ElfBoard ELF 1板卡-LCD显示图片编程示例之介绍mmap
644 浏览 0 评论
《DNESP32S3使用指南-IDF版_V1.6》第二章 常用的C语言知识点
1000 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
11770 浏览 31 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 14:50 , Processed in 0.571398 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号