• AVR Freaks

how many ns/instruction

Author
KelvinSmith
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2018/10/04 13:20:44
  • Location: 0
  • Status: offline
2019/07/11 16:20:00 (permalink)
0

how many ns/instruction

I am programming a 18F13K22, which can run at 64 Mhz. I have been interpreting this to be about 16 ns per instruction, being 1 second divided by 64 million. Is that correct, or is there some catch to it?
#1

2 Replies Related Threads

    mbrowning
    Just a Member
    • Total Posts : 1424
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: how many ns/instruction 2019/07/12 13:52:42 (permalink)
    +2 (2)
    It’s not correct. There is a catch, and it’s clearly spelled out in the datasheet. (Hint: Fosc/4)

    Oh well - there's always next year
    #2
    ric
    Super Member
    • Total Posts : 22715
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: how many ns/instruction 2019/07/12 14:44:44 (permalink)
    +2 (2)
    and the second catch is that there are a number of instructions that take two "instruction cycles".
    Again, it's all spelled out in the datasheet.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5