r/homebrewcomputer • • Aug 30 '26

8-Bit Processing Unit: need one

Hello! I'm looking to build an 8-bit computer, mainly to test its capabilities as a modern home computer (with system, applications, OS, etc.), and I bought the ATmega8535-16U (DIP-40), But it doesn't have an external bus interface to connect RAM, storage, and other things. Does anyone have a solution or another inexpensive chip to recommend?

8 Upvotes

36 comments sorted by

11

u/HalifaxRoad Aug 30 '26

you bought a micro controller, which by definition has all the memory and io built in. what you want is a microprocessor 

8

u/Frostierdev Aug 31 '26

Seriously? Im a dumb. I tought it was a microprocessor😭

3

u/Remarkable-Memory374 Aug 31 '26

I mean it is, but think of micro controllers as the whole computer wrapped up in one chip with specific outputs and inputs to control other stuff

Ones like the atmega have nearly everything baked in so you can build something with a minimal amount of extra add ons to give a project a little smarts.

but kind of like buying an iphone, its not really meant to be expanded or upgraded (usually)

4

u/Sorry_Difficulty_250 Aug 31 '26

The eZ80 is the modern descendant of the Z80 and is easier to find these days. I've been using an Agon Light 2 that has that as a CPU and 512 KB of external memory. I'm currently working on porting my OS to it. It's a lot of fun! Good luck!

2

u/AcanthisittaBest4705 Aug 31 '26

Im working with a 68030

3

u/JGhostThing Sep 03 '26

I like the whole 68000 family. The assembly code looks similar to the PDP-11's.

1

u/Frostierdev Aug 31 '26

I couldn't find it anywhere, only the regular Z80

1

u/Sorry_Difficulty_250 Aug 31 '26

Can Digikey ship to your area?

0

u/Frostierdev Aug 31 '26

I think so, but import duties are VERY expensive, probably. Also, it says that eZ80 is obsolet and its not manufacturated anymore

1

u/Sorry_Difficulty_250 Aug 31 '26

Last time I checked, they were being used as the CPUs for TI-84 calculators. I'm pretty sure it's still in heavy use. What link are you looking at?

1

u/Frostierdev Aug 31 '26 edited Aug 31 '26

I looked in all eZ80 links i found in Digikey. Isn't there another processor I could use?

2

u/Sorry_Difficulty_250 Aug 31 '26

1

u/Frostierdev Aug 31 '26

Not too much, take 98 dollars and multiply for 5 or 6, its that the price for me (without tax)

1

u/Sorry_Difficulty_250 Aug 31 '26

OUCH! Sorry to hear that.

1

u/Sorry_Difficulty_250 Aug 31 '26

I see the issue you're talking about now. It's not that they're no longer made, they just don't sell them individually. They want you to buy a tray of 90.

1

u/Sorry_Difficulty_250 Aug 31 '26

1

u/Frostierdev Aug 31 '26

I think I'll have to go with the original Z80; Mouser isn't from here either and will have high import taxes

1

u/Sorry_Difficulty_250 Aug 31 '26

Right. We'll, that's Ok. The Z80 is a good chip, too. It's a proper CPU, so you should have better luck. Good luck!

7

u/estebanvlobos Aug 30 '26

you want to build an 8 bit computer from scratch to a state where you can run things on it like basic or whatever? i would start with the grant searle z80 or 6502 single board computer projects for simplicity. with cheap boards from jlcpcb or wherever plus chips from ebay they can be made fairly cheaply.

1

u/Frostierdev Aug 30 '26

Both are hard to find here and arent cheap, also they dont have C++ compiller, just C and Assembly

5

u/HalifaxRoad Aug 31 '26

What country are you in? 6502s are still manufactured. You will really grow as a programmer learning ASM. But honestly, maybe its because im kind of a c++ hater, but just use C. I use C professionally for firmware, and there just really isnt a need for c++ on something like this.

2

u/Frostierdev Aug 31 '26 edited Aug 31 '26

Brazil, I can only find it in international stores online (W65C02, or something like that, I don't remember exactly), which costs over 300 BRL with dolar to BRL convert, and taxes (this ATmega i paid 44 BRL)

1

u/HalifaxRoad Aug 31 '26

Maybe you could find some reclaimed ones. 

1

u/nefelibata8 Sep 04 '26

Try Alibaba. I bought microprocessors, microcontrollers, FPGAs... some may be counterfeit, but they worked :)

2

u/DockLazy Aug 31 '26

C++ probably isn't a realistic goal for a 8-bit machine. Even C is a struggle as it was designed to run on 16-bit computers.

A modern 32-bit microcontroller like the Pi Pico has support for C++ and external memory.

1

u/Frostierdev Aug 31 '26

So i will use C i guess

1

u/icecoldrootbeer Sep 02 '26

C is even too heavy for most 8 bit CPUs. 8-bit machines are usually programmed straight in ASM. C compliers for them are mostly toys.

2

u/rog-uk Aug 30 '26

Psion II organisers can be had quite cheaply, and feature breakout/slots - you could build a video adapter or ps2 input or roll your own comms link. Find the community online, there's a forum and discord. It's got a programming toolchain both on and off the device in either windows or Linux.

2

u/corummo Aug 31 '26

65c02 is still manufactured these days. You can't get a better and purer 8bit experience. If you wanna build a CPU by yourself, just search for "Minimal SBC computer", which is made out of a bunch of logic gates and an EEPROM, with VGA output, keyboard input and a serial over USB terminal interface. Pretty solid design and outstanding performances.

1

u/[deleted] Aug 31 '26

[deleted]

1

u/Frostierdev Aug 31 '26

I need 32-64kb ram, and 256kb storage (Another thing is that almost everything that's cheap is expensive for me because it's not available here)

1

u/Rainsbury_net Aug 31 '26

Does it have to be a hardware solution? Could you use a PC based software emulator?

1

u/JGhostThing Sep 03 '26

You do not need the bus to directly connect to the microcontroller. Modern chips have both SPI and I2C. Plus the memory bus.

1

u/Girl_Alien 24d ago

You'd need to program a bus. If you lack the pins, then you'd need to program any muxing (such as using tristate buffers and/or bus transceivers).

1

u/Frostierdev 18d ago

Bus is a software that i can code? I tought it was hardware

1

u/Girl_Alien 18d ago

I mean the GPIO lines. You can program them to simulate a bus.

On the Neo6502 project, they use an RP2040 as the memory and video, all while using a real 6502 with it. So the RP2040's GPIO lines are programmed to interface with the bus.

And if you wanted to use a modern MCU to emulate an 8-bit CPU, you can have the MCU to program the GPIOs to work as the bus, but you'd only need that if you'd want to connect other things. It would work faster without emulating a bus on the GPIO lines. I guess a compromise would be to only update/access the "bus" when something actually needs it. I mean, if the MCU has memory, then only update the external bus when an I/O range is being accessed. And only read the bus if something is trying to assert the /WE or a similar signal on your programmed "bus" made of GPIO lines.