6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 01, 2024 1:39 pm

All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Thu Jan 28, 2016 3:43 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8468
Location: Midwestern USA
Alamorobotics wrote:
I'm not sure why there are diodes on the IRQ for the W65C22, the schematics I copied had them so I threw them in there... :lol:
http://www.westerndesigncenter.com/wdc/Schematics/W65C816SXB.pdf
They should not cause me any problems since I don't plan to use the IRQ for now..

Any thoughts about the diodes ?

The W65C22S (note the S) has a totem-pole interrupt output, whereas many devices use an open collector output. On a wired-OR interrupt line, the diode will prevent one of the open collector devices from trying to sink the output of the W65C22S. This arrangement is not necessary if using the W65C22N, which has an open collector interrupt output.

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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 28, 2016 6:10 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Thanks Garth for the IRQ primer, nice work...

That explains the diode, the schematics uses a MMSD4148 and I picked the through hole version of it.
What would be a better choice for through hole diode ?


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 28, 2016 7:02 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8534
Location: Southern California
You're welcome. Actually, that's the IRQ/NMI connections page of the 22-chapter 6502 primer which is about building your own 6502 computer and is mostly hardware-oriented. My interrupts primer is separate, and is at http://wilsonminesco.com/6502interrupts/ .

As for a recommended diode in thru-hole: I checked Mouser's site for Schottky diodes hoping to find one in a DO-35 package like the common 1N4148 or 1N914 uses, but the only one they had listed turned out to not be Schottky, if you look at the data sheet. In the DO-41 package (like the 1N4001 uses), there's the 1N5817 which is usually used for switching power supplies, not logic, but it looks like it would work ok. Even at 20mA, its forward voltage is only about 100mV. Schottkys do have a lot of capacitance, and this one sits at close to 200pF but it should still work ok for this application since you don't need to switch as quickly as a logic gate does.

_________________
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: Sat Jan 30, 2016 8:24 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Thanks for the recommendation, I have finished the schematics and also update Github.
I replaced the diode in the schematic but kept the one on the prototype board.
https://github.com/alamorobotics/W65C81 ... d_VGA_SID/

I'm wrapping up the soldering and hope to be done tonight...


Attachments:
Schematics_03.png
Schematics_03.png [ 26.94 KiB | Viewed 927 times ]
Expansion_02.pdf [30.71 KiB]
Downloaded 55 times
Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 30, 2016 9:36 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Got it all done and tested, seem to work OK.
Lots of interference between the SID emulation and VGA, will look into it later... ;-)

Now for the fun part, programming...


Attachments:
Expansion_06.jpg
Expansion_06.jpg [ 3.56 MiB | Viewed 921 times ]
Expansion_07.jpg
Expansion_07.jpg [ 3.88 MiB | Viewed 921 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 05, 2016 12:27 am 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Made a little board to bolt everything down to and the keyboard...

Starting to look like a little computer... ;-)


Attachments:
Board.PNG
Board.PNG [ 125.46 KiB | Viewed 890 times ]
Expansion_08.jpg
Expansion_08.jpg [ 2.19 MiB | Viewed 890 times ]
Expansion_09.jpg
Expansion_09.jpg [ 2.24 MiB | Viewed 890 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 05, 2016 7:45 am 
Offline

Joined: Tue Dec 01, 2015 10:19 am
Posts: 11
Looks really nice :)

How did you do the board? 3d printer?

Doh, I sould have looked closer at the picture :) Saw the wood parts now!

/jan


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 05, 2016 6:59 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Howdy...

Yes, that is simply some cheap plywood from Home Depot.
I made a hobby CNC machine earlier and used it to cut the base for the Zeberpupin computer.

I call it Zeberpupin in honor of the Dilbert cartoon, http://dilbert.com/strip/2011-11-21


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 08, 2016 8:45 am 
Offline

Joined: Tue Dec 01, 2015 10:19 am
Posts: 11
Hehe good name :)

I am going to do as you did and connect an old c64 keyboard to my 65c02, will most probably look at your code to get some inspiration :)


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 16, 2016 4:59 pm 
Offline
User avatar

Joined: Thu Jun 23, 2011 2:12 am
Posts: 229
Location: Rancho Cucamonga, California
Interesting project, @Alamorobotics! Are you working on building a C64 replica or something?

You may want to modify your .gitignore file so that files that are generated by the compilers (.bin, .lst, .obj etc.) aren't added to source control. And you will want to delete the generated files that were already added of course.

Also, you should add two 10K pull-up resistors to the Propeller on P31 (RxD) and Reset. Without the pullup on Reset, when you unplug the Prop Plug, the Propeller will keep resetting randomly, and without the pullup on P31, the serial driver will keep getting framing errors which it doesn't handle correctly.

===Jac


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 17, 2016 3:29 am 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Thanks Jac.

I have updated the schematics on Github, just added the two pull up resistors...
At the same time, tidy up a little bit and removed old files...

I'm not making a Commodore 64 clone or anything, I just playing around with some hardware.
Since I had a couple of dead C=64s, I took a keyboard from one of them and decided to use it in my Expansion.
The Propeller was added to see if I could communicate with the W65C816, this seem to work fine with the extra W65C22s.

I've been looking into the VGA driver to see if I can add color per character and change the font to a C=64 font.
However, I'm lost in the Propeller VGA generation and have not been able to figure out how to change the driver...


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 19, 2016 3:39 am 
Offline
User avatar

Joined: Thu Jun 23, 2011 2:12 am
Posts: 229
Location: Rancho Cucamonga, California
Alamorobotics wrote:
I've been looking into the VGA driver to see if I can add color per character and change the font to a C=64 font.
However, I'm lost in the Propeller VGA generation and have not been able to figure out how to change the driver...


Given what you already have, you probably want to take a look at something like the AiGeneric driver.

===Jac


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 20, 2016 5:02 am 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
Thanks Jac...

I'm looking for VGA generation though.
I've actually written some rudimentary TV drivers on the Propeller, not as good as the AiGeneric but it gave me a good understanding of the NTSC standard.

I did find some Tile VGA drivers, maybe I should have a closer look at them.


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 20, 2016 5:12 pm 
Offline
User avatar

Joined: Thu Jun 23, 2011 2:12 am
Posts: 229
Location: Rancho Cucamonga, California
Alamorobotics wrote:
I'm looking for VGA generation though.


Oh whoops, I didn't pay attention to that, sorry.

I used the vga_hires_text driver in my projects previously because it supports inverse video in the same way as the 8 bit Commodores: set bit 7 of the character code to reverse background and foreground. Unfortunately, "out of the box", that driver only supports one background/foreground color setting per row, but it may be possible to change that, though you may not be able to run it at the highest resolution anymore if the code needs to retrieve color bytes for each character from the hub. But maybe it's possible to modify it so that it runs on more cogs: currently the code is written so that each cog alternately sets up its data and displays it; with 3 cogs there will be twice as much time to do the setup.

When I started on my Propeddle project, I did some experiments with vga_hires_text but I mostly ran it with the entire screen configured for green on black like the old PET computers. I created a font file based on a PETSCII font ROM dump from Zimmers. Click here for some pictures on my facebook page (use the left and right arrow to see more)

https://www.facebook.com/photo.php?fbid ... =3&theater

===Jac


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 20, 2016 11:52 pm 
Offline
User avatar

Joined: Fri Oct 30, 2015 9:49 pm
Posts: 54
Location: San Antonio, TX
That is looking great, do you happen to have the vga_hires_text with the PETSCII font ?

I think I'm getting too caught up in changing the VGA driver, I haven't done much of 65C02 coding lately.
Got to fresh up on my 6502 and then learn 65C816... ;-)


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

All times are UTC


Who is online

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