您好 我用TAS5754M-56MDC AEVM板 生成代码 :
w 98 00 30w 98 14 7f ff ff 00 a5 d2 65 00 3a b7 f5 00 6d 41 3c 00 9d c8 3b 00w 98 00 2cw 98 01 05w 98 00 30w 98 14 7f ff ff 00 a5 d2 65 00 3a b7 f5 00 6d 41 3c 00 9d c8 3b 00w 98 00 00
这是我定义的数组:
unsigned char StartPage[3]={0x98,0x00,0x30};
unsigned char UpData[22]={0x98,0x14,0x7f,0xff,0xff,0x00,0xa5,0xd2,0x65,0x00,0x3a,0xb7,0xf5,0x00,0x6d,0x41,0x3c,0x00,0x9d,0xc8,0x3b,0x00};
unsigned char SwitchPage[3]={0x98,0x00,0x2c};
unsigned char SwitchRegDada[3]={0x98,0x01,0x05};
unsigned char EndPage[3]={0x98,0x00,0x00};
写I2C 过程:
WriteI2c((unsigned char*)StartPage,3,WRITE);
Delay_1ms(8);
WriteI2c((unsigned char*)UpData,22,WRITE);
Delay_1ms(65);
WriteI2c((unsigned char*)SwitchPage,3,WRITE);
Delay_1ms(6);
WriteI2c((unsigned char*)SwitchRegDada,3,WRITE);
Delay_1ms(110);
WriteI2c((unsigned char*)ReadByte,3,READ);// CRAM A 与 CRAM B状态
Delay_1ms(6);
WriteI2c((unsigned char*)StartPage,3,WRITE);
Delay_1ms(8);
WriteI2c((unsigned char*)UpData,22,WRITE);
Delay_1ms(16);
WriteI2c((unsigned char*)EndPage,3,WRITE);
以上 数据写都成功 (有ACK) 就是没有效果(无法调整EQ)
Annie Liu:
How to Generate a Header File_Public.pdf
An example and dumped file:/cfs-file/__key/communityserver-discussions-components-files/6/MyTAS5754_5F00_6MHF2_5F00_HF4_5F00_180906_5F00_LR.xml
customer_example..hAs to how to do I2C initialization with SoC: https://e2e.ti.com/support/audio/f/6/t/446313?tisearch=e2e-sitesearch&keymatch=TAS5754%2525252525252520power%2525252525252520on
TI中文支持网
