26
Prepare : Abdullah Abdulaziz Nassar ID. # 42805010 Supervising : Dr. Ghassan Dahman Structure and Programming of PIC16F84A Microcontroller

Pic16 f84a

Embed Size (px)

Citation preview

Page 1: Pic16 f84a

Prepare:

Abdullah Abdulaziz Nassar

ID. # 42805010

Supervising: Dr. Ghassan Dahman

Structure and Programming of PIC16F84A

Microcontroller

Page 2: Pic16 f84a

Presentation Outline

Introduction to Microcontroller.Components of Microcontroller.Microcontrollers VS Microprocessors.Application.Types of Microcontroller.Specifications of PIC16F84A.Programming of PIC16F84A.

1

Page 3: Pic16 f84a

Introduction to Microcontroller

What is the microcontroller?

2

Page 4: Pic16 f84a

Components of Microcontroller

Microcontroller Containing of:1. CPU.2. RAM.3. EEPROM.4. I/O Units.

3

Page 5: Pic16 f84a

Microcontrollers VS Microprocessors

4

Page 6: Pic16 f84a

Application

5

Page 7: Pic16 f84a

Types of microcontroller

Intel.Motorola.Microchip “Pic Microcontroller”.Hitachi.Atmel.National.Toshiba.Zilog.Texas Instruments.

6

Page 8: Pic16 f84a

Specifications of PIC16F84A

Oscillator 4MHZCurrents 2mAVoltage 5VDifferent types.

7

Page 9: Pic16 f84a

Specifications of PIC16F84A (cont.)

8

Pins Description.

Page 10: Pic16 f84a

Specifications of PIC16F84A (cont.)

9

Page 11: Pic16 f84a

Programming of PIC16F84A

Software Requirements. Hardware Requirements. Programming Language.

10

Page 12: Pic16 f84a

Software Requirements MPLAB.

11

Page 13: Pic16 f84a

Software Requirements (cont.)

MIKROC.

12

Page 14: Pic16 f84a

Software Requirements (cont.)

Burner Program.

13

Page 15: Pic16 f84a

Hardware requirements

PC.Programmer.Other Components.

14

Page 16: Pic16 f84a

Programming language

15

Page 17: Pic16 f84a

Programming language (cont.)

C Language. Assembly Language.

16

Page 18: Pic16 f84a

#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.

Page 19: Pic16 f84a

Programming language (cont.)

18

#define PI 3.14void main) (

{

while(1){

;.…………… ;.…………… ;.……………

} }

Variable declaration

Data direction

Initial values

Structure of C program.

Page 20: Pic16 f84a

Programming language (cont.)

19

Variables of C program.

char name[ ] = “A. Nassar ”;

Page 21: Pic16 f84a

Programming language (cont.)

Assembly Language.

20

Page 22: Pic16 f84a

Programming language (cont.)

21

Page 23: Pic16 f84a

Programming language (cont.)

22

Page 24: Pic16 f84a

Programming of PIC16F84A

23

Mikroc/Mplab

Burner Program

Page 25: Pic16 f84a

Conclusion

What is the microcontroller?Pins Description of PIC16F84A.Organization of PIC16F84A. Mikroc & Mplab.Programming language.

24

Page 26: Pic16 f84a

THANK YOU FOR YOUR ATTENTION !!

Any Question??