6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 1:40 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: [67.1] Cycles Per Second
PostPosted: Mon Sep 11, 2000 4:28 pm 
Hello!
I have a question I'm hoping that someone can answer. In the NES, the 6502 is clocked at 1.7897725 MHz. What I was wondering was how many clock cycles the 6502 takes for instruction fetches and so forth, and my ultimate question is how many cycles per second would this configuration be able to execute?


Report this post
Top
  
Reply with quote  
 Post subject: [67.2] Cycles Per Second
PostPosted: Sat Apr 21, 2001 2:36 am 
You really need to look at the definition of "Mhz" because you seem to be seriously misunderstanding something.

Toshi


Report this post
Top
  
Reply with quote  
 Post subject: [67.3] Cycles Per Second
PostPosted: Sat Apr 21, 2001 4:04 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8433
Location: Southern California
I would encourage communication that's gracious and helpful to those who are new at this. POINTYDESMO was no doubt trying to translate the figure he had into MIPS, and compare to what the actual hardware limit might be.

My rule of thumb is that 6502 MIPS is generally 1/4 of the clock frequency in MHz. This will vary, depending on what you're doing. 6502 MIPS are worth more than most other 8-bit processors' MIPS though. I have developed some products with PIC microcontrollers, and find that the processor core in the PIC generally takes twice as many clocks to do a job as a 6502 takes, if the job is small enough that the PIC can do it at all. Both are available in 20MHz. My now possibly outdated info says that WDC has a licensee running a W65C02SB-type core at 50 MHz. This means an interrupt latency of 140ns, not including time to finish the current instruction.

By the way, a relatively new part of the www.6502.org website has a detailed set of information on 6502 instructions. These cover the old NMOS versions, but not any of the CMOS, which have more instructions, bugs fixed, and quirks removed. As I looked through it, it reminded me again why I don't use the NMOS types. There is one part though that needs correction: It says that a bus cycle is two clock cycles' time, and that where the data sheet says an instruction takes two cycles, it's actually four clock cycles. This is not the case. All the instructions take two to seven actual clocks. For example, at 1MHz, LDA # takes 2us. Commodore briefly made a 10MHz 65CE02 in the late 80s that actually had about 30 op codes that executed in a single clock, ie, 100ns @ 10MHz.

Garth

_________________
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?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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: