TI中文支持网
TI专业的中文技术问题搜集分享网站

ADS1248关于寄存器读写问题请教

我在ADS1248手册的53页看到这样的一句话,It is not possible to use the full-duplex nature of the SPI interface when reading out the register data

请问难道我想读ADS1248寄存器写入的值,我还必须改变我的SPI工作模式?我目前使用的SPI是全双工方式,我想读被写入到寄存器中的值就必须得换SPI工作方式?另外我在手册上也没有看到说使用哪种方式可以读寄存器的值。 请大神指教

user151383853:

RREG—Read from registers.This command outputs the data from up to 16 registers, starting with the register address specified as part of the instruction. The number of registers read is one plus the second byte. If the count exceeds the remaining registers, the addresses wrap back to the beginning.First Command Byte: 0010 rrrr, where rrrr is the address of the first register to read.Second Command Byte: 0000 nnnn, where nnnn is the number of bytes to read –1.It is not possible to use the full-duplex nature of the SPI interface when reading out the register data. For example, a SYNC command cannot be issued when reading out the VBIAS and MUX1 data, as shown in Figure 80. Any command sent during the readout of the register data is ignored. Thus, it is advisable to send NOP through the DIN when reading out the register data.

后面还详细讲到了 NOP 的数据

yong pan:

回复 user151383853:

这段话我昨天仔细看了一下 ,现在明白了,谢谢啦

赞(0)
未经允许不得转载:TI中文支持网 » ADS1248关于寄存器读写问题请教
分享到: 更多 (0)