Page 33 of 37

Re: POC VERSION TWO

Posted: Fri May 25, 2018 10:00 am
by GaBuZoMeu
BigDumbDinosaur wrote:
Checking and/or correcting SP would be fairly easy. I can't easily observe the others, but once the MPU has entered the HERE: BRA HERE loop, m and x wouldn't matter.
Sure they wouldn't matter within the loop, but outside they may. And dealing with the status flags a brief look at the I-Flag would detect a false IRQ inhibit as well. To say it simple: I would assume a certain stable configuration of M,X, and I during the idle loop - anything else indicates something didn't work as expected.
BigDumbDinosaur wrote:
I'm wondering if reprogramming the CPLD accidentally fixed the damned thing. :shock: :shock:
You only reprogrammed - no changes to the logic - the CPLD ?
On one hand - fine! It is running, these spurious malfunctions are gone, hooray.
On the other hand - was a flaky programmed chip really the cause? How could that happened? How can you be sure the next programming is a good one too? And is the bug really gone or will it appear again, just 1000 times less frequently?

I hope you have done right by reprogramming the CPLD. And that such an unstable behavior of that chip never appear again. :)

Re: POC VERSION TWO

Posted: Sat May 26, 2018 6:23 am
by BigDumbDinosaur
BigEd wrote:
Or maybe the probes are damping down the spurious signals...!
Ah-hah! You're reading my mind. :D I disconnected the probes this morning when I came into my office—the unit was still chugging along. We'll see if the presence of the probes has anything to do with stability. I'll reconnect the probes sometime later to see if the unit is still running.
GaBuZoMeu wrote:
BigDumbDinosaur wrote:
I'm wondering if reprogramming the CPLD accidentally fixed the damned thing. :shock: :shock:
You only reprogrammed - no changes to the logic - the CPLD ?
On one hand - fine! It is running, these spurious malfunctions are gone, hooray.
On the other hand - was a flaky programmed chip really the cause? How could that happened? How can you be sure the next programming is a good one too? And is the bug really gone or will it appear again, just 1000 times less frequently?

I hope you have done right by reprogramming the CPLD. And that such an unstable behavior of that chip never appear again. :)
BigDumbDinosaur wrote:
Now, here's where it gets curiouser and curiouser. I powered up the unit at 0638 ZULU time last night (May 24), right after I had reprogrammed the CPLD with my tidied-up code.
I have no reason to believe the CPLD that is in the unit has a hardware issue. That said, I'm going to program a different one and see how it behaves.

Re: POC VERSION TWO

Posted: Sat May 26, 2018 4:21 pm
by Dr Jefyll
BigDumbDinosaur wrote:
BigEd wrote:
Or maybe the probes are damping down the spurious signals...!
Ah-hah! You're reading my mind. :D I disconnected the probes this morning when I came into my office—the unit was still chugging along. We'll see if the presence of the probes has anything to do with stability. I'll reconnect the probes sometime later to see if the unit is still running.
I'll bet an AM radio would reveal what you want to know! Tuned between stations and placed near POC it'll produce one kind of modem-y noise before a crash and a different kind of modem-y noise after. :mrgreen: But I wonder if it's necessary. I'm not convinced the probes are a cause for concern. Suppose one of the POC signals does change significantly when a probe is attached. That's a nontrivial anomaly in itself (and stuff like that is certainly possible). But unless I've gotten the facts wrong, POC has been seen to work then fail with the probes in place -- and likewise seen to work then fail with the probes absent. So what triggers the failure? Seems to me you'd need a second anomaly. Two anomalies isn't impossible, but it is somewhat implausible.
Quote:
I have no reason to believe the CPLD that is in the unit has a hardware issue. That said, I'm going to program a different one and see how it behaves.
Makes sense. Probably best to also do a re-test using the original CPLD code (pre-tidy-up, I mean).

Re: POC VERSION TWO

Posted: Mon May 28, 2018 5:35 am
by BigDumbDinosaur
Dr Jefyll wrote:
BigDumbDinosaur wrote:
BigEd wrote:
Or maybe the probes are damping down the spurious signals...!
Ah-hah! You're reading my mind. :D I disconnected the probes this morning when I came into my office—the unit was still chugging along. We'll see if the presence of the probes has anything to do with stability. I'll reconnect the probes sometime later to see if the unit is still running.
I'll bet an AM radio would reveal what you want to know!
:oops: There isn't a single radio in the house. :oops: The one radio we had conked out several years ago and I never got around to replacing it.
Quote:
I'm not convinced the probes are a cause for concern.
The unit ran for almost two days with the probes disconnected. I reconnected them this evening and everything was still flying straight and level. :?: :?
Quote:
Quote:
I have no reason to believe the CPLD that is in the unit has a hardware issue. That said, I'm going to program a different one and see how it behaves.
Makes sense. Probably best to also do a re-test using the original CPLD code (pre-tidy-up, I mean).
Well, I've got POC V2.0 running on a different (new) CPLD that I programmed with the tidied-up code. I'll let it go for a few more days and if nothing untoward happens, I'll reprogram the CPLD with the older code and see if that breaks it.

Re: POC VERSION TWO

Posted: Mon May 28, 2018 10:10 am
by BigEd
(Same for me: I need to use the car radio if I want to do AM experiments...)

Re: POC VERSION TWO

Posted: Mon May 28, 2018 6:26 pm
by GARTHWILSON
I've been regularly using this Radio Shack Realistic 12-714 radio since Dec 1981:

Image

:D I've fixed the earphone jack a couple of times, and the battery snap a time or two, and sprayed the volume control with contact cleaner, and today it works the same as new.

Re: POC VERSION TWO

Posted: Mon May 28, 2018 8:09 pm
by BillO
A few feet of wire, a germanium diode, a high impedance earphone (one of he old cheapies) and your body will suffice. Just loop the wire on the table around your POC, connect it to the diode, connect the earphone across the diode and your body makes a suitable ground. Easy peasy.

Image

Re: POC VERSION TWO

Posted: Mon May 28, 2018 11:57 pm
by DerTrueForce
I was going to suggest that, but here's one thing I haven't seen suggested: I've made one of those before(from a Dick Smith Funway kit) and they use a piezo-based earpiece, so a piezo will likely work, too. If you've got a dead PC, they sometimes have a piezo as their beeper speaker, if they have one.

Re: POC VERSION TWO

Posted: Tue May 29, 2018 8:48 pm
by BigDumbDinosaur
GARTHWILSON wrote:
I've been regularly using this Radio Shack Realistic 12-714 radio since Dec 1981:

Image

:D I've fixed the earphone jack a couple of times, and the battery snap a time or two, and sprayed the volume control with contact cleaner, and today it works the same as new.
Geesh! I remember those things. I figured by now they are all in landfills.

Re: POC VERSION TWO

Posted: Thu May 31, 2018 10:18 pm
by whartung
I never had one of those, I had a yellow Flavoradio.

Re: POC VERSION TWO

Posted: Thu Jun 07, 2018 9:02 pm
by BigDumbDinosaur
BigDumbDinosaur wrote:
Well, I've got POC V2.0 running on a different (new) CPLD that I programmed with the tidied-up code. I'll let it go for a few more days and if nothing untoward happens, I'll reprogram the CPLD with the older code and see if that breaks it.
There was a bug in the older CPLD code but that wasn't the cause of the trouble. The trouble was coming from an unsuspected place.

When I did the layouts for both versions of POC V2, I allocated enough room around the ROM so I could piggyback a ZIF socket into the ROM's socket to make it easier to swap out ROMs during firmware development.¹
POC V2.0 w/ZIF Socket Installed
POC V2.0 w/ZIF Socket Installed
The ZIF socket I've been using was one I had used in the past for testing ROMs in the empty ROM socket in the Commodore 128. It had gotten quite a bit of use and had laid about for a while before being pressed into service with POC V2. The socket turned out to have an intermittent connection in it.

How did I figure this out, you ask? I couldn't get POC V2.0 to run properly after making nothing more than a cosmetic change to the test firmware code I was using, a change that simply moved some text from one place on the screen to another. In trying to figure out what the heck was wrong, I put the previous (working) ROM back into the ZIF socket and it too seemed to have the same problem. You can imagine the language I used when that happened! :evil:

So there I sat, baffled by what was going on, thinking I had a flaky ROM, when it suddenly occurred to me I was overlooking something else, which was the ZIF socket. It made sense: both versions of POC V2 were displaying similar problems, even with firmware code that had worked before. Also, as I was testing, I was constantly moving the socket from one unit to the other. In other words, I was moving the source of the problem from one unit to the other when I moved the socket.

With all that stewing in my little dinosaur brain, I yanked out the ZIF socket and plugged the ROM directly into the socket soldered into the board. I powered up, the unit came to life, the POST screen was displayed and the logic probes indicated normal activity on /IRQ and RDY.

I let the unit run like that for several days and then powered off. I unplugged the ROM, put the ZIF socket back in place and put the same ROM in the ZIF socket. Sure enough, the unit didn't boot. Just for grins, I powered down, pressed down on the ROM with my thumb, and then powered up. The unit booted and the probes indicated normal activity.

I also tried the above series of tests on POC V2.1, using a ROM I had burned back in November and knew was functional. Same results: with the ZIF socket installed, sometimes the unit would behave and sometimes it wouldn't.

I have ordered a new ZIF socket, which I hope to receive in the next day or two. Presumably it will function as it should and I can get on with developing firmware.

——————————
¹In future endeavors of this kind, I will solder the ZIF socket into the prototype's PCB instead of piggybacking it on the ROM socket. The only reason I didn't do that with POC V2 was the frugal Irishman in me didn't want the 15 dollar ZIF socket becoming a permanent part of the assembled unit.

Re: POC VERSION TWO

Posted: Thu Jun 07, 2018 9:36 pm
by GARTHWILSON
I've had a few problems with ZIF sockets over the decades, that they did not grab the EPROM pins firmly enough to make a good contact. The green 3M ones were the worst. Forcing the EPROM side to side to scrape the contacts as I slowly tightened the socket usually did the job.

Re: POC VERSION TWO

Posted: Thu Jun 07, 2018 9:46 pm
by BigDumbDinosaur
GARTHWILSON wrote:
I've had a few problems with ZIF sockets over the decades, that they did not grab the EPROM pins firmly enough to make a good contact. The green 3M ones were the worst. Forcing the EPROM side to side to scrape the contacts as I slowly tightened the socket usually did the job.
I can vouch that the green 3M sockets as being junk. I've had grief with them in the past.

I did try "scraping" the contacts by wiggling the ROM as I closed the socket, thinking that was all it was. It didn't turn out to be the case with this particular socket. I'm guessing it's an internal mechanical problem.

Re: POC VERSION TWO

Posted: Thu Jun 07, 2018 11:02 pm
by whartung
So, this was it? The ZIF socket? The authentic "Gremlin Brand ZIF Socket"? This is what's been causing your recent woes?

That's great you found it.

Re: POC VERSION TWO

Posted: Thu Jun 07, 2018 11:17 pm
by BigDumbDinosaur
whartung wrote:
So, this was it? The ZIF socket? The authentic "Gremlin Brand ZIF Socket"? This is what's been causing your recent woes?

That's great you found it.
It appears to be the socket. :evil: It's an Aries socket, which is not a cheap brand.