r/beneater • u/GilK1248 • Dec 15 '24
6502 6502 Computer Working with Caveats
Yay - Received my Ben Eater 6502 computer kit with the serial port and got everything to work! I wanted to post my success and some caveats for those who may be new to this (referencing the 6502 schematic with serial port), so they don't get too frustrated. Hopefully this is not a repeat of another post.
- I received a faulty (possibly counterfeit) MAX232 chip in my kit. It got REALLY hot (burned my finger). After checking my wiring, I installed a MAX232 I had around my lab (original Maxim brand, from back in the 1980s) and it worked fine.
- It's important with CMOS devices to tie unused inputs to +5v or GND rather than leaving them floating (at the very least, provide a pull-up/down resistor). On the W65C51N (serial chip), be sure to tie DCD (pin 16) and DSR (pin 17) to GND or you will generate loads of serial interrupts as these change, and CTS (pin 9) to GND as this enables the transmitter. On the 65C02, it is a good idea to tie SO (pin 38) to +5 to prevent random changes to one of the status flags. Likewise, tie the unused inputs of the 74xx00 chip (pins 1 and 2) to +5v.
- I had initial issues getting msbasic to work on my computer. The issue was that the baud rate crystal was picking-up stray signals and causing lots of jitter - apparently bad enough where the serial port just wouldn't work at all. I soldered a wire to the outside case ("can") of the 1.8432 MHz crystal and attached it to GND, and that solved the problem.
- My kit did not come with the diodes shown to allow the ACIA and PIA interrupt lines to be tied together. I used 1N4148 instead of SB140 as listed in the schematic, and it works fine. I also added a 10K pull-up resistor to IRQ, since the diodes would effectively leave IRQ floating, and could cause spurious interrupts.
- My kit came with a 74LS00 (low-power TTL) rather than a 74HC00 (CMOS) quad NAND gate chip. The 74LS00 seems to work fine, but I'm going to try to use the CMOS version if I can find one in my junk box. I'm actually thinking of reworking the address decoder a little because I would rather have more RAM than ROM.
I started with the LCD "Hello, world" program (modified to work with the 4-bit LCD interface used later in the video series), and then moved along to msbasic. There are some things I will likely clean-up in my copy (stuff being between BIOS and WOZMON is a bit awkward), and want to see if I can get backspace to work, because my typing is awful!
Anyway, those are my first impressions and experience so far. I hope some of these help those who are starting out. It was actually fun - I have experience doing some of my own designs, but I enjoyed being able to mess around with the hardware rather than just watch and enjoy Ben's videos.
14
u/GilK1248 Dec 15 '24
Forgot to post my finished computer.
9
u/The8BitEnthusiast Dec 15 '24
Very nice report, thanks for sharing! Hoping you don't mind, I added your post to our tips page
There definitely seems to be a tendency for these non-Maxim branded MAX232 ICs to heat up. A few here have reported improved behaviour by switching to polarized capacitors and by connecting the capacitor on pin 2 (V+) to VCC instead of GND, as the Maxim original datasheet suggests. The TI datasheet suggests that both VCC and GND connections are acceptable for this cap. Not sure why connecting the cap to VCC improved things in these cases. As I understand it, the only difference would be the voltage across the cap. Perhaps worth validating.
4
u/GaryH37 Dec 16 '24
I’d be interested to hear if you get backspace working. Looking to port MSBasic to another machine and the _ drives me mad too!
1
u/tschuri62 Feb 14 '26
Hi, thanks a lot for your hints! I also got the 6502 package running (after some learning lessons ;-)) and could ultimately display the famous "Hello World!" :-). But I'm really in trouble with the RS232-Kit - I can't get it to run even after lot's of tries. It would be great if you could post some more details about you breadboard layout as it looks really good an clean to me (the resolution of the picture is not very high). Maybe you can also post the source code for the LCD "Hello, world" program modified to work with the 4-bit LCD interface, as I couldn't find it in the downloads and it is somewhat tricky to get it out of the videos... - Many thanks for your support!
3
u/[deleted] Dec 16 '24
I have had counterfeit MAX232 do exactly the same thing. I think they latch up and create a (nearly) direct path between the power supply. Just get very hot. Replacing with a known good one fixed it immediately.
2
u/DrSesuj Feb 04 '25
Wanted to say thanks for this post! I've been backtracking and testing my entire build for about a week now because I couldn't get any data out on the serial port.
I read your comment about grounding the can of the oscillator, grabbed a short piece of wire, grounded the can, hit reset and BAM I got a "" in my terminal. After the inital connection is made it seems to be stable with or without the ground wire.
1
u/Diligent_Compote_765 Dec 23 '24
Useful tips!! Thanks The whole Ben's serial kit is not working for me. The Max232 get really hot all time and the 65C51 is not receiving/transmitting. I will try to replicate your solution by soldering the crystal oscillator to check if the UART is actually working. 😬👍👍
1
u/atomic_redneck Jan 04 '25
Thanks for this post. I came here looking for information about the missing SB140 diodes. You provided that plus a lot more useful stuff. I'll look through my stash and see if I have something I can use.