4th Nov 2020, 11:22 pm | #781 |
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,363
|
Re: Mk14 vdu
I have discovered how to do combination triggers it seems the event where NENIN is HIGH and NWDS is low occurs 21 times in each frame with both the 10K and 4K7 pullups on NWDS - there is no difference in that side of it.
The difference is shown here (all copies look the same) first at 4.7K then at 10K Obviously on the latter image has the screen corruption - in a perverse way it looks like the 4.7K has the write later which on our theory would make it more susceptible to the random write which is not the observed effect... |
4th Nov 2020, 11:25 pm | #782 |
Octode
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,294
|
Re: Mk14 vdu
|
4th Nov 2020, 11:40 pm | #783 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,553
|
Re: Mk14 vdu
Maybe because the 4K7 pulls the line up harder, it pulls down more slowly. As you say, you would think that delaying the NWDS pulse and therefore moving it further inside the NENIN pulse would do more damage, not less.
Regarding the way merely adding the monitoring hardware seems to improve the operation of the system, well, if that's the case, remove the input lines from the system one by one and find out if it is only one of them which is causing the difference in reliability. That might give us an area for investigation. I think I've told this story before but when I was quite young (probably around ZX80-era) my friend had built a Z80-based Powertran Sci Comp 80 but it wasn't working well - however quite by chance we found that if we put a scope on one of the bus or control lines (I forget which) it made the machine work. We used every means at our disposal to find the real cause of the problem but failed, so in the end what we did was, we soldered a 1M resistor and 50pF capacitor - a 'scope simulator' - from the offending line down to 0V. The last I heard, it was still working. |
4th Nov 2020, 11:41 pm | #784 | |
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,363
|
Re: Mk14 vdu
Quote:
In fact that was a suggestion from Sirius to try earlier in the thread which I did experiment with on the signals I had on the breadboard - the one I tried on NWDS did not really help in the same way as these - in vain I looked for some data on the device and its inputs - there is nothing - the device it is a clone of assuming it is based on the version 1 says: The original Logic is the only Saleae device to have internally pulled up inputs. All other Saleae devices had an internal resistance to ground. The original Logic's inputs float at about 2.4 volts, with over 100 K ohms of pull-up resistance, producing a very small pull-up effect. Disconnecting one of the clips seems to have a zero reading so I suspect it is the internal resistance to ground taking effect - this in itself may give a clue where we are looking certainly that small spike was starting from around 1v so the pull down may make it reduce Obviously we still get the 7 segment corruption so there is still a marginal case where it is happening to deal with. I will hook up the scope and LS chip as well and see if I can still detect the spikes. |
|
4th Nov 2020, 11:52 pm | #785 | |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,553
|
Re: Mk14 vdu
Quote:
I did suggest trying weak pulldowns on A8-A11 but Mark said it wasn't all that easy to pull down TTL lines (would require quite a low resistance which in turn would probably prevent the lines from being driven by the SC/MP). As I said, just lift off the connections between the system and the analyser one by one and see if it is one particular line which is really making a difference. |
|
4th Nov 2020, 11:56 pm | #786 |
Octode
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,294
|
Re: Mk14 vdu
I’ve been looking at the schematic in #3 on and off over the last few days to try and figure out the timing. Not easy with the very poorly drawn schematics, no annotation of the functions of inputs and outputs.
Thinking why the original vdu didn’t show the corruption and is it due to having the clock synchronised. It looks to me that the output of the 80L95 buffers does not have any guard time from raising NENIN. I think I remember Karen mentioned that she does have guard time between NENIN and driving the bus. Is it bus contention that stops the original vdu from corrupting RAM? |
5th Nov 2020, 12:03 am | #787 | |
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,363
|
Re: Mk14 vdu
Quote:
Note that with just the scope on there the character does not change either so your story is relevant to recount again and your young self may have found a solution we can use... - it can even likely be fitted on the VDU board as A10 goes there. Maybe the PIC RA2 line has some effect we cannot see... it is designated AN2/VREF- in its alternate roles... I will try probably tomorrow now and see if MINEFIELD lets me play a few rounds... |
|
5th Nov 2020, 12:03 am | #788 |
Octode
Join Date: Apr 2018
Location: Newbury, Berkshire, UK.
Posts: 1,287
|
Re: Mk14 vdu
I treated myself to a "bitscope" last week, it has 2 analogue channels and 6 digital. I'm going to look at the timings of Karens software and check the relationships between the various signals and look for exceptions. This is something I can do without my MK14 while you guys are looking for the elusive pulses.
|
5th Nov 2020, 12:09 am | #789 | |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,553
|
Re: Mk14 vdu
Quote:
Attached, a capture I posted a while ago showing SOC VDU NENIN over activity on the A0 line, the SOC VDU appears to wait for quite a while after raising NENIN before it cycles through each of the addresses it wants to read from, but between the rising edge of NENIN and the commencement of A0 activity the A0 line looks like it could be in a held-high state. If we assume the SOC VDU hits the whole address bus at the same moment then the same may apply to how it drives A8-A11. Last edited by SiriusHardware; 5th Nov 2020 at 12:30 am. |
|
5th Nov 2020, 12:20 am | #790 | |
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,363
|
Re: Mk14 vdu
Quote:
|
|
5th Nov 2020, 12:28 am | #791 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,553
|
Re: Mk14 vdu
Er, yes, I've just ordered one of those 8-channel logic gizmos that you have. I'll have to quiz you about software to use with it when it arrives (perhaps off topic for this thread).
|
5th Nov 2020, 12:30 am | #792 |
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,363
|
Re: Mk14 vdu
I went to have a glass of milk and a biscuit as by the time I return from the kitchen the reverse C has usually appeared - no sign of it. So I unplugged the rest of the equipment and the corrupt character towards the end of B block began appearing.
Anyway to cut a long story short plugging back in the leads I showed that the INS8154 CS lines were the ones and they are A8 and A11 - connecting either to the analyzer will stop the character - so we are back to the weak pulldowns on A8-A11 I think... |
5th Nov 2020, 12:31 am | #793 |
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,363
|
Re: Mk14 vdu
|
5th Nov 2020, 1:05 am | #794 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,553
|
Re: Mk14 vdu
The very same. Should be here next week, I'll ask you for more info then. One thing I did wonder is whether the software supports multiple input devices, ie, two or three of these things paralleled up.
|
5th Nov 2020, 1:53 am | #795 |
Octode
Join Date: Apr 2018
Location: Newbury, Berkshire, UK.
Posts: 1,287
|
Re: Mk14 vdu
Well I've spent several hours reading through this entire thread, collecting the 10 different firmware versions and taking a peek to see if I can get some understanding of how it works. Although I'd be lying if I said I understood everything (!) I must say its very cunning in the way it does seem to work. After all this reading I'm beginning to wonder (as others have mentioned in passing) if the problem is actually the delay between NENIN being asserted and the address bus being driven is too long. Sirius's screenshots of the SOC VDU seem to show it asserting NENIN and immediately doing stuff on the bus. Perhaps the delay should be really short so as not allow the address bus to "drift" but long enough to allow the SC/MP to abort a write (~250nS ?).
|
5th Nov 2020, 2:56 am | #796 | ||
Octode
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,294
|
Re: Mk14 vdu
Quote:
Maybe the 80L95 is not strong enough drivers to damage the SCMP outputs, but it doesn’t seem like a good idea. Not sure which would be the winner between a PIC and an SCMP. |
||
5th Nov 2020, 3:22 am | #797 | |
Octode
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,294
|
Re: Mk14 vdu
Quote:
Those address lines only need to be pulled down long enough for NWDS to be released and pulled high, so a capacitor might do that and have less impact than a resistor. |
|
5th Nov 2020, 10:30 am | #798 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,553
|
Re: Mk14 vdu
The PIC outputs have very strong drive capability, so one possibility is to insert lowish value series resistors in the address drive lines from the OrtonView so that if there is contention the conflict can happen across the resistors, avoiding the possibility of two opposing outputs battling with each other directly.
I think we are close to the point of needing to understand the code well enough to try moving address-drive-enable much closer to the point of NENIN activation. |
5th Nov 2020, 3:37 pm | #799 | |
Octode
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,294
|
Re: Mk14 vdu
Quote:
I’m using Slothie’s circuit diagram from #122 of the MK14 schematic revisions thread as the original S of C schematics are not so clear. NWDS or the chip enables could be gated by NENIN, but that would be quite a major mod on the MK14. I think capacitors on A8 to A11 might be the simplest solution. These are the address lines connected to 74ls inputs of the address decoding, where the input current of the 74ls inputs could be pulling the floating address lines high faster than NWDS is pulled high. Capacitors could help to hold the address of the interrupted write cycle, which would be repeated when NENiN is returned low. Not sure if the lower address lines for the display interface should also be considered. |
|
5th Nov 2020, 7:07 pm | #800 |
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,553
|
Re: Mk14 vdu
Looking back again at the image I reposted in #789, it looks to me as though the VDU possibly imposes its initial output levels on the address bus slightly BEFORE it takes NENIN high which of course should be a no-no.
|