[PIC] does PIC take same machine cycle for all instruction??

Status
Not open for further replies.

Deexith Hasan

Advanced Member level 4
Joined
Oct 24, 2014
Messages
111
Helped
4
Reputation
8
Reaction score
3
Trophy points
18
Visit site
Activity points
740
am i right PIC takes 4 clock pulses for 1 machine cycle and in PIC machine cycle = instruction cycle i.e all instruction takes one machine cycle?

is there any difference in machine cycle for RISC and CISC?
 

The Instruction Set chapter of the PIC reference manuals (e.g. PIC 16, PIC18) have a table "Instruction Set Summary" that answers your question. Some instructions are one cycle, some two or even three.
 

if some instructions takes more than one cycle then whats the diff bet RISC and CISC
 

There is a blurred area between the two. Generally, CISC instruction sets use shorter instruction words/bytes, the command and parameters are stored in adjacent addresses in the program memory. A RISC uses bigger instructions in which the parameter fields are embedded. The number of cycles is usually shorter in RISC systems simply because all the information to complete the operation is present in one instruction fetch whereas CISC may require several fetch cycles.

The actual clock cycles to execute an instruction has little to do with CISC/RISC, it depends on the internal architecture, pipelining, cache and use of clock phases.

Brian.
 

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…