W65C02S RDY / BE pins & first build advice
Re: Details on the W65C02S RDY / BE pins needed
I suppose the first thing to say is that all advice, if sincerely given, reflects the habits and experience of the person giving it. My feeling is that distraction is a potential problem, which is one reason to try to apply some discipline to learning how to do something. Another reason to apply discipline is to build knowledge and understanding in stages. Trying to learn everything all at once seems to me like it will make it more difficult. Iteration and repetition helps, too: aiming to learn everything from a single ambitious project seems to me very... ambitious. A series of projects, of increasing sophistication and difficulty, seems a better idea.
As for limiting yourself to 50 things a year, I'm on record as estimating that I manage about one productive weekend a year. People can be wildly different, but I'd be impressed to see 12 good projects a year from anyone.
But, as they say these days, you do you, and hopefully you'll get somewhere you want to get to, and also enjoy the journey.
As for limiting yourself to 50 things a year, I'm on record as estimating that I manage about one productive weekend a year. People can be wildly different, but I'd be impressed to see 12 good projects a year from anyone.
But, as they say these days, you do you, and hopefully you'll get somewhere you want to get to, and also enjoy the journey.
Re: Details on the W65C02S RDY / BE pins needed
Paganini wrote:
Osric wrote:
Like a lot of folks, as a teenager I thought of electricity like “water in a pipe”. But I think this analogy is fundamentally unhelpful because when you apply pressure (“voltage”) at one end of the pipe it is easiest to think of it as instantaneously appearing at the other end of the pipe (assuming the pipe is full of water). Perhaps if I had thought of it as “empty pipes” that would have been a better mental model.
Paganini wrote:
One thing that might help, maybe, is to notice that there is not really any such thing as a "signal" moving in the wires. The idea of "signal" is an abstraction that lets us think about logic instead of electrons. Similarly, "voltage" is not a thing that moves around. Voltage is a measurement taken by us, the observers, that describes the relationship between two points in a circuit.
Paganini wrote:
What we are measuring, specifically, is the number of free electrons (or "electron holes" that free electrons could move into).
Paganini wrote:
In the classical model, because Ben Franklin was a bit of a goober, the point that has more "electron holes" is positively charged, while the point that has more free electrons is negatively charged. If you connect the two points with a conductor, the free electrons will move from the negative point to fill in the holes at the positive point. Classical current is the movement of the "electron holes" in a conductor, but what is really happening is that electrons are zipping around in the *opposite direction.*
Paganini wrote:
Ideally, all points in a circuit that are electrically common have the same voltage (0V) when compared to each other. In reality, though, electrons move very quickly, but *not instantaneously.*
Paganini wrote:
So, it takes the tiniest bit of time for the battery to "suck" the electrons out of the circuit and charge up points B and C. How long this is depends on how big the wire is, what it's made of, and what else is going on around it.
Paganini wrote:
But more importantly, to change the voltage at the 6502's clock input pin some electrons must move. Those electrons come from somewhere! Where? The answer is ground.
Paganini wrote:
The ground side of a circuit is like a free electron reservoir. If some electrons go out from the clock input of the 6502 into the clock output of the oscillator, then the same amount of electrons must also go into the 6502 through its ground pin. This means that, temporarily, the 6502's local ground pin is slightly more positive than the rest of the ground side of the circuit. Meanwhile, the oscillator has a few extra free electrons that it just received from the 6502. It has to send those electrons back to the 6502 so that the free electron reservoir can settle down. If you don't suck, you can't blow.
This is the signal return path. Unfortunately (in some ways) for us, electrons like to take the path of least resistance. If the loop back between the ground pins of the oscillator and 6502 is long or windy those electrons will try to find some other way to go, which can include through other ICs that might happen to be in the way. Havoc may ensue.
Paganini wrote:
Moreover, as the oscillator switches voltage at its output pin and the 6502 follows almost (but not quite) instantaneously at its input pin, tiny amounts of current will be constantly flowing back and forth between those two pins, and also between the two ground pins of those ICs. Even though our (logic) signal is (abstractly) traveling in one direction (from oscillator to 6502), we are actually dealing with alternating current! We potentially have to think about capacitance, inductance, impedance and all kinds of complicated math. Because of electromagnetic fields we might experience intermittent glitches on a signal caused by complex relationships between switching patterns of *other signals.* This is why Ed keeps talking about rules of thumb. To debug these sorts of problems you need (often very expensive) equipment, and a real command of electronics math. This is something that most hobbyists (including me!) would rather avoid. 
Finally, I guess it's worth pointing out that even the classical model is not "what's really going on." As Ed says, you can go all the way down to quantum mechanics, where electrons are not "things" that "move" but are more like ripples in fields. Every model is a description in some sort of language, more or less precise, of what we observe. There is no "what's really going on" that we can access independently from our perceptions. At some point you have to stop looking for the next turtle down and start building computers.
Finally, I guess it's worth pointing out that even the classical model is not "what's really going on." As Ed says, you can go all the way down to quantum mechanics, where electrons are not "things" that "move" but are more like ripples in fields. Every model is a description in some sort of language, more or less precise, of what we observe. There is no "what's really going on" that we can access independently from our perceptions. At some point you have to stop looking for the next turtle down and start building computers.
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Details on the W65C02S RDY / BE pins needed
Osric wrote:
BigEd wrote:
- level 0, put things together and see if it works, then change things until it does, or until you run out of patience...Trying to learn everything all at once seems to me like it will make it more difficult...
I am bowing out of any further discussion of this topic, as it has become clear to me you are resistant to expending a modicum of time to study basic electronics and understand foundational relationships. As Ed intimates, knowledge of the physics themselves isn’t a prerequisite to being a successful hobbyist. What is a prerequisite is understanding the principles, which is where I think you should focus your efforts right now.
That said, I will leave you with this parting thought. Swimming against the tide results in the expenditure of a lot of energy but gains you little headway.
Last edited by BigDumbDinosaur on Sun Aug 11, 2024 10:24 pm, edited 1 time in total.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Details on the W65C02S RDY / BE pins needed
BigDumbDinosaur wrote:
Osric wrote:
BigEd wrote:
- level 0, put things together and see if it works, then change things until it does, or until you run out of patience...
I am bowing out of any further discussion of this topic, as it has become clear to me you are resistant to expending a modicum of time to study basic electronics and understand foundational relationships that any electronics designer must know in order to be successful. I will leave you with this thought. Swimming against the tide results in the expenditure of a lot of energy but gains you little headway.
I’ll reiterate that I do not think I amt resistant to learning the theory. I just want to focus my learning on deeply understanding theory that is in my way at any given moment, rather than gaining a surface understanding of a broad swath of ideas that will enable me to build faster but without true understanding of what the causes the issues that I get to avoid by following best practice without understanding why it is the best practice.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Details on the W65C02S RDY / BE pins needed
You'll notice I have not gotten into the math here. One of several reasons is that it's not really necessary for what we're doing here. As long as we have a good concept of what goes on and what the effects are, we'll avoid the problems that can keep our stuff from working. I imagine we all agree that the more we understand, the better, but that there's not any magic threshold we need to reach to enjoy making stuff that works.
Osric, I'm having a bit of a hard time latching solidly enough onto your question and request for confirmation in your post on the last page, and while I've been thinking about it, so many more posts have been added and it's hard to keep up; so this might be out of order, and certainly incomplete, as new material gets posted faster than I can address it.
I don't know if I've see the exact "famous veritasium video" you mention, but I know I've at least seen related ones, and they regard the transmission-line effect of the parallel conductors.
The electric field comes from the voltage. There doesn't have to be any current to form this field, although if it's across a capacitor, you'll need some current to charge up the capacitor to some voltage, just as it takes some movement to store energy in a spring.
The magnetic field comes from the current, regardless of voltage, although to get the current going in an inductor, you'll need some voltage across it, just as it takes some torque to get a flywheel going. (It also takes torque in the opposite direction to slow it down and to stop it.)
You've probably seen the inside of a mechanical wristwatch, where the escapement which sets the speed has a little flywheel with a spring on it. The spring, like a capacitor, and the flywheel, like an inductor, together resonate at the (hopefully) desired rate, going back and forth, so the ticking makes the watch keep accurate time. At the two parts of the cycle where the flywheel is stopped, all the energy is stored in the spring; but at the two parts of the cycle where the flywheel is turning its fastest, the spring is at its point where is has no tension on it. They're not in phase with each other. The analogy in the computer is that this resonance is desirable for the clock oscillator to go some controlled number of MHz (although the frequency is normally governed by a crystal which emulates an extremely tight LC circuit). Other things that ring and cause problems will generally be much, much higher in frequency, out of control.
A difference however is that as the current in a wire changes, and the magnetic field which goes around it therefore changes, this field, as it goes out and in, as it builds and collapses, respectively, can cut through nearby wires, and try to collapse onto them, making corresponding current changes in them in the opposite direction, so the net current change is reduced or eliminated, which is why twisted pairs and transmission lines are so much better behaved for getting signals through. The magnetic-field lines will be perpendicular to the electric-field lines. I have sketches illustrating mutual inductance at viewtopic.php?p=55094#p55094 .
The water-pipe analogy only goes so far, for various reasons, and I can't think of any way to make it extend to mutual inductance.
Many CMOS inputs and outputs are more or less symmetrical, unlike TTL. WDC's output drivers can pull up all the way to Vcc, and pull up just as hard as down, and many 5V CMOS parts' inputs have their thresholds at 2.5V. Jeff Laughton has an excellent post (actually topic) about thresholds at viewtopic.php?f=4&t=6594 .
The "running downhill" part is true when it's out in the open, like a river, not bound by a pipe. In the pipe situation, if you have something like a U-shaped pipe, and pour water into one end, it will go down the U, traverse the bottom, and up the other side, trying to equalize the pressure on the two sides; so in that case, yes, it will go uphill. Even when air is not bound, cold air will run downhill, like I experience while riding bike in the local canyons in cold weather, and there are these V's in the hills on the uphill side with no sun on them, and cold air in those V's runs down and goes across the road where they come down to it, such that when I go by there, it's suddenly very cold.
Note however that conductors don't particularly need to 'get' electrons from somewhere. Copper has only one electron in its outer valence shell, so it's very mobile, and atoms can pass electrons like a ring of performers on a stage all passing hats in sync from one head to the next, where they all start with one hat and no matter how long the passing goes on, they each always have one hat, or between landings, are passing one hat to the head in front of them while the performer behind is passing another hat to their head, all to the rhythm of the music. I think there was an example in the Chitty Chitty Bang Bang movie when Dick Van Dyke was doing "The Old Bamoo" at the fair, the performance that got him the money to buy the old car. Traffic signal sensors, if their sensitivity is adjusted per a particular federal standard (which unfortunately many are not), can sense a bicycle wheel. The sensor is a coil tucked into a slot in the pavement, and the controller puts an alternating current through it, and senses changes in the complex impedance. It does not "weigh you;" in fact, it's not necessary to even touch it. My rims are aluminum, able to conduct electricity around in a closed circle, and when I put the wheel right on the wire (not across it, nor inside the loop), the traffic signal controller senses that I'm there waiting for a green light. The wheel didn't have to receive electrons, but instead, the ones already there just started going around in a circle, collapsing the field set up by the sensor loop in the pavement.
A nice thing about a ground plane is that because of mutual inductance, the return path will go through the ground plane, taking on the shape of the trace carrying the signal, because that's easier for it than taking the shortest path, and it eliminates some problems.
True; in the analogy of water in a pipe, if you press some water into one end, the effect is seen at the other end very soon after, even if all the water in the pipe moved only a fraction of a percent of the length of the pipe. The electrons may drift very slowly through a wire, but the phase propagation velocity is basically the speed of light if in free space, or usually more than half the speed of light in a transmission line, depending on the dielectric constant. Without looking it up to review, I think the propagation velocity through FR4 PC board is about 2/3 the speed of light.
Osric, I'm having a bit of a hard time latching solidly enough onto your question and request for confirmation in your post on the last page, and while I've been thinking about it, so many more posts have been added and it's hard to keep up; so this might be out of order, and certainly incomplete, as new material gets posted faster than I can address it.
I don't know if I've see the exact "famous veritasium video" you mention, but I know I've at least seen related ones, and they regard the transmission-line effect of the parallel conductors.
The electric field comes from the voltage. There doesn't have to be any current to form this field, although if it's across a capacitor, you'll need some current to charge up the capacitor to some voltage, just as it takes some movement to store energy in a spring.
The magnetic field comes from the current, regardless of voltage, although to get the current going in an inductor, you'll need some voltage across it, just as it takes some torque to get a flywheel going. (It also takes torque in the opposite direction to slow it down and to stop it.)
You've probably seen the inside of a mechanical wristwatch, where the escapement which sets the speed has a little flywheel with a spring on it. The spring, like a capacitor, and the flywheel, like an inductor, together resonate at the (hopefully) desired rate, going back and forth, so the ticking makes the watch keep accurate time. At the two parts of the cycle where the flywheel is stopped, all the energy is stored in the spring; but at the two parts of the cycle where the flywheel is turning its fastest, the spring is at its point where is has no tension on it. They're not in phase with each other. The analogy in the computer is that this resonance is desirable for the clock oscillator to go some controlled number of MHz (although the frequency is normally governed by a crystal which emulates an extremely tight LC circuit). Other things that ring and cause problems will generally be much, much higher in frequency, out of control.
A difference however is that as the current in a wire changes, and the magnetic field which goes around it therefore changes, this field, as it goes out and in, as it builds and collapses, respectively, can cut through nearby wires, and try to collapse onto them, making corresponding current changes in them in the opposite direction, so the net current change is reduced or eliminated, which is why twisted pairs and transmission lines are so much better behaved for getting signals through. The magnetic-field lines will be perpendicular to the electric-field lines. I have sketches illustrating mutual inductance at viewtopic.php?p=55094#p55094 .
The water-pipe analogy only goes so far, for various reasons, and I can't think of any way to make it extend to mutual inductance.
Quote:
3- This is where I get confused; we start to talk about impedance in the ground connections of the originator. I do not understand this part. My best guess based on what I’ve tried to understand is to imagine the originator is driving a bus, like a data bus, and sending 0xFF down the bus - now it’s switching 8 outputs at once. On either end (rising edge or trailing edge) this is going to cause some ground bounce, but it seems like the ground bounce is really only going to cause us a problem on trailing edges because there’s less margin in our logic signals on the low side than the high side: and when the signals go from 0xFF to 0x00, the inductance between the transmitting chip’s ground reference and the system ground cause issues.
Many CMOS inputs and outputs are more or less symmetrical, unlike TTL. WDC's output drivers can pull up all the way to Vcc, and pull up just as hard as down, and many 5V CMOS parts' inputs have their thresholds at 2.5V. Jeff Laughton has an excellent post (actually topic) about thresholds at viewtopic.php?f=4&t=6594 .
Paganini wrote:
That's also how I learned the basics in 4H club. I also think it's a bad analogy. Water runs downhill. The explanations and illustrative diagrams always confused me because I couldn't figure out how gravity fit into the picture. Nowadays I think of it as *air pressure.* This is not necessarily better, I guess, but at least it makes sense to me!
The "running downhill" part is true when it's out in the open, like a river, not bound by a pipe. In the pipe situation, if you have something like a U-shaped pipe, and pour water into one end, it will go down the U, traverse the bottom, and up the other side, trying to equalize the pressure on the two sides; so in that case, yes, it will go uphill. Even when air is not bound, cold air will run downhill, like I experience while riding bike in the local canyons in cold weather, and there are these V's in the hills on the uphill side with no sun on them, and cold air in those V's runs down and goes across the road where they come down to it, such that when I go by there, it's suddenly very cold.
Quote:
Those electrons come from somewhere! Where? The answer is ground. <snip>
Note however that conductors don't particularly need to 'get' electrons from somewhere. Copper has only one electron in its outer valence shell, so it's very mobile, and atoms can pass electrons like a ring of performers on a stage all passing hats in sync from one head to the next, where they all start with one hat and no matter how long the passing goes on, they each always have one hat, or between landings, are passing one hat to the head in front of them while the performer behind is passing another hat to their head, all to the rhythm of the music. I think there was an example in the Chitty Chitty Bang Bang movie when Dick Van Dyke was doing "The Old Bamoo" at the fair, the performance that got him the money to buy the old car. Traffic signal sensors, if their sensitivity is adjusted per a particular federal standard (which unfortunately many are not), can sense a bicycle wheel. The sensor is a coil tucked into a slot in the pavement, and the controller puts an alternating current through it, and senses changes in the complex impedance. It does not "weigh you;" in fact, it's not necessary to even touch it. My rims are aluminum, able to conduct electricity around in a closed circle, and when I put the wheel right on the wire (not across it, nor inside the loop), the traffic signal controller senses that I'm there waiting for a green light. The wheel didn't have to receive electrons, but instead, the ones already there just started going around in a circle, collapsing the field set up by the sensor loop in the pavement.
Quote:
Unfortunately (in some ways) for us, electrons like to take the path of least resistance. If the loop back between the ground pins of the oscillator and 6502 is long or windy those electrons will try to find some other way to go, which can include through other ICs that might happen to be in the way.
A nice thing about a ground plane is that because of mutual inductance, the return path will go through the ground plane, taking on the shape of the trace carrying the signal, because that's easier for it than taking the shortest path, and it eliminates some problems.
Quote:
Actually I think it’s clearer to say that electromagnetic fields propagate quickly. The electrons themselves cause this propagation of the field by moving tiny distances; they do not “zip around” the circuit.
True; in the analogy of water in a pipe, if you press some water into one end, the effect is seen at the other end very soon after, even if all the water in the pipe moved only a fraction of a percent of the length of the pipe. The electrons may drift very slowly through a wire, but the phase propagation velocity is basically the speed of light if in free space, or usually more than half the speed of light in a transmission line, depending on the dielectric constant. Without looking it up to review, I think the propagation velocity through FR4 PC board is about 2/3 the speed of light.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Details on the W65C02S RDY / BE pins needed
GARTHWILSON wrote:
Osric, I'm having a bit of a hard time latching solidly enough onto your question and request for confirmation in your post on the last page, and while I've been thinking about it, so many more posts have been added and it's hard to keep up; so this might be out of order, and certainly incomplete, as new material gets posted faster than I can address it.
In any event the questions from that post in true/false form are:
1. True or false: The electric field represents the force applied to charges in space, but it takes time to set up the electric field surrounding any conductor, and the time required depends on the “inductance”.
2. True or false: This setup time exists whether or not the circuit is open or closed
3. True or false: The electric field charges the wire to the potential that we’ve applied if the circuit is open
4. True or false: The electric field causes current to flow if the circuit is closed
If the answer to any of the above is "false", I need to go back and re-review the content that makes me believe these things to identify whether I have misunderstood it or if the content is wrong.
GARTHWILSON wrote:
The electric field comes from the voltage. There doesn't have to be any current to form this field, although if it's across a capacitor, you'll need some current to charge up the capacitor to some voltage, just as it takes some movement to store energy in a spring.
GARTHWILSON wrote:
The magnetic field comes from the current, regardless of voltage, although to get the current going in an inductor, you'll need some voltage across it, just as it takes some torque to get a flywheel going. (It also takes torque in the opposite direction to slow it down and to stop it.)
[True or false?]: As a separate matter, it is clear to me that a capacitor acts like a short circuit turning into an ever stronger resistor causing current to flow while its electric field gets set up, while an inductor (any wire or coil) acts as a open circuit turning into an ever less resistant resistor while its electric field gets set up. That'd better be true or I really don't understand
GARTHWILSON wrote:
The water-pipe analogy only goes so far, for various reasons, and I can't think of any way to make it extend to mutual inductance.
GARTHWILSON wrote:
Many CMOS inputs and outputs are more or less symmetrical, unlike TTL. WDC's output drivers can pull up all the way to Vcc, and pull up just as hard as down, and many 5V CMOS parts' inputs have their thresholds at 2.5V. Jeff Laughton has an excellent post (actually topic) about thresholds at viewtopic.php?f=4&t=6594 .
GARTHWILSON wrote:
A nice thing about a ground plane is that because of mutual inductance, the return path will go through the ground plane, taking on the shape of the trace carrying the signal, because that's easier for it than taking the shortest path, and it eliminates some problems.
Re: Details on the W65C02S RDY / BE pins needed
In case it's at all helpful, when I used to maintain a hydraulic model in my head, I would imagine a balloon attached to the pipe for a capacitor to ground. Or, a stretchy rubber membrane halving a hollow sphere, for a capacitor which joins two signals.
For inductance, imagine some kind of turbine or water wheel in the flow, perhaps with a flywheel attached. It will resist changes in flow, and store energy in its rotation, and deliver it back. For inductance between signals, couple two turbines to the same flywheel.
I don't really bother with a hydraulic model any more. And, although I do have a maths degree, I've never used equations beyond Ohm's Law and Kirchoff's Law. Never studied or memorised Maxwell's. I have sometimes considered graphs - for example, for transistor characteristics.
Although my approach to the universe in general is to apply physics, when it comes to hobby electronics, I think in terms of simple switch-level models, and with rules of thumb otherwise. (See the topic "Techniques for reliable high-speed digital circuits" for my amateur take.)
The one thing I picked up early on from formal training is the idea of single-clock synchronous design, whereby the clock is the only signal where edges matter. And the time immediately before and after the active clock edge is the only time which matters. This is very powerful, has served me well, and suits HDL design styles very well too.
For inductance, imagine some kind of turbine or water wheel in the flow, perhaps with a flywheel attached. It will resist changes in flow, and store energy in its rotation, and deliver it back. For inductance between signals, couple two turbines to the same flywheel.
I don't really bother with a hydraulic model any more. And, although I do have a maths degree, I've never used equations beyond Ohm's Law and Kirchoff's Law. Never studied or memorised Maxwell's. I have sometimes considered graphs - for example, for transistor characteristics.
Although my approach to the universe in general is to apply physics, when it comes to hobby electronics, I think in terms of simple switch-level models, and with rules of thumb otherwise. (See the topic "Techniques for reliable high-speed digital circuits" for my amateur take.)
The one thing I picked up early on from formal training is the idea of single-clock synchronous design, whereby the clock is the only signal where edges matter. And the time immediately before and after the active clock edge is the only time which matters. This is very powerful, has served me well, and suits HDL design styles very well too.
Re: Details on the W65C02S RDY / BE pins needed
Osric wrote:
I guess we have different definitions or we disagree on both of these points. To me a “signal” has a clear definition as the measure of voltage or current over time. You can see a signal on your oscilloscope; you can “amplify” it with a transistor; you can send it through space with an antenna. The bits we send from a CPU to a RAM component are signals; in digital we exclusively concern ourselves with “logic signals” and try to define when the signal has to be read to make our imaginary clean world of 1s and 0s, but signals are not an abstraction, they are the underlying voltage levels and they are messy when things aren’t working.
Quote:
Similarly, “voltage” is a measurement of a signal value at a particular point in time between two particular locations; it’s what we plot on our oscilloscopes.
Quote:
Paganini wrote:
What we are measuring, specifically, is the number of free electrons (or "electron holes" that free electrons could move into).
Quote:
Actually I think it’s clearer to say that electromagnetic fields propagate quickly. The electrons themselves cause this propagation of the field by moving tiny distances; they do not “zip around” the circuit.
Quote:
Paganini wrote:
So, it takes the tiniest bit of time for the battery to "suck" the electrons out of the circuit and charge up points B and C. How long this is depends on how big the wire is, what it's made of, and what else is going on around it.
Quote:
Paganini wrote:
This is the signal return path. Unfortunately (in some ways) for us, electrons like to take the path of least resistance. If the loop back between the ground pins of the oscillator and 6502 is long or windy those electrons will try to find some other way to go, which can include through other ICs that might happen to be in the way. Havoc may ensue.
Quote:
I think for my purposes getting as far as “electrons are tiny magnets that create electric and magnetic fields” will be sufficiently low-level in the stack of turtles, with possibly a tiny splash of relativity to understand how the charges create magnetic forces. I’m OK with doing the math to understand it at this level; but I don’t need to fully grok the new model as long as my partially constructed model can explain the problems I’m having at any given time. Because at the end, I do agree with you: at some point, I want to be building things, not studying 
Do you know about the website "All About Circuits?" There is a kind of (free!) online textbook there that covers the basics of AC, DC, and explains terms like resistance, inductance, reactance, and impedance. It's what I used when I first got started in the hobby. It was enough to help me establish some "rules of thumb" like Ed describes so that I have some stable hobby boards (and some not so stable ones!
"The key is not to let the hardware sense any fear." - Radical Brad
Re: Details on the W65C02S RDY / BE pins needed
Paganini wrote:
Osric wrote:
Quote:
Paganini wrote:
What we are measuring, specifically, is the number of free electrons (or "electron holes" that free electrons could move into).
We are not close on this one though: if voltage is caused by holes, and you connect two batteries in series then all the holes should get filled by the first battery. This is how it works with static electricity; we can create a charged item and tap it to a neutral item and the charge spreads between them; the neutral item will then be repelled by the charged item. I contend it is not how it works in the case of a battery, which must have a connection back to its other terminal in order to enable the electrons to circulate in any meaningful number. A capacitor I contend is a totally different animal again, where the electric field holds the energy. Edit: I can see a way I have this wrong, even for the "holes" model. You have to argue that the holes on battery 1 keep the electrons from filling the holes in battery 2 because they are pulling on the electrons and holding them in the battery. You can argue that since the holes in battery 1 are present, there are no "free electrons" on the side with the surplus electrons because they are accounted for by the as yet unfilled holes. Therefore no current can move until something is providing electrons into the holes on the other side of the battery, hence the need for a complete circuit.
Paganini wrote:
Quote:
Actually I think it’s clearer to say that electromagnetic fields propagate quickly. The electrons themselves cause this propagation of the field by moving tiny distances; they do not “zip around” the circuit.
Paganini wrote:
Quote:
Paganini wrote:
So, it takes the tiniest bit of time for the battery to "suck" the electrons out of the circuit and charge up points B and C. How long this is depends on how big the wire is, what it's made of, and what else is going on around it.
Paganini wrote:
Paganini wrote:
Quote:
Paganini wrote:
This is the signal return path. Unfortunately (in some ways) for us, electrons like to take the path of least resistance. If the loop back between the ground pins of the oscillator and 6502 is long or windy those electrons will try to find some other way to go, which can include through other ICs that might happen to be in the way. Havoc may ensue.
Paganini wrote:
Do you know about the website "All About Circuits?" There is a kind of (free!) online textbook there that covers the basics of AC, DC, and explains terms like resistance, inductance, reactance, and impedance. It's what I used when I first got started in the hobby. It was enough to help me establish some "rules of thumb" like Ed describes so that I have some stable hobby boards (and some not so stable ones!
)
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Details on the W65C02S RDY / BE pins needed
Osric wrote:
Calculus seems a lot easier to me in my old age than it did as a student in university, so dealing with the math is not really a hurdle anymore.
Osric wrote:
[True or false?]: As a separate matter, it is clear to me that a capacitor acts like a short circuit turning into an ever stronger resistor causing current to flow while its electric field gets set up,
The voltage across a capacitor is proportional to the integral of the current through it; so if you start a zero charge on it, then suddenly connect it to a circuit with a voltage, the current will be limited only by whatever impedance that circuit has.
farads = coulombs / volts
So for example if you put 1 coulomb of charge into a capacitor and it charges it up to 2 volts, it has half a farad, or 500,000µF.
coulombs = amps * seconds; so:
farads = amp-seconds / volts (or you can put "micro" in front of "farads" and "amp-seconds," or put "nano" in front of them both, etc., for example µF and µA-seconds, or pF and mA-nanoseconds, or other combination that makes the powers-of-a-thousand prefixes divide or multiply correctly)
...and of course you can work that around with simple algebra, so the situation where you initially connect the capacitor is:
volts = amp-seconds / farads
Depending on the circuit however, the charging current, and therefore the rate at which the voltage on the capacitor changes, usually drops as the capacitor's voltage gets closer to the final voltage. The time constant ("TC") of a resistor and capacitor in series is a convenient amount of time needed to get the capacitor to 1-1/e times the final voltage, e being the natural-log base, approximately 2.718 (or, if you like rational numbers for scaled-integer math, 193/71 is .001% high, and 23225/8544, which is still representable with 16-bit integers, is only .00000025% high). Anyway, 1-1/e is about 0.63, and if you start at 0V and final voltage is 5V, that's 3.16V which in CMOS circuits is close to the minimum often-guaranteed solid logic-'1' level of 3.5V. 2 TC gets you to .865 of the final voltage, or 4.32V in this case, and so on. For many applications, 5 TC is considered fully charged, although of course you approach "fully charged" asymptotically, so theoretically you never quite reach it.
Quote:
while an inductor (any wire or coil) acts as a open circuit turning into an ever less resistant resistor while its electric field gets set up. That'd better be true or I really don't understand 
The current through an inductor is proportional to the integral of the voltage across it, which is the opposite of the situation with a capacitor, so initially the current is zero, and it increases. The voltage across it is proportional to the first derivative of the current through it.
henries = volts * seconds / amps
So for example if 1V applied for 1s increases the current through the inductor by 2A, that coil has ½H of inductance.
...and of course you can work that around too, and use the prefixes as above to get us into nanohenries, nanoseconds, milliamps, whatever.
In numbers that are more realistic for our applications, suppose an input has 5pF of capacitance. If we could get rid of all unwanted parasitic reactive elements and just feed it an instantaneous change in voltage from a 100Ω source, 1 TC would be 5E-12 * 100Ω = 500ps, or ½ns, 1ns for 2 TC. Unfortunately there are parasitic elements all over the place, and can be hard to model them all mathematically, or measure them, particularly with equipment we hobbyists can afford, which is why it's good to just have an understanding of what this stuff does and then just do our best "good engineering practice" (there's that nebulous term again!) to stay far from the gray zones and out of trouble.
Note that while resistance consumes power, inductance and capacitance don't; they only store energy, and can give it back later, or in the case of mutual inductance, it may just be transferring the energy to an adjacent conductor. If you put a sine wave into a resistor, the current will be in phase with the voltage, and the power lost to heat, in watts, is simply volts times amps. If you apply the sine wave across the inductor, the current will be 90° behind the voltage, and if you apply it to a capacitor, the current will be 90° ahead of the voltage. In practice, there are no absolutely perfect components, but you get the idea. "Resistance" and "impedance" then are not the same thing in AC circuits. Impedance is a complex number, meaning it goes on a graph and not a number line. In the frequency domain, the X value is the "resistance" part, and the Y value is the "reactance" part. Mathematicians use i for the Y part, but in electronics, I usually stands for "current," so we use j instead, like 1260Ω-j400Ω. The complex impedance could be represented as X,Y, or as magnitude and angle. In the digital stuff we would also have to deal with the time domain, and could get into things like convolution integrals and Laplace transforms.
All the parasitic elements in the circuit interact with each other. It's not possible to eliminate them, but they can be minimized, or in some cases damped. When they're not, the ringing, "splashing," etc. can turn one's circuit flaky or just plain non-op. If you've ever bounced a ball in a hallway where all surfaces were reflective, you've probably heard the buzzing effect which does not not represent the normal sound of the ball bouncing. Or perhaps you've been in a large, multi-deck concrete parking garage where all surfaces were acoustically reflective, and you're far from a car whose burglar alarm was sounding "honk-honk-honk..." and with all the echoing, it sounded like one continuous honk, but as you got closer, the honks began to separate and you could tell is was not actually continual. The analogy relates to how we want to design our boards. When it's not practical to control or even measure these parasitic circuit elements, we can stay out of trouble by making the circuit relatively compact to keep traces short, and have at least a relatively fine grid of ground connections if not an actual ground plane, and a power-supply decoupling capacitor at each IC. If you can also do a relatively fine Vcc grid too, all the better.
Quote:
GARTHWILSON wrote:
A nice thing about a ground plane is that because of mutual inductance, the return path will go through the ground plane, taking on the shape of the trace carrying the signal, because that's easier for it than taking the shortest path, and it eliminates some problems.
One way to look at it is that the conductors themselves don't really carry the energy, but instead only guide it, and the energy is stored and carried in the space between the conductors, and you have to charge up that area. Things like twisted pairs or traces running across a ground plane will minimize that area, whereas requiring the return current to go through a ground trace that's far away increases that area, and the return may try to take advantage of closer conductors that the signal should not be coupling into.
Then we get into transmission lines that have a characteristic impedance. All I'll say about that here is that there's capacitance between the conductors (which is determined mostly by the separation distance, the interface area, and the dielectric constant of the separating material), and every conductor has inductance, and we're dealing with mutual inductance, resulting in the "characteristic impedance" looking into one end of the transmission line, and if the other end has a resistive load that matches it, it looks like the line is infinite in length and the signal does not reflect off the end and ever come back. I'll try to find a picture of a model of how the distributed capacitance and inductance work. As the signal goes down the line, it's kind of like holding an empty ice-cube tray at an angle under the fawcet at the kitchen sink, and pouring water into the topmost boxes, and as they fill up and begin to overflow, they start filling the next pair of boxes down, which, when full, start filling the following ones, and so on.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Details on the W65C02S RDY / BE pins needed
GARTHWILSON wrote:
I don't know if I've see the exact "famous veritasium video" you mention, but I know I've at least seen related ones, and they regard the transmission-line effect of the parallel conductors.
Re: Details on the W65C02S RDY / BE pins needed
Osric wrote:
Paganini wrote:
Do you know about the website "All About Circuits?" There is a kind of (free!) online textbook there that covers the basics of AC, DC, and explains terms like resistance, inductance, reactance, and impedance. It's what I used when I first got started in the hobby. It was enough to help me establish some "rules of thumb" like Ed describes so that I have some stable hobby boards (and some not so stable ones!
)
And here is a link to an article that seems pertinent to this thread: https://www.allaboutcircuits.com/techni ... impedance/
Also, I remember a video someone posted a while back in which an experimenter had some kind of scanning device pointed at a PCB so you could actually see the current return path. They demonstrated a variety of situations, such as what the current return path does when it encounters a void in the ground plane. It was very cool. I tried googling around for it with no luck. Does anyone remember better than I do where that video came from?
"The key is not to let the hardware sense any fear." - Radical Brad
Re: Details on the W65C02S RDY / BE pins needed
I think Dave Jones has done this - maybe this video, where he traces a Gigatron built two ways:
EEVblog #1176 - 2 Layer vs 4 Layer PCB EMC TESTED!
Edit: Amusingly, it's excerpted here, as Dave himself was searching for it in his own content.
EEVblog #1176 - 2 Layer vs 4 Layer PCB EMC TESTED!
Quote:
What difference does a 4 layer PCB make to EMC radiated emissions compared to an identical 2 layer PCB? And why?
Dave does H-Field near-field probe testing on two otherwise identical PCB's.
Dave does H-Field near-field probe testing on two otherwise identical PCB's.
Last edited by BigEd on Wed Aug 14, 2024 3:10 pm, edited 1 time in total.
Re: Details on the W65C02S RDY / BE pins needed
GARTHWILSON wrote:
If you can also do a relatively fine Vcc grid too, all the better.
Quote:
(1) When the driver switches HI the return current (transient and DC) must re-enter the driver through its power pin. When the driver switches LO the return current must re-enter the driver through its ground pin.
"The key is not to let the hardware sense any fear." - Radical Brad
Re: Details on the W65C02S RDY / BE pins needed
I had the same thought - my answer (to myself) is that the nature of inputs is that they are referenced to ground: how large the voltage is, whether or not it's over some threshold, whether it crosses some threshold.
It might well be possible to make circuits which detect signal vs power rail, but we rarely see those.
It might well be possible to make circuits which detect signal vs power rail, but we rarely see those.