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

AFE4403: SPI总线挂载了两个设备,其中一个是AFE4403,我发现4403的SPI通讯正常,另一个SPI设备通讯不上,我把4403拆掉后,另一台SPI设备就能正常通讯了。

Part Number:AFE4403

你好,我们现在SPI总线挂载了两个设备,一个是AFE4403,另一个是另一个SPI设备,我发现4403的SPI通讯正常,另一个SPI设备通讯不上,我把4403拆掉后,另一台SPI设备就能正常通讯了,我查数据手册,发现了这个地方,我按照要求的设置也不行,这是我关闭代码的时候的设置。

Disable_AFE44xx_SPI_Read();AFE44xx_Reg_Write((uint8_t)CONTROL3, 0x0001 | SOMI_TRI |CLKOUT_TRI);AFE44xx_Reg_Write((uint8_t)CONTROL2, AFE44xx_Current_Register_Settings[35] | DIGOUT_TRISTATE_ENABLE);Enable_AFE44xx_SPI_Read();

jony wang:

Note that when the AFE4403 is deselected, the SPISOMI, CLKOUT, ADC_RDY, and DIAG_END digital output pins do not enter a 3-state mode. This condition, therefore, must be taken into account when connecting multiple devices to the SPI port and for power-management considerations. In order to avoid loading the SPI bus when multiple devices are connected, the SOMI_TRI register bit must be to 1 whenever the AFE SPI is inactive. The DIGOUT_TRISTATE register bit must be set to 1 to tri-state the ADC_RDY and DIAG_END pins. The CLKOUT_TRI register bit must be set to 1 to put the CLKOUT buffer in tri-state mode.

,

jony wang:

你好你好

,

Alice:

您好,

      是的,您提到的内容在数据手册 “8.5.2.5 AFE SPI Interface Design Considerations”。      

     

      www.ti.com/…/afe4403.pdf

,

jony wang:

我懂你的意思,就是取消片选前把这个位置的寄存器设置一下,上面的代码我已经贴出来了,同时也这样设置了,但是好像还是不行

,

Alice:

您好,

       那么寄存器设置成功后,SPI相关引脚是什么状态,用示波器看了吗?

,

jony wang:

谢谢,已解决,是板子上其他系统的问题

赞(0)
未经允许不得转载:TI中文支持网 » AFE4403: SPI总线挂载了两个设备,其中一个是AFE4403,我发现4403的SPI通讯正常,另一个SPI设备通讯不上,我把4403拆掉后,另一台SPI设备就能正常通讯了。
分享到: 更多 (0)