To pull-up or not to pull-up, this is the question..

Let's talk about anything related to the 6502 microprocessor.
Post Reply
walter.preuninger
Posts: 15
Joined: 30 Apr 2018

To pull-up or not to pull-up, this is the question..

Post by walter.preuninger »

Happy New Year Everyone!

Over my 3 days off, I threw down a WDC6502 onto a breadboard. I did a modified 'Ben Eater', where I was driving the clock with a sketch I had written for Arduino Mega 2560. Unfortunately it didn't work, all I got on Address and Data lines was $FF. I don't have a scope, just a cheap TTL/CMOS logic probe. I haven't had time to get back into it, just I do have time while at work to read all these informative posts.

So, in Ben Eater's 6502 build, he doesn't use any pull-ups. When I read the datasheet for the WDC 65C02, I see this on the RDY line.
Quote:
The RDY pin no longer has an active pull up. It is suggested that a pull up resistor be used on this pin when not being used. The RDY pin can still be wire ORed.
I don't see this warning on any other lines, so... to pull-up or to not pull-up (with a resistor).

And what should the value of said resistor be. I see stuff ranges from 330 to 3.3 K.

Help!

Walter
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: To pull-up or not to pull-up, this is the question..

Post by drogon »

Use a pull-up on Rdy. Also on the BE, Reset, IRQ and NMI inputs, as well as the Abort pin too (65c816 though). I use 3.3KΩ - works for me.

And welcome!

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
walter.preuninger
Posts: 15
Joined: 30 Apr 2018

Re: To pull-up or not to pull-up, this is the question..

Post by walter.preuninger »

What are the chances that I fried some silicon?

Thank you

Walter
User avatar
GARTHWILSON
Forum Moderator
Posts: 8774
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: To pull-up or not to pull-up, this is the question..

Post by GARTHWILSON »

walter.preuninger wrote:
What are the chances that I fried some silicon?
Probably pretty slim; but it's impossible to know without seeing what you did. With CMOS, (or any kind of MOS), you also have to be careful with static-handling precautions while the inputs are accessible to damage with our little mitts. When you reach for the circuit, touch its ground or power before touching any inputs. (You probably already knew that though.)
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?
walter.preuninger
Posts: 15
Joined: 30 Apr 2018

Re: To pull-up or not to pull-up, this is the question..

Post by walter.preuninger »

Oh, yeah. I am amazed when I see people in YouTube just handling chips like anything else.

I leave my chips in their anti static bag, or transfer them from a tube and rest them on anti static foam. I handle them by the edges.

I don't think my cpu was getting power. I used jumper wire, but my strippers are cheap, and was just using a pocket knife to remove the insulation. I bought some real breadboard jumpers on Amazon, hopefully they will work better. Going to try something tonight.

Thanks!

Walter
Chromatix
Posts: 1462
Joined: 21 May 2018

Re: To pull-up or not to pull-up, this is the question..

Post by Chromatix »

The W65C02S has "bus holding devices" on most of its pins. They'll hold an input line at a proper CMOS logic level, as long as the CPU is powered - either VCC or GND. But if you want it to settle at a *particular* logic level, then you have to drive it externally - at minimum with a resistor to the appropriate power rail. For historical reasons, most control signals have their quiescent state as logic high, hence the prevalence of pull-up resistors.
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: To pull-up or not to pull-up, this is the question..

Post by BigDumbDinosaur »

Chromatix wrote:
The W65C02S has "bus holding devices" on most of its pins.
That is not correct. All inputs to the C02 and 65C816 must be driven to Vcc or ground at all times.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
Dr Jefyll
Posts: 3526
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: To pull-up or not to pull-up, this is the question..

Post by Dr Jefyll »

Doh! You're right, BDD. And, unawares, I just cited this incorrect info in another post. :oops:

It's one of WDC's VIAs that has bus hold. On the W65C22S all pins except PHI2 have the bus hold feature. But WDC's W65C22N and their CPU's do not have bus hold.
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: To pull-up or not to pull-up, this is the question..

Post by BigDumbDinosaur »

Dr Jefyll wrote:
Doh! You're right, BDD. And, unawares, I just cited this incorrect info in another post. :oops:

It's one of WDC's VIAs that has bus hold. On the W65C22S all pins except PHI2 have the bus hold feature. But WDC's W65C22N and their CPU's do not have bus hold.
At one time, the 'C02 had a weak pullup on RDY, but that was removed when WDC switched foundries and went to the .6 µm process.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
Post Reply