element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
element14's The Ben Heck Show
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • More
  • Cancel
element14's The Ben Heck Show
Forum W65C02S Address selection
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14's The Ben Heck Show to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 8 replies
  • Subscribers 31 subscribers
  • Views 1094 views
  • Users 0 members are here
  • singleboardcomputer
  • w65c02s
  • frontpage
  • apple1
  • 6502
Related

W65C02S Address selection

ElectroRetroNerd
ElectroRetroNerd over 11 years ago

Hello World! My name is Kaleb Papesh and I have decided to build my very own 6502 based computer from the ground up after watching the Apple 1 episodes of TBHS. I know that the 6502 is alive and kicking with Western Design Center currently making the chips however, after looking at the data sheets, I don't see any CS or CE lines for me to use a 3-8 decoder to select ram. Has anyone else used a W65C02S chip in there own 6502 based computers? I don't fully understand the entire addressing architecture for the 6502 so if anyone has in depth information on how it works and how to use a 3-8 decoder to select and use ram, the better! Thank you for any help you can provide!

  • Sign in to reply
  • Cancel
  • D_Hersey
    0 D_Hersey over 11 years ago

    Talk about your RAM chips.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jac_goudsmit
    0 jac_goudsmit over 11 years ago

    The 6502 forums at http://forums.6502.org would be a better place to ask this question. The folks there will probably direct you to Garth Wilson's 6502 Primer webpage to learn about designing a 6502 computer: 6502 Primer index

     

    The short answer is: you generate the chip select and write enable lines from the address bus and the clock. The 6502 Primer pages will give you way more information.

     

    ===Jac

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DAB
    0 DAB over 11 years ago

    I still have my 6502 powered Commodore PET computer.

     

    The 6502 was an interesting chip, but unless you are really into nostalgia, there are just too many other modern chips that you could program to emulate the old 6502 software.

     

    Still, if you are diligent enough, you can rebuild the 6502 devices.

     

    Good luck.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 11 years ago

    Since the RAMs of today probably are much bigger than 64K, you don't need 'address decoding,' you need 'paging.'

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jac_goudsmit
    0 jac_goudsmit over 11 years ago in reply to D_Hersey

    First of all: small SRAM chips (by todays standards) are still available. Most engineers who build their own 6502 system use a 62256 (32KB) but smaller chips can easily be found, too. Interestingly, 64K SRAM chips (such as the 62512) are surprisingly difficult to find, but 128K chips are easy again.

     

    Second: Regardless of how big of a RAM chip you use in a 6502 system, you will still need address decoding, because every 6502 system needs ROM, RAM and I/O. The original Apple-1 used 8K RAM and 256 bytes (yes bytes) of ROM, but the PIA takes up 4 addresses starting at $D010. Even if you use a 64KB RAM chip, you still need an address decoder to turn the RAM chip off for address areas where the ROM or the PIA (or whatever other chips you want to put into your system) need to be, because only one chip can be active on the data bus.

     

    ===Jac

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 11 years ago

    First of all, I don't need a lesson in basic microprocessor/microcontroller design from you, Jac.  I have been designing with these chips since they have been market-relevant. 

     

    I/O decoding is called 'I/O decoding.'  In the case of the 6502 it is 'memory mapped I/O decoding.'  This is in contrast with something like a Z80 with its explicit I/O decoding.  If you have a 32K-word SRAM on a 64K bus, the only practical way to map that is to use the fifteen bits the chip needs for addressing and the sixteenth for decoding, probably active high.  It is so hard to be think practically about the deliberately impractical. . .

     

    For your I/O decoding you can use a '688 for the high-order bits and a 74hc138 or 74hc154 for the low-order decode, or jellybean or transistor glue logic, or a small PROM.

     

    The idea that a system with paged memory wouldn't need bus decoding is weirdly weird.  This represents a step up from the project itself, which is merely weird.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 11 years ago

    In code-space you should put a ZIF socket or sockets.  Here, you can swap between a battery-backed dual-port SRAM for development, perhaps exchanging for a PROM later on.

     

    Remember that you can always insert queue memory to buffer your I/Os if you want a more elastic set-up.

     

    It is common to have Xs in the I/O map to simplify the decoder.  In cheap systems I have fashioned giant nor/nand gates out of wire-or diodes and a mosfet and resistor or two.  Seems crude, but it works.  Requires legit signal diodes, not the universally-loved-in-some-quarters PS diodes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DAB
    0 DAB over 11 years ago in reply to D_Hersey

    Yes, the 6502 page buffers let you do some very interesting things with just single commands.

     

    The chip was amazing for its time.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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 © 2026 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