到这里这个小项目就要进入尾声了
1、在其中遇到了很多问题、也听了部门前辈的指点、有的人说的正确、有的人说的不沾边、这时候真的是需要自己去衡量哪个人说的才是自己所需要的、
2、关于TVP5150的配置和GPGTFT的配置、刚开始的时候都不知道到底是哪一个配置会出了什么问题、后面我在TVP5150的手册里看到了一个例子的配置、我照着这个例子去配置、然后我就确保了TVP5150的配置是正确的了、后面我就只专心于配置TFT了、
3、做电子开发的话,看英文资料是必要的、如果有不懂的地方最好自己去翻译、中文资料虽然可以看得明白、但可能翻译的时候已经出现了偏差、你想要的信息大多时候还是来自于英文资料
4、后面部门领导跟我说,能不能显示出来的是16:9的比例呢,我尝试了一下,是不成功的、原因是DV输出的TV制式本来就是4:3的,所以我是无论怎样改寄存器都无济于事的,(N制720X480 P制720X576 是4:3的)后面要找一下信源是16:9的来试一下
附1:TVP5150配置
5.2 Example2
5.2.1 Assumptions
Device:TVP5150AM1
Input connector:S-video(AIP1A (luminance),AIP1B(chrominance))
VideoFormat:NTSC(M, 4.43),PAL(B, G,H,I, M,N,Nc)orSECAM(B, D,G,K1,L)
Outputformat: 8-bit4:2:2YCbCrwithdiscretesyncoutputs
5.2.2 RecommendedSettings
Recommended I2C writes :This setup requires additional writesto output the discretesync 4:2:2data
outputs,the HSYNC,andthe VSYNC,andto autoswitchbetweenallvideoformats mentionedabove.
I2C registeraddress00h=Videoinput sourceselection#1register
I2Cdata01h=Selectsthe S-Videoinput, AIP1A(luminance),andAIP1B(chrominance)
I2Cregisteraddress03h=Miscellaneouscontrolsregisteraddress
I2Cdata0Dh=Enablesthe YCbCroutputdata,HSYNC,VSYNC/PALI,AVID,andFID/GLCO
I2Cregisteraddress04h=Autoswitchmaskregister
I2CdataC0h=UnmaskNTSC-4.43,PAL-N,andPAL-Mfrom the autoswitchprocess
I2Cregisteraddress0Dh=Outputsanddataratesselectregister
I2Cdata40h=Enables8-bit4:2:2YCbCrwithdiscretesyncoutput
5.2.1 Assumptions
Device:TVP5150AM1
Input connector:S-video(AIP1A (luminance),AIP1B(chrominance))
VideoFormat:NTSC(M, 4.43),PAL(B, G,H,I, M,N,Nc)orSECAM(B, D,G,K1,L)
Outputformat: 8-bit4:2:2YCbCrwithdiscretesyncoutputs
5.2.2 RecommendedSettings
Recommended I2C writes :This setup requires additional writesto output the discretesync 4:2:2data
outputs,the HSYNC,andthe VSYNC,andto autoswitchbetweenallvideoformats mentionedabove.
I2C registeraddress00h=Videoinput sourceselection#1register
I2Cdata01h=Selectsthe S-Videoinput, AIP1A(luminance),andAIP1B(chrominance)
I2Cregisteraddress03h=Miscellaneouscontrolsregisteraddress
I2Cdata0Dh=Enablesthe YCbCroutputdata,HSYNC,VSYNC/PALI,AVID,andFID/GLCO
I2Cregisteraddress04h=Autoswitchmaskregister
I2CdataC0h=UnmaskNTSC-4.43,PAL-N,andPAL-Mfrom the autoswitchprocess
I2Cregisteraddress0Dh=Outputsanddataratesselectregister
I2Cdata40h=Enables8-bit4:2:2YCbCrwithdiscretesyncoutput
//资料例子IICWRITE_ADDRSSDATA(0x03,0x0D);IICWRITE_ADDRSSDATA(0x04,0xC0); IICWRITE_ADDRSSDATA(0x0D,0x40);
附2、TFT屏配置(正确显示图像的配置,各方面调节还要继续调)
//weiqifa 周末调SPIWRITE_ADDRSSDATA(0x05,0x00); //把所有的寄存器都设置为默认状态 SPIWRITE_ADDRSSDATA(0x2B,0x01); //Standby (Power saving) mode control 模式选择 这一句一定要有 SPIWRITE_ADDRSSDATA(0x00,0x4B);SPIWRITE_ADDRSSDATA(0x04,0x88);