6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 3:33 pm

All times are UTC




Post new topic Reply to topic  [ 544 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21, 22, 23 ... 37  Next
Author Message
 Post subject: Re: POC VERSION TWO
PostPosted: Thu Sep 08, 2016 8:40 pm 
Offline

Joined: Mon Aug 05, 2013 10:43 pm
Posts: 258
Location: Southampton, UK
BigDumbDinosaur wrote:
If the preceding diagnostic path turns out to be a bust I will do just what you described.


You could even eliminate everything except the ROM decoding and a simple output register on the CPLD. Use a single output pin (maybe the QUARTs chip select, with the IC removed?) as an output and attach the logic analyser to it. I assume it is possible to run up the '816 RAM-less? Code in the ROM could then flip the output on and off.

My boards always include a LED on an PLD output pin for this kind of reason.

_________________
8 bit fun and games: https://www.aslak.net/


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Thu Sep 08, 2016 9:11 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
Aslak3 wrote:
You could even eliminate everything except the ROM decoding and a simple output register on the CPLD. Use a single output pin (maybe the QUARTs chip select, with the IC removed?) as an output and attach the logic analyser to it.

No logic analyzer, just a scope and a logic probe. Usually I solve these problems with just the probe. Single-stepping the clock will be a big help. I'm going to build a little gadget for the purpose.

Quote:
I assume it is possible to run up the '816 RAM-less?

It is possible. In fact, the beginning of the reset handler makes no references to RAM. The ROM I'll use to figure out this problem will consist of two instructions: NOP and STP, neither of which requires any memory access other than the MPU fetching the opcodes from ROM.

Quote:
My boards always include a LED on an PLD output pin for this kind of reason.

Unfortunately, every one of the 32 I/O pins on the ATF1504AS has been allocated to a circuit function.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 18, 2016 8:46 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
BigDumbDinosaur wrote:
cbscpe wrote:
I'd rather would create a minimal CPLD design...

If the preceding diagnostic path turns out to be a bust I will do just what you described.

I got my little clock single-stepper built and tried it out. Right off the bat I could see where the Ø2 clock might be an issue.

Recall that Ø2 is the output of a flip-flop driven by an oscillator. The single-stepper does nothing more than imitate the low/high output of the oscillator, pulling the flop's CLK input low when a push button is pressed and then bringing CLK high shortly after the push button is released—a DS1813 reset generator debounces the push button. Each time CLK goes high the flop's Q output, which is from where Ø2 is derived, should change state. So, the theory goes, two push button press/release cycles would produce one complete Ø2 cycle, which would allow me to look at various logic levels with Ø2 held in either state.

For initial testing purposes, I put my logic probe on the flop's Q output just to prove that my stepper was stepping. Several times I noted that the probe didn't always say Q was high when it should have been. First thought was perhaps the flop was defective. Then it occurred to me to switch the logic probe (a BK Precision DP-21) from CMOS to TTL mode, which has the effect of changing the probe's notion of what voltage level constitutes a logic 0 or logic 1. Now the probe consistently indicated when Q was low or high.

The logical progression with this would be to replace the 74ABT74 flop with a 74AC74 equivalent, since the latter's outputs when high are very close to Vcc. I don't have any 'AC74s in SOIC14 so I had to order one. That will be the easy part. Replacing it...well, I still can't see from my left eye...

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 18, 2016 9:59 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
BigDumbDinosaur wrote:
I got my little clock single-stepper built and tried it out. Right off the bat I could see where the Ø2 clock might be an issue.

I tried out the clock stepper on POC V1.1, whose Ø2 clock is derived from a 74AC74 flop. The logic probe, set for CMOS mode, indicates that Ø2 positively changes state with each press of the push button. It looks as though the 74ABT74 flop on POC V2 is going to have to be replaced with the 74AC equivalent. :cry:

Attachment:
File comment: Clock Stepper Attached to POC V1.1
clock_stepper01.gif
clock_stepper01.gif [ 1.58 MiB | Viewed 959 times ]

Attachment:
File comment: Clock Stepper Attached to POC V1.1
clock_stepper02.gif
clock_stepper02.gif [ 2.81 MiB | Viewed 959 times ]

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Tue Sep 20, 2016 4:35 am 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 491
Location: Switzerland
I would try to put a strong pull-up first in PHI2, eg something like 330 Ohms.


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Sat Sep 24, 2016 4:37 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
cbscpe wrote:
I would try to put a strong pull-up first in PHI2, eg something like 330 Ohms.

Tried that, but it made for a poor waveform and had no apparent effect. The flop needs to be changed out with an 'AC74.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Sat Sep 24, 2016 9:30 am 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 491
Location: Switzerland
What clock speed did you use with the pullup? That can't be that the waveform is bad. In my opinion there is some sort of connection to PHI2 that should not be.


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Sat Sep 24, 2016 5:24 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
cbscpe wrote:
What clock speed did you use with the pullup? That can't be that the waveform is bad. In my opinion there is some sort of connection to PHI2 that should not be.

The input to the flop is 2 MHz, so Ø2 is 1 MHz. The presence of the pull-up makes the waveform somewhat trapeziodal. Without the resistor, the waveform is pretty square.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Sat Sep 24, 2016 6:55 pm 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 491
Location: Switzerland
Strange. Why should the pull-up make the pulse trapeziodal? There is no reason for that. The ABT output can sink 20mA and source -15mA. The pull-up should virtually have no impact. Certainly not when you stay below the source capabilities. What value did you use for the pull-up.


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Sun Sep 25, 2016 7:56 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
cbscpe wrote:
Strange. Why should the pull-up make the pulse trapeziodal? There is no reason for that. The ABT output can sink 20mA and source -15mA. The pull-up should virtually have no impact. Certainly not when you stay below the source capabilities. What value did you use for the pull-up.

I used 680 ohms. The 74ABT74 can source 32mA and sink 64mA. It could be the particular flop I used has a problem.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Sun Sep 25, 2016 3:30 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8538
Location: Southern California
680 ohms times even 20pF on the line makes for a time constant of 13.6ns. Although that TC picks up after the 74ABT part gets its output as high as it can, it might still be a problem. The specified maximum acceptable rise time for the '816 is 5ns.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Mon Sep 26, 2016 5:50 am 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 491
Location: Switzerland
Is this 5ns really the limiting factor here? I doubt. It still puzzles me that the signal is trapezoidal. With 1 MHz each Phase is 500ns. To be able to see a trapezoidal signal with a 680Ohm pull-up is not normal. Even if the RC time of PHI2 due to capacitance is 20ns then you barely can see that. Also the ABT should bring the signal to a reasonable Level in a very short time, less than 3ns. If after the level from the ABT the rest of the edge shows a slow rise time then I still think there is some unexpected load on PHI2. A decoupling capacitor, output, etc.

BDD, how many input signals are connected to PHI2 and what is the rise time of your trapezoidal waveform and is Voh with the pull-up at the expected Level, i.e. 5V?


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Mon Sep 26, 2016 6:01 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8479
Location: Midwestern USA
cbscpe wrote:
BDD, how many input signals are connected to PHI2 and what is the rise time of your trapezoidal waveform and is Voh with the pull-up at the expected Level, i.e. 5V?

Not sure what you mean by "how many input signals" but Ø2 (the flop's Q output) drives the '816 and the CPLD. I have verified that there are no other connections to Ø2.

The clock oscillator only drives the CLK input of the flop. Incidentally, I mistyped earlier. The test frequency was an 8 MHz oscillator, resulting in a 4 MHz Ø2.

As for the waveform, I can't explain it but believe at this point that the flop has a problem. It will get changed out and replaced with a 74AC74.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Mon Sep 26, 2016 12:24 pm 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 491
Location: Switzerland
Indeed the CPU and the CPLD only is not many. I thought there were also some 6522. I agree the flop is now the suspect.


Top
 Profile  
Reply with quote  
 Post subject: Re: POC VERSION TWO
PostPosted: Tue Sep 27, 2016 1:02 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
BigDumbDinosaur wrote:
Ø2 (the flop's Q output) drives the '816 and the CPLD. I have verified that there are no other connections to Ø2.
What does the scope say about the GND and VCC pins of that flipflop when its output is misbehaving (ie, pullup attached)? Worth checking, if you haven't already.

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 544 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21, 22, 23 ... 37  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: