Connecting a 1980s Z80 CPU to an Arduino, making a hardware debugger.

  Рет қаралды 23,363

NCOT Technology

NCOT Technology

Күн бұрын

Пікірлер: 43
@jimtekkit
@jimtekkit 2 жыл бұрын
This video was helpful for me when cross-checking with my own results. As it turns out, BOTH the Z80 chips I have are defective and the outputs are static regardless of what I do. It's always worth spending a little extra and ordering through a reputable distributor like Mouser to get a brand new working chip. When starting out it's difficult to recognize whether you've screwed up or a part is defective.
@leehill8472
@leehill8472 4 жыл бұрын
Great video. Also inspired by Ben Eater's videos I bought the same kit.
@mharding1258
@mharding1258 3 жыл бұрын
Can I recommend Ben Eater's series on building an 8 bit computer on breadboards. He has excellent understanding and grasp of the concepts you are trying to get your head around. I found his series most helpful.
@ballsrgrossnugly
@ballsrgrossnugly 2 жыл бұрын
That was my holy grail while building my own 8 bit CPU on breadboards, and bugger me, it works! I also bought a Z80 chip a while back, I really should use it for something one of these days.
@arronshutt
@arronshutt 4 жыл бұрын
Very nice. Expert editing with windowed scope displays and code displays. I like how all the hardware diagrams are using NCOT branding :)
@SpeccyMan
@SpeccyMan 2 жыл бұрын
FYI the Z80 is a 70's CPU. Also you could've just configured the 555 as a monostable to provide a single pulse per button press. Better still you could've used an output pin on the Arduino to provide the clock for the Z80.
@cristiansky
@cristiansky 2 жыл бұрын
Excelente video , me inspira a realizar el montaje arduino Z80 , gracias por compartir !!!
@johntoe6127
@johntoe6127 29 күн бұрын
Great video. I'm getting ready to do exactly the same thing. Does anyone know if they've come up with an RC2014/MEGA card, that just let's the MEGA plug directly onto a RC2014 bus?
@Lucretia9000
@Lucretia9000 3 жыл бұрын
Is there a second part to this yet?
@joeysartain6056
@joeysartain6056 Жыл бұрын
Very interesting. Did you make any othe videos on this?
@davidtwist3659
@davidtwist3659 11 ай бұрын
Did you ever update this to use RD, WR and MREQ? I'm looking to use the arduino to check out a Z80 system to see what is happening.
@nonchip
@nonchip 4 жыл бұрын
3:20 "which is not really what the cpu wants to see" actually it doesn't usually care at all, i've clocked a 6MHz Z80 with a 1-statechange-per-minute clock just for the lulz and it worked just fine :P
@Thebasicmaker
@Thebasicmaker 4 жыл бұрын
Faggin made a good job!
@alnoorratansi9364
@alnoorratansi9364 3 жыл бұрын
Great Tutorial , can you share your single step circuit and code please
@stinchjack
@stinchjack 3 жыл бұрын
I'm using an Arduino Nano instead of an EEPROM for my Z80 project. Problem I had had is, the Arduino is not a tri-state device. The digital pins behave OK input mode, but the analog pins still draw too much current in input mode and therefore kept pulling my data bus down. I found a 74LS245 bus transceiver didnt work satisfactory, but 74ls241 buffer does enable me to bridge the Arduino Nano to the data bus. Bonus for using the Arduino Nano is, My "ROM" emulator code can also disassemble on the fly, which has been amazing for debugging (helped by M1 signal) This is limited to 512 bytes of address space for Z80 code on the Arduino, but my Z80 assembly coding is pretty awful and I havent written a program that big yet lol
@CristianVeliscu
@CristianVeliscu 3 жыл бұрын
What was the problem you encountered with the 74LS245 bus transceiver?
@TomTom-rd3iy
@TomTom-rd3iy 3 жыл бұрын
of course the nano has tri-state io pins - just configure a pin as input
@Tenraiden
@Tenraiden 2 жыл бұрын
What’s the music @5:15??
@vanhetgoor
@vanhetgoor 2 жыл бұрын
Now I am confused, I have always thought that the Arduino was on something like 3,6 Volts logic and I know the Z80 that this pinnacle of technology is working on a powerful 5 Volts. What is happening here?
@ncot_tech
@ncot_tech 2 жыл бұрын
No the Arduino is 5v too. I think the Pi and a few others are 3.3v the ESP 8266 definitely is.
@JoaoPaulo-fw3zg
@JoaoPaulo-fw3zg 2 жыл бұрын
I have a simple question. From where the Z80 fetches the instructions? From what I see, there is no memory and the DATA pins are inputs in the Arduino.
@ncot_tech
@ncot_tech 2 жыл бұрын
There are no instructions, I think I’d wired the CPU up to execute nop instructions using a bunch of resistors.
@olavl8827
@olavl8827 4 жыл бұрын
Very interesting. Personally I'm more a computer/software person than an electronics person. So perhaps a stupid question, but how do you make the button to give only one short pulse? That seems useful for lots of projects.
@ncot_tech
@ncot_tech 4 жыл бұрын
That is a really good question. You can do it in software by effectively sampling the button over a few milliseconds, or you can make a small circuit using a few different techniques. What I did was search for things like “Arduino button debounce”.
@olavl8827
@olavl8827 4 жыл бұрын
@@ncot_tech Thanks for your reply. I know of the software debounce technique with Arduino but I find it unsatisfactory. Debouncing is a hardware problem that (imho) should be addressed in hardware. I know of RC filters, and personally with Arduino projects I sometimes use optocouplers since I found they also work. Doesn't answer the question though of how to generate only a single pulse of fixed duration after each (long or short) button press.
@DavidW27
@DavidW27 3 жыл бұрын
@@olavl8827 Ben Eater does a very detailed description of a simple circuit using a 555 chip in monostable mode, which does what I think you are asking for. kzbin.info/www/bejne/bmKlmHmeopepsJo
@melkiorwiseman5234
@melkiorwiseman5234 2 жыл бұрын
@@olavl8827 I think the answer to your question is part of Ben Eater's breadboard computer series here on YT. It's fairly early, and he too uses a 555 timer.
@Tenraiden
@Tenraiden 2 жыл бұрын
Found the music that's @5:15! Jincheng Zhang - Consider Together 🤍🎶 kzbin.info/www/bejne/qHuWmYtnpt1pgpo
@JarppaGuru
@JarppaGuru 11 ай бұрын
raising clock boom! better read down clock same data is there and settled down lol
@remim9417
@remim9417 3 жыл бұрын
Bonjour, Très intéressant , mais je pense que ton interruption doit être sur le signal BAS (O volt) sur le MREQ donc FALLING et non RISING. Superbe explication , encore Merci :-)
@SusanAmberBruce
@SusanAmberBruce 4 жыл бұрын
I like the ♬ smiles
@johnwilson3918
@johnwilson3918 4 жыл бұрын
Nice going, James! Have you watched Julian Ilett's KZbin channel on the Z80? Your videos are inspiring me to build a Z80 machine. I'm just trying to recall what the bootup sequence of the Z80 is? i.e does it fetch an address from a particular location and jump to there?
@johnwilson3918
@johnwilson3918 4 жыл бұрын
I'm now looking through the Z80 chip doc - to see if I can answer my own question.
@johnwilson3918
@johnwilson3918 4 жыл бұрын
Perhaps I'm getting confused with the 6502 - (I should have paid more attention to you single-stepping the Z80) - I can see the address bus starting at 0x0000. I'm slightly confused by the opcode/address debug output. It seems you were initially presented with the instruction 'load hl,0000', and then your upper 8 bits of your address bus suddenly flips.
@ncot_tech
@ncot_tech 4 жыл бұрын
Yes, I watch Julian's channel (and his side channel where he's building a shed in the exact way an engineer would build one 😁). The Z80 looks for code at address zero. I wouldn't look too closely at the output from my Arduino debugger thing, I'm not sure it was working properly. All it was doing was spitting out whatever went across the busses so some of the data was probably coming from other chips and possibly not during the fetch cycle of the CPU.
@MRCAGR1
@MRCAGR1 4 жыл бұрын
@@johnwilson3918 IIRC the Z80 reset vector is location 0x0, this is usually a jump instruction. There are several RST (reset) instructions which are located in the lowest part of the memory.
@CodeAsm
@CodeAsm 4 жыл бұрын
Also dont forget your stepping the clock, an instruction can take some cycles to read, then the data maybe (unless a instruction is just a jump or halt) and the data could be anything and the z80 would ignore whats happening. Funny to see the databus being equal for like 3 clk pulses, probably has to do with these cycles.
@Thebasicmaker
@Thebasicmaker 4 жыл бұрын
What arduino model is that board?
@ncot_tech
@ncot_tech 4 жыл бұрын
It's a clone of the Mega 2560.
@Thebasicmaker
@Thebasicmaker 4 жыл бұрын
@@ncot_tech ok thanks!
FORTH - Better than BASIC?
14:30
NCOT Technology
Рет қаралды 40 М.
DIY Z80 Retro Computer #3: Run Historical Programs
12:47
Doctor Volt
Рет қаралды 18 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 32 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 36 МЛН
The Z80 CPU - 1976 to 2024
18:49
Al's Geek Lab
Рет қаралды 173 М.
The Ultimate Retro Chip Tester?
26:57
Noel's Retro Lab
Рет қаралды 151 М.
Designing a Card Slot Modular Z80 Computer
14:29
Joshua Coleman Makes
Рет қаралды 43 М.
I built a computer from scratch! | RC2014 Z80 computer kit assembly.
10:06
VIA C3: is this the best CPU for DOS gaming?
13:45
Ye Olde Stuff
Рет қаралды 7 М.
I need help finding information on this mysterious computer
33:49
Adrian's Digital Basement ][
Рет қаралды 201 М.
Zilog Z80 Deep Dive - How does it work?
15:05
NCOT Technology
Рет қаралды 27 М.
I made an Emulator for my 8-bit computer! [Zeal 8-bit Computer]
9:35
Zeal 8-bit Computer
Рет қаралды 3,2 М.
Emulating ROM with mere Arduino Nano for a Z80 CPU.
35:13
Major Tom Workshop
Рет қаралды 232 М.
The Madness of Z80 I/O
22:52
Noel's Retro Lab
Рет қаралды 75 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 32 МЛН