8051 microcontroller development board

66
.

Upload: amit-mahajan

Post on 18-Nov-2014

179 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: 8051 Microcontroller development board

.

Page 2: 8051 Microcontroller development board

• Advance Technologies is a well-established organization & is a leading manufacturer of Electronics Educational Equipments for Engineering.

• It is a company which deals in both education and

agriculture business. In education it deals with all kinds of Embedded, wireless, microcontroller, VLSI and DSP instruments.

• In agriculture it deals in moisture meters, seed counters, Grain Examiners.

Page 3: 8051 Microcontroller development board

• Incepted in the year 2006, Advance Technologies was established with an objective to be recognized as one of India's Leading Manufacturers of Electronics Educational Equipment.

• The Goal of the company is to design and manufacture quality equipments that consistently meet their customer's requirements and needs. Advance Technologies delivers Best Quality at Best Prices.

Page 4: 8051 Microcontroller development board

They are into the business of Manufacturing, Supply & Maintenance of the Electronic Educational Products of the following fields:

•Embedded System.

• VLSI Technology.

• Wireless Technology.

Page 5: 8051 Microcontroller development board

Products of Embedded Technology • 8051 Microcontroller Development Board.

• AVR Microcontroller Development Board .

• PIC Microcontroller Development Board .

• Embedded Universal Development Board .

• ARM Development Board

Page 6: 8051 Microcontroller development board

•FPGA Development Board.

•CPLD Development Board.

•FPGA / CPLD Universal Development Board.

•Spartan 3E Development Board.

Products of VLSI Technology

Page 7: 8051 Microcontroller development board

Products of Wireless Technology•Bluetooth Trainer Kit.

•Color Sensor Development Board.

•Embedded Web Server.

•GPS Trainer Kit.

•GSM Trainer Kit.

•Radio Frequency Application Board.

•RFID Trainer Kit.

•Wi-Fi Development Board.

•Zig-Bee Development Board.

Page 8: 8051 Microcontroller development board

Products for Basic Electronics Lab•CRO

•Function Generator

•Various Transistor Configuration Experiment Kits

•Encoder / Decoder Kit

•MUX / DEMUX Kit

Page 9: 8051 Microcontroller development board

•Counter, Converter Kit

•Logic Gates Kits

•Various Modulation Kits

•Various Oscillator Kits

•Various Multi-Vibrator Kits

•Various Experimental Kits for Various Electronics Labs

Page 10: 8051 Microcontroller development board

• MMEC, Mullana, Ambala• GTBKIET, Malout• MIMIT, Malout• ACERC, Ambala• MIET, Jammu• Jammu University, Jammu• GCET, Jammu• GZSCET, Bhatinda & • Ritika Electronics, Delhi • Many More …

CLIENTS

Page 11: 8051 Microcontroller development board

What Is Microcontroller Development Board ??

Microcontroller Development Board in general sense is defined as a device which is capable to perform many kinds of microcontroller operations ranging from a simple LED glow to a quite complicated applications.

In More specified way, Microcontroller Development Board serves the purpose of explaining the students of technical institutes and colleges various microcontroller practical's.

Page 12: 8051 Microcontroller development board
Page 13: 8051 Microcontroller development board

. Features of Embedded Systems

There are certain key features of embedded systems that differentiate them from other systems in the world. They have been discussed below:

•Software: The software used by embedded systems is called firmware and is stored in Read Only Memory or ROM or a Flash memory chip •User interfaces: There are various types of user interfaces used in embedded systems. Some systems do not have any user interface at all. Devices such as PDAs provide interactive and complete user interfaces. CPU Platform: Embedded systems use various CPU platforms or architectures that include ARM, X86, PowerPC, and PIC etc. •Tools: Embedded system designers use software ranging from compilers and assemblers to debuggers and emulators to develop software for embedded systems. •Start-up: Embedded systems the world over begin with what is called the start-up process. At this point, a self-test is conducted by the system where the hardware, peripherals, power supply etc. are tested for being in good condition.

Page 14: 8051 Microcontroller development board
Page 15: 8051 Microcontroller development board

Applications of embedded systems•Consumer electronics- e.g., cameras, camcorders etc.•Consumer products, e.g., washers, microwave ovens.•Automobiles (anti-lock braking, engine control).•Industrial process controllers & avionics/defense applications•Computer/Communication products, e.g., printers, FAX machines.•Emerging multimedia applications & consumer electronics e.g., cellular phones, personal digital assistants, videoconferencing servers, interactive game boxes, TV set-top boxes.

Page 16: 8051 Microcontroller development board

Automotive electronics

Aircraft electronics

Trains

Telecommunication

Page 17: 8051 Microcontroller development board

CPU

General-Purpose Micro-processor

RAM ROM I/O Port

TimerSerial COM Port

Data Bus

Address Bus

General-Purpose Microprocessor System

CPU for Computers No RAM, ROM, I/O on CPU chip itself Example : Intel’s x86, Motorola’s 680x0

Many chips on mother’s board

General-purpose microprocessor

Page 18: 8051 Microcontroller development board

RAM ROM

I/O Port

TimerSerial COM Port

Microcontroller

CPU

A smaller computerOn-chip RAM, ROM, I/O ports...Example : Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X

A single chip

Microcontroller :

Page 19: 8051 Microcontroller development board

Microprocessor vs. Microcontroller

Microprocessor •CPU is stand-alone, RAM, ROM, I/O, timer are separate•designer can decide on the amount of ROM, RAM and I/O ports.•expansive•versatility •general-purpose

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

timer are all on a single chip

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

• for applications in which cost, power and space are critical

• single-purpose

Page 20: 8051 Microcontroller development board

1. Meeting the computing needs of the task efficiently and cost effectively

• speed, the amount of ROM and RAM, the number of I/O ports and timers, size, packaging, power consumption

• easy to upgrade• cost per unit

2. availability of software development tools• assemblers, debuggers, C compilers, emulator, simulator,

technical support3. wide availability and reliable sources of the microcontrollers.

For my microcontroller development board , I have chosen P89v51RD2 microcontroller which is an 8-bit microcontroller from the family of 8051 controllers.

Three criteria in Choosing a Microcontroller

Page 21: 8051 Microcontroller development board

Pin Description of the 8051Pin Description of the 8051

1234567891011121314151617181920

4039383736353433323130292827262524232221

P1.0P1.1P1.2P1.3P1.4P1.5P1.6P1.7RST

(RXD)P3.0(TXD)P3.1

(T0)P3.4(T1)P3.5

XTAL2XTAL1

GND

(INT0)P3.2(INT1)P3.3

(RD)P3.7(WR)P3.6

VccP0.0(AD0)P0.1(AD1)P0.2(AD2)P0.3(AD3)P0.4(AD4)P0.5(AD5)P0.6(AD6)P0.7(AD7)EA/VPPALE/PROGPSENP2.7(A15)P2.6(A14)P2.5(A13)P2.4(A12)P2.3(A11)P2.2(A10)P2.1(A9)P2.0(A8)

8051

Page 22: 8051 Microcontroller development board

Block Diagram

8051

SENSOR

————► ————►

40PINDIP

ADC

LCDDISPLAY

D A C

————► ————►

————► ————►

————► ————►

LEDS

SWITCHES

REAL TIMECLOCK

4×4 MATRIX KEYBOARD

Page 23: 8051 Microcontroller development board

The microcontroller development board is a microcontroller based embedded system through which students can understand different types of interfacings such as LEDs, 7-segment,switches,relays,buzzers, keyboard, ADC, DAC, Sensors, EEPROM, RTC, LCD, 8255 etc. Using this board one can easily understands the hardware and software details of above mentioned devices.

Page 24: 8051 Microcontroller development board

DIFFERENT TYPES OF INTERFACINGS

•LED INTERFACING•SWITCHES INTERFACING•INTERFACING OF 7-SEGMENT DISPLAY

•INTERFACING OF EEPROM

•LCD INTERFACING

•BUZZER INTERFACING•RELAY INTERFACING•RTC INTERFACING

•STEPPER MOTOR INTERFACING

Page 25: 8051 Microcontroller development board

LED INTERFACING

For interfacing a single Led to 89c51 microcontroller, we connect the anode (+) end of LED to the designated port pin via a pull-up resistor. While the cathode end of LED is connected to GND. For glowing a LED, a high logic is required at the anode (+), so port pin is set to high for glowing LED.

Page 26: 8051 Microcontroller development board
Page 27: 8051 Microcontroller development board

● But how do we get the programs onto the devices?

Page 28: 8051 Microcontroller development board

WITH THE USE OF KEIL SOFTWARE

•Write a program in embedded C language.•Execute it.•View the output of program on peripheral devices as provided in Keil software.•Now burn the program on AT89C52 using burner(flash magic).•Now apply the chip with hardware.

Page 29: 8051 Microcontroller development board

29

P0.0

8051

sw

Switch Interfacing

4.7 k

4.7k

In Switch, One end is connected to port pin of 89c51, while other one is grounded.

Page 30: 8051 Microcontroller development board

Keyboard Interfacing

Page 31: 8051 Microcontroller development board

•Keyboards are the input devices and is generally organized in a matrix of rows and columns.•When a key is pressed row makes a contact with column, otherwise there is no connection.•Keyboard is a basic and essential element of an embedded or microcontroller system. For small and hobby projects a 4x4 (hex) matrix keyboard is sufficient. The keys in the matrix keyboard are arranged in a matrix arrangement in order to utilize the port pins of the microcontrollers efficiently. Here we can interface 16 keys by using just 8 pins of microcontroller.

Page 32: 8051 Microcontroller development board

Interfacing of seven segment display

 Seven segment display is a basic type of display which can display numbers from 0 to 9. Driving a 7 segment display is as simple as flashing LEDs, but here we are flashing 7+1 LEDs. The 7 segment display module has 8 LEDs (7 segments to display number and one segment for decimal point or dot) arranged in a particular manner .

Page 33: 8051 Microcontroller development board
Page 34: 8051 Microcontroller development board

INTERFACING OF EEPROM

WR i.e the seven pin is not connected in some parts. The Ic used is at24c02 is

Page 35: 8051 Microcontroller development board

SERIAL CLOCK (SCL):The SCL input is used to positive edge clock data into each EEPROM device and negative edge clock data out of each device.SERIAL DATA (SDA):The SDA pin is bidirectional for serial data transfer. This pin is open-drain driven and may be wire-ORed with any number of other open-drain or open-collector devices.

Page 36: 8051 Microcontroller development board

LCD INTERFACING

•It is an Intelligent Alphanumeric display which can be used to display numbers, characters, and graphics.

•It has 14 pins as shown in pin diagram.

•Display contains 2 internal byte wide registers, one for command (RS=0) and one for display (RS=1).

•There are certain commands to be send to the LCD for making some setting such as clear screen, force the cursor to home position and blink the cursor.

•R/W pin is set to 1 for reading and to 0 for writing.

•EN pin is set to 1 for enabling display.

•DB0-DB7 are pins for 8-bit data bus.

Page 37: 8051 Microcontroller development board

8051

^^^^^^

4×16 Character LCD Display

E RS R/W VeeGnd Vcc

+5v

10k

D0

D7

P1.0

P1.7

P2.0P2.1P2.2

Page 38: 8051 Microcontroller development board

RTC INTERFACINGRTC is widely used device that provides accurate time and date for many applications. Figure shows interfacing of RTC chip DS12887 to 8051.It has a total of 128 bytes of non volatile RAM.It uses 14 bytes of RAM for clock calendar and control registers and other 114 bytes of RAM for general purpose data storage

Page 39: 8051 Microcontroller development board

RST

VCC

SQW\OUT

8051

SDASCL

GND

DS1307

crystal

Page 40: 8051 Microcontroller development board

STEPPER MOTOR INTERFACING

Page 41: 8051 Microcontroller development board

This stepper motor is very simplified. The rotor of a real stepper motor usually has many poles. The animation has only ten poles, however a real stepper motor might have a hundred. These are formed using a single magnet mounted inline with the rotor axis and two pole pieces with many teeth. The teeth are staggered to produce many poles. The stator poles of a real stepper motor also has many teeth. The teeth are arranged so that the two phases are still 90° out of phase. This stepper motor uses permanent magnets. Some stepper motors do not have magnets and instead use the basic principles of a switched reluctance motor. The stator is similar but the rotor is composed of a iron laminates

Page 42: 8051 Microcontroller development board

How To Proceed ?

Initially we interfaced LED, 7-segment and Keyboard and check programme which is the purpose of trainer Kit.In these way we go step by step for each module interface and accomplish the goal of making a well-functioning Trainer Kit.Finally we add some features by interfacing RTC for a Digital clock.

Page 43: 8051 Microcontroller development board

1

Page 44: 8051 Microcontroller development board

Locks & Keys

By this we can’t say that we are

going to provide good security

to our lockers.

2

Page 45: 8051 Microcontroller development board

Security is less

Others can steal the user’s entry key

3

Page 46: 8051 Microcontroller development board

4

Page 47: 8051 Microcontroller development board

Finger Print Module 8

9

S

5

2

Reset

16 X 2 LCD

Driver Circuit

Buzzer

Stepper Motor

Power supply

POWER SUPPLY TO ALL SECTIONS

ULN DRIVER

5

Page 48: 8051 Microcontroller development board

Enter ur fingerprint

verifieing fingerprint

Enter into the locker room

Enter password

Checking

Password

Locker is opened by stepper motor

Press Switch to close the locker

You are unauthorized person

yes

no

no

yes

6

Page 49: 8051 Microcontroller development board

Transformer

Bridge Rectifier

Regulator

7

Page 50: 8051 Microcontroller development board

89S52 microcontroller.

RAM 256Bytes.

8Kb of flash memory.

The functionality of 89S52

is same as 8051

microcontroller.

8

Page 51: 8051 Microcontroller development board

In this we choose “verification” process.

It can operate in 2 modes they are Master

mode and User mode.

9

Page 52: 8051 Microcontroller development board

In this mode,we can register our finger image in present

of manager.

10

Page 53: 8051 Microcontroller development board

Compare of input finger print and identified finger print

11

Page 54: 8051 Microcontroller development board

We are using 16x2 lcd display

LCD has14 pin

12

Page 55: 8051 Microcontroller development board

13

Page 56: 8051 Microcontroller development board

Unique id (password) which is given to user to

open his locker with the help of a keypad

Any port was used to handle our alpha-numeric

keypad.

14

Page 57: 8051 Microcontroller development board

15

Page 58: 8051 Microcontroller development board

Automatically, locker will open by stepper

motor(step angle).

After the work by using reset pin user will

secure their locker.

16

Page 59: 8051 Microcontroller development board

17

Page 60: 8051 Microcontroller development board

It is a signaling device.

It beeps when user mismatch.

18

Page 61: 8051 Microcontroller development board

19

Page 62: 8051 Microcontroller development board

Most secure

No manual errors

Need not carry any

card

Others cannot steel

the user’s entry key

20

Page 63: 8051 Microcontroller development board

Voter Identification and electoral enrollment

Industries

Banks and ATM

Personal Computer

21

Page 64: 8051 Microcontroller development board

GSM modem can be connected to this unit to

communicate to security department, in case of

unauthorized entry trials.

22

Page 65: 8051 Microcontroller development board

This project is used for 100 members, we can also

extend the capability for further requirements.

Page 66: 8051 Microcontroller development board