Post Go back to editing

How to understand the swctl register -> MODE bit( VIN)/如何理解SWCTL里面的MODE寄存器?关于2428寄存器的一些疑问

Thread Summary

The user asks about the configuration of the SWCTL register in the AD242x-trm during the Simple and Modified Disc processes, the difference in configuration items for the last slave node, and the impact of disabling ENSW and VIN in the SWCTL register. The final answer explains that setting SWCTL to 0x21 and 0x01 is for proper node configuration and power management, the last slave node has fewer configuration items because it has no downstream nodes, and disabling ENSW and VIN is for low power mode, where the node is activated by the master node when needed.
AI Generated Content

Hi ,

我由几个问题想问下:
1. 我在查看AD242x-trm手册的时候发现Simple Disc流程以及Modified Disc流程里面会在配置从节点之前将SWCTL寄存器配置成0x21,等待当前节点配置完毕以后,再将该寄存器配置为0x01;请问这个是为什么?MODE里面的VIN的开启和关闭的作用是什么?

When I was reviewing the AD242x-trm manual, I found that in the Simple Disc process and Modified Disc process, the SWCTL register is configured to 0x21 before configuring the slave node, and then it is set to 0x01 after the current node configuration is completed. Could you please explain why this is done? What are the functions of enabling and disabling VIN in MODE?
2. 如果我配置了三个从节点只传用来传音频的话,最后一个从节点的配置项目会比其他从节点少,请问下是什么原因?

If I set up three slave nodes to only transmit audio, the configuration items of the last slave node would be fewer than those of the other nodes. Could you please explain why this is the case?

3.为什么在导出的adi_a2b_commandlist.h里面最后会把SWCTL的ENSW和VIN都关闭,这样从节点还能出声么?

Why are ENSW and VIN of SWCTL turned off at the end of the exported adi_a2b_commandlist.h? How can the node still make sounds then?

Parents
  • Hi,

    1. AD242x-trm手册指出,A2B总线上主节点和从节点设备的配置是顺序进行的(菊花链结构),先进行主节点配置,再一个一个轮询从节点进行配置。您看一下Simple Discovery的流程图(ad242x-trm.pdf pp.43 )可以看到,轮询每个从节点进行配置时,会先将SWCTL配置为0x01,再配置为0x21,每个从节点的I2C地址是不一样的。mode bit里VIN不是开启和关闭的意思,mode bit主要是用于系统上电后选择哪种硬件故障诊断模式,因为2428的总线节点支持独立供电和总线供电两种模式(VIN是实际供电2428的电压,一般与总线电压不同),所以需要有不同的检测逻辑进行支持。具体模式的定义请参考ad242x-trm.pdf pp.116

    2.从节点在配置过程中不仅需要配置本节点的相关信息,对中继信息(比如是否给下一个从节点供电)也要进行配置,最后一个节点因为没有downstream节点了,所以就不再有中继信息配置,因此配置总量会比前面子节点少点。

    3. 应该是为了低功耗,主节点不发数据给从节点时,子节点不工作,要工作时需要主节点唤醒的。

Reply
  • Hi,

    1. AD242x-trm手册指出,A2B总线上主节点和从节点设备的配置是顺序进行的(菊花链结构),先进行主节点配置,再一个一个轮询从节点进行配置。您看一下Simple Discovery的流程图(ad242x-trm.pdf pp.43 )可以看到,轮询每个从节点进行配置时,会先将SWCTL配置为0x01,再配置为0x21,每个从节点的I2C地址是不一样的。mode bit里VIN不是开启和关闭的意思,mode bit主要是用于系统上电后选择哪种硬件故障诊断模式,因为2428的总线节点支持独立供电和总线供电两种模式(VIN是实际供电2428的电压,一般与总线电压不同),所以需要有不同的检测逻辑进行支持。具体模式的定义请参考ad242x-trm.pdf pp.116

    2.从节点在配置过程中不仅需要配置本节点的相关信息,对中继信息(比如是否给下一个从节点供电)也要进行配置,最后一个节点因为没有downstream节点了,所以就不再有中继信息配置,因此配置总量会比前面子节点少点。

    3. 应该是为了低功耗,主节点不发数据给从节点时,子节点不工作,要工作时需要主节点唤醒的。

Children
No Data