You are on page 1of 17

Tutorial Session on

Microcontroller/Kit
Presenter: Engr. Mohammad Faisal Haider Paracha.
Venue: Microprocessors and Digital Systems, Lab
Timings: 08:30~11:00

What is a Microcontroller/Microprocessor?
Microcontrollers and Microprocessors are
widely used in Embedded Systems.
An
embedded
product
uses
a
Microcontroller/Microprocessor,
that
performs only one task.
Some Embedded Systems are: keyboard,
printer, modem, disk controller, sound card,
CD-ROM driver, mouse and so on.
5/2/2014

Copy Rights are Reserved only For


Engr. M. Faisalr Paracha

What are the differences b/w


Microcontroller and Microprocessor?
A Microcontroller is an Integrated Circuit that
contains CPU, RAM, ROM, Timers, I/O pins, Serial
COM Port on the one chip. Designer just have to
use the IC up to the requirements, just plug and
play. Less versatile.
A Microprocessor is an Integrated Circuit that
does not contain RAM, ROM, Timers, I/O pins,
Serial COM Port on its chip. Designers have to
add the above peripherals up to the
requirements. More versatile.
5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

Some Famous Microprocessors.


Intel's 4004, 8086, 80286, 80386, 80486,
Pentium, Pentium II, Pentium III, Pentium 4,
Pentium M, Pentium Dual Core, Core i3, Core
i5, Core i7

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

Overview of the 8051 Family


In 1981, Intel Corporation introduced an 8-bit
microcontroller called the 8051.
8-bit microcontroller means that its CPU can
work only on 8-bits of data at a time.
It has 4k bytes of ROM, 128 bytes of RAM, 2
Timers, 32 I/O pins, 1 Serial Port, 6 interrupt
sources.
What will happen if the data is larger than 8bits?
5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

Comparison of 8051 Family Members


Features

8051

8052

8031

ROM(on-chip
program space in
bytes)

4K

8K

0K

RAM(bytes)

128

256

128

Timers

I/O pins

32

32

32

Serial Port

Interrupt sources

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

What is the Trainer Board?


A Trainer Board allow us to test the different
source codes.
In Universities these trainers could be help full for
students to visualize the actual working of the
program; so that they will be able to make their
concepts better.
The trainers have a number of devices interfaced
with the Microcontroller.
We could be able to implement number of
experiments on these trainers.
5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

Some Famous Experiments of 8051

Examining the cy flag and the stack


To examine the I/O port operation using a simulator.
To code a program to transfer data from code ROM space into RAM locations.
To write a program to convert data from hex to ASCII to BCD.
To test the 8051 system and its ports.
Interfacing An LCD To The 8051
Interfacing adc804/809/848 to the 8051 trainer
Interfacing a sensor to the 8051
Timer programming
8051 serial interfacing
Interfacing a stepper motor to the 8051
Event counter programming
Interrupt programming
And many more

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

FEATURE OF LEARNIG KIT

Burner & trainer is in one kit (In circuit programming)


onboard ADC
onboard temperature sensor (LM35)
onboard Rs232 serial communication
on board IR port( RX & TX)
On board RTC (Ds1307)
On board serial EPROM (24cxx)
On board 7 segment display
On board matrix LCD interface IDC connector (14 pin)
On board facility to connect external hardware to port 0,1,2,3.
On board ZIF socket

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

RS-232 Communication Module


It is commonly used for data transfer between
microcontroller & PC
Since the voltage levels of Microcontroller and
PC are not directly compatible with each other
so a level converter such as MAX 232 must be
used.

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

10

DS 1307 R.T.C
There are many applications of RTC.
It stores real time, and calendar.
External power supply of 12 V DC may be used
to powered On the device.
This trainer is capable to support 89S51
microcontroller chip.

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

11

IR Receiver
Mostly IR receivers are used for remote
control applications.
This trainer has also one IR receiver for
remote control based experiments.
ZIF(zero insertion force) socket is available to
insert an IC chip on to the trainer board.

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

12

On Board Programmer
There is no need to connect external
programmer.
All you just need to connect the trainer board
with the PC and Burn the program using the
Burner software, and visualize the functionality of
the program.
There is one button marked as reset, when
programmer press Reset button microcontroller
will start to execute the program from the first
line.
5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

13

LEDs
LEDs are components used for displaying pin
digital state.
There are seven push buttons which can be
used to change state of digital inputs on the
microcontroller ports.
89s51 Programmer trainer has one 7-segment
display.
89s51 Programmer trainer has one standard
character LCD.
5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

14

How can we burn a Program on to the IC chip?

Attach your PC with the Trainer Board.


Insert an IC (89S51) in to the ZIF socket.
Move the switch to the programmer side.
Power ON the trainer board, by using an external power supply.
Open the burning software on to the PC.
Select the number of your Chip.
Read the Chip.
Erase the earlier program if any;
Burn the new program (specified by the path of the .HEX file,
generated by the assembler) on to the IC chip.
Move the switch back to the trainer side.
Enjoy the program!

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

15

Question/Answer Session

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

16

Thanks You!

5/2/2014

Copy Rights are Reserved only For


Mohammad Faisal Haider Paracha

17