Difference between revisions of "Z80 in 3 Chips"

From Land Boards Wiki
Jump to navigation Jump to search
Line 112: Line 112:
 
=== Multiboot Multicomp (MULTIBOOT_CPM) ===
 
=== Multiboot Multicomp (MULTIBOOT_CPM) ===
  
 +
* [https://hackaday.io/project/167711-3-chip-z80-design/log/171007-multi-boot-multicomp-part-3 CP/M Multiboot] - Runs MultiComp 512KB SRAM version
 
* Insert "M/CPM 512KB" SD card
 
* Insert "M/CPM 512KB" SD card
 
* Insert USB B cable
 
* Insert USB B cable
Line 118: Line 119:
 
* Card will power up and cycle through all the LEDs on the Front Panel
 
* Card will power up and cycle through all the LEDs on the Front Panel
 
* Press SW25 (upper left button) on [[Front Panel For 8 Bit Computers]] to run Multiboot software
 
* Press SW25 (upper left button) on [[Front Panel For 8 Bit Computers]] to run Multiboot software
 +
* PuTTY will display
 +
<pre>
 +
Press [SPACE] to activate console
 +
</pre>
 +
* Press SPACE
 +
* Press H for help menu
 +
<pre>
 +
>
 +
  Available Commands:
 +
 +
  :ccxxxxiibbbbbb      Load Intel-Hex file record
 +
  Rxxxx        Run from address xxxx
 +
  Sddd          System boot
 +
  Iddd          Init: Format directory
 +
  Pddd[,xxxx]  PutSys: write system image[,loadaddress]
 +
                (No address: re-use last loadaddress)
 +
  Gddd[,xxxx]  GetSys: load system track
 +
 +
  Dxxxx[,yyyy]  Dump memory from xxxx [,to yyyy]
 +
                D (no address) shows next block
 +
  Cxxxx        Change/show memory at xxxx
 +
                CR advances "," quits
 +
 +
  ddd is a decimal volume number,
 +
  xxxx, yyyy is a hexadecimal address.
 +
  Leading zeros may be omitted.
 +
  ESC or ^C aborts.
 +
<pre>
 
* Type '''Snnn''' to select OS at multiboot
 
* Type '''Snnn''' to select OS at multiboot
** S001 - Dos+ 2.5  Copyright 1986 (c) by [http://web.archive.org/web/20080430103646/http://cbfalconer.home.att.net/download/index.htm C.B. Falconer], CCP+ Ver. 2.2  (CP/M 2.2 compatible)
+
** S1 - Dos+ 2.5  Copyright 1986 (c) by [http://web.archive.org/web/20080430103646/http://cbfalconer.home.att.net/download/index.htm C.B. Falconer], CCP+ Ver. 2.2  (CP/M 2.2 compatible)
** S002 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/CPM%202.2%20manual.pdf CP/M 2.2] (c) 1979 by Digital Research
+
** S2 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/CPM%202.2%20manual.pdf CP/M 2.2] (c) 1979 by Digital Research
** S003 - [http://www.cpm.z80.de/manuals/cpm3-usr.pdf CP/M Version 3.0] BIOS (2016/9/13)
+
** S3 - [http://www.cpm.z80.de/manuals/cpm3-usr.pdf CP/M Version 3.0] BIOS (2016/9/13)
 
*** [http://www.cpm.z80.de/manuals/cpm3-sys.pdf CP/M Version 3.0 Operating System System Guide]
 
*** [http://www.cpm.z80.de/manuals/cpm3-sys.pdf CP/M Version 3.0 Operating System System Guide]
** S004 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/MPM_II_2.1_Release_Notes_1982.pdf MP/M II V2.1]
+
** S4 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/MPM_II_2.1_Release_Notes_1982.pdf MP/M II V2.1]
** S005 - [http://searle.wales/z80/SimpleZ80.html Z80 BASIC Ver 4.7b], Copyright (C) 1978 by Microsoft
+
** S5 - [http://searle.wales/z80/SimpleZ80.html Z80 BASIC Ver 4.7b], Copyright (C) 1978 by Microsoft
** S006 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/zsdos.pdf ZSDOS v1.1] (c) 1986-8 Harold F. Bower & Cameron W. Cotrill, ZCPR2 (c) 1982 by Richard Conn (CP/M 2.2 compatible)  
+
** S6 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/zsdos.pdf ZSDOS v1.1] (c) 1986-8 Harold F. Bower & Cameron W. Cotrill, ZCPR2 (c) 1982 by Richard Conn (CP/M 2.2 compatible)  
** S007 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/zcpr3_the_manual.pdf ZCPR compatible system] for CP/M+ (CP/M 3.0) by Simeon Cran
+
** S7 - [https://github.com/douggilliland/Retro-Computers/blob/master/Z80/Software/Manuals/zcpr3_the_manual.pdf ZCPR compatible system] for CP/M+ (CP/M 3.0) by Simeon Cran
* Z80 NASCOM BASIC
 
* [https://hackaday.io/project/167711-3-chip-z80-design/log/171007-multi-boot-multicomp-part-3 CP/M Multiboot] - Runs MultiComp 512KB SRAM version
 
** CP/M 2.2, CP/M 3.0, BASIC
 
 
** [https://www.retrobrewcomputers.org/doku.php?id=builderpages:rhkoolstar:sbc-2g-512 SBC-2G-512 on Retrobrewing site] - Original author
 
** [https://www.retrobrewcomputers.org/doku.php?id=builderpages:rhkoolstar:sbc-2g-512 SBC-2G-512 on Retrobrewing site] - Original author
 
** [https://github.com/douggilliland/Retro-Computers/tree/master/Z80/Reference_Designs/MC-2G-512%20(SBC2.0%20by%20koolstar) GitHub copy of SBC-2G-512]
 
** [https://github.com/douggilliland/Retro-Computers/tree/master/Z80/Reference_Designs/MC-2G-512%20(SBC2.0%20by%20koolstar) GitHub copy of SBC-2G-512]

Revision as of 17:29, 6 September 2022

Features

Z80 P865-cropped-720px.jpg

  • Z80
    • 12.5 MHz operation
  • 512KB SRAM
  • PSoC5LP
    • PSoC5 LP emulates standard Z80 peripheral chips
      • Serial port with USB
    • Memory Management Unit (MMU)
      • Controls 512KB SRAM
    • Loader moves EPROM code to SRAM
    • Controls CPU reset
  • Optional MCP23017 16-bit port expander
    • I2C Addresses 0x24
  • Optional Front Panel
    • I2C Addresses 0x20-0x23
  • SPI interface for SDHC card

Stackup (top to bottom)

Z80 PSOC P936-CROPPED-720PX.jpg

Connectors

H1 - I2C Interface

  • Connects to Front Panel Card via I2C

Conn H1.PNG

H2 - ISP Download

  • Connects to PSoC programmer

Conn H2.PNG

H3- Serial Port or SPI (SD Card)

Conn H3.PNG

H4 - I/O

Conn H4.PNG

J1 - USB B

  • 5V card Power
  • USB to Serial comm port

J2, J3 - I/O Ports

Conn J2 J3.PNG

J4 - Audio Out

  • DAC is the Analog function generator in the PSoC

Conn J4.PNG

J5 - Z80 Signals

  • Useful for monitoring the CPU lines

Conn J5.PNG

Software

  • Hardware/Software options are set in the PSoC "Hardware_Config.h" file
    • Comment out all but one choice
  • Options
    • GRANT_9_CHIP_Z80
    • GRANT_7_CHIP_Z80
    • GRANT_7_CHIP_Z80_STANDALONE
    • GRANT_FPGA_CPM
    • MULTIBOOT_CPM

Front Panel

EightBitFrontPanel720px.JPG

Z80_PSoC Monitor

Z80 PSoC Monitor.PNG

  • Type to check the SD card
R4000
  • Result:

Z80 PSoC Monitor D Command.PNG

Multiboot Multicomp (MULTIBOOT_CPM)

  • CP/M Multiboot - Runs MultiComp 512KB SRAM version
  • Insert "M/CPM 512KB" SD card
  • Insert USB B cable
  • Run PuTTY
    • 115,200 baud
  • Card will power up and cycle through all the LEDs on the Front Panel
  • Press SW25 (upper left button) on Front Panel For 8 Bit Computers to run Multiboot software
  • PuTTY will display
Press [SPACE] to activate console
  • Press SPACE
  • Press H for help menu
>
  Available Commands:

  :ccxxxxiibbbbbb       Load Intel-Hex file record
  Rxxxx         Run from address xxxx
  Sddd          System boot
  Iddd          Init: Format directory
  Pddd[,xxxx]   PutSys: write system image[,loadaddress]
                (No address: re-use last loadaddress)
  Gddd[,xxxx]   GetSys: load system track

  Dxxxx[,yyyy]  Dump memory from xxxx [,to yyyy]
                D (no address) shows next block
  Cxxxx         Change/show memory at xxxx
                CR advances "," quits

  ddd is a decimal volume number,
  xxxx, yyyy is a hexadecimal address.
  Leading zeros may be omitted.
  ESC or ^C aborts.
* Type Snnn to select OS at multiboot
** S1 - Dos+ 2.5  Copyright 1986 (c) by C.B. Falconer, CCP+ Ver. 2.2  (CP/M 2.2 compatible)
** S2 - CP/M 2.2 (c) 1979 by Digital Research
** S3 - CP/M Version 3.0 BIOS (2016/9/13)
*** CP/M Version 3.0 Operating System System Guide
** S4 - MP/M II V2.1
** S5 - Z80 BASIC Ver 4.7b, Copyright (C) 1978 by Microsoft
** S6 - ZSDOS v1.1 (c) 1986-8 Harold F. Bower & Cameron W. Cotrill, ZCPR2 (c) 1982 by Richard Conn (CP/M 2.2 compatible) 
** S7 - ZCPR compatible system for CP/M+ (CP/M 3.0) by Simeon Cran
** SBC-2G-512 on Retrobrewing site - Original author
** GitHub copy of SBC-2G-512

Running Grants Code scaled.png

Reference Designs

* Z80 Reference Designs

Hackaday Page

* Hackaday Page

Videos

Assembly Sheet

* Z80 in 3 Chips Assembly Sheet