What is About This Course? 微電腦系統 Microcomputer System.

Post on 12-Jan-2016

234 views 5 download

Transcript of What is About This Course? 微電腦系統 Microcomputer System.

What is About This Course?

微電腦系統Microcomputer System

You Must Know These Terms

Computer(電腦) Microcomputer(微電腦) Microprocessor(微處理器) Microcontroller(微控制器)

– Single Chip Computer(單晶片)– System-on-a-chip(系統單晶片, SoC )

Embedded System(嵌入式系統)

What is Microcomputer?

Micro + Computer

microcomputer

Computers !

An IBM 704 mainframe

PDP 7 minicomputer

HP tablet PC

What is “Computer”?

Mainframe, minicomputer, supercomputer, personal computers, notebooks, tablet PC, workstations, super computers…

General-purpose – You can run games, editors, browsers etc. depend on the programs loaded in the

memory.

High performance– Computers use very powerful CPUs.– Ex: Intel Core i7 920 has 4 cores.

What is “Microcomputer”?

Microcomputer ≈ Personal Computer Microcomputers usually occupy physically

small amounts of space when compared to mainframe and minicomputers.

In this course"Microcomputer Systems",

we want to tell you

how microcomputers work!

How Personal computer works?

What are included in a computer? – CPU, ROM, RAM, I/O controller, buses and

many other chips are found in the motherboard.

Connect to many I/O devices

“CPU” vs. “Microprocessor”

A microcomputer is a computer with a microprocessor as its CPU.– Central Processing Unit

In 2008, the die of Conroe Core 2 Duo in Intel processor

Famous Microprocessors

Intel– x86: 8086, 80286, 80386, 80486, Pentium – Merom, Conroe, Woodcrest– Core i3, Core i5 2500 4 core, Core i7, …

AMD– Sempron 145 AM3, Llano APU A6-3650 – A8-3850, A6-3650 4 cores, Phenom II

Motorola – 68000

Do they need a microprocessor as its CPU?微電腦洗衣機 , 微電腦全自動豆漿機

微電腦電子鍋 , 微電腦馬桶座 ?微電腦電冰箱、微電腦冷氣機、電梯、

遙控器、電話、手機…

Some Products (1/2)

Security systems– Sensor, motion detector , power detector,

smoke detector– Audio alarm, user authentication

Whitegoods and Household Appliances

Ref: http://www.maxim-ic.com/solutions

Some Products (2/2)

MP3 player– standalone hard-wired MPEGI/II Layer-3

decoder with C51 microcontroller core handling dataflow control and MP3-player control

Smart card reader USB controller

Ref: http://www.atmel.com/products/MP3/

Systems with a Specific Function Not high performance, low cost, small size,

customized, automatic & smart control Don't need microprocessors. Industry controllers/Intelligent appliances

– Anti-lock braking system (ABS), automatic four-wheel drive, door opener.

– Printer, keyboard, keyless entry, copier, fax machine, personal digital assistants (PDAs)

– Video game player, camera, cellular phone, microwave, DVD player

They need

a simple and cheap CPU, small size RAM & ROM, more special I/Os

(ex: temperature senor)

--- Cost is most important! ---

Single Chip Computer

How to cost down? Answer: SoC (System on a Chip)

– Contrary to computers, in which microprocessors, extra RAM & ROM, buses and I/Os are separate and put on a mother board,

– these products uses single chip computers.

Single Chip Computer: All in one chip (CPU, I/O, ROM, RAM together.)

Or, it is called as microcontroller.

What is “Microcontroller”?

A microcontroller (also microcontroller unit, MCU or µC) is a small computer on a single integrated circuit (IC) consisting of a relatively simple CPU combined with support functions such as a crystal oscillator, timers, watchdog, serial and analog I/O etc.

Intel 8051

In 1981, Intel MCU-51

A single chip microcontroller (µC)

Used in embedded systems

Intel 8742 Microcontroller

All functions on a chip– 128 bytes of

RAM– 2048 bytes

of EPROM– Input/Output– 8-bit microcontroller

(12MHz)

Microprocessor & Microcontroller

A micro-processor – a very powerful CPU– Usually, used for computer systems– Example: x86, 68K, z80

A micro-controller (µC) – A simple computer system-on-a-chip– It contains a processor core, memory, and

programmable input/output peripherals.– Example: 8048, 8051

What is Embedded System?

As shown in before slides,

except for computers,

other products with specific-function are embedded systems.

What is “Embedded System”?

An embedded product uses a microprocessor or microcontroller to do one task only.– This is, it is a special-purpose product.

In an embedded system, there is only one application software that is typically burned into ROM.

Embedded system means the processor is embedded into that application.

How Embedded System Works?

In general, an embedded system has– A microcontroller (C)– I/O devices– A small board with a microcontroller, some

components and I/O connectors– Real-time Operating System (RTOS)

• Simple-function, small-size

– Application software

Goal of This Course (1/2)

The course “Computer Science” has taught us about complicated computer systems.

In this course, we will focus on “microcontroller” although this course is called “Microcomputer System”.– The design concepts are the same. – However, microcontrollers are much simpler than

microcomputers such that we can discuss more detailed design.

Goal of This Course (2/2)

Understand the architecture of 8051. Leaning 8051 programming. Prepare for the 8051 laboratory.

Microcontroller:• A smaller computer• On-chip RAM, ROM, I/O ports...• Single-purpose

8051 is a microcontroller.• 1981, Intel MCS-51

Why Choose 8051?

Simple, easy to learn A lot of 8051 users After learning 8051, we can understand:

– A basic concept of an embedded system– A simplest computer architecture– How micro-computer works.– Low-level language: Assembly Language

8051 Family

The 8051 became popular after Intel allowed other manufacturers to make and market an flavor of the 8051.– different speed, amount of on-chip ROM or other

memories, special functions– Code-compatible with the original 8051– Atmel, Infineon Technologies, Maxim Integrated

Products, NXP, Nuvoton, ST Microelectronics, Silicon Laboratories Texas Instruments and Cypress Semiconductor.

Atmel AT89C51

Industry of MCU

微控制器 (MCU) 在一顆 IC 裡面包含了 CPU 、 RAM 、 I/O 等功能,早期稱為單晶片處理器。生活應用端從電視、微波爐、冷氣、到工業用的汽車控制,都有它的蹤跡。

以位元數做區分, 4bit 及 8 bit 市占率為 37% 、 16bit 占 25% 、32 bit 為 38%

以市場進行區分則是美國占 15% 、歐洲區 28% 、亞太區 36% 、日本 22% 。

微控制器的產業應用以車用為大宗占 38% 、消費性電子占20% 、工業應用占 23% 、網路通訊 12% 、電腦 7% 。

2010 年產值約 150 億美元。預估 2011 年產值將達 170 億美元(yoy+13%) , 2012 年將有機會創下 190 億美元 (yoy+11.7%) 。

2010Worldwide MCU Ranking (from Gartner) 瑞薩是微控制器領導者,銷售額 44 億 4,700 萬美元;

其次依序是飛思卡爾 (15 億 2,500 萬美元 ) 、三星 (9.82億美元 ) 、 Microchip(9.68 億美元 ) 、愛特梅爾 (9.58億美元 ) 、德州儀器 (TI, 9.46 億美元 )’ 英飛凌(Infineon, 9.3 億美元 ) ,意法半導體 (ST, 9.15 億美元 )和富士通 (6.84 億美元 ) 。

Compare to Other Industries

2010 全球 PC 微處理器營收入約為 390 億美元。 2011年預估可達 430 億美元。

2011 年全球手機出貨量可望達 14.5 億支,產值成長至1,682 億美元。其中智慧型手機出貨量預估為 4 億支。

Courses in Future

電機系網頁 教育 專題發表 971 微電腦實驗 佳作 或 照片集

工程機率

微電腦系統

工程數學

大二上

微電腦實驗

大二下 大三上

通訊網路

嵌入式系統原理及實驗

大三下

電腦網路

通訊協定概論

大四上

網路管理

無線交換機概論

大四下

作業系統

數值分析

IXDPG-425(1/2) Intel XScale IXP-425 for network control

IXDPG-425(2/2)

DMATEC DMA-2443 (1/2)

ARM9 – Samsung S3C2443-53

For handhold devices– High performance– Low power

Optimized for

special functions– GPS, Multimedia, – SmartPhone

DMATEC DMA-2443 (1/2)

Schedule of Progress (1/3)

Introduction to computing The 8051 micro-controllers Assembly language programming Jump, loop, and call instructions I/O port programming 8051 addressing modes Arithmetic & logic instructions and programs

Schedule of Progress (2/3)

Midterm 8051 Programming in C 8051 Hardware Connection and Intel HEX

file 8051 Timer programming in Assembly and C

8051 serial port programming in Assembly

and C

Schedule of Progress (3/3) Interrupts programming in Assembly and C Final exam LCD and keyboard interfacing ADC, DAC and sensor interfacing 8051 interfacing to external memory 8051 interfacing to the 8255 DS12887 RTC interfacing and Programming Motor control: relay, PWM, DC, stepper motor