Code Monkey home page Code Monkey logo

tangnano-mcs4memory's Introduction

tangnano-MCS4memory

Memory system for Intel 4004 using Tang Nano 20K

This document is written mostly in Japanese. If necessary, please use a translation service such as DeepL (I recommend this) or Google.

概要

emu8080on4004を動作させるための4004実験ボード(Rev.2.1)の「4004以外の部分」(主にメモリシステム)をTang Nano 20K に実装しました. これにより,DigikeyやMouserで入手可能な部品とTangNano20KだけでIntel4004を動作させることができます.

ボードの構成

部品のほとんどはレベル変換用IC(15V←→3.3V, 15Vクロックドライバ, UART用5V耐圧バッファ)です.

Tang Nano 20Kに実装したもの

  • 4002 x 4個 (data ram, 出力ポート).出力ポートのLEDはRAM0の4個のみ.
  • 4289 のプログラムメモリへのアクセス機能(ポート機能は未実装)
  • プログラム領域のROM (4KB)
  • プログラム領域のRAM (256byte x 256バンク = 64KB)
  • 2相クロックジェネレータ

Rev.2.1ボードにおける下記の赤枠の部分がTangNano20Kに実装されています.

電源について

一般に,4004の回路は「VSS=-15V, VDD=0V(GND)」もしくは,「VSS=-10V, VDD=+5V, GND=0V」で設計されることが多いですが,3.3VCMOSへのレベル変換を考えた場合, 「VSS=+15V, VDD=0V(GND)」とした方が扱いやすそうだったのでそのようにしています. (ちなみに,15V系CMOSはVSSとVDDは4004と逆で「VSS=0V(GND),VDD=+15V」です.)

  • +15Vが必要なのは4004とクロック用バッファだけで,消費電流は40mA(電力0.6W)程度なので,5V→15V,1WのDC/DCコンバータの(RECOM, ROE0515S)で生成しています.
  • 外部から供給する電源は5Vのみで,消費電流はTangNano(100mA程度)とあわせて250mA程度です.いわゆる普通の5V USB電源でも動作します.

4004実験ボード(Rev.2.1)との互換性について

  • ソフトウェアはバイナリレベルで互換性があるはずです.
  • 4002の出力ポートのLED(計16個)は,RAM0の4個だけTangNanoのオンボードLEDとして実装されています.
  • UARTは74HC4050経由にしたので,3.3V, 5Vの両方に対応しているはずです.(動作確認済なのは5Vのみ)

ブログ

関連する情報が書いてあるかも.

更新履歴

  • 2023/6/14: 初版公開

tangnano-mcs4memory's People

Contributors

ryomuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.