gujarat technological university courseware for even term semester

21
GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER POWER ELECTRONICS DEPARTMENT(024) L.E.COLLEGE, MORBI (031) 1

Upload: trilby

Post on 23-Feb-2016

42 views

Category:

Documents


0 download

DESCRIPTION

GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER POWER ELECTRONICS DEPARTMENT(024) L.E.COLLEGE, MORBI (031). Subject N ame : Microcontrollers for Power Electronics Subject Code : 162402. Compiled by: S.H.TRIVEDI Assistant Prof. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

1

GUJARAT TECHNOLOGICAL UNIVERSITY

COURSEWARE FOR EVEN TERM SEMESTERPOWER ELECTRONICS DEPARTMENT(024)

L.E.COLLEGE, MORBI (031)

Page 2: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

2

Subject Name: Microcontrollers for Power Electronics Subject Code: 162402

Compiled by: S.H.TRIVEDI Assistant Prof. Power Electronics Deptt.L.E.College, Morbi.

Page 3: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

3

1. Introduction• Microprocessor = cpu

• Microcontroller = cpu + peripherals + memory

• Peripherals = ports + clock + timers + uarts + adc converters +lcd drivers + dac + other stuff

• Memory = eeprom + sram + eprom + flash

Page 4: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

4

Various applications of uc

• The 8051 has been in use in a wide number of devices, mainly because it is easy to integrate into a project or build a device around. The following are the main areas of focus:

• i. Energy Management:Efficient metering systems help in controlling energy usage in homes and industrial applications. These metering systems are made capable by incorporating microcontrollers.

• ii. Touch screens:A high number of microcontroller providers incorporate touch-sensing capabilities in their designs. Portable electronics such as cell phones, media players and gaming devices are examples of microcontroller-based touch screens.

• iii. Automobiles: The 8051 finds wide acceptance in providing automobile solutions. They are widely used in hybrid vehicles to manage engine variants. Additionally, functions such as cruise control and anti-brake system have been made more efficient with the use of microcontrollers.

• iv. Medical Devices:Portable medical devices such as blood pressure and glucose monitors use microcontrollers will to display data, thus providing higher reliability in providing medical results.

Page 5: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

5

Page 6: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

6

How power electronics converter & microcontroller work together

Page 7: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

7

Block diagram of intel 8051

2. Basic Architecture of Mcs51 Family

Page 8: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

8

Page 9: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

9

INTERNAL

RAM

Page 10: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

10

For more details on SFR http://www.electronicsteacher.com/tutorial/standard-8051-tutorial/special-function-registers.php

Special Function Registers

Page 11: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

11

3.Mcs Family Instruction SetA. Arithmetic instructions.B. Logic instructions.C. Data transfer instructions.D. Boolean variable manipulation instruction E. Program and machine control instruction.

Page 12: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

12

4.Assembly Language Programing

Page 13: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

13

Page 14: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

14

5. Advanced Programming Techniques

• Floating point representation and operations• Counter and delays• Handling subroutines• Handling interrupts• Writing data to output port, reading data from

input port

Page 15: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

15

6. Programming In High Level Programming Language And Rtos

• C51 C Compiler• The Keil C51 C Compiler for the 8051 microcontroller is the most popular

8051 C compiler in the world. It provides more features than any other 8051 C compiler available today.

• The C51 Compiler allows you to write 8051 microcontroller applications in C that have the efficiency and speed of assembly language. Language extensions in the C51 Compiler give you full access to all resources of the 8051.

• C51 translates C source files into a relocatable object module. When the DEBUG control is used, the object file contains full symbolic information for debugging with the µVision3 Debugger or an in-circuit emulator. In addition to the object file, the C51 Compiler generates a listing file which optionally may include symbol table and cross-reference information.

Page 16: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

16

For programming in higher level language many software are available. One of them is ‘keil’ which is very popular in academicians.

Page 17: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

17

7. INTERFACING WITH REAL WORLD Hardware

Page 18: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

18

Page 19: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

19

8. External Memory Interfacing And Serial Communication Concepts

Page 21: GUJARAT TECHNOLOGICAL UNIVERSITY COURSEWARE FOR EVEN TERM SEMESTER

21

Reference Books• The 8051 Microcontroller and Embedded

Systems - By Mazidi,Mazidi & McKinlay• 8051 Microcontroller – By Subrata Ghoshal• 8051 Microcontrollers – By Satish Shah• The 8051 microcontroller & Embedded

systems – By K.J.Ayala and D.V.Gadre• Digital Logic and Computer Design – By M.

Morris Mano• Embedded C – By Michael J. Pont