Texas Instruments TMS320DM648 Computer Drive User Manual


 
www.ti.com
4.10DisplayingVideoinBT.656orY/CMode
DisplayingVideoinBT.656orY/CMode
InordertodisplayvideointheBT.656orY/Cformat,thefollowingstepsareneeded:
1.TousethedesiredVideoPort,programthePinMuxRegister(PINMUX)appropriatelytoensurethat
themultiplexedpinsworkasVideoPortPins.Refertothedevice-specificdatamanualfordetailsabout
PINMUXregister.
2.ProgramtheVPx_CTLRegisterappropriatelytousethedesiredVideoPortasaDisplayPort.
3.SetthePERENbitinthevideoportperipheralcontrolregister(PCR).
4.SettheframesizeinVDFRMSZ.Setthenumberoflinesperframe(FRMHIGHT)andthenumberof
pixelsperline(FRMWIDTH).
5.SetthehorizontalblankinginVDHBLNK.Specifytheframepixelcountervaluewherehorizontal
blankingstarts(HBLNKSTART)andpixellocationwherehorizontalblankingstops(HBLNKSTOP).
6.SettheVbittimingforfield1inVDVBIT1.SpecifythelinewheretheVbitisset(VBITSET1)andthe
linewheretheVbitiscleared(VBITCLR1).
7.IfexternalVBLNKsignalisneeded,settheVBLNKstartforfield1inVDVBLKS1.Specifytheframe
line(VBLNKYSTART1)andframepixelcounter(VBLNKXSTART1)valuesforthepixelwhereVBLNK
goesactiveforfield1.SettheVBLNKendforfield1inVDVBLKE1.Specifytheframeline
(VBLNKYSTOP1)andframepixelcounter(VBLNKXSTOP1)valuesforthepixelwhereVBLNKgoes
inactiveforfield1.
8.SettheVbittimingforfield2inVDVBIT2.SpecifythelinewheretheVbitisset(VBITSET2)andthe
linewheretheVbitiscleared(VBITCLR2).
9.IfexternalVBLNKsignalisneeded,settheVBLNKstartforfield2inVDVBLKS2.Specifytheframe
line(VBLNKYSTART2)andframepixelcounter(VBLNKXSTART2)valuesforthepixelwhereVBLNK
goesactiveforfield2.SettheVBLNKendforfield2inVDVBLKE2.Specifytheframeline
(VBLNKYSTOP2)andframepixelcounter(VBLNKXSTOP2)valuesforthepixelwhereVBLNKgoes
inactiveforfield2.
10.SetVDIMGSZn.AdjustthedisplayedimagesizebysettingtheHSIZEandVSIZEbits.
11.SetVDIMOFF.Adjustthedisplayedimageoffsetwithintheactivevideoarea(bysettingHOFFSET
andVOFFSET).
12.SettheFbittiminginVDFBIT.SpecifythelinewheretheFbitiscleared(FBITCLR)andtheline
wheretheFbitisset(FBITSET).
13.IfexternalFLDoutputisrequired,setthevideodisplayfield1timing.Specifythelineandpixelwhere
FLDgoesinactive(VDFLDT1).Setthevideodisplayfield2timing.Specifythelineandpixelwhere
FLDgoesactive(VDFLDT2).
14.SetVDCLIP.Defaultvaluesforvideoclippingare16forthelowerclipping,235forthehigherclipping
oftheYvalues,and240forthehigherclippingoftheCbandCrvalues.
15.ConfigureanEDMAtomovedatafromtheYbufferintheDSPmemorytoYDSTA(memory-mapped
YdisplayFIFO).ThetransfersshouldbetriggeredbytheYEVT.
16.ConfigureanEDMAtomovedatafromtheCbbufferintheDSPmemorytoCBDST
(memory-mappedCbdisplayFIFO).ThetransfersshouldbetriggeredbytheCbEVT.Thesizeofthe
transfersshouldbesetto1/2theYtransfersize.
17.ConfigureanEDMAtomovedatafromtheCrbufferintheDSPmemorytoCRDST(memory-mapped
CrdisplayFIFO).ThetransfersshouldbetriggeredbytheCrEVT.Thesizeofthetransfersshouldbe
setto1/2theYtransfersize.
18.SetDISPEVT1andDISPEVT2bitsinVDDISPEVT.Eventcountistotaldoublewordsperfielddivided
bytotaldoublewordsperYEDMAtransfersize.
19.WritetoVPIEtoenableunder-run(DUND)anddisplaycomplete(DCMP)interrupts,ifdesired.
20.WritetoVDTHRLDtosetthedisplayFIFOthreshold(VDTHRLDbits).
21.WritetoVDCTLto:
Setdisplaymode(DMODE=00xforBT.656output,10xforY/Coutput).
Setdesiredfield/frameoperation(CON,FRAME,DF1,DF2bits).
Selectcontroloutputs(VCTL1S,VCTL2S,VCTL3Sbits)orexternalsyncinputs(HXS,VXS,FXS
bits).
Enablescaling(SCALEandRESMPLbits),ifdesiredandin8-bitmode.
SetVDENbittoenablethedisplay.
SPRUEM1May2007VideoDisplayPort119
SubmitDocumentationFeedback