Professional Documents
Culture Documents
EN19381664
EN19381664
Faculty of Engineering
Module Details
Module Code EC 2481 Module Title INTRODUCTION TO CONTROLS & ROBOTICS
Program: Name:
Stream: (Civil/Electronics/Mechanical)
Assessment details
All academic misconduct is considered seriously and defined as dishonest and in direct opposition to the values of a learning community.
Misconduct may result in penalties from failure to exclusion from the campus.
Further help and guidance on how to avoid academic misconduct can be obtained from your academic advisor/tutor]
Marks: [ All marks are subject to external moderation and approval of board of examinations]
TITLE
Microcontroller Circuits
OBJECTIVES
To get information about working foundation with Proteus software and MikroC software
To get a knowledge and data about PIC16F877a microchip
INTRODUCTION
The objective of this experiment is to implement a simple circuit on a breadboard and to introduce the
basic steps of microcontroller programming.
APPARATUS
MikroC software
Proteus software
PRE-LAB WORK
Refer the datasheet of PIC16F877a and answer the following questions.
01. What is the minimum and the maximum operating voltage of PIC16F877a?
Minimum-2V
Maximum-5.5V
14 kilobytes
368 bytes
256/HEF
256MHz
04. State the number of input/output pins available in PIC16F877a and name those.
void main()
{
TRISB=0X00; //set the port B as an output
PORTB=0X00; //initialize the port B
while(1) //loop continuously happen
{
PORTB=0X00; //set the port B as logic low(LEDs are off)
delay_ms(1000); //down for the 1000ms
PORTB=0Xff; //set the port B as logic high(LEDs are on)
delay_ms(1000); //up for the 1000ms
}
}
Next, run the circuit after that 8 LEDs are blinking. Finally 8 LEDs are blinking continuously.