+ All Categories
Transcript
Page 1: Embedded systems-for-beginners-electro8

Embedded Systems for Beginners

Electro8

Page 2: Embedded systems-for-beginners-electro8

Agenda

• Session objectives• Computing systems overview• Embedded Systems!! .. What does it mean ??• Microprocessors and Microcontrollers• Micro-controllers and it's applications• How to start your Graduation ‘embedded

project’

Page 3: Embedded systems-for-beginners-electro8

Session Objectives

Page 4: Embedded systems-for-beginners-electro8

Computing systems overview

Page 5: Embedded systems-for-beginners-electro8

Computer sizes

http://en.wikipedia.org/wiki/List_of_computer_size_categories

Page 6: Embedded systems-for-beginners-electro8

Computer sizes

http://robotics.eecs.berkeley.edu/~pister/SmartDust/

Page 7: Embedded systems-for-beginners-electro8

Computer functions

http://en.wikipedia.org/wiki/Classes_of_computers

Page 8: Embedded systems-for-beginners-electro8

Embedded systems.., what does it mean ?!

Page 9: Embedded systems-for-beginners-electro8

Embedded systems.., what does it mean ?!

• In Arabic ( مدمجه .( أنظمه• A control system designed using a micro-

computer to perform a specific tasks.• Consists of Mechanical parts in addition to

electrical.

Page 10: Embedded systems-for-beginners-electro8

Robotics…

Page 11: Embedded systems-for-beginners-electro8

Robotics…

Page 12: Embedded systems-for-beginners-electro8

Real life Examples

Page 13: Embedded systems-for-beginners-electro8

Example…

Page 14: Embedded systems-for-beginners-electro8

General Block Diagram

Page 15: Embedded systems-for-beginners-electro8

Microprocessorsand

Microcontrollers

Page 16: Embedded systems-for-beginners-electro8

Microprocessors

• In 1971 Intel 4004 microprocessor released

• and Intel 8008 in 1973

http://en.wikipedia.org/wiki/Microprocessor

Page 17: Embedded systems-for-beginners-electro8

Microprocessor system BD

http://files.myopera.com/vysakhtb/operamini/Image%20block%20diagram.jpg

Page 18: Embedded systems-for-beginners-electro8

Microcontrollers

• In 1977 Intel made the Myth … Intel 8048• MCS-48 family• They combined RAM and ROM on the same chip

Page 19: Embedded systems-for-beginners-electro8

ROM (read only memory) Types

• PROM - Programmable ROM• EPROM - Erasable PROM• EEPROM - Electrical EPROM• Flash memory

Page 20: Embedded systems-for-beginners-electro8

Intel MCS-51 family (8051)

• 8-bit ALU, Accumulator and 8-bit Registers• 8-bit data bus – It can access 8 bits of data in one operation• 16-bit address bus – It can access 216 memory locations –

64 KB (65536 locations) each of RAM and ROM• On-chip RAM – 128 bytes (data memory)• On-chip ROM – 4 kByte (program memory)• Four byte bi-directional input/output port• UART (serial port)• Two 16-bit Counter/timers• Two-level interrupt priority• Power saving mode (on some derivatives)

http://en.wikipedia.org/wiki/Intel_MCS-51

Page 21: Embedded systems-for-beginners-electro8

PIC family

• Small instruction set to learn• Built in oscillator with selectable speeds• Easy entry level, in circuit programming plus in

circuit debugging units• Inexpensive microcontrollers• Wide range of interfaces

including I²C, SPI, USB, USART, A/D, programmable comparators, PWM, LIN, CAN, PSP, and Ethernet

http://en.wikipedia.org/wiki/PIC_microcontroller

Page 22: Embedded systems-for-beginners-electro8

PIC 16F877 Pin diagram

http://en.wikipedia.org/wiki/PIC_microcontroller

Page 23: Embedded systems-for-beginners-electro8

AVR family

• USB controller support• LCD controller support• Low-voltage devices operating down to 1.8 V• Watchdog timer (WDT)• 8-bit and 16-bit timers• Analog comparator• 10 or 12-bit A/D converters, with multiplex of up to 16 channels• 12-bit D/A converters

http://en.wikipedia.org/wiki/Atmel_AVR

Page 24: Embedded systems-for-beginners-electro8

• Microprocessor– CPU is stand-alone,

RAM, ROM, I/O, timer are separated

– designer can decide on the amount of ROM, RAM and I/O ports.

– general-purpose– Ex. 8085,8086 mp,

Motorola 6800, Intel’s 8086

• Microcontroller– CPU, RAM, ROM, I/O and

timer are all on a single chip

– fix amount of on-chip ROM, RAM, I/O ports

– single-purpose– Ex. 8051, PIC mc, Atmel,

Phillips

Microprocessor vs. microcontroller

Page 25: Embedded systems-for-beginners-electro8

Applications

What do you think ??Robotics automation security remote-sensing audio-mixers and moooooooooooooooooooooooreeeeeeee

Page 26: Embedded systems-for-beginners-electro8

How to start… ????!

• You need little hardware knowledge with your software.

• Select the family and chip according to your application.

• Learn how to program your device using its datasheet• Start to use its IDE and development tools and join the

embedded world .

Page 27: Embedded systems-for-beginners-electro8

How to start… with PIC????!

• PIC has its IDE (called MPLAP) used to write your code and debug it and to generate your .HEX file

• Download it from here http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=81

• Use the .Hex file to simulate your project, Proteus 7 is the best for this case

• Every thing goes in the right way ?? Burn the code to your chip and enjoy your project, you will need

a programmer in this step

Page 28: Embedded systems-for-beginners-electro8

MPLAB

Page 29: Embedded systems-for-beginners-electro8

Protus

Page 30: Embedded systems-for-beginners-electro8

How the .hex file looks????!


Top Related