6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Oct 06, 2024 12:11 pm

All times are UTC




Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Sun Jul 21, 2013 2:23 am 
Offline

Joined: Fri Jul 19, 2013 11:14 am
Posts: 14
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 :)


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 21, 2013 2:34 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8414
Location: Midwestern USA
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 :)

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!


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 21, 2013 2:39 am 
Offline

Joined: Fri Jul 19, 2013 11:14 am
Posts: 14
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


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 21, 2013 9:16 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8414
Location: Midwestern USA
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

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!


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 21, 2013 9:49 pm 
Offline

Joined: Fri Jul 19, 2013 11:14 am
Posts: 14
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 ^_^


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 12:32 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8521
Location: Southern California
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/6502primer/LogicFamilies.html in the 6502 primer covers this and has a few more links for further reading.

_________________
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?


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 4:33 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8414
Location: Midwestern USA
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 ^_^

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. :lol: 74HC is probably good up to 6-7 MHz in a well-designed application, above which you need to look at the faster 74AC (or much faster 74ABT) logic to maintain performance. My POC unit was built with 74AC logic (PDIP) and will boot at 15 MHz with a 55ns EPROM in the socket—it won't boot at that clock rate with the SCSI HBA plugged in due to the additional bus loading, a problem that will be addressed in the next version.

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!


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 7:45 am 
Offline

Joined: Fri Jul 19, 2013 11:14 am
Posts: 14
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 7:56 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8414
Location: Midwestern USA
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.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Last edited by BigDumbDinosaur on Tue Jul 23, 2013 4:36 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 8:17 pm 
Offline

Joined: Fri Jul 19, 2013 11:14 am
Posts: 14
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 23, 2013 4:35 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8414
Location: Midwestern USA
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!


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 23, 2013 5:34 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10949
Location: England
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 23, 2013 5:46 pm 
Offline

Joined: Fri Jul 19, 2013 11:14 am
Posts: 14
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 :)


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 23, 2013 7:19 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10949
Location: England
Oh, could you say how much you paid for shipping?
Ta!


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 23, 2013 7:28 pm 
Offline

Joined: Fri Jul 19, 2013 11:14 am
Posts: 14
Shipping was £12 for 3 chips, 2 x W65C02S and 1 x W65C22S


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: