Pic Vrs Atmel speed


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79

    Default Pic Vrs Atmel speed

    I got a question for whoever might no the answer. I have a friend that uses atmel chips for his projects. We were discussing speed of the processor and how they function. Is a pic running at 40 MHz the same speed as a atmel running at 10 MHz. I know that is a pretty broad question. My friend said an atmel takes 1 clock cycle to run one instruction, but he thought the pic takes 4 clock cycles to complete 1 instruction. Is a pic running at 40MHz actual running at 40MHz. I use a pic 18f6722. He said something about the atmel using a risc processor but he wasn't sure what the pic uses.

    Thank
    Shawn

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    In raw instruction rate terms, a PIC running at 40Mhz executes 10 million instructions per second, assuming there are no jumps, returns, or anything else that uses 2 cycles to execute said instruction.
    So, some Atmel chips, like the SX28/SX52 chips, are able to execute a single instruction every clock cycle, and running with the same oscillator frequency as a PIC will appear to be 4 times faster.
    But there's more to it than that. If your particular processor doesn't have the instructions you need, and you have to emulate a certain instruction by using multiple other instructions, then your effective rate of execution can drop dramatically.
    For instance, the PIC18Fxxx series has a built in 8x8 single cycle multiply instruction. If the Atmel chip didn't have that instruction, it would have to emulate that by using a number of other instructions in a loop, thereby making the PIC look like the superior processor.
    Same thing with a divide instruction. The PIC18xxx series doesn't have a divide instruction built into it, so you have to do manual division in a loop...big use of time and cycles. Maybe the Atmel has a built in divide instruction. In that case, the Atmel would appear to be the superior chip.

Similar Threads

  1. Xtal speed vs PIC power
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th January 2010, 20:55
  2. Replies: 14
    Last Post: - 26th September 2007, 06:41
  3. SPI configuration PIC versus Atmel
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2007, 20:17
  4. High Speed Serial Comm PC - PIC and PIC - PIC
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 16th January 2007, 22:55
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts