Professional Documents
Culture Documents
Mahmoud Al Abed Report No 5
Mahmoud Al Abed Report No 5
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
Simulation of ADC
The simulation is at Vin = 5 V there for all the LEDs are on as a binary representation