[数据转换器-信号链] ADS1259操作问题

[复制链接]
6462|15
 楼主| jhbang 发表于 2012-4-23 09:13 | 显示全部楼层 |阅读模式
本帖最后由 jhbang 于 2012-8-31 17:41 编辑

用SPI口操作ADS1259时,初始化写操作正确,但是在用读寄存器命令读时,是从第三个寄存器开始读,而且第一次发读命令,读不上来数据,第二次发读命令时,才能读到数据。求TI技术人员支持。
diny 发表于 2012-4-23 09:48 | 显示全部楼层
希望问题解决后,上来跟大家分享一下。
robin-feng 发表于 2012-4-24 13:28 | 显示全部楼层
读取操作方法是否正确?如下
RREG: Read from Registers
Description: These opcode bytes read register data. The Register Read command is a two-byte opcode
followed by the output of the register data. The first byte contains the command opcode and the register address.
The second byte of the opcode specifies the number of registers to read – 1.
First opcode byte: 0010 rrrr, where rrrr is the starting register address.
Second opcode byte: 0000 nnnn, where nnnn is the number of registers to read.
The 17th SCLK rising edge of the operation clocks out the MSB of the first register
robin-feng 发表于 2012-4-24 13:30 | 显示全部楼层
读取操作方法是否正确?如下
RREG: Read from Registers
Description: These opcode bytes read register data. The Register Read command is a two-byte opcode
followed by the output of the register data. The first byte contains the command opcode and the register address.
The second byte of the opcode specifies the number of registers to read – 1.
First opcode byte: 0010 rrrr, where rrrr is the starting register address.
Second opcode byte: 0000 nnnn, where nnnn is the number of registers to read.
The 17th SCLK rising edge of the operation clocks out the MSB of the first register
robin-feng 发表于 2012-4-24 13:31 | 显示全部楼层
下面是一个列子

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| jhbang 发表于 2012-4-25 16:50 | 显示全部楼层
是CPU的SPI的操作问题。
jeff-wang 发表于 2012-4-26 16:33 | 显示全部楼层
不知道读不出来数据是指寄存器设置值还是ADC转换输出的数据,若是后者,需要判断DRDY low, 再去读。
快乐出发 发表于 2012-4-26 16:36 | 显示全部楼层
太好了,可以偷学了。:P
 楼主| jhbang 发表于 2012-4-28 09:34 | 显示全部楼层
是指读不出AD转换结果,我已经判断了DRDY LOW,然后再去读的,我用示波器观察过,START命令,波形正确,DRDY也变化,但是在发送了RDATA命令后,DOUT一直是低电平.
jeff-wang 发表于 2012-5-3 13:28 | 显示全部楼层
原理图贴上来看一下。要避免输入过载。当DRDY low, data read 必须在20 个fclk 循环内完成。
 楼主| jhbang 发表于 2012-5-3 16:31 | 显示全部楼层
问题已经基本得到解决。现在目标是怎么样使性能得到最优
lz_scer 发表于 2012-8-31 17:38 | 显示全部楼层
楼主能否公布一下解决方法,本人也遇到这个问题,谢谢!
lz_scer 发表于 2012-9-1 10:14 | 显示全部楼层
又仔细看了一下手册,发现自己**了,把full-scale calibration 寄存器设置成0了。呵呵!
chriven 发表于 2015-6-16 16:11 | 显示全部楼层
jhbang 发表于 2012-5-3 16:31
问题已经基本得到解决。现在目标是怎么样使性能得到最优

楼主能发一份ADS1259的原理图和程序么?我最近也在学。等你的帮忙,谢谢!he0018@qq.com  谢谢
kqh1120 发表于 2016-12-7 17:30 来自手机 | 显示全部楼层
我也遇到这问题了,需要读两次,求助
kqh1120 发表于 2016-12-7 17:32 来自手机 | 显示全部楼层
chriven 发表于 2015-6-16 16:11
楼主能发一份ADS1259的原理图和程序么?我最近也在学。等你的帮忙,谢谢!  谢谢 ...

求助,还在么
您需要登录后才可以回帖 登录 | 注册

本版积分规则

8

主题

164

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部