General Stuff(tm)

Blogs & guides and tales of woo by forum members.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

Well, not getting very far with the Sun 3/80.

I think my GAL encoding isn't working correctly. One of the read lines is swapped with the write, but changing the sense in the description makes nothing work. No idea why.

Code: Select all

Name     Sun 3/80 tty-fix ;
PartNo   00 ;
Date     19/03/2022 ;
Revision 01 ;
Designer Engineer ;
Company  Personal ;
Assembly None ;
Location  ;
Device   g16v8 ;

/* *************** INPUT PINS *********************/
PIN  2   =  !R;
PIN  3   =  !UART_ENABLE;
PIN  4   =  PORT_SELECT;

/* *************** OUTPUT PINS *********************/
PIN  19   =  !SER0WR;
PIN  18   =  !SER0RD;
PIN  17   =  !SER1WR;
PIN  16   =  !SER1RD;

SER0EN = UART_ENABLE & PORT_SELECT;
SER1EN = UART_ENABLE & !PORT_SELECT;

SER0WR = SER0EN & !R;
SER0RD = SER0EN & R;

SER1WR = SER1EN & !R;
SER1RD = SER1EN & R;
SER1WR and SER1RD seem swapped.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

Maybe making progress, sort of.

It seems that one of the lines out of the chip which I thought was dead is only mostly dead. If the line is not loaded, other than with the oscilloscope, there is some signal getting out. It's "floating" down to about 2.2V with square signals down to zero. Any attempt to pull it up, even with megaohm resistors, kills the signal.

IMG_2635.jpg

What this has told me is that the read signal is totally unlike that of the write signal in terms of activation, so my original assumption for regenerating the signal is completely wrong. I'm going to have to test every signal on the chip to see which ones (if any) uniquely identify when the signal is activated.

Also, my original write signal was happening about 80ns too early, due to one of the signals I was using (which I think is UART_ENABLE from the Sun 3/60 schematic). This was causing a crash, but ANDing this with the I/O enable (assumed) signal brought this into line.
You do not have the required permissions to view the files attached to this post.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

Nuts! It's actually the signal from the pin next to it bleeding through the chip. Oh well.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

The signal I'm generating still has slightly wrong timing, going low about 20ns too early and going back to high about 40ns too late. That's half a clock cycle at the beginning and almost a whole one at the end.

If I could work out how to program the GAL in register mode I could probably use the system clock to tie the signal generation better.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

So, who knows CPLD well enough to teach me how to do registered mode on a 16V8?

Also, I need to be able to trigger an output (low) when triggered by a set of inputs on the following rising clock and then de-assert the line 3.5 clock cycles later.

*tricky!*
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
exxos
Site Admin
Site Admin
Posts: 28386
Joined: 16 Aug 2017 23:19
Location: UK

Re: General Stuff(tm)

Post by exxos »

The code you have looks fine to me ? Have you got the gal on breadboard to verify it is the gal at fault ? Might the GAL be faulty ?

With a clock on pin1 you just add the .D extension to make clocked delays.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

Yes, it's on a breadboard and it's outputting the correct sort of signals, given the inputs.

OK, I'll try that clocked outputs next time. I've had to pack things away so I can revert the room into laundry mode.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

I may not have had the space for the 3/80 investigation but I did for de-RIFAing and testing an early BBC Micro, part of the haul from last weekend. This is the last of the machines to fully test.

IMG_2638.jpg

Some interesting things to note on early machines. Firstly the "crackle" on the surface of the machine far, far rougher. Secondly the logo is completely different.

IMG_2640.jpg

Add to that, you don't have to feed the power supply cord through a hole to remove the PSU and there's a steel grill underneath the PSU.

IMG_2637.jpg

Otherwise it's like later machines. Indeed, although it's early this machine already has an Issue 4 motherboard, the most common revision.

Oh, and how long has it been since you saw a swing door floppy drive?

IMG_2639.jpg
You do not have the required permissions to view the files attached to this post.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
rubber_jonnie
Site Admin
Site Admin
Posts: 14917
Joined: 17 Aug 2017 19:40
Location: Essex

Re: General Stuff(tm)

Post by rubber_jonnie »

stephen_usher wrote: 20 Mar 2022 15:40 I may not have had the space for the 3/80 investigation but I did for de-RIFAing and testing an early BBC Micro, part of the haul from last weekend. This is the last of the machines to fully test.
Nice, the BBCs are one of the greats of the era IMHO, just wish I could have had one as a youngster, but the cost was just too high. To be fair my parents did get me a ZX81 then Spectrum, so they did well by me and it did set me off down a long road in IT.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7384
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: General Stuff(tm)

Post by stephen_usher »

The BBC was way out of our price bracket too, at £399. I started the same way as you.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.

Return to “MEMBER BLOGS”

Who is online

Users browsing this forum: ClaudeBot, Google [Bot], szeremiocki and 22 guests