6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 4:36 am

All times are UTC




Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Mon Sep 22, 2014 9:28 am 
Offline

Joined: Mon Sep 22, 2014 9:02 am
Posts: 8
Location: Germany
Hello everybody !! I'm new to this forum !!

I'm currently building a rather simple 6502 based-homebrew computer. I luckyly found some very interesting information on the internet and this site. I'm very thankfull for all these informations !

So far I had a 6502, ROM, RAM, 6522, a small 16-keys input with a 2x12 lcd display all working on a breadboard, and currently trying to solder it all on a pcb (so at this precise moment it is not working).

NOW for my VIDEO related question:
In future, I really would like to have composite signal out, just like the old style homecomputers in the beginning 80s. (I'm thinking of our good Apple ][ I still own).
And the most important thing is: I would't like to use PIC. AtMega or similar, because I don't want to get into programming of these devices.
6502 Eprom programming is already difficult enough for me - but I got to manage it.

In the 80s there were some chips around which were called VIC or similar and basically did the job. But which one should I use ? Can I still get one of these today ? Maybe a modern version which is somehow compatible ? Where do I get ?

I'm always thinking of an Apple ][. For me a single chip-solution with a 40x23 fixed character set, optionally a lo-res graphic output, own video-RAM would be wonderful to use.

Can you please please help me ?

Greetings from Germany,
vespacla


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 22, 2014 9:52 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
Welcome!

Those ICs are no longer made AFAIK, and they were never made for very high clock rates either; but I know there's info out there on doing your own video. A place I would start researching it is this page of one of our own prominent members, Jeff Laughton (forum name Dr Jefyll). See also the bottom of my page on displays in the 6502 primer.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 22, 2014 1:35 pm 
Offline

Joined: Wed May 20, 2009 1:06 pm
Posts: 491
There are some solutions for video because there are prebuilt video projects from other vendors like the Gameduino, Mod-VGA, the Ascii Video project, the propeller, VGA output on an STM32 Cortex M3, FTDI's Embedded Video Engine (Eve) chip which the Gameduino II is based off of, and uVGA II. There are websites that explain video signals and if you want to make a more powerful graphics engine, you can look on Mouser for Multimedia I.C.'s.

http://geoffg.net/terminal.html
http://www.4dsystems.com.au/prod.php?id=149

There are other people working in this field like the FPGA arcade and Natami team. I'm not sure if we are going to see anything from them or not.

One of the projects I am watching is this one:

An FPGA sprite graphics accelerator with a 180MHz STM32F429 controller and 640 x 360 LCD
http://andybrown.me.uk/wk/2014/06/01/ase/


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 22, 2014 1:39 pm 
Offline

Joined: Wed May 20, 2009 1:06 pm
Posts: 491
There are also some TTL video projects on Kickstarter and Hackaday which are impressive but nothing I would tinker with.


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 22, 2014 4:33 pm 
Offline
User avatar

Joined: Mon Dec 08, 2008 6:32 pm
Posts: 143
Location: Brighton, England
The simplist chip to add to a 6502 system to generate composite video (NTSC format) is the Motorola 6847. It is no longer available new, but is not difficult to get on ebay. The chip can generate a 32x16 text and block-graphic mode and 8 different lo-res graphics modes (4 in 2 colour, 4 in 4 colour.)

The simplist circuit for using this device requires an 8k RAM, a 74HC245, 2 74HC541 and 2 general purpose transistors (eg BC548 or 2N2222). This gives a monochrome output, which works well on a monochrome monitor but turns into a mess on a colour monitor because the pixel clock is at the same frequency as the colour subcarrier.

Once you have got it working, you can easily add colour encoding to give a colour output, however, the colour signal on a colour monitor is not as clear as the monochrome signal on a monochrome monitor.

See this thread http://forum.6502.org/viewtopic.php?f=4&t=1909 for a previous discussion of this device. If you want to use this device, I suggest you search for the Acorn Atom schematic. The Acorn Atom used a 6502 & 6847 and the schematic shows exactly how to connect the two together.

_________________
Shift to the left,
Shift to the right,
Mask in, Mask Out,
BYTE! BYTE! BYTE!


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 22, 2014 4:43 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
Great link Paul. I rechecked to see if the website I had found in that thread was still selling a 6845 and they are. This is a great IC for graphics only. If one need character generation then a suitably fast character ROM would have to be part of the design and a shift register.... I got into this stuff many years ago, it is very rewarding endeavor! I had used a 6845 and SND8002 with some discrete static RAMs.

I've seen a single chip lo-res board out there utilizing a PIC and custom board, but it outputs through a VGA connector.

_________________
65Org16:https://github.com/ElEctric-EyE/verilog-6502


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 22, 2014 5:09 pm 
Offline

Joined: Mon Aug 05, 2013 10:43 pm
Posts: 258
Location: Southampton, UK
I've had good results from the V9958. It can do 80 column text, which is what attracted me to it. It also has some decent graphical modes. Can be had for not much on eBay. One downside is it is a shrink DIP part, with 70mil spacing on the pins. Check out my blog for more info and a schematic. I'm using a 6809 but that's just a detail.

_________________
8 bit fun and games: https://www.aslak.net/


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 22, 2014 7:20 pm 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 491
Location: Switzerland
Except if you are really nostalgic and have a lot of real estate on a PCB I would suggest that you look into other solutions even if they involve programming a AVR or Microchip MCU. Arduino and Pinguino are good entry points for this. Building a Video Adapter with "discrete" logic using address multiplexors, character ROM, glue logic and a CRTC isn't easy either. Those AVR and PIC based VGA Terminals are really handy, small and cheap if a serial terminal is all you need. If you want memory mapped video than I suggest using a DP-RAM and a MCU. Believe me or not, programming a MCU is easier than programming a EPROM. Just make sure you start with a genuine programmer and not a cheap homebrew version. A AVR ISP MKII or a Pickit3 is only about 50 USD but they are supported by all tools and they work (and they are USB based). A ATMega for example is cheap and fast enough to output a composite signal and it has enough Flash to include the CGROM. With a little overclocking and a Parallel-to-Seriel Shifter (74HC166) you can even create a VGA signal. VGA has the advantage that you can connect LCD screens, in my case the only thing I have, I have no composite input device.

Cheers

Peter


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 24, 2014 5:04 pm 
Offline

Joined: Mon Sep 22, 2014 9:02 am
Posts: 8
Location: Germany
Hello friends,

thank you very much for all your precious help and advice !!

I've found a 6561. To be honest I'm not sure if I should be happy or not. I must have pulled it out from a VIC20 maybe 25 years ago but didn't remember that. I have read the datasheet - argh... Anyway it will take me a while even to test if it somehow works or not. I'll keep your ideas in mind !


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 24, 2014 11:21 pm 
Offline

Joined: Wed May 20, 2009 1:06 pm
Posts: 491
I have never used the vic chip but I heard they are very sensitive to static electricity so you might want to buy two more.


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 25, 2014 5:17 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
ChuckT wrote:
I have never used the vic chip but I heard they are very sensitive to static electricity so you might want to buy two more.

That, and the 6561 only generates 22 characters per line in text mode.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 25, 2014 5:58 am 
Offline

Joined: Wed Sep 11, 2013 8:43 pm
Posts: 207
Location: The Netherlands
Quote:
In future, I really would like to have composite signal out, just like the old style homecomputers in the beginning 80s. (I'm thinking of our good Apple ][ I still own).
And the most important thing is: I would't like to use PIC. AtMega or similar, because I don't want to get into programming of these devices.


If you look at the schematics of the VIC-20, you can see that the VIC needs a rather delicate timing. However, I'm a beginner and wouldn't want to use the VIC as a first choice. Like aslak3, I'd recommend the Yamaha V9958, used in the MSX2+. It's backward compatible to the Yamaha V9938 (MSX2) and Texas Instruments TMS9918 (MSX). It has a much simpler interface and separate video ram. I think the chance of success is much higher. It's almost as interfacing a 6522. It has RGB out, 15kHz SCART TV. With an AD724 you could convert it to s-video / composite.

http://en.wikipedia.org/wiki/Texas_Instruments_TMS9918
http://en.wikipedia.org/wiki/Yamaha_V9938
http://en.wikipedia.org/wiki/Yamaha_V9958

The Yamaha V9958 would be your best choice of those three and available on eBay:
http://www.ebay.de/sch/i.html?_odkw=VC+ ... acat=11189

_________________
Marco


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 25, 2014 3:42 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
lordbubsy wrote:
If you look at the schematics of the VIC-20, you can see that the VIC needs a rather delicate timing.

You're right about that. All of the Commodore video devices were digital houses of cards and in the case of the VICs, didn't produce enough characters per line. Plus the VICs had no intelligence whatsoever, requiring that the MPU do all of the work of managing display and color RAM.

The VDC (8563 or 8568, the latter being the better of the two) could be considered, as it does have some intelligence. However, the VDC tends to be very pricey when found, and have do their own programming demons.

In my opinion, none of the Commodore video devices were very good. Better I think to look elsewhere for video.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 27, 2014 8:37 am 
Offline
User avatar

Joined: Fri Oct 31, 2003 10:00 pm
Posts: 200
lordbubsy wrote:

The Yamaha V9958 would be your best choice of those three and available on eBay:
http://www.ebay.de/sch/i.html?_odkw=VC+ ... acat=11189


I agree, the 99x8 IC's are nice video IC's, by isolating video from the cpu. All interfacing goes through a limited number of I/O ports. That makes it in theory slow because that limits the bandwidth. But as the many MSX demo's show (Z80 4 MHz) it can do nice things.

ebay.com is a better source, enough offers from China, including the reliable utsource shop.

Note that the V9958 requires a not so common 64 pin IC socket!


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 27, 2014 5:27 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
HansO wrote:
All interfacing goes through a limited number of I/O ports. That makes it in theory slow because that limits the bandwidth. But as the many MSX demo's show (Z80 4 MHz) it can do nice things.

Same principle as Commodore's VDC, but better-executed in the V9958. The latter is much more efficient in rapidly moving video RAM around, which simplifies tasks such as scrolling and clearing the screen.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 46 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: