TI论坛
直播中

卞轮辉

7年用户 1038经验值
私信 关注
[问答]

ads1247不能读寄存器

通过SPI(430F2013)的接口,读MUX0,记录以下波形,信号都对的,
蓝线是CLK,黄线是DIN,命令字节是0x20,0x00,0xff,DOUT一直是低电平。
我的蕊片是模拟电源跟数字电源共用3.3V电源,不能读出有关糸吗?

回帖(8)

韦明

2019-5-17 12:17:24
代码需要优化,SPI的波形效果这么差?你看看这波形,照着手册上的波形来看
举报

卞轮辉

2019-5-17 12:26:50
我都试了好多人写的模拟SPI的读1247的代码,都不行。从时序上都可以,就是读不出来。
举报

宁兴琴

2019-5-17 12:46:49
引用: dahairenlyy 发表于 2019-5-17 12:26
我都试了好多人写的模拟SPI的读1247的代码,都不行。从时序上都可以,就是读不出来。

datasheet上说After power-up, additional eight SPI clock pulses. The time from the216 system clocks are required before communication write operation into the MUX0 register to the next may be started,不知道有没有注意到?
举报

卞轮辉

2019-5-17 13:03:33
引用: cdiwqjelidqd 发表于 2019-5-17 12:46
datasheet上说After power-up, additional eight SPI clock pulses. The time from the216 system clocks are required before communication write operation into the MUX0 register to the next may be started,不知道有没有注意到?

start 一直是高的,上电已经是很长时间了,
举报

更多回帖

发帖
×
20
完善资料,
赚取积分