You are on page 1of 6

AMERICAN UNIVERSITY OF SCIENCE & TECHNOLOGY

DEPARTMENT OF MECHATRONICS ENGINEERING

MTE 407 LAB

Report # 5

Keypad
Analog to Digital Converter

Prepared by
Mahmoud al abed

Presented to
Dr. Mohamad

Contents
Obstruct.......................................................................................................................................................3
Keypad code................................................................................................................................................3
Keypad simulation.......................................................................................................................................4
Analog to Digital Conversion......................................................................................................................4
Code for ADC...............................................................................................................................................5
Simulation of ADC........................................................................................................................................5
Obstruct
This report talks about keypad with PIC16F877A and the Analog to digital converter which is a
built in module inside the pic

Keypad code
It requires to add the hex for both the LCD and the Keypad in the project file in MPLAB also we
must add the library keypad.c from inside MPLAB
Keypad simulation

Analog to Digital Conversion


This require five libraries three hex files added in the project file and three .c added to the library
from inside MPLAB. It changes the reading value of a sensor from 0 to 5v into 0 to 1023
Code for ADC

Simulation of ADC
The simulation is at Vin = 5 V there for all the LEDs are on as a binary representation

You might also like