Texas Instruments TMS320DM648 Computer Drive User Manual


 
www.ti.com
4.11DisplayingVideoinRawDataMode
DisplayingVideoinRawDataMode
22.Waitfor2ormoreframetimes,toallowthedisplaycountersandcontrolsignalstobecomeproperly
synchronized.
23.WritetoVDCTLtocleartheBLKDISbit.
24.DisplayisenabledatthestartofthefirstframeafterBLKDIS=0andbeginswiththefirstselected
field.EDMAeventsaregeneratedastriggeredbyVDTHRLDandtheDEVTCTcounter.Whena
selectedfieldhasbeendisplayed(FLCOUNT=FRMHEIGHTandFPCOUNT=FRMWIDTH),the
appropriateF1D,F2D,orFRMDbitsaresetandcausetheDCMPbitinVPIStobeset.Thisgenerates
aDSPinterrupt,iftheDCMPbitisenabledinVPIE.
25.Ifcontinuousdisplayisenabled,thevideoportbeginsdisplayingagainatthestartofthenextfieldor
frame.Ifnoncontinuousfield1andfield2orframedisplayisenabled,thenextfieldorframeis
displayed,duringwhichtheDSPmustcleartheappropriatecompletionstatusbitoraDCNAinterrupt
occursandincorrectdatamaybeoutput.
Inordertodisplayvideointherawdatamode,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.Settheverticalblankingstartforfield1inVDVBLKS1.Specifytheframeline(VBLNKYSTART1)and
framepixelcounter(VBLNKXSTART1)valuesforthepixelwhereverticalblankingstartsforfield1.
7.Settheverticalblankingendforfield1inVDVBLKE1.Specifytheframeline(VBLNKYSTOP1)and
framepixelcounter(VBLNKXSTOP1)valuesforthepixelwhereverticalblankingendsforfield1.
8.SetVDIMGSZn.AdjustthedisplayedimagesizebysettingtheHSIZEandVSIZEbits.
9.SetVDIMOFF.Adjustthedisplayedimageoffsetwithintheactivevideoarea(bysettingHOFFSET
andVOFFSET).
10.Settheverticalblankingstartforfield2inVDVBLKS2.Specifytheframeline(VBLNKYSTART2)and
framepixelcounter(VBLNKXSTART2)valuesforthepixelwhereverticalblankingstartsforfield2.
11.Settheverticalblankingendforfield2inVDVBLKE2.Specifytheframeline(VBLNKYSTOP2)and
framepixelcounter(VBLNKXSTOP2)valuesforthepixelwhereverticalblankingendsforfield2.
12.Settheverticalsynchronizationstartforfield1inVDVSYNS1.Specifytheframeline
(VSYNCYSTART1)andframepixelcounter(VSYNCXSTART1)valuesforthepixelwherevertical
synchronizationstartsforfield1.
13.Settheverticalsynchronizationendforfield1inVDVSYNE1.Specifytheframeline
(VSYNCYSTOP1)andframepixelcounter(VSYNCXSTOP1)valuesforthepixelwherevertical
synchronizationendsforfield1.
14.Settheverticalsynchronizationstartforfield2inVDVSYNS2.Specifytheframeline
(VSYNCYSTART2)andframepixelcounter(VSYNCXSTART2)valuesforthepixelwherevertical
synchronizationstartsforfield2.
15.Settheverticalsynchronizationendforfield2inVDVSYNE2.Specifytheframeline
(VSYNCYSTOP2)andframepixelcounter(VSYNCXSTOP2)valuesforthepixelwherevertical
synchronizationendsforfield2.
16.SetthehorizontalsynchronizationinVDHSYNC.Specifytheframepixelcountervalueforapixel
whereHSYNCgetsasserted(HSYNCYSTART)andwidthoftheHSYNCpulse(HSYNCSTOP)in
framepixelclocks.
17.Setthevideodisplayfield2timing.Specifythefirstlineandpixeloffield2inVDFLDT2.
18.ConfigureaEDMAtomovedatafromtableintheDSPmemorytoYDSTA(memory-mappeddisplay
FIFO).ThetransfersshouldbetriggeredbytheYEVT.
19.SetDISPEVT1andDISPEVT2bitsinVDDISPEVT.Eventcountistotaldoublewordsperfielddivided
120VideoDisplayPortSPRUEM1May2007
SubmitDocumentationFeedback