Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Arduino-based 1541 emulator. Possible?
2013-04-22 10:47
Flavioweb

Registered: Nov 2011
Posts: 463
Arduino-based 1541 emulator. Possible?

Talking about Arduino with an hw-hacker father of a friend, i started to thinking about on how to build a full-compatible 1541 clone (6510, cia, ram, etc...) using Arduino hw.
I found this 6502 emulator:
http://www.df.lth.se/~richard/6502emu2.pde

May be possible to build a full sd card reader fully 1541 compatible (for low level drive programming)?
 
... 28 posts hidden. Click here to view all posts....
 
2013-04-22 20:50
Moloch

Registered: Jan 2002
Posts: 2928
Quote: Quoting Groepaz
if you just want to hear that it can be done, easily - ask jim drew on lemon =)

Trying to ignore that guy, he uses to claim having done all sorts of drive feats but _always_ fails to deliver code or details, taking forever to find lost source codes etc.


yes, thats the reason groepaz left that smiley :D

that guy can't be believed for anything
2013-04-24 12:32
Radiant

Registered: Sep 2004
Posts: 639
Would it be possible on a Raspberry Pi?
2013-04-25 07:43
Krill

Registered: Apr 2002
Posts: 2980
The problem with bigger systems like the Raspberry Pi is that you have to jump through a few hoops to get reliable real-time behaviour. The main issues are the cache and variable timing due to DRAM access. The ARM CPUs used though should have scratchpad memory in the order of 32 or so kB for fast deterministic access. Might be possible, but it won't be easy. There might be more surprises on the GPIO path. Good idea though to suggest Raspberry Pi.
2013-04-25 15:18
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
and i must repeat myself: you need interface to C64. usb/par port, else forget this!
2013-04-25 17:39
WVL

Registered: Mar 2002
Posts: 902
The new beaglebone would probably be better, but realtime stuff will still be a problem...

Better stick to a combination of an AVR/Atmel/whatever cpu for high-level non-realtime stuff and an FPGA for the realtime hardware emulation imho..
2013-04-25 18:31
chatGPZ

Registered: Dec 2001
Posts: 11386
just wait for jim to prove you wrong, all of you!
2013-04-25 18:37
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: and i must repeat myself: you need interface to C64. usb/par port, else forget this!

Most (all) embedded platforms have GPIOs, you need 3 (data, clk, atn) + some buffers and level converters. Now drop it, compared to timing problems HW interfacing is nothing.
2013-04-26 15:32
CreaMD

Registered: Dec 2001
Posts: 3057
So if I get it right, for emulation you need precisely definable logic with exact controllable timing at all times. And this is the reason why 1541 emulation was never mad on PC, because there is no possibility to have 100% control over timing, even when booting into dos (coz every machine ha different specs and speeds of ram.. and various idiotic processor hacks for instruction fetching and all that crap.

hm?
2013-04-26 15:55
JackAsser

Registered: Jun 2002
Posts: 2014
You can do it on x86. With fast enough CPU and an RTOS guaranteeing CPU time etc. Or by doing your stuff in DOS/BIOS and disable instruction and memory caches to get complete control over timing. Fast enough CPU using a high precision timer would suffice. But in a "normal" OS environment like Windows, Linux or Mac OS the timing will be too jittery. You might be able to do it by scheduling a timer interrupt at a really high priority as a kernel driver/module.
2013-04-26 16:01
CreaMD

Registered: Dec 2001
Posts: 3057
Jackasser.. thanx.
Previous - 1 | 2 | 3 | 4 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
fugu/Excess
cba
CopAss/Leader
Epyx/TSA
Guests online: 105
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.047 sec.