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.

8051 specification

Status
Not open for further replies.

Parth86

Member
hello

I have doubt about 8051 specification
8 bit microcontroller
8 bit data
8 bit instruction
8 bit decoder
16 bit program counter

8 bit data
If we want to deal with 8 bit data so we use 8 bit

8 bit instruction
if
instruction is 8 bit then we can do 256 operation (and.or.addition ....upto 256)
if instruction is 16 bit then we can do 64,000 operation

In 8 bit 8051 microcontroller why we use 8 bit instruction
Q1 why we cant use 16 bit instruction ?

8 bit decoder
8 bit decoder decode 256 instruction
we can use 5 bit 9 bit 13 bit why we use 8 bit decoder ?
https://www.electro-tech-online.com/posts/1170570/
 
Q1.. Buy the MCS-96 or derivative as the registers in the noble MCS-51 are only 8 bit...

As far as instructions there won't be 256 available in an 8 bit as the ALU has certain tasks using the instruction encoder... not all conditions will be available...

If you have been paying attention to all you have learned, you will have seen that certain sacrifices made to the design, changes the way we can use the internal mechanism..... Far greater intellectuals than I designed these things, I'm sure they had good reasons for doing so...
 
ok that means If data is 4 bit then we will use 4:1 decoder ?
it depend upon what data we are using

what about program counter
how to decide that which pc we will use ?
 
The Program counter controls the maximum size of program. If the PC is 8 bit then we can only address 256 instructions.
In the 8051 the PC is 16 bit and can address 64000 instructions.
Most 8 bit CPUs use PCh and PCl (two 8 bit registers to make one 16 bit counter).
 
The Program counter controls the maximum size of program. If the PC is 8 bit then we can only address 256 instructions.
In the 8051 the PC is 16 bit and can address 64000 instructions.
Most 8 bit CPUs use PCh and PCl (two 8 bit registers to make one 16 bit counter).
I think In 8051 the instruction is 8 bit it can do 256 operation that mean we can use 8 bit pc ?
 
The instruction decoder is 8 bit. So it can do 256 different instructions.
The program counter points at what instruction is to be preformed next. It is 16 bit.
 
The Program counter controls the maximum size of program. If the PC is 8 bit then we can only address 256 instructions.
In the 8051 the PC is 16 bit and can address 64000 instructions.
Most 8 bit CPUs use PCh and PCl (two 8 bit registers to make one 16 bit counter).
still I don't understand why we use 16 bit program counter?
why not we use 8 bit program counter ?

If the PC is 8 bit then we can only address 256 instructions.
In the 8051 the PC is 16 bit and can address 64000 instructions.

If alu can do 256 instruction then can we use 8 bit pc?
 
We use 16 bit program counter because a program that is 256 location long is so small only a hobby person will use it.
My first personal computer (8080) had a CP of 16 bits. (before "DOC", back in the CPM days) (printer, hard-drive, monitor, floppy, etc)
The 8088 (one of the first personal computer) address 1,000,000. That is so small that no one will use now.
The 80386, has a PC so small that they all have been thrown in the trash.
I am typing on a computer with only 4,000,000,000 of memory and the new programs will not run on it because the programs are too big.

Can you find a micro with a 8 bit program counter?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top