--- Quote Start ---
I have exactly the same problem. I cannot modify any setting. The difference is that I go with PAL / interlaced 720x576. I have tried this:
IOWR(VOUT_BASE, 41 , 0); // mode-2 invalid
IOWR(VOUT_BASE, 23 , 1); // interlaced 4
IOWR(VOUT_BASE, 24 , 720); // F0 width 5
IOWR(VOUT_BASE, 25 , 288); // F0 height 6
IOWR(VOUT_BASE, 26 , 720); // F1 width 7
IOWR(VOUT_BASE, 27 , 288); // F1 height 8
IOWR(VOUT_BASE, 30 ,144); // HORIZONTAL BLANK 11
IOWR(VOUT_BASE, 33 , 2); // F1 vertical blank in lines 14
IOWR(VOUT_BASE, 36 , 24); // F0 vertical blank in lines 17 ??????
IOWR(VOUT_BASE, 37 , 23); // first active line 18
IOWR(VOUT_BASE, 38 , 311); // VBI rising edge line in F0 19 ?????
IOWR(VOUT_BASE, 39 , 313); // F1 rising edge line# 20
IOWR(VOUT_BASE, 40 , 0); // F1 falling edge line# 21
VO->stop(false);
// stop(VOUT_BASE,1);
IOWR(VOUT_BASE, 22 , 0); // mode-1 invalid
IOWR(VOUT_BASE, 41 , 1); // mode-2 valid
VO->start();
// start(VOUT_BASE);
No luck, nothing happens, the picture on the output is broken. It looks like some syncron problem I have.
When I try to ask what are the current settings, I get a lot '1':
interlaced: 1
active_picture_width: 1
active_picture_height: 1
active_picture_width_f1: 1
active_picture_height_f1: 1
horizontal_front_porch: 1
horizontal_sync: 1
horizontal_blanking: 1
vertical_front_porch: 1
vertical_sync: 1
vertical_blanking: 1
vertical_front_porch_f0: 1
veritcal_sync_f0: 1
veritcal_blanking_f0: 1
active_picture_line: 1
vertical_blank_rising_edge: 1
field_rising_edge_line: 1
valid: 1
It does not matter which mode I try to reach. Even if I dump the whole memory around that address, I get only ones. IMHO this is again some part from Altera what is not documented well at all.
Any help?
--- Quote End ---
Hi,
i think, you haven't specified all the parameters.
address 28 - horizontal front porch
address 29 - horizontal sync
address 30 - horizontal blank
and for the vertical parameters, you haven't configured for register 34, 35, 36 , which are specially for interlaced video.
Also, picture is broken as in what ? do you get the video ??
is it that the start of video is not aligned with the screen ? you can adjust it in the TV encoder chip by adjusting registers for start of active video, horizontal position register, vertical position registers.