Page 2 of 2

Re: 6502 never reaches reset vector

Posted: Sat Aug 13, 2022 12:50 am
by plasmo
BillO wrote:
plasmo wrote:
I myself use MCP130. I buy 200 from Mouser at a time for around 50 cents each. I'm on my third batch of MCP130.
Bill
Interesting. Can you add a reset switch to it? I can't find mention of that in teh data sheet.
In theory, instead of connecting MCP130's VCC directly to 5V, a 100 ohm resistor can be inserted between power VCC and MCP130's VCC and connect the manual reset switch between MCP130's VCC and ground, so the manual switch simulates a power outage. In practice, I've never done that but instead connecting the manual reset switch between MCP130's reset output and ground. This is because many of my retro designs (such as CRC65) have an alternative bootstrap sequence active in the short time window between reset negating and normal boot sequence execution so I need to know exactly when manual reset is negating in order to invoke the alternative bootstrap sequence. In the course of testings I've discovered the common, inexpensive tactile switch has mostly bounce-free switching so a manual reset switch at MCP130's reset output works just fine vast majority of the time.
Bill

Re: 6502 never reaches reset vector

Posted: Sat Aug 13, 2022 2:33 am
by floobydust
BigEd wrote:
Empirically, this can't quite be so - I would think many people have just wired up a reset button and found it to work. If perhaps once in a while reset doesn't work, it would be natural and almost unconscious to press it again.

What I think you must mean, then, is that you yourself would be inclined to include such a chip, and you recommend that others do, in the case that they want a very reliable reset. You could perhaps say that it's a good idea to include such a chip.

I say this because I believe we don't need to encourage over-engineering, and we don't benefit the community by insisting that every project should be built as industrial grade.
Sorry Ed, but I'll have to disagree with you on this one. What you're suggesting is a flawed design path I don't agree with, e.g..

1- If it works most of the time, then it's fine... nobody should need anything better
2- Giving mediocre advice is acceptable
3- Doing things properly (called engineering) in your view is over-engineering... and not necessary

When someone new shows up, especially with limited or possibly no actual experience, encouragement is great thing. Giving them proper hardware design advice is another.

Based on your comment, every Commodore home machine was over-engineered, as all had a decent reset circuit. Personally, I found most Commodore machines to be on the skimpy side of proper engineering, mostly for cost reasons.

Doing things in a half-*** way can work under a limited set of conditions, but when it doesn't or is intermittent, a new user will tend to get more frustrated and might even give up, especially if the collective advice given here promotes poor design, engineering or build techniques.
A new user could also get confused and think that the software is the problem, which could also lead to a waste of time and more frustration.

Including proper design/engineering into your hobby does NOT make it industrial grade, not even close!

Re: 6502 never reaches reset vector

Posted: Sat Aug 13, 2022 4:32 am
by BigDumbDinosaur
BigEd wrote:
You could perhaps say that it's a good idea to include such a chip.

If he were building an automobile, it might be a good idea to include brakes and a steering wheel. Let me know if you find a substitute for those items. :D

Quote:
I say this because I believe we don't need to encourage over-engineering, and we don't benefit the community by insisting that every project should be built as industrial grade.

Notice I said “...with a Maxim DS1813 or similar.” “Similar” means something with a similar level of function. Improper reset can and will cause obstreperous problems, same as will using an inadequate clock source.

I'm not encouraging over-engineering, only proper engineering.

Re: 6502 never reaches reset vector

Posted: Sat Aug 13, 2022 9:07 am
by BigEd
The missing ingredient here, I think, is context. I'm all for engineering, in its place, but we have topics here and they set a context. A kid on a home made sledge going down a steep hill may or may not get to the bottom in full control. A bobsleigh team on an Olympic course need a different level of discipline.

Robust engineering suggestions can be very welcome, but in their place. And they should only ever suggestions, based on personal experience and preference. There are no stone tablets here.

Re: 6502 never reaches reset vector

Posted: Sat Aug 13, 2022 2:45 pm
by Paganini
BigDumbDinosaur wrote:
The pullup resistor (R17) should be 3.3K, or thereabouts.
Why is that?

As a hobbyist coming from zero electronics knowledge roughly two years ago, one of the things that's still elusive to me is picking *specific* resistor values.

What I think is, having a lower value pullup resistor will make RSB go high more quickly (i.e., return to normal after being pulled low for a reset). Is the inverse of that also the case, that using a higher value resistor will make it pull down to GND more quickly, getting a cleaner and more immediate reset signal?

Re: 6502 never reaches reset vector

Posted: Sat Aug 13, 2022 4:36 pm
by Dr Jefyll
Paganini wrote:
one of the things that's still elusive to me is picking *specific* resistor values.
For starters, be aware that many use cases for resistors have surprisingly forgiving tolerances -- like, 50% or even more (even though resistors are typically sold with a tolerance of 5% or better).

And pullups are a use case where the exact value isn't terribly fussy. But hobbyists often will, by default, stick with a value such as 2.2k or 3.3k that's familiar because they've seen it used in commercial products or mentioned in a data sheet or application note.

Yes having a lower value pullup resistor will make RSB go high more quickly. As the node goes high and low, you're charging and discharging the parasitic capacitance, and the delay is proportional to R times C.

But the speed with which the node goes low (ie, discharges the capacitance) is mainly determined by the "resistance" of whatever causes the node to go low (in this case, a transistor that's internal to the DS1813). I've simplified matters slightly, but I hope the gist is clear.

-- Jeff

Re: 6502 never reaches reset vector

Posted: Sat Aug 13, 2022 5:29 pm
by Paganini
Dr Jefyll wrote:
I've simplified matters slightly, but I hope the gist is clear.
It is. Thank you!

Re: 6502 never reaches reset vector

Posted: Mon Nov 21, 2022 12:01 pm
by Sheep64
BigDumbDinosaur on Sat 13 Aug 2022 wrote:
obstreperous
BigDumbDinosaur continues to be our Thesaurus Rex.

Re: 6502 never reaches reset vector

Posted: Mon Nov 21, 2022 12:06 pm
by Sheep64
BillO on Fri 12 Aug 2022 wrote:
Can you add a reset switch to it? I can't find mention of that in teh data sheet.
Empirically, MCP101 appears to be 1/5 price but otherwise the same as DS1813. It works with switch and 100 ohm resistors. I presume MCP130 also works. Try it.