https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1202317/tas2780-debugging-help-needed
器件型号:TAS2780您好!
我有两个使用 TAS2780的系统、一个是运行良好的开发设置(使用 TAS2780EVM)、一个是带有集成 TAS2780的 PCB、我无法开始工作。
DEV 系统具有12V 的 PVDD 电压、集成设置具有20V 的 PVDD 电压。 VBAT1S 没有外部连接、应在内部生成。 我在 TAS2780EVM 上调整了跳线配置、以匹配集成设置。
我编写了一些 python 代码来设置电源模式2并将器件设置为负载诊断和诊断发生器模式、并且我可以在两个系统上听到蜂鸣声。
加载内核驱动程序(只是重置并设置电源模式2)后、我可以在开发系统上播放声音、但在集成系统上没有声音输出。
使用 Python 脚本、我要打印 INT_LIVE 和 INT_LTCH 寄存器的内容、我看到这两个系统之间存在细微的差异、但我难以解释它们。
下面是我使用的脚本: https://gitlab.com/-/snippets/2508725
我将从这两个系统附加脚本的输出。
您能帮您找到问题吗?
此外、脚本中的负载计算是否正确? 规格表中显示的值以欧姆为单位、但看起来更像毫欧、连接的扬声器为8欧姆。
我是否 可以运行任何其他诊断?
谢谢!
Stephan
# Dev system (working fine) ***** Resetting wrote reg 0x00 value 0x00, read back 0x00 wrote reg 0x7f value 0x00, read back 0x00 wrote reg 0x01 value 0x01, read back 0x00 read reg 0x02 (MODE_CTRL): 0x1a read reg 0x03 (CHNL_0): 0x28 read reg 0x04 (DC_BLK0): 0x21 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x00 read reg 0x44 (INT_LIVE1_0): 0x00 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x00 read reg 0x4a (INT_LTCH1): 0x00 read reg 0x4b (INT_LTCH1_0): 0x00 read reg 0x4f (INT_LTCH2): 0x00 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x00 read reg 0x52 (VBAT_MSB): 0x00 read reg 0x53 (VBAT_LSB): 0x00 VBAT1S Voltage: 0.000V read reg 0x54 (PVDD_MSB): 0x00 read reg 0x55 (PVDD_LSB): 0x00 PVDD Voltage: 0.000V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 12607.650000000001 Ohm ***** Initializing power mode 2 wrote reg 0x0e value 0x44, read back 0x44 wrote reg 0x0f value 0x40, read back 0x40 wrote reg 0x00 value 0x01, read back 0x01 wrote reg 0x17 value 0xc0, read back 0xc0 wrote reg 0x19 value 0x00, read back 0x00 wrote reg 0x21 value 0x00, read back 0x00 wrote reg 0x35 value 0x74, read back 0x74 wrote reg 0x00 value 0xfd, read back 0xfd wrote reg 0x0d value 0x0d, read back 0x0d wrote reg 0x3e value 0x4a, read back 0x4a wrote reg 0x0d value 0x00, read back 0x00 wrote reg 0x00 value 0x00, read back 0x00 wrote reg 0x03 value 0xe8, read back 0xe8 wrote reg 0x04 value 0xa1, read back 0xa1 wrote reg 0x71 value 0x0e, read back 0x0e read reg 0x02 (MODE_CTRL): 0x1a read reg 0x03 (CHNL_0): 0xe8 read reg 0x04 (DC_BLK0): 0xa1 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x00 read reg 0x44 (INT_LIVE1_0): 0x00 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x00 read reg 0x4a (INT_LTCH1): 0x00 read reg 0x4b (INT_LTCH1_0): 0x00 read reg 0x4f (INT_LTCH2): 0x00 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x00 read reg 0x52 (VBAT_MSB): 0x00 read reg 0x53 (VBAT_LSB): 0x00 VBAT1S Voltage: 0.000V read reg 0x54 (PVDD_MSB): 0x00 read reg 0x55 (PVDD_LSB): 0x00 PVDD Voltage: 0.000V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 12607.650000000001 Ohm ***** Running load diagnostic wrote reg 0x02 value 0x13, read back 0x13 read reg 0x02 (MODE_CTRL): 0x13 read reg 0x03 (CHNL_0): 0xe8 read reg 0x04 (DC_BLK0): 0xa1 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x02 read reg 0x44 (INT_LIVE1_0): 0x19 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x00 read reg 0x4a (INT_LTCH1): 0x02 read reg 0x4b (INT_LTCH1_0): 0x19 read reg 0x4f (INT_LTCH2): 0x00 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x06 read reg 0x52 (VBAT_MSB): 0x26 read reg 0x53 (VBAT_LSB): 0x0d VBAT1S Voltage: 4.750V read reg 0x54 (PVDD_MSB): 0x31 read reg 0x55 (PVDD_LSB): 0x8d PVDD Voltage: 12.375V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 9675.9 Ohm ***** Playing diagnostic tone wrote reg 0x02 value 0x1d, read back 0x1d read reg 0x02 (MODE_CTRL): 0x1d read reg 0x03 (CHNL_0): 0xe8 read reg 0x04 (DC_BLK0): 0xa1 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x02 read reg 0x44 (INT_LIVE1_0): 0x11 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x04 read reg 0x4a (INT_LTCH1): 0x22 read reg 0x4b (INT_LTCH1_0): 0x39 read reg 0x4f (INT_LTCH2): 0x00 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x06 read reg 0x52 (VBAT_MSB): 0x26 read reg 0x53 (VBAT_LSB): 0x08 VBAT1S Voltage: 4.750V read reg 0x54 (PVDD_MSB): 0x31 read reg 0x55 (PVDD_LSB): 0xa2 PVDD Voltage: 12.406V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 9675.9 Ohm ***** Shutting down wrote reg 0x02 value 0x1a, read back 0x1a
# Integrated system (diagnostic beep works, but then no sound) ***** Resetting wrote reg 0x00 value 0x00, read back 0x00 wrote reg 0x7f value 0x00, read back 0x00 wrote reg 0x01 value 0x01, read back 0x00 read reg 0x02 (MODE_CTRL): 0x1a read reg 0x03 (CHNL_0): 0x28 read reg 0x04 (DC_BLK0): 0x21 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x00 read reg 0x44 (INT_LIVE1_0): 0x00 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x00 read reg 0x4a (INT_LTCH1): 0x00 read reg 0x4b (INT_LTCH1_0): 0x00 read reg 0x4f (INT_LTCH2): 0x00 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x00 read reg 0x52 (VBAT_MSB): 0x00 read reg 0x53 (VBAT_LSB): 0x00 VBAT1S Voltage: 0.000V read reg 0x54 (PVDD_MSB): 0x00 read reg 0x55 (PVDD_LSB): 0x00 PVDD Voltage: 0.000V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 764174.9500000001 Ohm ***** Initializing power mode 2 wrote reg 0x0e value 0x44, read back 0x44 wrote reg 0x0f value 0x40, read back 0x40 wrote reg 0x00 value 0x01, read back 0x01 wrote reg 0x17 value 0xc0, read back 0xc0 wrote reg 0x19 value 0x00, read back 0x00 wrote reg 0x21 value 0x00, read back 0x00 wrote reg 0x35 value 0x74, read back 0x74 wrote reg 0x00 value 0xfd, read back 0xfd wrote reg 0x0d value 0x0d, read back 0x0d wrote reg 0x3e value 0x4a, read back 0x4a wrote reg 0x0d value 0x00, read back 0x00 wrote reg 0x00 value 0x00, read back 0x00 wrote reg 0x03 value 0xe8, read back 0xe8 wrote reg 0x04 value 0xa1, read back 0xa1 wrote reg 0x71 value 0x0e, read back 0x0e read reg 0x02 (MODE_CTRL): 0x1a read reg 0x03 (CHNL_0): 0xe8 read reg 0x04 (DC_BLK0): 0xa1 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x00 read reg 0x44 (INT_LIVE1_0): 0x00 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x00 read reg 0x4a (INT_LTCH1): 0x00 read reg 0x4b (INT_LTCH1_0): 0x00 read reg 0x4f (INT_LTCH2): 0x00 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x00 read reg 0x52 (VBAT_MSB): 0x00 read reg 0x53 (VBAT_LSB): 0x00 VBAT1S Voltage: 0.000V read reg 0x54 (PVDD_MSB): 0x00 read reg 0x55 (PVDD_LSB): 0x00 PVDD Voltage: 0.000V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 764174.9500000001 Ohm ***** Running load diagnostic wrote reg 0x02 value 0x13, read back 0x13 read reg 0x02 (MODE_CTRL): 0x13 read reg 0x03 (CHNL_0): 0xe8 read reg 0x04 (DC_BLK0): 0xa1 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x00 read reg 0x44 (INT_LIVE1_0): 0x00 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x00 read reg 0x4a ( ): 0x22 read reg 0x4b (INT_LTCH1_0): 0x30 read reg 0x4f (INT_LTCH2): 0x08 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x06 read reg 0x52 (VBAT_MSB): 0x00 read reg 0x53 (VBAT_LSB): 0x00 VBAT1S Voltage: 0.000V read reg 0x54 (PVDD_MSB): 0x00 read reg 0x55 (PVDD_LSB): 0x00 PVDD Voltage: 0.000V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 764174.9500000001 Ohm ***** Playing diagnostic tone wrote reg 0x02 value 0x1d, read back 0x1d read reg 0x02 (MODE_CTRL): 0x1d read reg 0x03 (CHNL_0): 0xe8 read reg 0x04 (DC_BLK0): 0xa1 read reg 0x42 (INT_LIVE0): 0x00 read reg 0x43 (INT_LIVE1): 0x02 read reg 0x44 (INT_LIVE1_0): 0x11 read reg 0x47 (INT_LIVE2): 0x00 read reg 0x48 (INT_LIVE3): 0x00 read reg 0x49 (INT_LTCH0): 0x00 read reg 0x4a (INT_LTCH1): 0x22 read reg 0x4b (INT_LTCH1_0): 0x39 read reg 0x4f (INT_LTCH2): 0x08 read reg 0x50 (INT_LTCH3): 0x00 read reg 0x51 (INT_LTCH4): 0x06 read reg 0x52 (VBAT_MSB): 0x26 read reg 0x53 (VBAT_LSB): 0x01 VBAT1S Voltage: 4.750V read reg 0x54 (PVDD_MSB): 0x51 read reg 0x55 (PVDD_LSB): 0x80 PVDD Voltage: 20.375V wrote reg 0x00 value 0x04, read back 0x04 wrote reg 0x00 value 0x00, read back 0x00 Load: 764174.9500000001 Ohm ***** Shutting down wrote reg 0x02 value 0x1a, read back 0x1a