element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Emulate an EPROM - How Hard Could it Be? -- Episode 517
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: kellyhensen
  • Date Created: 12 Mar 2019 8:18 PM Date Created
  • Last Updated Last Updated: 24 Sep 2021 7:24 AM
  • Views 4416 views
  • Likes 12 likes
  • Comments 10 comments

Emulate an EPROM - How Hard Could it Be? -- Episode 517

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

The Apple IIe uses a custom microcontroller and ROM chip to put ASCII values into the computer’s memory. How hard could it be to replace that dual-chip setup with a microcontroller to emulate another kind of keyboard? Bald Engineer tries using an Arduino Mega 2560, Teensy 4.0, and a Pi Pico to replace a vintage ROM chip. See what works AND what does not!

 

In the attached zip file are:

 

  • KiCad files for the ROM Interposer Board
  • Arduino code for ROM test
  • Teensy code to test interrupt latency
  • Python code that can respond to an Output Enable signal

 

A couple of notes that keep coming up:

 

Q: Why do you need to emulate a ROM chip anyway?

A: Like most 8-bit computers, the keyboard interface eventually talks directly to the memory bus. In an Apple IIe (and IIc), that is done through a ROM chip.

 

Q: Why not just replace the keyboard matrix?

A: The final design will not use the original keyboard microcontroller or ROM. Ideally, I want to have an interface for a USB keyboard (and possibly Apple Desktop Bus: ADB.)

 

Q: The Teensy was only 200 nanoseconds, why not just use that?

A: The Mini-Apple IIe is based on the MEGA-II ASIC from an Apple IIgs. Its timing is tighter and slightly different from the Apple IIe’s MMU. The Teensy is slightly too slow.

 

Q: What is “Golden Delicious”?

A: Originally, I was naming this project “Golden Delicious.” So, let’s call it a code name. Now, I call it “Mini Apple IIe.” But, the final project has a different name.

 

Supplemental Content:

 

  • Workbench Wednesday 18: Digilent Analog Discovery Review
  • Workbench Wednesday 16: Instrument Basics: Logic Analyzer
  • Keyboard ROM (26-pin) Interposer Board: https://github.com/baldengineer/Golden-Delicious/tree/master/kicad%20files/ROM%20Interposer%20board

 

Bill of Material:

 

Product Name Manufacturer Quantity Buy Kit
Pi Pico (RP2040) Raspberry Pi Foundation 1 Buy Now
Mega 2560 Arduino 1 Buy Now
Analog Discovery 2 Digilent 1 Buy Now
Digital Discovery Digilent 1 Buy Now

 

Additional Parts:

 

Product Name
Teensy 4.0 from PJRC

 



Attachments:
emulating_rom_with_mcu_v2.zip
element14 presents

element14 Presents  |  About James|  Project Videos

  • emulating rom
  • baldengineer
  • raspberry pi pico
  • e14p_JBE
  • apple
  • apple iie
  • eprom
  • e14presents_baldengineer
  • masked rom
  • raspberry pi
  • digilent
  • element14 presents
  • how hard can it be
  • james
  • teensy
  • arduino
  • friday_release
  • pi pico
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • baldengineer
    baldengineer over 3 years ago +5
    Related Live Streams Check out these live streams for even more details on how I figured out the EPROM stuff. These are all part of an ongoing live stream series where I am designing a mini Apple IIe using…
  • mayermakes
    mayermakes over 3 years ago +4
    you call that easy??? Thats alot of work with some tight thinking here, I'm sure it would be a lot harder for me. Now I need to get into how to use these PIOs of the RP2040....
  • baldengineer
    baldengineer over 3 years ago in reply to DAB +3
    I think so. There are a couple of microcontrollers with a similar feature or capability. Each vendor calls it something else. The unique combination here was the support in CircuitPython. Being able to…
Parents
  • mayermakes
    mayermakes over 3 years ago

    you call that easy???

    Thats alot of work with some tight thinking here, I'm sure it would be a lot harder for me.

    Now I need to get into how to use these PIOs of the RP2040....

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 3 years ago in reply to mayermakes

    We need a separate gauge for fun. I considered it easy because I really enjoyed writing the assembly code.

     

    There are only 9 instructions, but they are very powerful. So it was like solving a jigsaw puzzle with massive pieces.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • baldengineer
    baldengineer over 3 years ago in reply to mayermakes

    We need a separate gauge for fun. I considered it easy because I really enjoyed writing the assembly code.

     

    There are only 9 instructions, but they are very powerful. So it was like solving a jigsaw puzzle with massive pieces.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube