6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Sep 28, 2024 3:23 pm

All times are UTC




Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Jun 23, 2022 4:06 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
I thought I would build a simple NOP tester thingy. I want to prove to myself that I don't have a faulty 65C02.
Attachment:
IMG_20220623_164528.jpg
IMG_20220623_164528.jpg [ 203.58 KiB | Viewed 589 times ]

I decided to forget the LEDs and use my (not very good) 'scope
I expected a square wave on the address lines doubling in wavelength as I work up through the address lines A0-A15.
I further expected A0 to be twice the clock frequency.
I indeed got exactly that - that's good
-but-
Can anyone explain the glitches in voltage in the address lines that go in time with the clock? (Address lines are yellow, clock blue)
Also, why is there a double trace on the Low part of the address?

This is A0
Attachment:
IMAGE1.png
IMAGE1.png [ 3.92 KiB | Viewed 589 times ]

and this is A1
Attachment:
IMAGE2.png
IMAGE2.png [ 3.97 KiB | Viewed 589 times ]


Edit: I forgot to say, the whole idea of the NOP tester was to look for oddities with IRQs. You may remember from above that one of the things I seem to be encountering are spurious (and lots of) interrupts, even though IRQ pin is tied high. With the NOP tester I should get a nice sequence of binary count on the address pins, if this sequence suddenly goes out of sequence that tells me there are spurious interrupts happening. If it counts nice and sequentially then that proves there aren't interrupts happening. Further, the 6502 is out of my main circut, further removing uncertainties.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 23, 2022 4:21 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
If an interrupt were taken, you'd see three consecutive writes - you should be able to see that clearly on the RnW line.

You have no bypass capacitors, by the look of it, so it's not surprising that each clock edge is causing a bounce seen on other signals.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 23, 2022 4:45 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
Ahh, right. Thank you! Simple as that.
I'll look at the R/W line.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 23, 2022 5:30 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8403
Location: Midwestern USA
As Ed noted, there are no bypass capacitors. Try adding some and see what happens.

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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 23, 2022 8:55 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
BigDumbDinosaur wrote:
As Ed noted, there are no bypass capacitors. Try adding some and see what happens.

Yep. That was it. Bypass capacitors improved things a lot. Thanks for that. I just wondered what it was. I will know if I see it again!


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 23, 2022 9:01 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 489
Hi Adrian,

As I was researching my similar problem I came across this:

https://web.archive.org/web/20160410002234/http://www.sigcon.com/Pubs/edn/mutual_understanding.htm

You might find it helpful.

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 23, 2022 9:03 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
Paganini. Thank you. Very much appreciated.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 24, 2022 4:42 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8403
Location: Midwestern USA
adrianhudson wrote:
BigDumbDinosaur wrote:
As Ed noted, there are no bypass capacitors. Try adding some and see what happens.
Yep. That was it. Bypass capacitors improved things a lot. Thanks for that. I just wondered what it was. I will know if I see it again!

In digital circuits, bypass capacitors are like money: you can never have too much. :D

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


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 25, 2022 6:35 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8520
Location: Southern California
adrianhudson wrote:
Garth, I'll be more than happy if I get something working at 1Mhz.

Well, again, it's not the MHz that hurts you, but rather the rate at which signals slew from a logic-low level to a logic-high level, or vice-versa; and the W65C02 and 74AC parts have much faster edge rates (slew rates) than what I got going in 1986 or '7 with 2MHz parts on a solderless breadboard. Jack Ganssle's YouTube video, "I Only Probed the Board With a Scope - Why Did My Board Crash?," the part from about 2:20 to 3:00, graphically shows on an oscilloscope that the ugly ringing remains unaffected as he turns the clock frequency up and down. (This is linked to in the AC-performance page of the 6502 primer.) The #1 thing you have to keep clean is the clock line; but these faster changes on other lines can inductively couple into the clock line. If it's bad enough, the clock line will now appear to have extra edges that are coming too close together for parts to meet the timing requirements.

We had a situation in the 1990's at work where we used a particular IC successfully in our products, and then the manufacturer changed the wafer-fab process and increased the slew rate, without notice. Although the operating frequency remained the same, the faster slew rate caused problems that suddenly meant we had a product we couldn't sell until we scrambled to find a solution.

_________________
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  
PostPosted: Sun Jun 26, 2022 5:44 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
It took ages but I rebuilt the SBC on new breadboard over the last couple of days.
Exactly the same result. A seeming lockup of interrrrrrrrrrrupts even with the IRQ and NMI pins tied high.

Today the new 65C02 arrived. Plugged it in and it worked immediately.
So, it indeed was faulty!


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 26, 2022 6:03 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8403
Location: Midwestern USA
adrianhudson wrote:
It took ages but I rebuilt the SBC on new breadboard over the last couple of days.
Exactly the same result. A seeming lockup of interrrrrrrrrrrupts even with the IRQ and NMI pins tied high.

Today the new 65C02 arrived. Plugged it in and it worked immediately.
So, it indeed was faulty!

From where did you get the old 65C02?

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


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 26, 2022 7:01 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
Mouser UK.

New one is from a good supplier on eBay. Mouser have a minimum order value that means if you buy something for £1, p&p is £29 (minimum orde value of £30).


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 26, 2022 8:17 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8520
Location: Southern California
I wonder if the new one is a slower one, even if mismarked (as there are so many counterfeits from China's "refurbishing" industry—see the warning about them in the 65xx parts sources topic head post, and the links there). If the earlier one truly was bad (not just too fast for the build), you probably damaged it with static discharge. I have been responsible for possibly millions of ICs at work, all bought from legitimate manufacturers' distributors, and we have never gotten a DOA one AFAIK. All I can think of is one 65c22 from Rockwell many years ago that seemed to have a bondwire that let go after it was subjected to a lot of vibration in the field. Manufacturers' thorough testing and packing makes sure only good ones reach the market. Members here frequently post that they seem to have gotten a bad one; but my experience says you never will as long as you buy from legitimate distributors.

_________________
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  
PostPosted: Sun Jun 26, 2022 8:26 pm 
Offline

Joined: Sat Apr 30, 2022 7:13 pm
Posts: 159
Location: Devon. UK
GARTHWILSON wrote:
I wonder if the new one is a slower one, even if mismarked (as there are so many counterfeits from China's "refurbishing" industry—see the warning about them in the 65xx parts sources topic head post, and the links there). If the earlier one truly was bad (not just too fast for the build), you probably damaged it with static discharge. I have been responsible for possibly millions of ICs at work, all bought from legitimate manufacturers' distributors, and we have never gotten a DOA one AFAIK. All I can think of is one 65c22 from Rockwell many years ago that seemed to have a bondwire that let go after it was subjected to a lot of vibration in the field. Manufacturers' thorough testing and packing makes sure only good ones reach the market.

I am pretty sure the old one was a good one. It came from Mouser and I can't believe they would sell counterfeit anything. The markings are identical to the letter with the new one.

It did work - well, I never had it working well... probably my coding - but it did work. I suspect very much you are correct with the static theory.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 27, 2022 2:17 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
adrianhudson wrote:
Today the new 65C02 arrived. Plugged it in and it worked immediately.
Maybe you've already done this, but as a sanity check it's worth temporarily swapping the "bad" chip back in again. Of course the expectation is that the problem will reappear, but this isn't always the case. It's not uncommon for projects to fix themselves just as a result of the flexing and vibration associated with exchanging a chip or a PSU or whatever.

-- Jeff

_________________
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  [ 30 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 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: