You are on page 1of 8

AMERICAN UNIVERSITY OF SCIENCE &

TECHNOLOGY

DEPARTMENT OF MECHATRONICS ENGINEERING

MTE 407 LAB

Report # 1

Blinking led and push button

Prepared by
Mahmoud al abed

Presented to
Dr. Mohamad
Contents
INTRODUCTION.....................................................................................................................................3
Requirements.............................................................................................................................................3
Blinking led.................................................................................................................................................3
the code on MPLAB:....................................................................................................................................3
Proteus.........................................................................................................................................................4
Circuit for the blinking led..........................................................................................................................6
simulation for the circuit..............................................................................................................................6
Push button..................................................................................................................................................7
The code for push button.............................................................................................................................7
circuit for the push button project................................................................................................................8
the simulation for the push button project...................................................................................................9
INTRODUCTION

We are going to write two programs on MPLAB for PIC16F877A and then will
install them on the proteus for the simulation and we will build the circuit for both
of the project

Requirements

MPLAB X IDE

Proteus
Blinking led
the code on MPLAB:

Proteus
Steps:

 Select the components


1. Resistor
2. Capacitor
3. Pic 16
4. Crystal
5. Led
6. Ground
7. Vcc
 Set their correct values
 Connect them together
 Run the simulation

Crystal oscillator:
Circuit for the blinking led

simulation for the circuit


Push button

The code for push button


The Proteus:

Steps:

 Select the components


1. Resistor
2. Capacitor
3. Pic 16
4. Crystal
8. Led
9. Push button
10.Ground
11.Vcc
 Set their correct values
 Connect them together
 Run the simulation

circuit for the push button project

the simulation for the push button project

You might also like