Thursday, August 16, 2012

See my nice TV!

Today I got a nice small 4.3" Video-TFT with PAL and NTSC Support. Of course,  I had to try it out right away :)

Btw: The SID-Emulation is now on the FPGA, not an 'external' SwinSID anymore. Sorry for the bad quality, but that's all my smartphone has to offer!


The Demo is Dawnfall by Oxyron - but you know this anyways....

Friday, July 20, 2012

FPGA meets Arduino - Part 2


After a long break I did some major updates again on my C64 on an FPGA.

First, I mounted all the parts on a wooden board, so shortcuts and broken connections should not bother anymore.

Top Left: FPGA with the C64
Top Middle: AD725 Breakout with a Lowpass-Filter for the Sound
Top Right: AV-Out
Bottom Left: IEC-Breakout
Bottom Middle: SD2IEC
Bottom Right: (that's what's new) The Control Panel

Also the SID-Socket is gone (for now), sound is replaced by an FPGA-Implementation I found on the net. I don't know who originally coded this SID-Emulation, maybe it's someone of you? Here's the URL: https://svn.pacedev.net/repos/pace/sw/src/component/sound/sid/

And I wanted to add 2 joystick-ports with paddle-support, while not loosing more I/Os for the soon to come cartridge port. The solution you see on the bottom right: An Arduino Pro Mini together with an 1.8" Color LCD, some contol buttons plus 2 joystick-ports - connected using I2C to the FPGA.

With only 2 Pins used for the I2C, I have 2 joy-ports with (soon to come) paddle support (there are some analog inputs on the arduino), and a simple control panel to reset or mute the C64, as well as turn off borders and enable some debug visuals from the VIC-Emulation. The "Menu" is used to define the default kernal image.

Joysticks are updated ~30 times/second - which is fast enough for all games.


Saturday, February 25, 2012

FPGA meets ARDUINO meets C64

I always wanted to make my own Joystick - so I decided to connect an Arduino UNO together with a JoyStick Shield to the FPGA64. I know, not really my OWN Joystick, but at least I can program it the way I like (e.g. configure one Button for "UP" for Jump'n'Runs, RapidFire, WiggleMode for Decatlon .....)

Further I added one more Bit to the Video-Output, so now we have 9 Bits (3 Bit for each color). Much closer to the real thing than before!





Wednesday, February 8, 2012

Small but important preparations

Nono, this project is still NOT stuck! Just the pace is a little down.

To achieve the next milestone (which is an expansion port), I need to switch to another FPGA Board with more I/Os. I already have one here, but as I always tend to overread specs, I missed that there is no SRAM, but only an SDRAM on this Board.

And no, I'm really not in the mood to write an SD-Interface. So I've ordered some SRAM-ICs which I will hook up later.

In the meantime, I was able to programm and read the Flash IC (CIF) on the Board. So all Roms (Kernal, Basic, Charset) are no longer occupying valuable BlockRam.

If everything goes well, I will have an expansion port up and running still on 2012 :-D


Wednesday, November 30, 2011

Time passes by...fast....

Long Time no updates, which does not mean I abandonned the project.

In the meantime, I was able to find a solution to do the Level Conversion ...

This is the new FPGA-2-IEC-Board with the Level-Converter (5 Signals) on top:


(BTW: Those two boards are the first PCBs I etched myself using the method described here: http://thomaspfeifer.net/platinen_aetzen.htm)

Further I have found a new FPGA-Board with enough I/O for nice Stuff like a Cartridge Port or real Joystick ports. As the new Board does not have a VGA-Connector, so I need to make a new VideoConverter-Board too. This should keep me busy for the rest of this year....




Sunday, September 11, 2011

BadCopy by Emulamer - 66% success

As I've no real updates to present.....

Emulamer striked again at the Dekadence Dataparty 2011 with "BadCopy"

As of today, BadCopy does not work 100% on any emulator yet, also not on the Chameleon.

There seem to be 3 emufuxxors (Sprite, Music, "Picture") in this demo.

And well, it also fails on my FPGA :) While the sprite is correctly hidden, and the right music is played, the "Picture" shows the wrong charset... 66% success - better than nothing.


Saturday, August 20, 2011

Thank you for all the Help!

I got many Mail with inputs how to solve my problems - thank you very much for support!

So the first thing I'm gonna do is to build some level-converters as on this page:
http://www.rocketnumbernine.com/2009/04/10/5v-33v-bidirectional-level-converter/

First I will try to get the SID-Socket running with a real SID and BiDir (the current solution is "write only" to the SID).

Wednesday, July 27, 2011

The Creative Break.....

.... didn't yield any fruits.

I'm stuck at several ends at the moment, mostly hardware-related as

- How to interface a larger number of 5V BiDir-Port to a 3.3V FPGA (Cartridge Ports and such)

- How to build some kind of SDCard-to-SPI-Interface which would enable upgrading the FPGA-Core, simpler than using a byteblaster.
 
As soon as I have figured out all hardware issues, I could advance to next next step(s)

On the HDL-Side, I can say that the solution fairly usable yet :) CPU/VIC/CIA are doing mostly fine, for the SID we have the SwinSid...

If anyone of you out there have any knowledge to share and would like to participate with this project, please contact me at d@c64.ch!

Wednesday, June 15, 2011

SpriteEnableX fixed

Thinking about Emulamer, I just had to fix the "SpriteEnable"-Stuff (Sprites can have DMA turned on, but still they can be inactive). Vice 2.3 (normal Version) fails at some of those tests, we (and Vice SC) pass all now :)
(Sidenote: Ruined Art still not working...)





Flatline by Emulamer works

Just stumbled across this today: Flatline by Emulamer - well, seems FPGA64 is finally "a halfway decent emulator". No fixing was required, it just worked...
FYI: Ruined Art/Emulamer does not work (yet).... my Sprite-Handling is still too buggy at some places.

Monday, June 13, 2011

$D013-Stable-Interrupts added..

After wondering why some parts of Crest Light bugged, I had to learn that there is another way to create stable rasters using CIA1 and LP (in short: you can trigger an update of $d013 (LightPen X) and $d014 (LightPen Y) by changing bit 4 of Port B of CIA1, as this Pin is connected to the LP-In of the VIC). Before, four parts of Crest Light where buggy, now the whole demo runs perfect.

Some screens:


Wednesday, June 8, 2011

Krestage 3 / Crest working

The 9th sprite was always there, now finally the VIC-Emulation also displays the 50 pixel wide sprites and the correct colors/data between the multicolor- and the FLI-Picture.

Sunday, June 5, 2011

Edge of Disgrace / Booze Design with the latest VIC-Revision

Almost all bugs sorted out! Needed quite some VIC-Fiddeling for some stuff to display properly, but now it's as good as it get's. For the remaining glitches I have no idea where they come from :)

Thursday, May 19, 2011

Finally... Edge of Disgrace is working!

Still some glitches here and there, but I feel confident about those... Thanks HCL for support ;)

Friday, May 6, 2011

Sneak-a-Peek of Edge of Disgrace.....

....but only the last diskside. Slowly I'm getting closer, fixing bug by bug. But still a long way to go....

Sunday, April 24, 2011

Let there be....SOUND

Finally no more silence! I went the secure way and soldered a SID-Socket to the board. It's tested with a SwinSid, I don't have 12V and don't want to fry neither a real SID nor my FPGA-Board. For better sound, the Audio-Out from the SwinSid is connected to a real C64 SID-Socket, because I don't have the right parts to remake this part of the C64 mainboard (which also needs 12V).


Looks..erm.. funny.. but works great! On top of the FPGA-Board you can see the SwinSid, which is connected directly to the I/O of the FPGA. On the left it's a small board which is 1:1 a remade of the C64-Hardware (CIA <-> IEC Bus). On the bottom, you see a SD2IEC (left) and the AD725-Board (right).


Another perspective.. the two yellow cables go from the SwinSid into the C64-Sid Socket (Audio Out and Ground). Works fine, as long nobody touches something...

And here's Oneder / Oxyron :)

Monday, April 18, 2011

NUFLI working

After turning around in circles NUFLI finally works - thank to the guys over at CSDB and an addendum of Christian Bauer's VIC-II Text! This fix also fixes the "face" from Deux Ex Machina and the 5-Sprites-Over-Fli from Demus Interruptus, and hopefully others too :)

Here some "work-stages" (the FLI-Bug is still not emulated..that's why it looks not quite right on the left).






Tuesday, April 12, 2011

VIC-II / CIA / 65xx Cracks needed

I'm looking for people who can help debugging the FPGA64 by providing some small test-programms (like f.ex. a stable raster with different numbers of sprites active on, around or outside a badline).

Just small pieces of code which can help locate bugs easy :)

Please drop me a mail to d@c64.ch!

Thank you :)

Tuesday, April 5, 2011

New Test: Deux Ex Machina

Almost perfect :)

Silly, but powerful, bug fixed....

A silly bug in the ram-bus caused that all writes to $d000 - $dfff went to Nirvana instead of RAM (with I/O-area turned off). Compatibility has improved a lot, many games that bugged/crashed before (like Bruce Lee, Bubble Bobble, Commando, Rambo II) are working fine now.