====== Z180 Mark IV ====== ===== Introduction ===== The Z180 Mark IV is a single board computer, meaning it may run stand-alone. It also has an interface to the RetroBrew bus (ECB) for access to additional peripheral boards. {{https://www.retrobrewcomputers.org/lib/plugins/ckgedit/fckeditor/userfiles/image/boards/sbc/z180_mark_iv/markivr2.jpg?nolink&737x441|www.retrobrewcomputers.org_lib_plugins_ckgedit_fckeditor_userfiles_image_boards_sbc_z180_mark_iv_markivr2.jpg}} Gallery ===== Specifications ===== - A Z180 cpu up to 33Mhz. Using an 18.432Mhz oscillator, the newest Z180 processors are easily overclocked 2X to 36.864Mhz. - 512k of static RAM memory. Up to 1Mb of EPROM, or up to 512k FLASH memory. - Date/time clock with battery backed NVRAM (DS1302). Backup power is usually provided by a 0.22F super-capacitor. - Terminal connection through an RS-232 port using an IBM-PC serial port 10-pin header. - Twisted pair FDX communication through an RJ-12 (6P4C) modular jack. - A Secure Digital (SD) card slot. Standard, HC, and XC cards are supported by ROM firmware. - A 40-pin IDE connector which supports 8-bit transfers, and is usually used with a Compact Flash card Master/Slave adapter. Power is supplied to the Mark IV SBC through the ECB bus, or through a 4-pin Molex connector (PC/AT disk drive power connection). The board operates using +5V power only. Board Archive pages [[https://retrobrewcomputers.org/n8vem-pbwiki-archive/0/35845334/48860639/70934427/index.htm|here]]. ===== Board ===== Schematic: {{:boards:sbc:z180_mark_iv:markiv-sch-2.0-008-rev.pdf|:boards:sbc:z180_mark_iv:markiv-sch-2.0-008-rev.pdf}} PCB Layout: {{:boards:sbc:z180_mark_iv:markiv-brd-2.0-008.pdf|:boards:sbc:z180_mark_iv:markiv-brd-2.0-008.pdf}} Parts List: {{:boards:sbc:z180_mark_iv:mark_iv-parts_list-2.0-008-rev.txt|:boards:sbc:z180_mark_iv:mark_iv-parts_list-2.0-008-rev.txt}} Gerber (MFG):{{:boards:sbc:z180_mark_iv:markiv-2.0-008a-mfg.zip|:boards:sbc:z180_mark_iv:markiv-2.0-008a-mfg.zip}} OBSOLETE: Gerber {{:boards:sbc:z180_mark_iv:markiv-2.0-008-mfg.zip|:boards:sbc:z180_mark_iv:markiv-2.0-008-mfg.zip}} (out of date Silkscreen layer) The circuit layers of the two Gerber ZIPs are identical. The "008a" Gerbers correct information on the Silkscreen layer) Note: For board manufacture at JLPCB rename the PCB_Edges, Inner2, Inner3 file from .gbr to .gm1, .gp1 and .gp2 respectively. ====== Construction ====== Install SD card socket before installing RR2 so solder pads are more accessible. Note C40 is installed inside of the socket. Ensure socket has appropriate clearance or install C40 on rear of board. ===== Jumper Configuration ===== RESET CONFIGURATION * P1 1-2 N8VEM (LEGACY) * P1 2-3 KONTRON IDE POWER * P9 CLOSED = VCC TO IDE * P9 OPEN = GND TO IDE ON BOARD PERIPHERALS ADDRESS * P10 80H = OXXX where O = open and X is closed EPROM (27C080) * P11 1-2 * P12 1-2 FLASH (29F040/39SF040) * P11 2-3 * P12 2-3 ===== Connectors ===== EXTERNAL RESET * P2 PRIMARY SERIAL PORT CONNECTION * P3 With a MAX233 installed at U4 the serial port provides RS-232 level signals on Tx, Rx, CTS and RTS lines. Connection to the P3 header is via a standard Serial RS232 DB9 Male COM Port IDC connector. The Z8S180 enforces CTS/RTS flow control so this must be selected in your terminal program and supported by your serial cable and interface. If a MAX233 is not being used and communication is TTL level, the following connections should be made on the U4: * 2-5 - Tx * 3-4 - Rx * 1-18 - RTS * 19-20 - CTS Recommended RS-232-TTL to USB converters are the CP2102 based devices that have the additional RTS/CTS pin header locations. In the absence of a device or cable that support CTS/RTS, pin 1 and pin 20 should be bridges on U4. RS422 SERIAL PORT CONNECTION * P15 The RS422 provides the advantage of higher speed, greater noise immunity and multi-drop connectivity over the primary serial connector and is ideal for connecting to remote controllers. Only Tx/Rx is supported i.e there are no flow control or modem signals. ===== Firmware ===== The UNA BIOS was developed on the Mark IV, and was updated to version 2.1 in January 2017. The distributed images contain Will Sowerbutt's port of CP/M 2.2. See: software[[:software:firmwareos:una:binaries:start|/ ]]firmwareos / una / [[:software:firmwareos:una:binaries:start|binaries]] for the binary (.tgz and .zip) and source files. Wayne's RomWBW is also distributed for this board. See: software[[:software:firmwareos:una:binaries:start|/ ]]software:firmwareos / romwbw for details. === Test ROM TEST0.BIN === This {{:boards:sbc:z180_mark_iv:test0.zip|ROM}} provides a suite of tests to confirm the operation of the Mark IV board. Requirements: * SD Card installed with D3 LED * Bicolor status LED * 18.432Mhz clock * Serial connection at 9600 with CTS/RTS flow control. Tests: - Check correct installation of address jumpers. - Determine the processor version. - Check the serial interface signal CTS. - Terminal output verification. - Keyboard echo test. - DS1302 & NVRAM test. - Check SDCard switch statuses. Initial operational status is visually identified by test 1-3 flashing D3 in a sequence of 5-flashes, then 3-flashes, then 1 flash. See the 0README.TXT file for more detailed information. ====== Benchmark ====== asciiart.bas benchmark for Mark IV 18.348Mhz Z180 board running Microsoft MBASIC v5.21: 0m58s 10 FOR Y=-12 TO 12 20 FOR X=-39 TO 39 30 CA=X*.0458 40 CB= Y*.08333 50 A=CA 60 B=CB 70 FOR I=0 TO 15 80 T=A*A-B*B+CA 90 B=2*A*B+CB 100 A=T 110 IF (A*A+B*B)>4 THEN GOTO 200 120 NEXT I 130 PRINT " "; 140 GOTO 210 200 IF I>9 THEN I=I+7 205 PRINT CHR$(48+I); 210 NEXT X 220 PRINT 230 NEXT Y 000000011111111111111111122222233347E7AB322222111100000000000000000000000000000 000001111111111111111122222222333557BF75433222211111000000000000000000000000000 000111111111111111112222222233445C 643332222111110000000000000000000000000 011111111111111111222222233444556C 654433332211111100000000000000000000000 11111111111111112222233346 D978 BCF DF9 6556F4221111110000000000000000000000 111111111111122223333334469 D 6322111111000000000000000000000 1111111111222333333334457DB 85332111111100000000000000000000 11111122234B744444455556A 96532211111110000000000000000000 122222233347BAA7AB776679 A32211111110000000000000000000 2222233334567 9A A532221111111000000000000000000 222333346679 9432221111111000000000000000000 234445568 F B5432221111111000000000000000000 864332221111111000000000000000000 234445568 F B5432221111111000000000000000000 222333346679 9432221111111000000000000000000 2222233334567 9A A532221111111000000000000000000 122222233347BAA7AB776679 A32211111110000000000000000000 11111122234B744444455556A 96532211111110000000000000000000 1111111111222333333334457DB 85332111111100000000000000000000 111111111111122223333334469 D 6322111111000000000000000000000 11111111111111112222233346 D978 BCF DF9 6556F4221111110000000000000000000000 011111111111111111222222233444556C 654433332211111100000000000000000000000 000111111111111111112222222233445C 643332222111110000000000000000000000000 000001111111111111111122222222333557BF75433222211111000000000000000000000000000 000000011111111111111111122222233347E7AB322222111100000000000000000000000000000