This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c6748对TVP5147配置问题

Other Parts Discussed in Thread: TVP5147

您好,关于TL5147_LCD例程有一些疑问;

1、TVP5147手册中的芯片地址是0xBA或0xB8的,但是我看到创龙提供的TL5147-LCD例程中,设置的5147的从地址是 0x5Du吗?

#define I2C_SLAVE_CODEC_TVP5147_1_SVIDEO    (0x5Cu)
#define I2C_SLAVE_CODEC_TVP5147_2_COMPOSITE (0x5Du)

不太理解,并没有找到其他的将地址设置为0xBA的定义。
2、5147手册中说先要将5147复位才能进行写寄存器操作,但是例程中好像没有进行复位啊,直接写的0x03寄存器。

    CodecRegWrite(baseAddr, 0x03, 0x01);//复位
    Delay(1000000);
    CodecRegWrite(baseAddr, 0x03, 0x00);
    Delay(1000000);

3、配置完寄存器以后,希望查看寄存器值,于是调用读寄存器函数

reg_val = CodecRegRead(baseAddr, 0x3A); //读取状态寄存器
reg_val = CodecRegRead(baseAddr, 0x00); //读取输入选择寄存器
reg_val = CodecRegRead(baseAddr, 0x01); //视频标准选择寄存器

结果返回的结果是寄存器地址,分别是 3A ,00 ,01
望指教,谢谢