microcontroller lec 2

33
Microcontrollers Architecture By / Eng : Ibrahim Reda Ibrahim Faculty of Electronic Engineering , Menofia University

Upload: ibrahim-reda

Post on 16-Aug-2015

81 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Microcontroller  lec 2

Microcontrollers Architecture

By / Eng : Ibrahim Reda Ibrahim

Faculty of Electronic Engineering , Menofia University

Page 2: Microcontroller  lec 2

Control System

Not Programming Programmin

g

Microprocessor

Microcontroller PLC

Relay

Logic Gate

s OP-amp

Page 3: Microcontroller  lec 2

Relay

Page 4: Microcontroller  lec 2
Page 5: Microcontroller  lec 2
Page 6: Microcontroller  lec 2

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

Page 7: Microcontroller  lec 2

PIC 16F877A Hardware

Page 8: Microcontroller  lec 2

Pins of PIC877A

Port A

Port E

Port C

Port B

Port D Port D

Port C

Port D

Page 9: Microcontroller  lec 2

Input / Output Ports

I\O ports of MCUs are 8 bit data registers that connect MCUs to

outside world.

I\O ports in PIC16F877A are 5 ports named " PORT A,PORTB

PORT C,PORT D,PORT E.

I\O ports of MCUs are "Bidirectional" that the single port can be used

either input or output.

The register for each port is used to control port data direction flow

called TRISx ,any pin could be an input pin if its equivalent TRISx bit is

1 and output if 0.

Page 10: Microcontroller  lec 2
Page 11: Microcontroller  lec 2
Page 12: Microcontroller  lec 2
Page 13: Microcontroller  lec 2
Page 14: Microcontroller  lec 2
Page 15: Microcontroller  lec 2

Power Supply

VDD : Connected to DC source 5v. Vss : Connected to the Ground Supply Current : 100 mA Output current : 25 mA

Page 16: Microcontroller  lec 2
Page 17: Microcontroller  lec 2

Power supply Circuits

Page 18: Microcontroller  lec 2

Reset (MCLR)

It’s used As the restart button in your Computer.

Page 19: Microcontroller  lec 2

Clock ( Oscillator )

Page 20: Microcontroller  lec 2
Page 21: Microcontroller  lec 2

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

Page 22: Microcontroller  lec 2

Main Connections

Page 23: Microcontroller  lec 2

1. Vcc && GND

Page 24: Microcontroller  lec 2

10 KΩ

2.Reset Pin connection

Page 25: Microcontroller  lec 2

3.Switch Connection

a. Active High

Page 26: Microcontroller  lec 2

b. Active Low

Page 27: Microcontroller  lec 2

4.Led Connection

Page 28: Microcontroller  lec 2

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

Page 29: Microcontroller  lec 2

Software Requirements.

Page 30: Microcontroller  lec 2

1. Proteus.

2. Micro c Pro.

3. Burner program.

Page 31: Microcontroller  lec 2

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

Page 32: Microcontroller  lec 2

Hardware Requirements.

Page 33: Microcontroller  lec 2

1. Pc.2. Programmer..3. Other components as

pic16f877a..breadboard..resistors….capacitors…lcd...sensor…power supply…