Subject Name:Microcontrollers for Power Electronics Subject Code
Download
Report
Transcript Subject Name:Microcontrollers for Power Electronics Subject Code
GUJARAT TECHNOLOGICAL
UNIVERSITY
COURSEWARE FOR EVEN TERM SEMESTER
POWER ELECTRONICS DEPARTMENT(024)
L.E.COLLEGE, MORBI (031)
1
Subject Name: Microcontrollers for
Power Electronics
Subject Code: 162402
Compiled by:
S.H.TRIVEDI
Assistant Prof.
Power Electronics Deptt.
L.E.College, Morbi.
2
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
3
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 touchsensing 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.
4
5
How power electronics converter & microcontroller
work together
6
2. Basic Architecture of Mcs51 Family
Block diagram of intel 8051
7
8
I
N
T
E
R
N
A
L
R
A
M
9
Special Function Registers
For more details on SFR http://www.electronicsteacher.com/tutorial/standard-8051tutorial/special-function-registers.php
10
3.Mcs Family Instruction Set
A.
B.
C.
D.
E.
Arithmetic instructions.
Logic instructions.
Data transfer instructions.
Boolean variable manipulation instruction
Program and machine control instruction.
11
4.Assembly Language Programing
12
13
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
14
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.
15
For programming in higher level language many software are
available. One of them is ‘keil’
which is very popular in academicians.
16
7. INTERFACING WITH REAL WORLD
Hardware
17
18
8. External Memory Interfacing And
Serial Communication Concepts
19
WEB REFERANCES
• http://books.google.co.in/books?id=8t0gVhfU
GXUC&printsec=frontcover#v=onepage&q&f=
false
• http://www.8051projects.info/projects.asp
• http://www.keil.com/
• http://www.edsim51.com/
• www.thompsonrd.com/
• http://www.electronicsteacher.com/tutorial/st
andard-8051-tutorial/special-functionregisters.php
20
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
21