Professional Documents
Culture Documents
LECTURER’S NAME:
GROUP NO. :
DATE SUBMIT :
PRAC. TOTAL
REPORT
STUDENT ID & NAME : SKILL MARKS
(30%)
(70%) (100%)
(1)
(2)
(3)
(4)
Prepared by Checked by
PRACTICAL SKILL ASSESSMENT (PLO5/CLO3/P4/CLS 3a,3c)
PRACTICAL WORK : 2
Score
Student 1
Student 2
1 2 3 4 5
Score
Aspect
Weak Average Satisfactory Good Excellent
assistance
under supervision of the lecturer
of the lecturer
References 0 reference 1-2 references 3-4 references 4-5 references >5 references x1
Total 100
1 LEARNING OUTCOMES (LO):
2 OBJECTIVE :
I. Write C program for PIC input and output pin.
II. Draw and simulate PIC input and output circuit in Proteus.
3 THEORY :
An electrical switch is any device used to interrupt the flow of electrons in a circuit. Switches are
essentially binary devices: they are either completely on ("closed") or completely off ("open"). There
are many different types of switches.
The simplest type of switch is one where two electrical conductors are brought in contact with each
other by the motion of an actuating mechanism. Other switches are more complex, containing
electronic circuits able to turn on or off depending on some physical stimulus (such as light or
magnetic field) sensed. In any case, the final output of any switch will be (at least) a pair of wire-
connection terminals that will either be connected together by the switch's internal contact
mechanism ("closed"), or not connected together ("open").
Push button switches are two-position devices actuated with a button that is pressed and released.
Most push button switches have an internal spring mechanism returning the button to its "out," or
"un-pressed," position, for momentary operation. Some push button switches will latch alternately on
or off with every push of the button. Other push button switches will stay in their "in," or "pressed,"
position until the button is pulled back out. This last type of push button switches usually has a
mushroom-shaped button for easy push-pull action.
5 PROCEDURE :
PART A- LAB 2a
Using Proteus software draw the circuit in Figure 2a below. Load Hex file and observe the output.
PART A- LAB 2b
PART A- LAB 2c
Using Proteus software, design a circuit that consists of three switches and two LEDs for the above
function. Load Hex file and observe the output.
PART B
RESULT
LAB 2a
Program:
Circuit :
Observation:
7 LAB 2b
Program:
Circuit :
Observation:
LAB 2c
Program:
8 Circuit :
Observation:
DISCUSSION
CONCLUSION