Microcontroller lec 2

Post on 16-Aug-2015

74 views 3 download

Tags:

transcript

Microcontrollers Architecture

By / Eng : Ibrahim Reda Ibrahim

Faculty of Electronic Engineering , Menofia University

Control System

Not Programming Programmin

g

Microprocessor

Microcontroller PLC

Relay

Logic Gate

s OP-amp

Relay

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

PIC 16F877A Hardware

Pins of PIC877A

Port A

Port E

Port C

Port B

Port D Port D

Port C

Port D

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.

Power Supply

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

Power supply Circuits

Reset (MCLR)

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

Clock ( Oscillator )

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

Main Connections

1. Vcc && GND

10 KΩ

2.Reset Pin connection

3.Switch Connection

a. Active High

b. Active Low

4.Led Connection

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

Software Requirements.

1. Proteus.

2. Micro c Pro.

3. Burner program.

Agenda

PIC 16F877A Hardware.

Main Connections.

Software Requirements.

Hardware Requirements.

Hardware Requirements.

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

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