6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 15, 2024 10:33 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Dec 03, 2018 12:16 am 
Offline

Joined: Mon Dec 03, 2018 12:04 am
Posts: 5
I'm sorry if this is a noob question, but I personally can't find an answer other than maybe following wires on a C64 datasheet.
I'm trying to make a simple 65C02 breadboard computer with nothing more than the CPU, some RAM, and an EEPROM. I decided that instead of using AND gates and a decoder for a rough MMIO I'd use the 65C22. My question her is what do I do for the CLK pin on the 65C22? My current plan is to have a 1mhz clock running straight into the PH2I pin of the 65C02, but im wondering if I just run that same signal into the 65C22, or do I have to use a seperate clock? And if so at what frequency?


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 03, 2018 1:03 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Welcome, Kellan. :) Here in the Newbie section you have no worries, as noob questions are 100% allowed!

Kellan wrote:
My current plan is to have a 1mhz clock running straight into the PH2I pin of the 65C02, but im wondering if I just run that same signal into the 65C22, or do I have to use a seperate clock? And if so at what frequency?
If it's a modern WDC 65C02 (not an older chip such as those made by Rockwell) then the recommendation is to run the clock signal straight into the PH2I input (pin 37) of the 65C02, and also to the PH2I input on the 65C22. The clock signal also MUST be involved regarding either Chip Enable of Wrire Enable of the RAM.

These and many other issues are covered on this page of Garth Wilson's site: 6502 Primer: Building your own 6502 computer.

cheers
Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Last edited by Dr Jefyll on Mon Dec 03, 2018 1:06 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 03, 2018 1:03 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8489
Location: Midwestern USA
Kellan wrote:
I'm sorry if this is a noob question, but I personally can't find an answer other than maybe following wires on a C64 datasheet.
I'm trying to make a simple 65C02 breadboard computer with nothing more than the CPU, some RAM, and an EEPROM. I decided that instead of using AND gates and a decoder for a rough MMIO I'd use the 65C22. My question her is what do I do for the CLK pin on the 65C22? My current plan is to have a 1mhz clock running straight into the PH2I pin of the 65C02, but im wondering if I just run that same signal into the 65C22, or do I have to use a seperate clock? And if so at what frequency?

The Ø2 pin on the 65C22 should be connected to the same clock generator that is connected to the Ø2 (PH2I) pin on the 65C02.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 03, 2018 1:09 am 
Offline

Joined: Mon Dec 03, 2018 12:04 am
Posts: 5
Thank you. That is exactly what I needed.


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 03, 2018 1:10 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8541
Location: Southern California
Welcome.

I see two others posted while I was writing, but I'll finish anyway. Use the first diagram near the top of the "Circuit potpourri" page of the 6502 primer as a pattern. Heed the notes under that diagram too, especially about the clock source and distribution. Several other pages of the primer will be especially relevant too. The primer is intended to take you through all the necessary parts of building your own 6502 computer and getting it going, plus ideas of what can be done with it hardwarewise; so the sections are arranged in a logical order, and it's good to go through it in that order.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: