6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 9:58 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jun 27, 2024 10:38 pm 
Offline

Joined: Thu Jun 27, 2024 10:27 pm
Posts: 2
I am attempting to learn how the 6502 works, and I came across an online tutorial by Ben Eater: https://www.youtube.com/watch?v=LnzuMJLZRdU.
I've gotten stuck at 7:30 in the video, where he demonstrates the 6502 doing.. something. When I attempt to run mine, it just freezes with pins a0-a15 like so:
011111111111111
I tried to hit the reset button or hold the reset button, and changed to a 1mhz crystal oscillator. The oscillator had the same result and hitting the reset button
did make a faint buzz sound to tell me it was doing something, but the outputs remained the same. At certain points, the outputs have changed before but now they have halted and stay as described.
Any help would go a long way as I've been stuck here for a week now :(
(btw the LEDs are not wired correctly in the pic rel)


Attachments:
File comment: the circuit
shot-2024-06-27_18-15-45.jpg
shot-2024-06-27_18-15-45.jpg [ 106.43 KiB | Viewed 1145 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 27, 2024 11:44 pm 
Offline
User avatar

Joined: Tue Feb 28, 2023 11:39 pm
Posts: 257
Location: Texas
Ben tends to play loose and free with how he wires things up.

You've left the data pins (26-33) of the 6502 floating, which means that it could be seeing just about anything when it's going through it's initial start sequence and reading the boot address. At the very least I'd tie those to ground, though later Ben will wire these to give the value of "EA" which is the instruction for "No Operation" on the 6502

It also appears that the BE (Bus Enable) pin 36 is also floating. Might want to make sure that's being pulled high. (A bit hard to tell with the blurriness of the picture if I'm seeing that one correctly or not though.)

Also, with the reset pin, you want to make sure that it's held low for at least two clock cycles.

On your 555 circuit, I'm not sure that's correct either. Looks like you have your POT going back to pin 4? Think that should be pin 7 (which looks like it isn't connected to anything).

Might double wiring check here:
https://www.allaboutcircuits.com/tools/ ... e-circuit/

Edit:
You could also hook up the 555 as a debouncer and just use a push button to cycle the clock manually.

Edit Edit:
Looks like you have the exact same brand/make of breadboard power supply I started with. Keep a close eye on those and make sure they are in fact putting out 5V. All of the ones in the pack I got eventually died and started outputting wildly wrong voltages. (Fired at least one of my parts as a result.)


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 28, 2024 12:42 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8507
Location: Midwestern USA
4Dimensional wrote:
I am attempting to learn how the 6502 works, and I came across an online tutorial by Ben Eater: https://www.youtube.com/watch?v=LnzuMJLZRdU...

What Yuri said, plus the 555 timer is a poor choice for a clock generator.  While a 555 will work with an NMOS 6502 or one of the older (1980s-vintage) 65C02s, it comes up short when used with a WDC 65C02.  WDC specifies that the clock’s rise and fall time should not exceed 5 nanoseconds, and must reach at least 80 percent of VCC on the high phase.  The 555 might satisfy the 80 percent requirement, but its rise/fall times are much too long.  You need to use a can oscillator or similar to get the quality clock signal that is needed.

It is not enough to simply pull reset low to get things started.  The reset push button must be debounced in order to achieve a clean reset.  There are a variety of ways to do that.

All inputs on the 65C02 MUST be terminated.  Open inputs will pick up noise, possibly leading to undefined behavior.

I don’t want to criticize, but Ben Eater’s videos leave something to be desired in thoroughness.  We frequently see visitors with DOA units who built their hardware using information seen in a Ben Eater video.  Details matter...and sometimes Mr. Eater’s videos gloss over them.  For plenty of detail on how to put together a successful 65C02 contraption, read all about it on Garth Wilson’s web site.

BTW, welcome to 6502.org!

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


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 28, 2024 1:43 pm 
Offline

Joined: Thu Jun 27, 2024 10:27 pm
Posts: 2
Thanks for all the replies :mrgreen:
I'm definitely going to be switching over to the wilsonminesco website as it has much more information.
I also fixed the 555 timer, and it seems to be running at much more even on and off times.
As with the can oscillator, I wasn't able to find any with less than 5 nanoseconds of rise and fall :?
I was searching on jamesco, but the lowest I found was 9 nanoseconds. If anyone has anywhere they
found some that would be extremely helpful :mrgreen:
Also, pin 36 is connected to 5v, sorry for the bad photograph.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 28, 2024 3:32 pm 
Offline
User avatar

Joined: Tue Feb 28, 2023 11:39 pm
Posts: 257
Location: Texas
4Dimensional wrote:
If anyone has anywhere they found some that would be extremely helpful :mrgreen:


The following link is a good place to start:
viewtopic.php?f=1&t=1953

I get most of my fresh parts from either DigiKey or Mouser. Though I also have ordered from Rochester, and Arrow
https://www.digikey.com/
https://www.mouser.com/
https://www.rocelec.com/
https://www.arrow.com/

Jamaco is great for some older used/referb parts.

Finally there's Octopart, which isn't a supplier but an aggregate search of many different suppliers:
https://octopart.com/

Excellent if what you need is a bit more obscure.

Good luck! Look forward to seeing what you build!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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: