what is meant by 5 million instructions per second in PIC??

Status
Not open for further replies.

rangerskm

Full Member level 4
Joined
Jan 23, 2013
Messages
199
Helped
0
Reputation
2
Reaction score
0
Trophy points
1,296
Visit site
Activity points
2,663
how we calculate the speed of instruction in pic??
how it relate to oscillator especially for 12 mhz??
 

Instructions per second : 5.000.000
Clock divider : 4x

Oscilator : ( 20.000.000 ) 4 x 5.000.000


+++
 

hello,

how we calculate the speed of instruction in pic??
how it relate to oscillator especially for 12 mhz??

Instruction in ASM langage ... not in C or other..

FOSC = FQuartz /4
12/4=> 3Mhz Cyle= 0,33µS
an elementary instruction as a NOP ( do nothing) is executed in 0,33µS
so you can calculate how many instructions in one second : 1000000/0.33=> more the 3 000 000 per second
but somme instruction can take 2 or 3 cycles .. so reality can be less than 3 Millions per second.

Some PIC have a PLL circuit to multiply by 4 , the Quartz Fosc
FOSC becomes 12x4=48Mhz divide by 4 to get elementary Cycle time for a NOP instruction
so if used in this example => gives maxi = 12 Millions instruction per second
 

I don´t know other families than PIC16F, but this one takes exactly 4 cycles oscilator per instruction...


+++

Machine cycle = FOSC/4 .. OK

to execut a
goto xxxx or a conditioanl branch or return or Call
it takes 2 "machine cycle"
see PIC16XXX instruction set in datasheet for nb of cycle for each instruction.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…