English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware > Hardware mods

 
 
Thread Tools
Old 28 July 2018, 02:12   #21
bwldrbst
Registered User
 
bwldrbst's Avatar
 
Join Date: Nov 2015
Location: Perth, Australia
Posts: 73
I've been working on a similar idea but focused more on the software side. There's some discussion and links to github repos here.

The software allows for multiple streams of data with asynchronous reads and writes over the connection to the Raspberry Pi.

I have a feeling it won't perform well enough for a display but you never know... I'm mainly concerned with input devices, storage and networking.

For now I'm just using the serial port (because it's easy) but it's written in a modular way to support any sort of physical connection people can come up with.

Cheers,

Andrew
bwldrbst is offline  
Old 28 July 2018, 06:15   #22
betajaen
Registered User
 
Join Date: Apr 2018
Location: Wales, UK
Age: 41
Posts: 102
Great minds think alike!

Thanks for the link, I shall read over your posts and have a peek at your code.

I'm just going to aim for graphics for now, other stuff like USB/Wifi/storage/co-processor much later (if possible).
betajaen is offline  
Old 28 July 2018, 16:04   #23
zerohp
Registered User
 
Join Date: Dec 2017
Location: Champaign, IL / USA
Posts: 7
Have you considered timing at all? I'm not convinced the GPIO on a Raspberry Pi can be made fast enough to use the clockport. It's not a matter of performance, but whether it works at all.
zerohp is offline  
Old 28 July 2018, 19:56   #24
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
I saw on Stedy's page that the clockport only has 32 x 8-bit addresses.
http://www.ianstedman.co.uk/Amiga/am...lock_port.html

The PI runs a multitasking operating system which not work.

An Arduino (or other microcontroller) would be better. You could wire the 2 chip select pins on the clock port to 2 interrupt pins on the Arduino. and read/write the data bus.
nogginthenog is offline  
Old 29 July 2018, 00:37   #25
Stedy
Registered User
 
Stedy's Avatar
 
Join Date: Jan 2008
Location: United Kingdom
Age: 46
Posts: 733
Hi,

I've attached an old design showing a simple circuit to interface to the Clockport. Connecting a Rasberry Pi to the clockport, even with level shifters will not work.

When interfacing to the MC68020 bus, you must de-assert within 1 clock cycle on a read. Translating that to the Raspberry Pi GPIO, when the Amiga CPU reads from the Raspberry Pi, the GPIO port is set as an output and drive the data bus. If you do not stop driving within 70ns of RTC_CS or SPARE_CS going high, you risk corrupting the next RAM access, that access my have your next instructions/code and will be corrupted by your Raspberry PI. Can you change the 8 data pins from output to input in 70ns?

The Clockport is not fast. A single byte access takes 1us. So the maximum, theoretical data rate is 1/1us or 1MHz which equates to 1 Mbyte/sec. You'll never achieve this due to the Amiga doing other things. Allow 50% at best, this give a bandwidth of 500 KByte/sec. Nowhere near enough for graphics as 320x256 x 16 colours @ 50Hz would need 8 Mbyte/sec.

If you add the correct logic, you can connect the Raspberry Pi to the Amiga.
Attached Thumbnails
Click image for larger version

Name:	simple-clockport-interface.png
Views:	217
Size:	5.5 KB
ID:	59031  
Stedy is offline  
Old 29 July 2018, 06:54   #26
betajaen
Registered User
 
Join Date: Apr 2018
Location: Wales, UK
Age: 41
Posts: 102
Hi Stedy,

Thank you for your input, but it looks less and less promising then.

I wouldn't be using the Linux operating system though. Just a simple copy-paste assembly bootloader, which runs a C based program that acts as the driver interface, does the graphics, etc. No Operating System required.

But from the very beginning, I've wondered if it's possible, then if it is practical.
betajaen is offline  
Old 29 July 2018, 10:24   #27
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
Is doing something with the trapdoor slot viable?
rare_j is offline  
Old 29 July 2018, 12:08   #28
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
Not in any practical way since it is usually filled up with an accelerator already. Unless you want to go the full tower route, and why would you do that for a budget solution?
idrougge is offline  
Old 29 July 2018, 13:57   #29
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
Well that's true but if there was some way to utilise the 1/2 gb of ram, or wifi connection, or sd card storage it would be fun for those with a stock machine.
Stedy has given a detailed view on the challenges of using the clockport, which made for interesting reading.
I wonder if anyone has any similar insight into using the cpu slot as an interface.
rare_j is offline  
Old 29 July 2018, 16:04   #30
betajaen
Registered User
 
Join Date: Apr 2018
Location: Wales, UK
Age: 41
Posts: 102
I think using the accelerator slot isn't really a solution.

I chose the clock port, because I was hoping anyone could just buy a cable, and a raspberry pi anyway. Download an image to put on a SD card, and it would just go. No production of PCBs, no soldering, etc.

I wonder though if the Cybergraphics/Picasso libraries are more efficient than just sending the contents of the graphics buffer. It must have vector drawing functions, and uploading bitmaps/sprites, then placing them on the screen as needed. The 'card'/driver program for the Amiga 2000 indicates this - just sending commands.
betajaen is offline  
Old 29 July 2018, 19:13   #31
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
The very fact that you need an exotic A1200 CPU connector makes the Raspberry connection once more into a false start since you're throwing a lot of money towards using something which was meant to be a budget solution.

The CGX/P96 API does of course support high-level operations, but you're still using the card over the slowest bus known to the Amiga.
idrougge is offline  
Old 29 July 2018, 19:54   #32
betajaen
Registered User
 
Join Date: Apr 2018
Location: Wales, UK
Age: 41
Posts: 102
Oh well. Sadly, this doesn't seem possible.

It was worth a chat about. Thank you to everyone for your help, and insight.
betajaen is offline  
Old 30 July 2018, 15:26   #33
kolla
Banned
 
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
Hey, there are other uses for a pi there, like fast serial interface to the Linux on the pi...
* bridge to ethernet
* bridge to wifi
* bridge to USB

Look here:
http://eab.abime.net/showthread.php?t=92931

EDIT: boy, did I mess up URL-editing

Last edited by kolla; 30 July 2018 at 15:33.
kolla is offline  
Old 06 August 2018, 11:38   #34
nidge
Registered User
 
Join Date: Apr 2018
Location: UK
Posts: 2
Interseting discussion, a pity the Pi idea could not be done
nidge is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
FS: 4-Way Clockport Splitter for Amiga 1200 Daedalus MarketPlace 5 13 June 2017 14:27
AMIGA CASE : New computer case for classic Amiga 1200, Thin Mini-ITX and Raspberry PI Schuimpy Amiga scene 141 13 June 2016 12:42
Amiga 1200 XRGB Mini Sync Issue radiokida support.Hardware 3 11 April 2016 20:34
Need advice before I screw up my Amiga 1200 tech3475 support.Hardware 5 15 February 2012 20:46
Amiga 1200 OS Advice CU_AMiGA support.Other 6 05 March 2010 23:57

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:44.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.21010 seconds with 16 queries