You are on page 1of 4

Objectives

1. To know how to design some logic functions like Addition, Subtraction, and
Bitwisz operations using PIC15F4550A.
2. To know how to simulate these functions using PROTES program.
3. To know how to program the PIC18F4550A and then simulate these logic
functions using hardware.

Tools
-

PIC18F4550A.
MIKROC software.
PROTES software.
EB006 USB Programmer.

Theory
In this exp. We will implement the shifting, rotation, Addition and Subtraction
Functions using PIC18F4550A.

Part I: Addition Function


-

Implementation the circuit:

Writing a program to achieve the addition of two numbers on port D & port A:

Part II: Subtraction Function


-

Circuit:

Writing a program to achieve the Subtraction of two numbers on port D & port
A:

Part III:
-

Implementation a new circuit to interface a 8 leds on port B:

Writing a program to do rotation bit on port B:

Part IV: "HW"


Write and simulate a program that uses the PIC18F4550 to implement the following
digital function: X=(A'+B').C+(A+B').D
-

Circuit:

Code:

You might also like