But thanks for pointing that out, I'll try a different way of single stepping the CPU and see if that fixes it
W65C02S - Address bus alternates between a value and 0xFF
Re: W65C02S - Address bus alternates between a value and 0xF
If that is what is causing the problem, it seems strange that it is randomly 'glitching' in the way that it is even when the clock is held steady.
But thanks for pointing that out, I'll try a different way of single stepping the CPU and see if that fixes it
But thanks for pointing that out, I'll try a different way of single stepping the CPU and see if that fixes it
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: W65C02S - Address bus alternates between a value and 0xF
smnanthny wrote:
If that is what is causing the problem, it seems strange that it is randomly 'glitching' in the way that it is even when the clock is held steady.
But thanks for pointing that out, I'll try a different way of single stepping the CPU and see if that fixes it
But thanks for pointing that out, I'll try a different way of single stepping the CPU and see if that fixes it
Single step circuits have been developed that utilize a combination of RDY and SYNC . I don't know if one exists around here. I unfortunately don't have one in my files that I can post for you to use. The basic principle is that when SYNC goes high RDY is asserted, which stops the MPU on the rise of Ø2. When RDY is released the MPU resumes. When SYNC goes high that indicates that the MPU is fetching an opcode.
The data sheet recommendations on Ø2 rise and fall time indirectly indicates that 74HC logic as a minimum should be used with these MPUs. I used 74AC in my POC units and can run them pretty fast.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: W65C02S - Address bus alternates between a value and 0xF
I just looked back over Garth's clock generation page and he has this circuit on there which approximately generates a 1uS pulse:
http://wilsonminesco.com/6502primer/SingleCyClk.jpg
This is just fed into the normal clock input though unlike what you're suggesting so would this be suitable? I've actually got some 74HC14's on their way in the mail
http://wilsonminesco.com/6502primer/SingleCyClk.jpg
This is just fed into the normal clock input though unlike what you're suggesting so would this be suitable? I've actually got some 74HC14's on their way in the mail
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: W65C02S - Address bus alternates between a value and 0xF
smnanthny wrote:
I just looked back over Garth's clock generation page and he has this circuit on there which approximately generates a 1uS pulse:
http://wilsonminesco.com/6502primer/SingleCyClk.jpg
This is just fed into the normal clock input though unlike what you're suggesting so would this be suitable? I've actually got some 74HC14's on their way in the mail
http://wilsonminesco.com/6502primer/SingleCyClk.jpg
This is just fed into the normal clock input though unlike what you're suggesting so would this be suitable? I've actually got some 74HC14's on their way in the mail
It should work okay, although the 74HC14's output switching speed is slightly slower than WDC's 5ns recommendation. I doubt that it's that critical that one or two nanoseconds are going to matter.
In the future, I suggest you single-step via RDY and SYNC and use a free-running clock source (can oscillator). The handy thing about such an arrangement is that you can let the unit run at full speed as long as you want and then switch to single-stepping when you're ready to do so.
In your "production" design, it's best to feed the can oscillator into a flop (74AC74 or 74ABT74 are good choices) to get perfect symmetry and the most rapid possible rise and fall time on the signal. Place the oscillator, flop and MPU as close together as possible to minimize undesirable reactive effects that will cause the waveform to substantially deviate from the ideal. This way you can eliminate clock signal anomalies as possible causes of circuit malfunction.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: W65C02S - Address bus alternates between a value and 0xF
Okey, well as this is just an educational thing for me to learn a bit more, I'll take a look into how single-stepping works with RDY and SYNC and try and implement that instead 
Thanks for the information, this also led me to look up the different types of 74-series logic chips so now I have a better idea of HC, LS, etc ^_^
Thanks for the information, this also led me to look up the different types of 74-series logic chips so now I have a better idea of HC, LS, etc ^_^
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: W65C02S - Address bus alternates between a value and 0xF
smnanthny wrote:
This also led me to look up the different types of 74-series logic chips so now I have a better idea of HC, LS, etc ^_^
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?
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: W65C02S - Address bus alternates between a value and 0xF
smnanthny wrote:
Okey, well as this is just an educational thing for me to learn a bit more, I'll take a look into how single-stepping works with RDY and SYNC and try and implement that instead 
Thanks for the information, this also led me to look up the different types of 74-series logic chips so now I have a better idea of HC, LS, etc ^_^
Thanks for the information, this also led me to look up the different types of 74-series logic chips so now I have a better idea of HC, LS, etc ^_^
Take a good read of Garth's primer on that subject—he sums it up quite well. You should not be building anything with 74LS—period. It's slow, has limited fanout, uses more power than CMOS logic and is...slow.
Also pay attention to Garth's discussion on the IRQ circuit and the problem of spurious (aka ghost or phantom) interrupts. This malady isn't unique to 65xx hardware—any wired-OR IRQ circuit is a potential victim.
Lastly, caveat emptor on any devices purchased through eBay, especially microprocessors. The seller might advertise a 65C02, but whose 65C02? Unless it's a genuine WDC part, you have no idea what you are getting. Ditto for those "pulls" being sold by Jameco—they aren't WDC parts. A lot of old Rockwell parts are floating around, none of which perform at the level of the W65C02S. Also, instruction sets differ between the Rockwell and WDC parts. I don't recommend building anything with the Rockwell parts unless they are freebies or close to it. The WDC parts are far more capable.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: W65C02S - Address bus alternates between a value and 0xF
I'll definitely read more in Garth's primer, finding it really interesting so far and not having any experience with CPUs, i'm learning a lot 
Yeah I know what you mean about parts of eBay, had a few dodgy items in the past but I bought the 65C02 from Mouser to make sure it was genuine.
Yeah I know what you mean about parts of eBay, had a few dodgy items in the past but I bought the 65C02 from Mouser to make sure it was genuine.
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: W65C02S - Address bus alternates between a value and 0xF
smnanthny wrote:
Yeah I know what you mean about parts of eBay, had a few dodgy items in the past but I bought the 65C02 from Mouser to make sure it was genuine.
Jameco also sells the WDC parts. Pricewise, both Mouser and Jameco are about the same, but I often find Mouser's shipping charges (at least in the USA) to be lower.
Last edited by BigDumbDinosaur on Tue Jul 23, 2013 4:36 am, edited 2 times in total.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: W65C02S - Address bus alternates between a value and 0xF
I'm in UK and I believe mine came from Germany, so not sure where Jameco are based or if their shipping would have been cheaper. I actually ordered 2 buy accident so I have one spare as well ^_^ Just picked up a BBC Micro to fiddle around with as well
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: W65C02S - Address bus alternates between a value and 0xF
smnanthny wrote:
I'm in UK and I believe mine came from Germany, so not sure where Jameco are based or if their shipping would have been cheaper. I actually ordered 2 buy accident so I have one spare as well ^_^ Just picked up a BBC Micro to fiddle around with as well
I seem to recall that there is at least one WDC parts distributor in the UK. Perhaps Ed or Bitwise can advise.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: W65C02S - Address bus alternates between a value and 0xF
Hmm, WDC mention two, but I'm not very hopeful:
http://www.coltekukltd.com/contact-us.php
http://www.trgcomponents.co.uk/TrgGB/In ... oryID=4477
Personally I would buy from mouser's UK site, but there would be a shipping charge. Best plan is to organise a bulk buy and reship from the UK.
BTW, for anyone who doesn't know, there's a sticky thread about where-to-buy at viewtopic.php?f=1&t=1953
Cheers
Ed
http://www.coltekukltd.com/contact-us.php
http://www.trgcomponents.co.uk/TrgGB/In ... oryID=4477
Personally I would buy from mouser's UK site, but there would be a shipping charge. Best plan is to organise a bulk buy and reship from the UK.
BTW, for anyone who doesn't know, there's a sticky thread about where-to-buy at viewtopic.php?f=1&t=1953
Cheers
Ed
Re: W65C02S - Address bus alternates between a value and 0xF
Cool thanks Ed. I was pretty happy with my purchase from Mouser so I'll probably stick with them if I order more chips in the future 
Re: W65C02S - Address bus alternates between a value and 0xF
Oh, could you say how much you paid for shipping?
Ta!
Ta!
Re: W65C02S - Address bus alternates between a value and 0xF
Shipping was £12 for 3 chips, 2 x W65C02S and 1 x W65C22S