前端是TVP5154,后端是SAA7105,采集和显示代码如下:
/* loop forever performing video capture and display */
while (status == 0) {
/* grab a fresh video input frame */
if(IOM_COMPLETED != FVID_exchange(capChan, &frameBuffPtr))
{ return;
}
/* display the video frame */
if(IOM_COMPLETED != FVID_exchange(disChan, &frameBuffPtr)) —————————在此处设置断点
{
return;
}
}
设置断点后,根据frameBuffPtr的数据,在CCS中用view->graph->image画图,图片如下:
继续执行后,最终在屏幕上图像为:
参数设置都是按照TI的例程来的,如下:
#if (CFG_VIDEO_MODE == MODE_PAL)
/* Vport Capture driver configuration.Using embedded sync */
static VPORTCAP_Params vCapParamsChan = CAP_PARAMS_CHAN_BT656_DEFAULT(PAL);
/* TVP5154 EDC driver configuration.Using embedded sync and Composite Analog Channel A for all 8 decoders */
static TVP5154_ConfParams vCapParamsDecoder = CAP_PARAMS_TVP5154_EMBEDDED_DEFAULT(PAL, COMPOSITE_A);
/* Vport Display driver configuration.Using embedded sync */
static VPORTDIS_Params vDisParamsChan = DIS_PARAMS_CHAN_BT656_DEFAULT(PAL);
/* SAA7105 EDC driver configuration.Using Svideo Analog output */
static SAA7105_ConfParams vDisParamsEncoder = DIS_PARAMS_SAA7105_SDTV_EMBEDDED_DEFAULT(PAL720, COMPOSITE);
#endif
SAA7105周边硬件电路基本没啥问题,求高手指导~~~~~~~~~~~~~~~~~~~~~~
Chris Meng:
Pu Jun,
TI DM648 EVM对于SAA7105的使用如下,是做了图像的缩放的。请问在你的硬件上SAA7105是直接和VP口连的对么?如果是,SAA7105的相关配置是否有做调整?
http://focus.ti.com/en/pdfs/dsp/dm648evm_trg.pdf
27.Standard-definition video encoderPhilips SAA7105H. The SAA7105H is an advanced video encoder that converts 1280 × 1024 resolution digital video data to PAL (50 Hz) or NTSC (60 Hz) video signals. See “2.2.3 Standard-definition video encoder” for details.
jun pu:
回复 Chris Meng:
硬件上648的输出口VP1是直接与SAA7105相连的.SAA7105的配置没有做过调整。不知道如何进行调整,请求指导,谢谢
Chris Meng:
回复 jun pu:
Pu Jun,
请阅读一下SAA7105的相关文档,看看当前配置和实际的应用场景是否一致,包括缩放配置,输入是内嵌同步还是外同步等。