tailieunhanh - The Microcontroller 8051

The microprocessor is the core of computer systems. Nowadays many communication, digital entertainment, portable devices, are controlled by them. A designer should know what types of components he needs, ways to reduce production costs and product reliable. | L S R First Design Key board Mahdi Hassanpour A B Second Design Mahdi Hassanpour A B C D C D B Key board Third Design Mahdi Hassanpour 1 2 3 4 5 6 7 8 9 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 0 1 Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Microcontroller 8051 Mahdi Hassanpour Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Memory mapping in 8051 Stack in the 8051 I/O Port Programming Timer Interrupt Mahdi Hassanpour Why do we need to learn Microprocessors/controllers? The microprocessor is the core of computer systems. Nowadays many communication, digital entertainment, portable devices, are controlled by them. A designer should know what types of components he needs, ways to reduce production costs and product reliable. Mahdi Hassanpour Different aspects of a microprocessor/controller Hardware :Interface to the real world Software :order how to deal with inputs Mahdi Hassanpour The necessary tools for a microprocessor/controller CPU: Central Processing Unit I/O: Input /Output Bus: Address bus & Data bus Memory: RAM & ROM Timer Interrupt Serial Port Parallel Port Mahdi Hassanpour CPU General-Purpose Micro-processor RAM ROM I/O Port Timer Serial COM Port Data Bus Address Bus General-Purpose Microprocessor System Microprocessors: CPU for Computers No RAM, ROM, I/O on CPU chip itself Example:Intel’s x86, Motorola’s 680x0 Many chips on mother’s board General-purpose microprocessor Mahdi Hassanpour Intel’s x86: 8086,8088,80386,80486, Pentium Motorola’s 680x0: 68000, 68010, 68020,68030,6040 RAM ROM I/O Port Timer Serial COM Port Microcontroller CPU A smaller computer On-chip RAM, ROM, I/O ports. Example:Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X A single chip Microcontroller : Mahdi Hassanpour Microprocessor CPU is stand-alone, RAM, ROM, I/O, timer are separate designer can decide on the amount of ROM, RAM . | L S R First Design Key board Mahdi Hassanpour A B Second Design Mahdi Hassanpour A B C D C D B Key board Third Design Mahdi Hassanpour 1 2 3 4 5 6 7 8 9 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 0 1 Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Mahdi Hassanpour Microcontroller 8051 Mahdi Hassanpour Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Memory mapping in 8051 Stack in the 8051 I/O Port Programming Timer Interrupt Mahdi Hassanpour Why do we need to learn Microprocessors/controllers? The microprocessor is the core of computer systems. Nowadays many communication, digital entertainment, portable devices, are controlled by them. A designer should know what types of components he needs, ways to reduce production costs and product reliable. Mahdi Hassanpour Different aspects of a microprocessor/controller Hardware :Interface to the real world Software .