6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Sep 20, 2024 2:53 am

All times are UTC




Post new topic Reply to topic  [ 271 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 19  Next
Author Message
 Post subject:
PostPosted: Mon Mar 12, 2012 11:41 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
Ok, will try that tomorrow!

EDIT (3/13/2012): I can try this wednesday 3/14. Almost done the .b core... I can't stop until it's finished or I'll lose my train of thought.


Last edited by ElEctric_EyE on Tue Mar 13, 2012 6:26 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Mar 13, 2012 7:29 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
Arlet wrote:
In any case, I was planning to use RGB internally, and perform the RGB -> YUV conversion as the last step in the video pipeline. Switching between YUV and YCbCr is then just a matter of using different coefficients.

I've been giving this some more thought. Since the CS4954 accepts YUV data in 422 format, using RGB isn't really an efficient way to encode images. Storing images in native YUV422 format seems like a better way. It preserves maximum information in the least amount of space. YUV422 also matches well with the 16 bit wide SDRAM, each pixel requiring exactly 16 bits. The only annoying part is that there are alternating "YU" and "YV" pixels. This means that you can only place images on the screen in 2-pixel steps, but I think that's only a minor issue. If you're really desperate to move something by 1 pixel, you can always provide two different images.

Using this method, we need 216 Mbit/sec from the SDRAM during active display. If you include the horizontal blank/sync time, the average throughput is about 180Mbit/sec for full-color/high resolution. Since the SDRAM can easily run at 1600Mbit/sec, there's plenty of bandwidth.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 2:09 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
I'm digging out the C-64 composite monitor out of the garage. The wife will not be happy. :lol:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 6:13 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
It works! Sorry about the delay, had to run some errands then solder in the components...
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 6:50 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
Cool. Did you try to use the '+' and '-' on the USB port to move the picture sideways ? There should be a blue area on the left, and I'm curious if the color turned out okay.

Do the fine vertical lines really turn purple/blue on the screen, or is that an aliasing effect of the camera ?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 7:01 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
Arlet wrote:
Cool. Did you try to use the '+' and '-' on the USB port to move the picture sideways ? There should be a blue area on the left, and I'm curious if the color turned out okay.

Do the fine vertical lines really turn purple/blue on the screen, or is that an aliasing effect of the camera ?

I just tested this now after setting the baudrate to 115200. It scrolls to the right with the '+' key depressed revealing a blue screen sliding in from the left of the stripe pattern. And the pattern scrolls to the left with the '-' key depressed.
That's a real purple/bluish "meshed" type pattern.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 7:24 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
ElEctric_EyE wrote:
That's a real purple/bluish "meshed" type pattern.


This is what I get:
Image

I suppose your C-64 monitor has a few years on my TV set. Anyway, those fine bars have 360 pixel resolution, and the CS4954 can even go double that. It would take a fairly modern TV set to discern those pixels !

By the way, I've ordered a cheap USB composite video grabber. I should receive it this week. That way, I can test the image by just capturing it on my PC, and playing it in a small window on the desktop, rather than on a bulky TV set on my desk.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 7:34 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
Yeah it's old alright. C-64 hi-res was 320x200. HSync frequency low with pixel clock @14.318MHz...
The CS4954 has all the signals present necessary for an RGB display. I should have pursued that in V1.1 like I did V1.0. I'm thinking a 15-pin VGA-style connector should replace the S-video connector for V1.2 of the Devboard (it's a space hog though), while keeping the composite video connector onboard.


Last edited by ElEctric_EyE on Wed Mar 14, 2012 7:39 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 7:36 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
Do you know if a VGA monitor will sync on the NTSC/PAL signal ?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 8:21 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
Arlet wrote:
...By the way, I've ordered a cheap USB composite video grabber. I should receive it this week. That way, I can test the image by just capturing it on my PC, and playing it in a small window on the desktop, rather than on a bulky TV set on my desk.

Ah, sweet! I had been looking for small(<13"diagonal) TFT/LCD TV/monitors with 'composite-in', but way too expensive @$200+, especially when larger VGA 20"+ LCD monitors sell here for <$50. It's why I was pursuing VGA...
Where did you get it from?

Arlet wrote:
Do you know if a VGA monitor will sync on the NTSC/PAL signal ?

I don't know, but I was going to experiment.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 14, 2012 9:52 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
ElEctric_EyE wrote:
Where did you get it from?


I got it from Conrad, a German electronics retailer, but I'm sure they sell similar stuff in the US too. Look on Ebay for "USB video adapter" for example.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Mar 17, 2012 12:10 am 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
I found 1 for cheap @$14US. Great idea there! Good up to 720P resolution.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Mar 17, 2012 7:45 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
My USB video grabber has arrived. The nice thing is that it will do both PAL and NTSC, so I can test them both. Here's the same test image, grabbed in NTSC mode. The device also has an S-Video input, so if I install the connector on the board, I could use that for better quality.

Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Mar 17, 2012 3:38 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
By the way, don't expect too much resolution, especially not with the chroma part of the signal. For PAL the chroma bandwidth is 1.3 MHz, and for NTSC it is only 650 kHz. Because the pixel clock is 13,5 MHz, this means that it takes quite a few pixels for a color change.

I was playing around with a image consisting of constant luma, and single pixel lines where only chroma is changed. It's quite shocking to see how these lines turn into big blurry bars. When I change both luma and chroma in a single pixel, the big blurry chroma pixels are still there, but they aren't nearly as obvious anymore. That's why in a normal TV program, you don't really notice how poor the quality is.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Mar 17, 2012 6:37 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
What kind of resolution are we talking about? Hopefully at least 320x200...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 271 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14 ... 19  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: