وزراه التعليم العالي
المعهد العالي للهندسة والتكنولوجيا بالمحلة الكبري
High institute of Engineering &Technology
ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
Sheet 1
Basic introduction to hardware
programing using PIC16f877A
1. What is the meant by embedded system?
2. What is the difference between Microcontroller and IC?
3. Write a c program to turn on/off a LED connected on RB0 for
200 times.
4. Write a c program to send values from 00-FF to port B.
5. Write a C program to toggle all bits of Port B continuously.
6. Write a C program to send values of -4 to +4 to Port B.
7. Write a C program to toggle all bits of Port B 50,000 times.
8. Write a C program to toggle all bits of Port B 100,000 times.
9. Write a C program to toggle all the bits of Port B ports
continuously with a 250ms delay.
10. Write a C program to toggle all the bits of Port C and
Port D continuously with a 250ms delay.
1 Subject: Microcontroller Dr. Abdelkarim Ibrahim
Eng. Shaimaa Abo khadraa