'Qualifying' write operations
Re: 'Qualifying' write operations
Yeah, but the point of it is to illustrate that the write pulse is guaranteed to be set before the address setup (as per the data sheets).
If in practice, it happens the other way around, then great, we got lucky! I prefer to alway work for worse case every time.
If in practice, it happens the other way around, then great, we got lucky! I prefer to alway work for worse case every time.
Re: 'Qualifying' write operations
I think you might miss part of hoglet's point there...
The trailing edge of Write, which is caused by Phi2's falling edge, and lags it by an indeterminate amount, is a grey area. As it coincides with the grey area of the address bus, there's a double unknown: you don't know if you're writing, and you don't know where to.
On paper and whiteboards, I like sometimes to put a wibbly arrow from the edge which causes something to the event which it causes. It's more difficult to do this in a graphic. But I find it really helps to show why things happen in the order that they do happen. Failing the wibbly arrow, it can help to shift things slightly: things caused by something can be shown as happening very slightly later.
So, that's a couple of suggestions for an improvement to a diagram which is already a useful diagram: thanks for drawing and sharing!
The trailing edge of Write, which is caused by Phi2's falling edge, and lags it by an indeterminate amount, is a grey area. As it coincides with the grey area of the address bus, there's a double unknown: you don't know if you're writing, and you don't know where to.
On paper and whiteboards, I like sometimes to put a wibbly arrow from the edge which causes something to the event which it causes. It's more difficult to do this in a graphic. But I find it really helps to show why things happen in the order that they do happen. Failing the wibbly arrow, it can help to shift things slightly: things caused by something can be shown as happening very slightly later.
So, that's a couple of suggestions for an improvement to a diagram which is already a useful diagram: thanks for drawing and sharing!
Re: 'Qualifying' write operations
BigEd wrote:
it coincides with the grey area of the address bus
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: 'Qualifying' write operations
Dr Jefyll wrote:
BigEd wrote:
it coincides with the grey area of the address bus
Bill
Re: 'Qualifying' write operations
It looks like WaveDrom, which is an online editor:
https://wavedrom.com/editor.html
https://wavedrom.com/editor.html
Re: 'Qualifying' write operations
BillO wrote:
Jeff, what do you use to create your timing diagrams?
So, I'm working at the pixel level. PSP doesn't "understand" timing diagrams. But the program is excellent, and I've had enough practice that I've gotten pretty speedy.
And I can edit almost anything. Nearly every image I post on this forum comes from PSP, including alterations to the work of others, and original images of my own (including my animated avatar).
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: 'Qualifying' write operations
From what I understand the VIA IC's don't require write qualification as they 'know' about how the W65C02's work. Is this correct?
What happens if you do still use the qualified write circuit on a VIA? Will it still function correctly?
What happens if you do still use the qualified write circuit on a VIA? Will it still function correctly?
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 'Qualifying' write operations
J64C wrote:
From what I understand the VIA IC's don't require write qualification as they 'know' about how the W65C02's work. Is this correct?
What happens if you do still use the qualified write circuit on a VIA? Will it still function correctly?
What happens if you do still use the qualified write circuit on a VIA? Will it still function correctly?
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: 'Qualifying' write operations
Interesting! Thank you so much for the advice! 
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: 'Qualifying' write operations
I can't be sure (because I did it over 30 years ago) but I think I got away with un-qualified writes on a small breadboard project with a 'c802, PIA, EPROM and SRAM. ISTR running it at 1 MHz and 2 MHz without incident. Maybe it was dumb luck?
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 'Qualifying' write operations
I ran into this again when I made an I/O board for our son's Commodore 64 to control his model railroad setup when he was in junior high decades ago. Since the C64's select outputs to the port didn't go true until phase 2 did, I had to artificially delay the rise of phase 2 but not the fall. (I don't remember the C64 details anymore, and I gave away all our C64 computers, peripherals, accessories, books, etc. several years ago.) You can see my circuit at http://6502.org/users/garth/projects.php?project=7 . (The timings there were for the C64 which runs at only 1MHz, and the VIAs I used were probably rated for 1MHz too, definitely not more than 2MHz.)
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: 'Qualifying' write operations
barrym95838 wrote:
I think I got away with un-qualified writes
If the address(es) affected happen to be unused then the problem may go unnoticed.
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: 'Qualifying' write operations
Dr Jefyll wrote:
barrym95838 wrote:
I think I got away with un-qualified writes
If the address(es) affected happen to be unused then the problem may go unnoticed.
-- Jeff
The 65XX chips do their own read and/or write qualifying. They expect an unaltered R/W along with phi2 to manage the timing. Supplying a pre-qualified R/W signal might not leave them enough time to figure things out. That old accumulated propagation delay thing..
Bill
Re: 'Qualifying' write operations
GARTHWILSON wrote:
I ran into this again when I made an I/O board for our son's Commodore 64 to control his model railroad setup when he was in junior high decades ago. Since the C64's select outputs to the port didn't go true until phase 2 did, I had to artificially delay the rise of phase 2 but not the fall. (I don't remember the C64 details anymore, and I gave away all our C64 computers, peripherals, accessories, books, etc. several years ago.) You can see my circuit at http://6502.org/users/garth/projects.php?project=7 . (The timings there were for the C64 which runs at only 1MHz, and the VIAs I used were probably rated for 1MHz too, definitely not more than 2MHz.)
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: 'Qualifying' write operations
BillO wrote:
In my early years I seemed to get away with all sorts of nonsense.
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)