El documento describe el funcionamiento interno de la unidad central de procesamiento (UCP). La UCP está compuesta por la unidad aritmético lógica (UAL) y la unidad de control (UC). La UAL realiza operaciones matemáticas y lógicas mientras que la UC decodifica instrucciones y controla la secuencia de operaciones. Se explica el proceso de ejecución de 3 instrucciones que suman dos números y almacenan el resultado.
Addressing mode and instruction set using 8051logesh waran
1. Immediate addressing mode:
In this type, the operand is specified in the instruction along with the opcode. In simple way, it means data is provided in instruction itself.
Ex: MOV A,#05H -> Where MOV stands for move, # represents immediate data. 05h is the data. It means the immediate date 05h provided in instruction is moved into A register.
2.Register addressing mode:
Here the operand in contained in the specific register of microcontroller. The user must provide the name of register from where the operand/data need to be fetched. The permitted registers are A, R7-R0 of each register bank. Ex: MOV A,R0-> content of R0 register is copied into Accumulator.
3. Direct addressing mode:
In this mode the direct address of memory location is provided in instruction to fetch the operand. Only internal RAM and SFR's address can be used in this type of instruction.
Ex: MOV A, 30H => Content of RAM address 30H is copied into Accumulator.
4. Register Indirect addressing mode:
Here the address of memory location is indirectly provided by a register. The '@' sign indicates that the register holds the address of memory location i.e. fetch the content of memory location whose address is provided in register.
Ex: MOV A,@R0 => Copy the content of memory location whose address is given in R0 register.
5. Indexed Addressing mode:
This addressing mode is basically used for accessing data from look up table. Here the address of memory is indexed i.e. added to form the actual address of memory.
Ex: MOVC A,@A+DPTR => here 'C' means Code. Here the content of A register is added with content of DPTR and the resultant is the address of memory location from where the data is copied to A register.
Addressing mode and instruction set using 8051logesh waran
1. Immediate addressing mode:
In this type, the operand is specified in the instruction along with the opcode. In simple way, it means data is provided in instruction itself.
Ex: MOV A,#05H -> Where MOV stands for move, # represents immediate data. 05h is the data. It means the immediate date 05h provided in instruction is moved into A register.
2.Register addressing mode:
Here the operand in contained in the specific register of microcontroller. The user must provide the name of register from where the operand/data need to be fetched. The permitted registers are A, R7-R0 of each register bank. Ex: MOV A,R0-> content of R0 register is copied into Accumulator.
3. Direct addressing mode:
In this mode the direct address of memory location is provided in instruction to fetch the operand. Only internal RAM and SFR's address can be used in this type of instruction.
Ex: MOV A, 30H => Content of RAM address 30H is copied into Accumulator.
4. Register Indirect addressing mode:
Here the address of memory location is indirectly provided by a register. The '@' sign indicates that the register holds the address of memory location i.e. fetch the content of memory location whose address is provided in register.
Ex: MOV A,@R0 => Copy the content of memory location whose address is given in R0 register.
5. Indexed Addressing mode:
This addressing mode is basically used for accessing data from look up table. Here the address of memory is indexed i.e. added to form the actual address of memory.
Ex: MOVC A,@A+DPTR => here 'C' means Code. Here the content of A register is added with content of DPTR and the resultant is the address of memory location from where the data is copied to A register.
BASIC INFORMATION OF ARCHITECTURE OF MICRO-CONTROLLER 8051 AS PER GTU SYLLABUS. Please Comment if u Like.. n Give u r feedback..
For More Information Go to
http://www.noesiseducation.blogspot.com
Una breve explicación de como esta formado internamente el procesador.
Bibliográfica:
1. Introducción a un Lenguaje Ensamblador para Arquitectura de Computadoras. Karen Millar. Oxford, 1999.
2. Organización y arquitectura de computadoras -principios y estructura de funcionamiento- Willian Stallings, Megabyte, 1995
3. Lógica y dseño. Digital, Morris Mano. Prentice-Hall, 2000
BASIC INFORMATION OF ARCHITECTURE OF MICRO-CONTROLLER 8051 AS PER GTU SYLLABUS. Please Comment if u Like.. n Give u r feedback..
For More Information Go to
http://www.noesiseducation.blogspot.com
Una breve explicación de como esta formado internamente el procesador.
Bibliográfica:
1. Introducción a un Lenguaje Ensamblador para Arquitectura de Computadoras. Karen Millar. Oxford, 1999.
2. Organización y arquitectura de computadoras -principios y estructura de funcionamiento- Willian Stallings, Megabyte, 1995
3. Lógica y dseño. Digital, Morris Mano. Prentice-Hall, 2000
2. Arquitectura interna Este esquema presenta la Memoria Principal (RAM), la UCP y los buses de Direcciones y de Datos. La UCP está constituida por...
3. La unidad Aritmético-Lógica integrada por: La Unidad calculadora Realiza las operaciones aritmético-lógicas programadas, con 2 operandos El Registro Temporal Contiene el otro operando El Registro Acumulador Contiene uno de los operandos, y guarda el resultado de la operación
4. La unidad de Control integrada por: El Registro Contador de Programa (CP) Guarda la dirección de memoria de la siguiente instrucción a ejecutar El Registro de Datos Conectado al bus de datos, contiene el dato que la UCP lee o escribe en memoria El Registro de Direcciones Conectado al bus de direcciones, transmite la dirección de memoria en la que leer o escribir
5. La unidad de Control integrada por: El Registro de Instrucciones Recibe desde el Registro de Datos una instrucción que debe ser decodificada para su ejecución La UCP está compuesta por la UAL y la UC La Unidad Controladora Decodifica la instrucción y envía las señales de control necesarias para su ejecución
6.
7.
8. El contenido del registro CP se transfiere al Registro de direcciones 1ª instrucción 1ª microinstrucción
9. 1ª instrucción 1ª microinstrucción Seleccionando la dirección 0000 en la RAM El contenido del registro CP se transfiere al Registro de direcciones REPETIR
10.
11. La UCP lee el contenido de la memoria (1ª instrucción) 1ª instrucción 2ª microinstrucción
12. La UCP lee el contenido de la memoria (1ª instrucción) Y lo almacena en el Registro de datos 1ª instrucción 2ª microinstrucción
13. 1ª instrucción 2ª microinstrucción Y lo almacena en el Registro de datos La UCP lee el contenido de la memoria (1ª instrucción) El CP se incrementa en una unidad REPETIR
14.
15. El código de operación se transfiere desde el Registro de Datos al Registro de Instrucción 1ª instrucción 3ª microinstrucción
16. El código de operación se transfiere desde el Registro de Datos al Registro de Instrucción 1ª instrucción 3ª microinstrucción El código de operación se identifica REPETIR
17.
18.
19.
20.
21. La UCP lee el dato direccionado ... 1ª instrucción 5ª microinstrucción
22. La UCP lee el dato direccionado ... Lo transfiere al Registro temporal de la UAL 1ª instrucción 5ª microinstrucción
23. El contenido del registro Temporal se suma al contenido del Registro Acumulador. 1ª instrucción 5ª microinstrucción
24. 1ª instrucción 5ª microinstrucción El resultado se guarda en el Registro Acumulador REPETIR El contenido del registro Temporal se suma al contenido del Registro Acumulador.
27. El contenido del registro CP se transfiere al Registro de direcciones 2ª instrucción 1ª microinstrucción
28. 2ª instrucción 1ª microinstrucción Seleccionando la dirección 0001 en la RAM El contenido del registro CP se transfiere al Registro de direcciones REPETIR
29.
30. 2ª instrucción 2ª microinstrucción La UCP lee el contenido de la memoria (2ª instrucción)
31. 2ª instrucción 2ª microinstrucción La UCP lee el contenido de la memoria (2ª instrucción) Y lo almacena en el Registro de datos
32. 2ª instrucción 2ª microinstrucción Y lo almacena en el Registro de datos La UCP lee el contenido de la memoria (1ª instrucción) El CP se incrementa en una unidad REPETIR
33.
34. El código de operación se transfiere desde el Registro de datos al Registro de Instrucción 2ª instrucción 3ª microinstrucción
35. El código de operación se transfiere desde el Registro de Datos al Registro de Instrucción 2ª instrucción 3ª microinstrucción El código de operación se identifica REPETIR
36.
37.
38.
39.
40. 2ª instrucción 5ª microinstrucción La UCP lee el dato direccionado ...
41. 2ª instrucción 5ª microinstrucción La UCP lee el dato direccionado ... Lo transfiere al Registro temporal de la UAL
42. 2ª instrucción 5ª microinstrucción El contenido del registro Temporal se suma al contenido del Registro Acumulador.
43. 2ª instrucción 5ª microinstrucción El resultado se guarda en el Registro Acumulador REPETIR El contenido del registro Temporal se suma al contenido del Registro Acumulador.
46. El contenido del registro CP se transfiere al Registro de direcciones 3ª instrucción 1ª microinstrucción
47. 3ª instrucción 1ª microinstrucción Seleccionando la dirección 0010 en la RAM El contenido del registro CP se transfiere al Registro de direcciones REPETIR
48.
49. La UCP lee el contenido de la memoria (3ª instrucción) 3ª instrucción 2ª microinstrucción
50. La UCP lee el contenido de la memoria (3ª instrucción) Y lo almacena en el Registro de datos 3ª instrucción 2ª microinstrucción
51. 3ª instrucción 2ª microinstrucción Y lo almacena en el Registro de datos La UCP lee el contenido de la memoria (3ª instrucción) El CP se incrementa en una unidad REPETIR
52.
53. El código de operación se transfiere desde el Registro de datos al Registro de Instrucción 3ª instrucción 3ª microinstrucción
54. El código de operación se transfiere desde el Registro de Datos al Registro de Instrucción 3ª instrucción 3ª microinstrucción El código de operación se identifica REPETIR
55.
56.
57.
58.
59.
60. En la dirección indicada en la instrucción (1100) 3ª instrucción 5ª microinstrucción La UCP almacena el contenido del Registro Acumulador
61. 3ª instrucción 5ª microinstrucción REPETIR El resultado de la suma queda almacenado en la RAM En la dirección indicada en la instrucción (1100) La UCP almacena el contenido del Registro Acumulador
63. Luego de este primer recorrido, le sugerimos que lea las actividades propuestas en la Guía de observación de esta animación, y que vuelva a verla las veces que sea necesario para realizar las mismas.