Page 53 of 286
Re: General Stuff(tm)
Posted: 19 Mar 2022 20:05
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.
Re: General Stuff(tm)
Posted: 20 Mar 2022 10:23
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.
Re: General Stuff(tm)
Posted: 20 Mar 2022 10:39
by stephen_usher
Nuts! It's actually the signal from the pin next to it bleeding through the chip. Oh well.
Re: General Stuff(tm)
Posted: 20 Mar 2022 11:33
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.
Re: General Stuff(tm)
Posted: 20 Mar 2022 12:01
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!*
Re: General Stuff(tm)
Posted: 20 Mar 2022 12:28
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.
Re: General Stuff(tm)
Posted: 20 Mar 2022 12:58
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.
Re: General Stuff(tm)
Posted: 20 Mar 2022 15:40
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
Re: General Stuff(tm)
Posted: 20 Mar 2022 19:04
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.
Re: General Stuff(tm)
Posted: 20 Mar 2022 19:08
by stephen_usher
The BBC was way out of our price bracket too, at £399. I started the same way as you.