Upload
abdullah-nassar
View
867
Download
3
Tags:
Embed Size (px)
Citation preview
Prepare:
Abdullah Abdulaziz Nassar
ID. # 42805010
Supervising: Dr. Ghassan Dahman
Structure and Programming of PIC16F84A
Microcontroller
Presentation Outline
Introduction to Microcontroller.Components of Microcontroller.Microcontrollers VS Microprocessors.Application.Types of Microcontroller.Specifications of PIC16F84A.Programming of PIC16F84A.
1
Introduction to Microcontroller
What is the microcontroller?
2
Components of Microcontroller
Microcontroller Containing of:1. CPU.2. RAM.3. EEPROM.4. I/O Units.
3
Microcontrollers VS Microprocessors
4
Application
5
Types of microcontroller
Intel.Motorola.Microchip “Pic Microcontroller”.Hitachi.Atmel.National.Toshiba.Zilog.Texas Instruments.
6
Specifications of PIC16F84A
Oscillator 4MHZCurrents 2mAVoltage 5VDifferent types.
7
Specifications of PIC16F84A (cont.)
8
Pins Description.
Specifications of PIC16F84A (cont.)
9
Programming of PIC16F84A
Software Requirements. Hardware Requirements. Programming Language.
10
Software Requirements MPLAB.
11
Software Requirements (cont.)
MIKROC.
12
Software Requirements (cont.)
Burner Program.
13
Hardware requirements
PC.Programmer.Other Components.
14
Programming language
15
Programming language (cont.)
C Language. Assembly Language.
16
#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 ); }
Programming language (cont.)
17
C language.
Programming language (cont.)
18
#define PI 3.14void main) (
{
while(1){
;.…………… ;.…………… ;.……………
} }
Variable declaration
Data direction
Initial values
Structure of C program.
Programming language (cont.)
19
Variables of C program.
char name[ ] = “A. Nassar ”;
Programming language (cont.)
Assembly Language.
20
Programming language (cont.)
21
Programming language (cont.)
22
Programming of PIC16F84A
23
Mikroc/Mplab
Burner Program
Conclusion
What is the microcontroller?Pins Description of PIC16F84A.Organization of PIC16F84A. Mikroc & Mplab.Programming language.
24
THANK YOU FOR YOUR ATTENTION !!
Any Question??