Shop OBEX P1 Docs P2 Docs Learn Events
COSMACog CDP1802 Emulator — Parallax Forums

COSMACog CDP1802 Emulator

ctwardellctwardell Posts: 1,716
edited 2013-03-18 14:39 in Propeller 1
Edited: 9Nov12

COSMACog is an emulator for the RCA COSMAC 1802.

I'll use this thread to release info and source as the project proceeds.

The COSMACog 1802 uses a single cog to emulate the 1802 with other cogs providing
system control, memory, and video support.

A minimal system takes 3 cogs:

- COSMACog 1802
- System Controller - Drives 2 MCP23S18 SPI I/O expanders to provide data display, hexadecimal keypad, system control switches.
- Memory Controller - Provides up to 28k of RAM using HUB memory.

A virtual bus representing a modified version of the 1802 bus resides in hub memory allowing other cogs to interact with the cpu emulator.

A COSMACog 1861 is planned to provide "pixie" graphics with a 1861/1862 version to provide color graphics to follow.

Depending on working out some timing issues an updated memory controller using external SPI RAM will provide up to 64k of RAM.

C.W.

9Nov12
It looks like SDI or SQI RAM will be needed for going above the 28k or so that will be available from HUB RAM.
I ordered some 23LC512's today for testing.

Comments

  • ctwardellctwardell Posts: 1,716
    edited 2012-11-08 09:05
    Reserved for Updates #1
  • ctwardellctwardell Posts: 1,716
    edited 2012-11-08 09:05
    Reserved for Updates #2
  • ctwardellctwardell Posts: 1,716
    edited 2012-11-08 09:05
    Reserved for Updates #3
  • mindrobotsmindrobots Posts: 6,506
    edited 2012-11-08 09:26
    Cool! Bring it on! I spent many an hour when I was young and the world was bright pluggin programs into my 1802 through the hex keypad!!
  • ctwardellctwardell Posts: 1,716
    edited 2012-11-08 09:47
    mindrobots wrote: »
    Cool! Bring it on! I spent many an hour when I was young and the world was bright pluggin programs into my 1802 through the hex keypad!!

    My goal is to have a release before Christmas, maybe a teaser before Thanksgiving.

    I still have my ELF II but it usually takes some TLC every time I run it these days.

    When I was a kid I had fun making it play Christmas carols; first by toggling the Q line hooked to a speaker, later using the divider chip on the Netronics Color/Sound board.

    We have so much power at our fingertips these days, but somehow that magic isn't there.

    C.W.
  • eldonb46eldonb46 Posts: 70
    edited 2012-11-08 09:53
    Hey, fun stuff, I still have my old RCA 1802 system (somewhere?).
  • eldonb46eldonb46 Posts: 70
    edited 2012-11-08 09:59
    ctwardell wrote: »
    We have so much power at our fingertips these days, but somehow that magic isn't there.

    C.W.

    The Magic - is not what you have, . . . but - what you can imagine it could be.

    Eldon
  • blittledblittled Posts: 681
    edited 2012-11-08 10:23
    ctwardell, Great Job! I got interested in computers by reading Popular Electronics "Build your own Cosmac Elf" but being a teenager with my only income being mowing a neighbor's lawn I never got the money to buy the parts! I was excited when I picked up an 1802 chip at the junk table at this year's UPENE and was looking into using it in the 1802 Membership card. I got plenty of Propeller boards so I could dedicate one to this project instead. I wonder if a PPDB would be a good test system since it has switches and the Alphanumeric display.
  • ctwardellctwardell Posts: 1,716
    edited 2012-11-08 10:30
    blitted,

    I've heard a lot of good things about Lee's membership card, I need to build one as well to add to the stable.

    The PPDB would be good since it has the displays and room for the MCP23S18's.

    I'm currently using a Propeller Platform USB and a couple breadboards with the LED's and keypad wire-wrapped (showing my age!) on some perfboard.

    C.W.

    Edit 16 Nov 12 - Changed to a Quickstart because the PPUSB stopped being recognized by SimpleIDE...
  • blittledblittled Posts: 681
    edited 2012-11-08 10:50
    I may still build the membership card. I have some MCP23S17's instead of the 18 variety. They should work but I'll have to do some recoding since the register locations in the 17 is different. I have a 4X4 keypad lying around as well.
  • blittledblittled Posts: 681
    edited 2012-11-08 11:29
    OBC is working on a Chip-8 project as well at PropellerPowered http://propellerpowered.com/forum/index.php?topic=200.msg967#msg967. The Chip 8 language was used on the COSMAC VIP
  • HumanoidoHumanoido Posts: 5,770
    edited 2012-11-08 22:53
    ctwardell wrote: »
    My goal is to have a release before Christmas, maybe a teaser before Thanksgiving. C.W.

    This is a very interesting project. My first home-brew computer was based on a purchased 1802 chip. These days I'm working on a Propeller COSMAC ELF II. This version will have the expansions in place, including 4K Memory Expansion, Giant Board equivalent, original graphics card, a version of the original Tom Pittman's Tiny BASIC and ELF II games. In the first version, built on a solderless breadboard, binary switches and a pushbutton are used to enter code. The expanded version has more options including the ASCII keyboard.
  • Clive WakehamClive Wakeham Posts: 152
    edited 2012-11-09 01:40
    The 1802 ?
    That brings back memories of a single board microcomputer I had.
  • Heater.Heater. Posts: 21,230
    edited 2012-11-09 02:24
    Great stuff, can't wait to see it in action.
  • JonnyMacJonnyMac Posts: 9,191
    edited 2012-11-09 08:55
    I'm not much for retro computer building but as the COSMAC ELF was my 1st computer (1979, while in high school) I just may have to give this one a go!
  • DiverBobDiverBob Posts: 1,116
    edited 2012-11-09 09:12
    It sounds like the 1802 series chips I left on the freebie table may go to good use! I only kept one in a wire wrapped system I put together and used many years ago, back when computers were both a lot of fun and frustration. The frustration came from working by yourself before the Internet, no easy answers sometimes!
    At one time I had over 20 1802 setups, boy was that a fun chip!

    Bob
  • HumanoidoHumanoido Posts: 5,770
    edited 2012-11-10 04:22
    DiverBob wrote: »
    It sounds like the 1802 series chips I left on the freebie table may go to good use! I only kept one in a wire wrapped system I put together and used many years ago, back when computers were both a lot of fun and frustration. The frustration came from working by yourself before the Internet, no easy answers sometimes! At one time I had over 20 1802 setups, boy was that a fun chip! Bob
    So that's where all the 1802 chips went! :) I only had one chip so I couldn't make any mistakes. This sometimes meant waiting weeks for snail mail to have a question answered. I never even thought about running 20 1802 chips in parallel.. but a discussion over at the Yahoo Elf Group considered building a kind super computing machine from multiple 1802s.
  • ctwardellctwardell Posts: 1,716
    edited 2012-11-14 05:41
    Status Update:

    The 23LC512 chips came in yesterday, and based on tracking info it looks like my Logic Sniffer (http://forums.parallax.com/showthread.php?135138-Logic-Analyzer-questions) should be here Thursday.

    With a lot of help from kuroneko and tonyp12 it looks like a modified version of Ahle2's Video Generator based SPI driver will work to drive the 23LC512's using the SQI protocol.

    http://forums.parallax.com/showthread.php?143679-Looking-for-methods-for-fast-SDI-or-SQI

    I plan to work on the memory controller this weekend and once that is complete I can finalize the timing for the "virtual 1802 bus" and move ahead with the 1802 emulator.

    It is so cool looking at that little 8 pin DIP knowing it replaces what would have been SIXTEEN 4k memory boards on my ELF II.

    C.W.
  • BillDeeBillDee Posts: 3
    edited 2013-03-17 13:38
    Any updates on this project?

    Check out and join the COSMACElf Yahoo group if you are interested in 1802 retro-computing.

    http://groups.yahoo.com/group/cosmacelf/

    We are a pretty active group who work on and discuss a wide variety of computers and projects
    dealing with the CDP1802 microprocessor and related areas of interest.
  • ctwardellctwardell Posts: 1,716
    edited 2013-03-18 14:39
    BillDee wrote: »
    Any updates on this project?

    Check out and join the COSMACElf Yahoo group if you are interested in 1802 retro-computing.

    http://groups.yahoo.com/group/cosmacelf/

    We are a pretty active group who work on and discuss a wide variety of computers and projects
    dealing with the CDP1802 microprocessor and related areas of interest.

    Bill,

    Thanks, I'm already a member, and you're right it is a pretty active group.
    I've been bogged down in "work work" projects lately and have not been able to dedicate and time to the COSMACog project.

    I may end up doing this as a P2 project instead of P1 since I won't need any extra RAM or IO if I use the P2.

    I'm getting a DE2-115 to emulate the P2 while we wait for the actual chips, so I may be able to get started back on this in the next few weeks.

    C.W.
Sign In or Register to comment.