Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

rangerskm

Full Member level 4
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??
 

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top