6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 3:23 am

All times are UTC




Post new topic Reply to topic  [ 803 posts ]  Go to page Previous  1 ... 20, 21, 22, 23, 24, 25, 26 ... 54  Next
Author Message
PostPosted: Mon Nov 30, 2015 2:26 am 
Offline
User avatar

Joined: Sun Oct 18, 2015 11:02 pm
Posts: 428
Location: Toronto, ON
Oneironaut wrote:
While putting up walls this afternoon, I had another revelation (crazy thought) on where this project will go next.
Once the current system is redone on the hand wired board, I will then make my own CPU on the 2 giant breadboards.
This will make Vulcan 100% made of 7400 logic components, and require no external CPU at all!

Love it. This confirms the common and probably incurable condition where one is always thinking about the next crazy step ... and being squarely in the middle of one already is no deterrent at all. :)

Can't wait to add video and sound to my TTL CPU when it's done :mrgreen:

Cheers,
Drass.

_________________
C74-6502 Website: https://c74project.com


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 07, 2015 4:45 pm 
Offline
User avatar

Joined: Mon May 25, 2015 2:25 pm
Posts: 672
Location: Gillies, Ontario, Canada
Greets 8 Bit Freaks!

Climate Change has been good to us out here in the remote Northern Hills of Gillies Ontario, so my time has been spent outdoors working on projects like a Chicken Coop, Gardening Shed, Yard Robot, etc.

When things freeze over again, I will give Vulcan-74 some more attention, as it is so close to having sound now...

Image
Vulcan-74 Awaits the next batch of wires!

https://youtu.be/fuJz3ERi8Kg




In order to keep my mind sharp (or crazy), I took on of my more "portable" projects and took it to the next level.
Imagine a Processor with 512 Bytes of RAM Bit-Banging 170x240 VGA with 8 Colors!...

Image
https://www.youtube.com/watch?v=rmx-2fTxsns

One day I will do this same thing directly from a 6502, just to see how far it can be pushed.

Anyhow, I am itching to get back to my Vulcan project, and can't imagine it will be +5 out here for much longer!
Typically, -20 to -40 would be the normal hell around here.

Cheers,
Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 07, 2015 8:11 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
Oneironaut wrote:
Climate Change has been good to us out here in the remote Northern Hills of Gillies Ontario, so my time has been spent outdoors working on projects like a Chicken Coop, Gardening Shed, Yard Robot, etc.

Hmm...that yard robot sounds interesting. Could use such a contraption around here. Can it be trained to remove snow from driveways? :D

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


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 08, 2015 4:43 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
With just a ATiny, this is awesome...

So VGA from a 6502 is your next challenge ?
Is that even possible ?


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 08, 2015 4:45 pm 
Offline

Joined: Fri Nov 27, 2015 10:09 am
Posts: 67
You can do VGA on fairly slow CPUs, it's just that the resolution will be very low and the timing somewhat out of spec.


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 08, 2015 5:02 pm 
Offline
User avatar

Joined: Mon May 25, 2015 2:25 pm
Posts: 672
Location: Gillies, Ontario, Canada
mojo wrote:
You can do VGA on fairly slow CPUs, it's just that the resolution will be very low and the timing somewhat out of spec.


Oh yes, you can do it!
Resolution is only limited to how fast you can count address to whatever display RAM being used.
AVR can do "INC, OUT" over and over, so CLK/2 is possible. At 25MHz, 320x480 VGA is easy.

None of my VGA drivers are out of spec... not even a single cycle out!
I follow the VGA standard to the exact cycle every time.
Dividing the horizontal line does not throw out timing, it just reduces resolution.

For instance, putting out 213x480 or 213x240 over the 640x480 60Hz standard, you can do...

HPX : 640 / 3 = 213 Pixels per line
HFP : 16
HSP : 96
HBP : 48

Total cycles per line = 800

This conforms to the standard EXACTLY.
Since I count every cycle, and de-jitter my interrupts, not a single cycle is unaccounted for.

You could however, deviate from the standards quite a bit and still get an image on most monitors.
I chose to follow the standard precisely, as it makes it more challenging.

Cheers,
Brad


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 08, 2015 5:28 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
A few years old, but still impressive VGA+sound Craft demo for small atmel micro.

And a similar one generating PAL composite video: https://www.youtube.com/watch?v=sFCxV5PsusQ


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 08, 2015 11:28 pm 
Offline

Joined: Sun Aug 30, 2015 10:23 pm
Posts: 36
Cheap Video Cookbook details how to do CPU driven video from a 6502/6800 type CPU.

But it's really low resolution.


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 09, 2015 12:21 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
porcupine wrote:
Cheap Video Cookbook details how to do CPU driven video from a 6502/6800 type CPU.

But it's really low resolution.
The "low res" rating was true at the time the book was written, back when 1 MHz CPUs were the norm. But Cheap Video can fetch and shift out one byte per CPU cycle, regardless of clock speed. So, a modern 65xx cheap video system can fetch and output 14 MB/s. Interpreted as monochrome (1 bit per pixel) that's 112 megapixels per second.

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 09, 2015 1:17 am 
Offline

Joined: Sun Aug 30, 2015 10:23 pm
Posts: 36
What I don't get about the Cheap Video Cookbook technique (I just got this book, after reading through this thread, still digesting) is that during video output it's basically just using the MPU as a counter -- kludging the PC to be a simple 16-bit counter. Why not just use a couple chained 74 series counters? Back then was it really that much cheaper to use the processor than just throwing a couple of counters in, given he already has a shifter in there?

I don't actually find the exposition in the book that clear, but it sure is nifty.


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 09, 2015 8:27 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
porcupine wrote:
during video output it's basically just using the MPU as a counter -- kludging the PC to be a simple 16-bit counter
That's right. And you're also right in saying 74 series chips could do the same thing -- for example, four 74_163 could do the counting. But if you go the discrete counter route then RAM ends up with two sources (the counter array & the 6502) which need to connect to its address inputs. You'd need something (four 74_257, for example) to make that selection.

Quote:
I don't actually find the exposition in the book that clear
I offer a fairly short-but-sweet description here. BTW the Z80-based Timex/Sinclair ZX81 uses a variation of Cheap Video! The trick isn't restricted to 6800/6500. As long as your CPU has a PC and external address lines... :)

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Last edited by Dr Jefyll on Wed Dec 09, 2015 8:51 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 09, 2015 8:50 am 
Offline

Joined: Fri Nov 27, 2015 10:09 am
Posts: 67
Yeah, I was thinking about ~1MHz or so. One nice trick is to use the SPI or USART to shift bits out. Okay, it's only going to be black and white, but you can do some fairly good resolution text terminal type stuff and don't need much RAM because you have plenty of cycles to fetch tiles from progmem.

The Sinclair ZX81 is legendary. Incredibly cheap at the time, and the screen flickered whenever you pressed a key, but at the time it was the first affordable home computer. Using the CPU to generate video was a good compromise, even if it did make you blink a lot.


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 09, 2015 9:02 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
mojo wrote:
even if it did make you blink a lot.
Only if you touch type. Hunt-and-peck typists like me don't watch the screen during the blink, and therefore aren't bothered! :D Maybe that's why I built three cheap-video computers. It is a good compromise. And, with some extra effort, the blink could be eliminated by managing keystrokes during the vertical blanking interval. (The challenge is to still be exactly on time when the following frame begins.)

Apologies to Brad. We're OT. Looks like maybe we need a Cheap Video thread.

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 09, 2015 12:58 pm 
Offline

Joined: Sun Aug 30, 2015 10:23 pm
Posts: 36
It's too bad chips like this: http://www.ebay.ca/itm/8-uPD41264C-DUAL ... 1594789095 aren't in active production anymore.

Regular DRAM access by the CPU on one side, and simultaneous serial output on another. (http://www.datasheet-pdf.com/datasheet- ... s.pdf.html)


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 09, 2015 1:11 pm 
Offline

Joined: Fri Nov 27, 2015 10:09 am
Posts: 67
They used to make them with a video DAC built in too. I was thinking about making something like that as an FPGA project, but of course that is way OT for this place!

Well, having said that, I think re-implementing 80s style graphics hardware on an FPGA is fascinating, and not that dissimilar to how the ASICs used back then would have been designed anyway. It's just that now anyone can make a custom chip thanks to FPGAs, without needing to make custom silicon. The important part for me is the way the screen is built, the implementation of a blitter etc. being 80s style.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 803 posts ]  Go to page Previous  1 ... 20, 21, 22, 23, 24, 25, 26 ... 54  Next

All times are UTC


Who is online

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