ZHCAF43 March   2025 TAS6584-Q1 , TAS6684-Q1

 

  1.   1
  2.   摘要
  3.   商标
  4. 1简介
  5. 2SDOUT 配置
    1. 2.1 SDOUT - I2S 配置
    2. 2.2 SDOUT - TDM 配置
  6. 3多器件系统中的 SDOUT 连接
  7. 4输出电流和电压计算
  8. 5总结
  9. 6参考资料

SDOUT - I2S 配置

在 I2S 模式下使用 SDOUT 需要使用两个数据输出引脚(SDOUT1 和 SDOUT2)来传输全部四个通道的数据。必须有一个 GPIO 引脚配置为 SDOUT2。寄存器 0x25 的 [7:4] 位决定了将哪些通道信息分配给 SDOUT1 和 SDOUT2。寄存器 0x31 启用要在 SDOUT 引脚上传输的输出电流和电压预测数据。在 I2S 模式下,无法同时传输输出电流和电压预测数据。

表 2-7 SDOUT - I2S 配置
寄存器 0x25,位[7:4] 寄存器 0x31,位[3:0] 寄存器 0x31,位[5:4] 引脚 时隙 1 时隙 2
0001 0011 01 SDOUT1 Isense 通道 1 Isense 通道 2
SDOUT2 Isense 通道 3 Isense 通道 4
0010 0011 01 SDOUT1 Isense 通道 3 Isense 通道 4
SDOUT2 Isense 通道 1 Isense 通道 2
0001 0011 00 SDOUT1 Vpredict 通道 1 Vpredict 通道 2
SDOUT2 Vpredict 通道 3 Vpredict 通道 4
0010 0011 00 SDOUT1 Vpredict 通道 3 Vpredict 通道 4
SDOUT2 Vpredict 通道 1 Vpredict 通道 3
0001 0011 10 SDOUT1 Aux 通道 1 Aux 通道 2
SDOUT2 Aux 通道 3 Aux 通道 4
0010 0011 10 SDOUT1 Aux 通道 3 Aux 通道 4
SDOUT2 Aux 通道 1 Aux 通道 2

下面是示例 PPC3 脚本和 图 2-1 的第一行的 表 2-7,用于在 I2S 模式下操作 SDOUT 以传输四个通道的 Isense。

w c0 96 08           # configure GPIO_2 for SDOUT2
w c0 A0 40           # configure GPIO_2 as output
w c0 25 1A           # output channel 1/2 in SDOUT1 line and channel 3/4 in SDOUT2 line. 24 bits word length 
w c0 31 13           # enable Ch1/2/3/4 Isense output
w c0 2C 0F           # MSB offset of Vpredict, Isense and Aux
w c0 2D 00           # Vpredict LSB offset, MSB in 0x2C
w c0 2E 00           # Isense LSB offset, MSB in 0x2C

Note: Script format: write/read, device address, register address, data
      w: I2C write command
      r: I2C read command
     c0: device address 
For example: w c0 96 08 action is: write c0 device register address 0x96 to value 0x08       

 I2S 配置下 SDOUT 的计时示意图示例图 2-1 I2S 配置下 SDOUT 的计时示意图示例