Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

512K+512K RAM/ROM card for RC2014

License

NotificationsYou must be signed in to change notification settings

PickledDog/rc-1024k

Repository files navigation

512K+512K RAM/ROM card for RC2014Assembled PD109

Overview

This RC2014-compatible board provides RAM and flash ROM, software-pageable in 32k pages. 16 ROM and 16 RAM pages may be paged into the lower 32k of Z80 memory. This paging scheme is compatible with Wayne Warthen'sRomWBW.

Memory details

For ROM, a SST39SF040 512k x 8 flash chip is used. It can be programmed in-place using Will Sowerbutts' FLASH4 utility (included with RomWBW). For RAM, an AS6C4008 512k x 8 SRAM is used, providing 512K of addressable memory. Both are divided into 32k pages, and any page of either chip can be paged into the lower 32k of the address space. The upper 32k is permanently mapped to the last page of the RAM chip.

Paging

Upon reset, the first page of the ROM is mapped to the lower 32k. If left alone, the board will behave like any 32k ROM+32k RAM RC2014 system. A config register is used to set the currently mapped page, presented as an I/O device at 0x78 (the address used by most "large" Z80 memory systems). The low nibble sets the page number (0-15), and high bit 7 selects the chip (0 for ROM, 1 for RAM).

The port address and layout are chosen to be (mostly) compatible with theRetroBrew SBC. The SBC has separate ROM and RAM registers (on 0x78 and 0x7C); this board uses a single register for both, which can be written to from either address.

Firmware

ManyRC2014 ROM images can be used (selecting the right image for your serial board), but some will require modification to accommodate the different paging system. The 32k BASIC images work unmodified. Stephen C Cousins' excellentSmall Computer Monitor can be used as well - choose the R3 configuration. CP/M loadingwon't work without code changes.

But most importantly, this board is compatible withRomWBW, providing several CP/M versions, ROM applications, and maximized free application memory. It will need to be built from source with configuration changes, although this is fairly straightforward (RomWBW includes its entire build toolchain in the source tree). The build process is covered inthis page from the RomWBW documentation (including Linux and Mac instructions). An example image can be found in thefirmware directory.

RomWBW Config changes

With thesource tree unpacked, go intoSource/HBIOS/Config and make a copy ofRCZ80_std.asm (call itRCZ80_pd.asm). Edit this new file, and add the following lines:

MEMMGR.SETMM_SBC; MEMORY MANAGER: MM_[SBC|Z2|N8|Z180]MPCL_RAM.EQU$78; SBC MEM MGR RAM PAGE SELECT REG (WRITE ONLY)MPCL_ROM.EQU$7C; SBC MEM MGR ROM PAGE SELECT REG (WRITE ONLY);

With our new file, we can go ahead and build our ROM image. Under Windows, this is done with the following commands inSource:

  • BuildShared
    • Wait for this to complete, ignoring the harmless program origin warnings
  • BuildROM
    • EnterRCZ80 at thePlatform prompt
    • Enterpd at theConfiguration prompt

Once the build is complete, we are done! Back at the root of the source tree, go intoBinary and retrieve our newRCZ80_pd.rom. This can now be burned to the flash chip using an EPROM programmer, such as aTL866.

Part selection

Bill Of Materials and part references are below. I recommend using gold-plated header for the bus connection - I use these ones fromPololu orSparkfun. A nice detail of these, is that they sit at the same height as double-row header in a backplane.

The specified parts are just the ones I used, and can be substituted as needed - Mouser links provided for convenience and reference.

ReferenceValueQtyMouser link
C1-C6100nF ceramic6KEMET C315C104M5U5TA
J11x40 right-angle header1Wurth 61304011021
U1SST39SF040 NOR flash1Microchip SST39SF040-70-4C-PHE
U2AS6C4008 SRAM1Alliance AS6C4008-55PCN
sockets2Amphenol DILB32P-223TLF
U374HCT1381TI SN74HCT138N
U474HCT1741TI CD74HCT174E
U574HCT321TI SN74HCT32N
U674HCT2531TI CD74HCT253E

About

512K+512K RAM/ROM card for RC2014

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp