1. Structure and Programming
of PIC16F84A Microcontroller
Prepare:
Abdullah Abdulaziz
Nassar
ID. # 42805010
Supervising :
Dr. Ghassan Dahman
2. Presentation Outline
Introduction to Microcontroller.
Components of Microcontroller.
Microcontrollers VS Microprocessors.
Application.
Types of Microcontroller.
Specifications of PIC16F84A.
Programming of PIC16F84A.
1
18. Programming language (cont.)
C language.
#include <…………….>
#define PI 3.14
/* this is the structure of the program in c language
this is done by A. Nassar */
void main( )
{
int x=10; // integer variable with initial value equal to
10
float y;
Char eng=„A‟;
char* eng1=“engineer2011”;
scanf ( x , y );
y= y + x ;
printf ( y ) ;
} 17
19. Programming language (cont.)
Structure of C program.
#define PI 3.14
void main( )
{
Variable declaration
Data direction
Initial values
while(1)
{
…………….;
…………….;
…………….;
}
}
18
25. Conclusion
What is the microcontroller?
Pins Description of PIC16F84A.
Organization of PIC16F84A.
Mikroc & Mplab.
Programming language.
24