Difference between revisions of "SIMPLE-Z80"

From Land Boards Wiki
Jump to navigation Jump to search
Line 38: Line 38:
 
== Design ==
 
== Design ==
  
* CPU
+
=== CPU ===
  
 
[[file:SIMPLE-Z80_U2_CPU.PNG]]
 
[[file:SIMPLE-Z80_U2_CPU.PNG]]
  
* EPROM
+
=== EPROM ===
  
 
[[file:SIMPLE-Z80_U6_EPROM.PNG]]
 
[[file:SIMPLE-Z80_U6_EPROM.PNG]]
  
* SRAM
+
=== SRAM ===
  
 
[[file:SIMPLE-Z80_U4_SRAM.PNG]]
 
[[file:SIMPLE-Z80_U4_SRAM.PNG]]
  
* ACIA
+
=== ACIA ===
 +
 
 +
* Requires a FTDI cross-over cable
 +
* Can only use RS-232 or FTDI - one at a time
 +
** Put MAX232 in a socket if you want flexibility
 +
** Remove MAX232 if you want to use FTDI
  
 
[[file:SIMPLE-Z80_U3_ACIA.PNG]]
 
[[file:SIMPLE-Z80_U3_ACIA.PNG]]
  
* Clock
+
=== Clock ===
  
 
[[file:SIMPLE-Z80_U5_CLK.PNG]]
 
[[file:SIMPLE-Z80_U5_CLK.PNG]]

Revision as of 20:04, 24 August 2024

Tindie-mediums.png

SIMPLE-Z80 P1090251-720pxV.jpg

Features

Memory Map

  • 0x0000-0x1FFF 8KB ROM
  • 0x2000-0xFFFF 56KB SRAM
  • I/O
    • 0x00-0x7F - Free
    • 0x80-0x81 - Serial port (ACIA)

Chip Set

SimpleZ80 Chipset.jpg

Design

CPU

SIMPLE-Z80 U2 CPU.PNG

EPROM

SIMPLE-Z80 U6 EPROM.PNG

SRAM

SIMPLE-Z80 U4 SRAM.PNG

ACIA

  • Requires a FTDI cross-over cable
  • Can only use RS-232 or FTDI - one at a time
    • Put MAX232 in a socket if you want flexibility
    • Remove MAX232 if you want to use FTDI

SIMPLE-Z80 U3 ACIA.PNG

Clock

SIMPLE-Z80 U5 CLK.PNG

Headers / Connectors

SIMPLE-Z80 REV1 CAD.PNG

J1 - RS-232 Serial

  • DB-9 Male
  • Pinout
  1. N/C
  2. Receive
  3. Transmit
  4. Loop to pin 6
  5. GND
  6. Loop to pin 4
  7. RTS
  8. N/C
  9. N/C

J2/J5 - EPROM/EEPROM Select Jumpers

SIMPLE-Z80 J2 J5.PNG

  • J2 - EPROM Pin 1 jumper
    • 1-2 for 28C64, 28C256 (Pull WE to VCC)
    • 2-3 for 27256, 27SF256, 27512 (Pull A14 to GND)
  • J5 - EPROM Pin 27 jumper
    • GND (2-3)

EEPROM Pin Table

27512 27256 27SF256 28C256 27128 2764 28C64 PIN PIN 2764 28C64 27128 28C256 27SF256 27256 27512
A15 VPP VPP A14 VPP VPP N/C 1 28 VCC VCC VCC VCC VCC VCC VCC
A12 A12 A12 A12 A12 A12 A12 2 27 PGM WE* PGM WE* A14 A14 A14
A7 A7 A7 A7 A7 A7 A7 3 26 A13 N/C A13 A13 A13 A13 A13
A6 A6 A6 A6 A6 A6 A6 4 25 A8 A8 A8 A8 A8 A8 A8
A5 A5 A5 A5 A5 A5 A5 5 24 A9 A9 A9 A9 A9 A9 A9
A4 A4 A4 A4 A4 A4 A4 6 23 A11 A11 A11 A11 A11 A11 A11
A3 A3 A3 A3 A3 A3 A3 7 22 OE* OE* OE* OE* OE* OE* OE*
A2 A2 A2 A2 A2 A2 A2 8 21 A10 A10 A10 A10 A10 A10 A10
A1 A1 A1 A1 A1 A1 A1 9 20 CE* CE* CE* CE* CE* CE* CE*
A0 A0 A0 A0 A0 A0 A0 10 19 D7 D7 D7 D7 D7 D7 D7
D0 D0 D0 D0 D0 D0 D0 11 18 D6 D6 D6 D6 D6 D6 D6
D1 D1 D1 D1 D1 D1 D1 12 17 D5 D5 D5 D5 D5 D5 D5
D2 D2 D2 D2 D2 D2 D2 13 16 D4 D4 D4 D4 D4 D4 D4
GND GND GND GND GND GND GND 14 15 D3 D3 D3 D3 D3 D3 D3

J3 - FTDI / TTL Serial

  • Requires a FTDI cross-over cable

SIMPLE-Z80 J3 FTDI.PNG

  • Pinout
  1. GND
  2. N/C
  3. +5V
  4. Transmit (out)
  5. Receive (in)
  6. RTS* (out)

J4 - 5V Power

  • 2x4 header

SIMPLE-Z80 J4 PWR.PNG

First Unit Checkout

  • PCB

SIMPLE-Z80 P1090181-720px.jpg

Install Sockets

  • Machined pin sockets

Install Passives

Power

  • Install 2x4 at J4
  • Power card via J4 with 5V
  • Check power pins on parts

Clock

  • Install Clock parts
    • Install R2, R3
    • Install C5, C6
    • Install 7.3728 MHz crystal
    • Install 74HC04 at U5
  • Measure clock at U5-4
    • 7.32 MHz clock - looks good

Reset

  • Do not install U8 Power Monitor
    • Reset button gets stretched by Power Monitor U9
  • Install pushbutton switch SW1
  • Measure reset at Z80 U2 pin marked RST on silkscreen

SIMPLE-Z80 P1090202-720PX.jpg

EPROM

  • U6 = SST27C256 EEPROM
    • 32 KB part
    • Using first 16KB of EEPROM
    • J2 EEPROM pin 1 = VPP = VCC or GND
      • Jumper J2:2-3
    • J5 EEPROM pin 27 = A14 = GND
      • Jumper J5:2-3

EEPROM Programming

SIMPLE-6502 TL866Plus Program.png

  • Device programmed/verified

Install CPU, ROM, RAM, ACIA

  • U1 - Do not install MAX232 yet

Test FTDI Serial

SIMPLE-Z80 P1090251-720pxV.jpg

Test RS-232 Serial

  • With MAX232
  • Install DB-9 Male
  • Holes don't line up well, but 4-40 screws can fit
  • Connected to FTDI-49MM and DCE cards

FTDI DCE P1090192-720PXV.jpg

  • Works

Netlist

  • First build had six open traces
    • Added wire U2-5 to U4-31
    • Added wire U2-15 to U4-14
    • Added wire U2-20 to U5-5
    • Added wire U2-40 to U4-23
    • Added wire U7-3 to U4-29
    • Added wire U7-11 to U4-30
  • Checked on 2 other boards, not an issue on the boards
  • Card worked with wires
/CPUA0,U2-30,U3-11,U4-12,U6-10,
/CPUA1,U2-31,U4-11,U6-9,
/CPUA2,U2-32,U4-10,U6-8,
/CPUA3,U2-33,U4-9,U6-7,
/CPUA4,U2-34,U4-8,U6-6,
/CPUA5,U2-35,U4-7,U6-5,
/CPUA6,U2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3,J3-1,J4-1,J4-3,J4-5,J4-7,J5-3,SW1-1,U1-15,U2-29,U3-1,U3-23,U3-24,U4-16,U4-2,U4-22,U5-7,U6-14,U7-7,U8-3,
Net-(C5-Pad1),C5-1,R3-1,Y1-2,
Net-(C6-Pad1),C6-1,R2-1,U5-1,Y1-1,
Net-(J1-Pad4),J1-4,J1-6,
Net-(R2-Pad2),R2-2,R3-2,U5-2,U5-3,
Net-(U1-C1+),C1-1,U1-1,
Net-(U1-C1-),C1-2,U1-3,
Net-(U1-C2+),C2-1,U1-4,
Net-(U1-C2-),C2-2,U1-5,
Net-(U1-VS+),C3-1,U1-2,
Net-(U1-VS-),C4-2,U1-6,
Net-(U7-Pad12),U7-12,U7-8,
VCC,C10-2,C11-2,C12-2,C13-2,C14-1,C7-2,C8-2,C9-2,J2-1,J3-3,J4-2,J4-4,J4-6,J4-8,J5-1,R1-1,R4-1,U1-16,U2-11,U2-17,U2-24,U2-25,U3-12,U4-32,U5-11,U5-13,U5-14,U5-9,U6-28,U7-14,U8-2,

Software

  • ROM.HEX - ROM file
  • Nascom 2 Computer BASIC Microsoft BASIC 4.7 modified to remove all hardware-specific code

Source files

  • intmini.asm - the interupt driven mini startup program needed to boot into BASIC
  • basic.asm - BASIC 4.7b - a conversion of Microsoft BASIC 4.7, as used on the Nascom computers (see below for details)

Output files

  • INTMINI.HEX
  • BASIC.HEX
  • ROM.HEX - the complete 8K ROM ready for burning to an EPROM - the unused contents are filled with FF values.
  • Within the ROM, the serial handler is first (starting at address 0000H), followed by the BASIC interpreter (starting at 0100H).

Assembler files (for Windows/DOS)

  • _ASSEMBLE.BAT - double-click in Windows to run the assembly if needed
  • TASM.EXE
  • TASM80.TAB

Acknowledgements

  • BASIC is Microsoft BASIC 4.7 for the NASCOM, heavily modified by Grant to remove references to different monitors, screen handlers and keyboard matrix reading
  • TASM assembler is a partial distribution of the package from Speech Technology Incorporated

Performance

  • TeraTerm settings

SIMPLE-6809 TeraTerm Setup.PNG

  • Test software
10 FOR I =1 TO 10000
20 PRINT I
30 NEXT I

Mechanicals

SIMPLE-Z80 REV1 MECHS.PNG

SIMPLE-Z80 Assembly Sheet