Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Question about pic18 instruction set

Status
Not open for further replies.

krpz

New Member
i have a question about pic18 instruction set. Why we need 16bits instruction set even thought pic18 have only 75 instrutions ?
 
There may be only 75 instructions but each instruction takes up a large area of the available instruction space.

For example,

BSF Reg,N,B

Can have Reg from 0 to 256, N from 0 to 7 and B as 0 or 1.

That's a total of 12 bits that are variable in the one instruction. So BSF has 4096 variations.

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top