DIY Z80 Retro Computer #1: Interface a Z80 to an Arduino

  Рет қаралды 21,092

Doctor Volt

Doctor Volt

Күн бұрын

Пікірлер: 36
@devnullskull
@devnullskull 3 жыл бұрын
Great video man! I know editing those videos takes a lot of time, so I wanted to say thanks, and it was very helpful to have the highlights on the timing diagrams while you walked through it. It's appreciated!
@DoctorVolt
@DoctorVolt 3 жыл бұрын
Glad it helped!
@francoisdastardly4405
@francoisdastardly4405 3 жыл бұрын
+1 !!
@mr.carrot1664
@mr.carrot1664 Жыл бұрын
Broo, i was looking for an easy Z80 PC and finally found it! Thanks!
@Uglydollsrises23132
@Uglydollsrises23132 4 жыл бұрын
Digital Bus Emulation with an Arduino Mega - Awesome!
@JoshVennix
@JoshVennix Жыл бұрын
Really well done. Easy to follow
@tangomike1306
@tangomike1306 Жыл бұрын
' an this is where the Music plays' ... wie geil
@MarcioR2
@MarcioR2 5 ай бұрын
O seu video é sensacional!!!!😃😃😃 Parabéns!!👏🏼👏🏼👏🏼👏🏼👏🏼 Obrigado por compartilhar seu conhecimento precioso do Lendário Zilog 🖤Z80🖤!!!👍🏼
@ncot_tech
@ncot_tech 4 жыл бұрын
That's cool. I'm trying something similar with an RC2014 Z80 machine and an Arduino. Your layout has just helped me with the serial output - the RC2014 has a serial chip, but it's clocked from the CPU clock. So it won't work properly if the CPU runs slowly from a clock generated by an Arduino (or me pressing a button with my finger). I like how this stuff is really really simple, unlike modern machines where you've no idea what's going on :-)
@DoctorVolt
@DoctorVolt 4 жыл бұрын
Yes, that makes the charm of this old stuff. And even this took me days and nerves when I didn´t understand what´s going on in the Z80, especially when it didn´t not do what I expected.
@doceestrategiadigital3229
@doceestrategiadigital3229 4 жыл бұрын
Nice job! There are two schemes (1st pdf and 2nd PNG) on their website. And they have different connections. What is the valid one? 1st or 2nd?
@DoctorVolt
@DoctorVolt 4 жыл бұрын
Both are correct. However the png is a bit simplified, because it does not connect all control lines to the Arduino, as the example sketch does not use them. If you want to try these, i.e. Interrupts, you will go for the pdf.
@MohamadAl-Qadri
@MohamadAl-Qadri 7 ай бұрын
Could you please enable the translation mode for this video
@DoctorVolt
@DoctorVolt 7 ай бұрын
Ok, subtitles should work now.
@MohamadAl-Qadri
@MohamadAl-Qadri 7 ай бұрын
@@DoctorVolt Thanks
@domemond4908
@domemond4908 5 жыл бұрын
Realy nice! I try to replicate your project but I only getting "?" mark or garbage on the serial monitor. I'm not sure if I connected the Data/ADDR_LOW pins in the good order, exemple, I'm I supposed to connect Z80 A0 pin to the Arduino pin 29 or pin 22? Same for the Data pins ? Thanks ! :)
@DoctorVolt
@DoctorVolt 5 жыл бұрын
Hard to say from remote. Maybe baud rate of terminal does not match? Faulty wiring? Anyway, I posted an upgrade of schematic and sketch. Hope this makes more clear how to connect.
@domemond4908
@domemond4908 4 жыл бұрын
@@DoctorVolt Thanks!
2 жыл бұрын
I had the same problem, you should use 115200 baud rate in your terminal instead of default 9600.
@philiparny3178
@philiparny3178 5 жыл бұрын
Njfty! Could you post a what's connected to what diagram, and the code you're using? I'd like to try this. Thanks.
@DoctorVolt
@DoctorVolt 5 жыл бұрын
I added a link to the project details to the video description.
@jimsmindonline
@jimsmindonline 2 жыл бұрын
UPDATE: I had WR RD lines crossed, it works! I spent some time building this, but it's not working for me. (Using a Z84C01 Maybe that is the problem?) I followed the PNG schematic (the PDF is different). My connections are definitely correct according to the schematic. I get no output on the serial monitor, even though the sketch is running. I'm not used to directly addressing ports in Arduino, so the code is confusing to me. I tried adding some serial output to help debug, it seems the read subroutine isn't getting triggered.
@DoctorVolt
@DoctorVolt 2 жыл бұрын
The Z84C01 is different from the classic Z80 I used. When I got it right, it produces its own clock with a crystal. In my circuit, the Arduino clocks the Z80, and clock frequency cannot be more than 100kHz.
@jimsmindonline
@jimsmindonline 2 жыл бұрын
@@DoctorVolt I managed to get it working, had my WR RD lines crossed. 🤦‍♂️ Yes, the Z84C01 has a built in clock gen so the pinout is different. But you can just feed an external clock into XTAL1 and it works fine. Thanks
@jimsmindonline
@jimsmindonline 2 жыл бұрын
@@DoctorVolt this has been a great project. I learnt a lot about directly accessing ports, and the DDR register. Very useful. I want to try to implement it on a large PIC18F I have lying around. (It will be a large learning curve for me!) A couple of parts I still don't quite understand, hope you can help!? These sort of lines totally confuse me: #define RD_PIN PD2 #define WR_PIN PD3 #define RD ((PIND & (1
@DoctorVolt
@DoctorVolt 2 жыл бұрын
These are macros for fast access of the digital ports. You can use the classic digitalRead() and digitalWrite functions instead, but these are much slower.
@jimsmindonline
@jimsmindonline 2 жыл бұрын
​@@DoctorVolt Yes, but the macros are very confusing to me. For example this line; RD ((PIND & (1
@giuseppelucido6569
@giuseppelucido6569 9 ай бұрын
subtitle no traslate
DIY Z80 Retro Computer #2: Serial Communication with DART
11:48
Doctor Volt
Рет қаралды 14 М.
Connecting a 1980s Z80 CPU to an Arduino, making a hardware debugger.
15:22
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Pony80 - Z80 CPU Architecture - My Z80 homebrew computer!
26:37
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,8 МЛН
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 2,1 МЛН
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 2,4 МЛН
Playing Music on the Oldest Running Computer in America!
27:06
Usagi Electric
Рет қаралды 351 М.
DIY 8-Bit Z80 Single Board Computer
13:27
Ivan Farafontov
Рет қаралды 68 М.
I built my own 16-Bit CPU in Excel
15:45
Inkbox
Рет қаралды 1,7 МЛН
Build an 8-bit retro computer powered by a Z80 ! [Zeal 8-bit]
13:47
Zeal 8-bit Computer
Рет қаралды 99 М.
Building the most controversial Z80 Computer ever
25:58
Ready? Z80
Рет қаралды 76 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН