OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 7182|回复: 4

STM32 的ADS1220程序

[复制链接]

5

主题

10

帖子

0

精华

新手入门

积分
14
金钱
14
注册时间
2016-2-29
在线时间
8 小时
发表于 2016-3-24 14:53:11 | 显示全部楼层 |阅读模式
8金钱
求助ads1220的配置程序。
Power-up
• Delay
• Configure the SPI interface of the microcontroller to SPI mode 1
• If the CS pin is not tied low permanently, configure the microcontroller GPIO connected to CS as an output
• Configure the microcontroller GPIO connected to the DRDY pin as an interrupt input
• Set CS to the ADS1220 low
• Delay
• Send the RESET command (06h) to make sure the ADS1220 is properly reset after power-up
• Write the respective register configuration using the WREG command (43h, 08h, 04h, 10h, and 00h)
• Delay
• Read back all configuration registers using the RREG command (23h) to make sure the correct values are
written
• Delay
• Send the START/SYNC command (08h) to start converting in continuous conversion mode
• Delay
• Clear CS to high (resets the serial interface)
• Loop
{
Wait for DRDY to transition low
Take CS low
Delay
Send 24 SCLK rising edges to read out conversion data on DOUT
Delay
Clear CS to high
}
• Take CS low
• Delay
• Send the POWERDOWN command (02h) to stop conversions and put the ADS1220 in power-down mode
• Delay
• Clear CS to high


这是手册里的程序例子,红色的3句话我理解不是很清楚,有哪位大神解释解释啊 ?

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

5

主题

10

帖子

0

精华

新手入门

积分
14
金钱
14
注册时间
2016-2-29
在线时间
8 小时
 楼主| 发表于 2016-3-24 15:08:53 | 显示全部楼层
回复

使用道具 举报

58

主题

6294

帖子

1

精华

资深版主

Rank: 8Rank: 8

积分
11537
金钱
11537
注册时间
2014-4-1
在线时间
1314 小时
发表于 2016-3-24 15:17:59 | 显示全部楼层

1、通过WREG命令向各个寄存器写入配置字,对芯片进行配置。
这种功能的命令可能有四、五个。

2、通过RREG命令可以读回配置字。

3、为了从DOUT脚读取24位转换结果,需要在SLCK管脚发送24个上升沿。

回复

使用道具 举报

5

主题

10

帖子

0

精华

新手入门

积分
14
金钱
14
注册时间
2016-2-29
在线时间
8 小时
 楼主| 发表于 2016-3-24 15:52:24 | 显示全部楼层
xuande 发表于 2016-3-24 15:17
1、通过WREG命令向各个寄存器写入配置字,对芯片进行配置。
这种功能的命令可能有四、五个。

反映为程序是什么呢 ?
回复

使用道具 举报

72

主题

209

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1586
金钱
1586
注册时间
2014-9-11
在线时间
175 小时
发表于 2016-11-18 10:42:04 | 显示全部楼层
楼主 找到了没 ?听说,官网 可以下载到
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-5-25 08:20

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表