Hi,
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