Part Number: TMS320DM6437
Tool/software: Code Composer Studio
I am trying to generate colorbar on monitor using internal encoder of dm6437 but its not working.
can you suggest me something and the code which i am writing is below :
uint32_t video_buffer = DDR_BASE + ( DDR_SIZE / 2 );
uint32_t basep_x; uint32_t basep_y; uint32_t width; uint32_t height;
basep_x = 0x84; // 132 basep_y = 0x16; // 22 width = 720; height = 480;
/* Setup VPBE */ VPSS_CLK_CTRL = 0x00000018; // Enable DAC and VENC clock, both at 27 MHz VPBE_PCR = 0; // No clock div, clock enable
/* Setup OSD */ VPBE_OSD_MODE = 0x000000fD; // Background color blue using clut in ROM0 VPBE_OSD_OSDWIN0MD = 0; // Disable both osd windows and cursor window VPBE_OSD_OSDWIN1MD = 0; VPBE_OSD_RECTCUR = 0; //rectangular cursor OFF
VPBE_OSD_VIDWIN0OFST = width >> 4; VPBE_OSD_VIDWIN0ADR = video_buffer; VPBE_OSD_BASEPX = basep_x; VPBE_OSD_BASEPY = basep_y; VPBE_OSD_VIDWIN0XP = 0; VPBE_OSD_VIDWIN0YP = 0; VPBE_OSD_VIDWIN0XL = width; //hprizontal display width VPBE_OSD_VIDWIN0YL = height >> 1; //lines per field VPBE_OSD_MISCCTL = 0;
VPBE_OSD_VIDWINMD = 0x00000003; // Disable vwindow 1 and enable vwindow 0, Frame mode with no up-scaling
/* Setup VENC */ VPBE_VENC_VMOD = 0x00000043; // Standard PAL interlaced output
VPBE_VENC_VDPRO = colorbar_loopback_mode << 8; //internal color bar generator VPBE_VENC_DACTST = 0; //DAC[3:0] in normal mode VPBE_VENC_DACSEL = 0x00000000; //output is CVBS
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.