Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Chapter 1 The 8051 Microcontroller. 2 Section 1.1 Microcontrollers and Embedded Processors.

Similar presentations


Presentation on theme: "1 Chapter 1 The 8051 Microcontroller. 2 Section 1.1 Microcontrollers and Embedded Processors."— Presentation transcript:

1 1 Chapter 1 The 8051 Microcontroller

2 2 Section 1.1 Microcontrollers and Embedded Processors

3 3 General-purpose microprocessor CPU General- Purpose Micro- processor RAMROM I/O Port Timer Serial COM Port Data Bus Address Bus Figure 1-1 (a) General-Purpose Microprocessor System 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

4 4 Microcontroller RAM ROM I/O Port Timer Serial COM Port Figure 1-1 (b) 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

5 5 Microprocessor v.s. Microcontroller Microprocessor CPU is stand-alone, RAM, ROM, I/O, timer are separate designer can decide on the amount of ROM, RAM and I/O ports. expansive versatility general-purpose Microcontroller CPU, RAM, ROM, I/O and timer are all on a single chip fix amount of on-chip ROM, RAM, I/O ports for applications in which cost, power and space are critical single-purpose

6 6 Embedded System (嵌入式系統) Embedded system means the processor is embedded into that application. An embedded product uses a microprocessor or microcontroller to do one task only. In an embedded system, there is only one application software that is typically burned into ROM. Example : printer, keyboard, video game player Example : Table 1-1, some embedded products using microconrollers

7 7 Processors in Embedded Systems Which is your choice for an embedded product ? microcontroller –cost down –embedded processor = microcontroller microprocessor –In future, an entire computer on a chip –high-end embedded systems use microprocessors – 殺雞用牛刀! –advantage : soon software development, all (appliances) in one.

8 8 Three criteria in Choosing a Microcontroller 1.meeting the computing needs of the task efficiently and cost effectively speed, the amount of ROM and RAM, the number of I/O ports and timers, size, packaging, power consumption easy to upgrade cost per unit 2.availability of software development tools assemblers, debuggers, C compilers, emulator, simulator, technical support 3.wide availability and reliable sources of the microcontrollers.

9 9 Section 1.2 Overview of the 8051 Family

10 10 History of , Intel MCS-51 The 8051 became popular after Intel allowed other manufacturers to make and market an flavor of the –different speed, amount of o-chip ROM –code-compatible with the original 8051 –form a 8051 family

11 11 Table 1-3 : Features of the 8051 Feature Quantity Notes ROM 4K bytes a fixed program RAM 128 bytes temporary data Timers 2 Timer/counter 0,1 I/O pins 32 P0,P1,P2,P3 Serial port 1 TxD, RxD Interrupt sources 6

12 Pin Diagram

13 13 Inside Architecture of 8051 CPU On-chip RAM On-chip ROM for program code 4 I/O Ports Timer 0 Serial Port Figure 1-2. Inside the 8051 Microcontroller Block Diagram OSC Interrupt Control External interrupts Timer 1 Timer/Counter Bus Control TxD RxD P0 P1 P2 P3 Address/Data Counter Inputs

14 14 Other 8051 family Table 1-4 : Comparison of the 8051 Family Members Feature ROM (program space in bytes) 4K 8K 0K RAM (bytes) Timers I/O pins Serial port Interrupt sources 6 8 6

15 15 Various 8051 Microcontrollers 8751 microcontroller AT89C51 from Atmel Corporation DS5000 from Dallas Semiconductor OTP (one-time-programmable) version of the family from Philips Note : –Memory is the most difference between them. Please reference to Chapter 14 and Chapter 15. –You ignore this part until your really design.

16 16 You are able to Compare and contrast microprocessors and microcontrollers Describe the advantages of microcontrollers for some applications Explain the concept of embedded systems Discuss criteria to consider in choosing a microcontroller Explain the variations of speed, packaging, memory, and cost per unit and how these affect choosing a microcontroller Compare and contrast the various members of the 8051 family Compare 8051 microcontrollers offered by various manufacturers

17 17 Homework Chapter 0 Problems : 25,26,27,28,29 Chapter 1 Problems : 8,11,12,13,28,29,30


Download ppt "1 Chapter 1 The 8051 Microcontroller. 2 Section 1.1 Microcontrollers and Embedded Processors."

Similar presentations


Ads by Google