You are on page 1of 20

PRESENTATION ON SUMMER TRAINING IN EMBEDDED SYSTEM

TAKEN AT INFINITY TECHNOLOGIES

SUBMITTED TO: MS. GARIMA MATHUR HOD, ECE

SUBMITTED BY: HARSHIT CHORDIYA (EC09039)

Embedded System???...
Hardware is driven and controlled by software
Software runs in a computer system

(Micro

controller) Preprogrammed to do specific function

Microcontroller
A smaller computer. On-chip RAM, ROM, I/O ports... Example:- Motorolas 6811, Intels 8051 and PIC 16X

CPU

RAM

ROM

A single chip
I/O Port Timer Serial COM Port

Microcontroller

8051 Internal Architecture

IC 8051 Pin Description


Voltage Supply (+5V)

Ground

IC 8051 Daily Applications

Moving message display

Digital clock

7 segment display

Traffic Light

IC 8051 Addressing Modes


Immediate addressing modes ADD A, #23h (Add immediate data to Acc)
Register addressing modes ADD A, R2 (Add register to Accumulator) Direct addressing modes ADD A, 40h (Add data at location 40h to Accumulator) Register Indirect addressing modes ADD A,@R2 (Add indirect RAM to Acc)

Timers/Counters
General 8051 has 2 timer: o Two 16-bit timer o The counters are divided into two 8-Bit registers called the timer low (TL0, TL1) and high (TH0, TH1) bytes. o All counters action is controlled by bit states in the timer mode control register (TMOD), the timer/counter control register (TCON), and certain program instructions.

Interrupts
Definition of Interrupt
Event that disrupts the normal execution of a

program and causes the execution of special instructions

Interrupts in 8051
EA ET2 ES ET1 EX1 ET0 EX0

Internal Interrupts

EX0 ET0 EX1 ET1 ES ET2 interrupt -EA


External Interrupts

Enables or disables external interrupt Enables or disables timer 0 overflow interrupt Enables or disables external interrupt 1 Enables or disables timer 1 overflow interrupt Enables or disables the serial port interrupt Enables or disables timer 2 overflow or capture
Not implemented, reserved for future use Disables all interrupts

P3.2 :INT0 (external interrupt 0) P3.3 :INT1 (external interrupt 1)

Softwares Used

Keil Vision

Top View Simulator

Keil Vision IDE


The Vision IDE from Keil

combines project management, make facilities, source code editing, program debugging, and complete simulation in one powerful environment. The Vision development platform is easy-to-use and helping you quickly create embedded programs that work. The Vision editor and debugger are integrated in a single application that provides a seamless embedded project development environment.

Top View Simulator


Topview Simulator gives an

excellent simulation environment for MCS 51 Microcontroller.

A beginner can learn about 8051 based embedded solutions without any hardware. An experienced designer, you may find most of the required facilities built in the simulator that enabling you to complete your next project without waiting for the target hardware.

AVR Family of Micro-Controllers

What is AVR ?
Modified Harvard architecture 8-bit RISC single chip microcontroller Complete System-on-a-chip On Board Memory (FLASH, SRAM & EEPROM) On Board Peripherals Advanced (for 8 bit processors) technology Developed by Atmel in 1996 First In-house CPU design by Atmel

Pin Diagram of ATmega16

Features of ATmega16
16K BYTES of In-System Programmable Flash 512 BYTES of In-System Programmable EEPROM 1K Bytes SRAM Analog Comparator Watchdog SPI 2 8-bit Timers plus prescaler 16-bit Timer with extra features 4 PWM 8 channel 10-bit ADC UART 2-wire byte orientated serial interface Low power and Idle modes, External and External interrupts, selectable on-chip Oscillator

You might also like