You are on page 1of 9

DEPARTMENT OF ELECTRICAL ENGINEERING

ACADEMIC SESSION: 2 2021/2022


DEC40053 – EMBEDDED SYSTEM APPLICATIONS

PRACTICAL WORK 2 : CIRCUIT SIMULATION

28/3/2022
PRACTICAL WORK DATE :

TUAN MOHD ISMI ASWALY BIN HANIMI


LECTURER’S NAME :

7
GROUP NO. :

TOTAL
STUDENT NAME & MATRIC NO. : MARKS (100%)

(1)NURSHALIHAH DIYANAH BINTI AJAH MAIDIEN (01DEE20F1055)

(2)NURUL NABILA BINTI MOHD RADZI (01DEE20F1080)

(3)

DATE OF SUBMIT:

Edited by: Version: Page 0


DEC40053 Course Coordinator 2 2021/2022
PRACTICAL WORK 2 RUBRIC
NO. CRITERIA SCORE TOTAL
Weightage SCORES
1 2 3 4 5 S1 S2 S3
1 Program code is Program code Program code Program Program X2
incomplete with is complete with is complete with code is code is
inconsistent some a complete complete
Write code inconsistence little with a little and well
Program typing and not code inconsistence inconsistent organized.
well typing and well code typing and code typing and
organized after organized after well organized well organized
being assisted being assisted after being with a minimum
by by assisted by assist by
lecturer. lecturer. lecturer. lecturer.
2 Program code Program code Program code Program Program X4
still has an has three or has three or code has one code
error. more errors. more errors. or two errors. successfully run.
Compile and Student Student can Student can Student can fix
Execute cannotfix fixthe errors fix the errors the errors with
Program the error after with minimal minimal
after being being assisted assistance assistance from
assisted by by lecturer. from lecturer.
lecturer. lecturer.
3 Student Circuit Circuit Student can Student can X4
cannot fix the connection has connection produce a produce neat
circuit three or more has three or schematic in schematic in
Construct connection errors. Student more errors. SimulIDE but SimulIDE
Circuit after being can fix the errors Student can fix with one or without error.
Using assisted by after being the errors with two errors.
Hardware lecturer. assisted by minimal
or Software lecturer. assistance from
(SimulIDE) lecturer.

4 Unsuccessful Successful Successful Successful Successful X4


program with program and program and program and program and
completely manage to get manage to manage to get manage to
incorrect the correct get the the correct get the correct
output output response correct output response output
response on output on response on
on SimulIDE on SimulIDE.
SimulIDE. SimulIDE with SimulIDE.
after being Student Student
Student having minimal
Demonstrate assisted by understands understands
difficulties to assistance from
Circuit Using understand lecturer. Student most of the the program
having lecturer. program and can
Hardware or the program. and can
difficulties to Student demonstrate the demonstrate
Software understands
(SimulIDE) understand the circuit. the circuit
program most of the effectively.
demonstrated in program and
the circuit. can
demonstrate
the circuit.

OVERALL LAB
SCORES (/ 70)

No. Reporting S1 S2 S3
1 Results
Simulated circuit in SimulIDE (Program 1), as stated in page 8 and 9. (/5)
Compiled complete source code in MPLABX, as stated in page 16. (/5)
Simulated circuit in SimulIDE (Program 2), as stated in page 16. (/5)
2 Discussions (/10)
3 Conclusion (/5)
OVERALL
REPORTING
MARKS (/ 30)
TOTAL MARKS (OVERALL REPORTING MARKS + OVERALL LAB SCORES)

Page 1
1) COURSE LEARNING OUTCOME (CLO):

a) Construct and simulate real-time embedded system application based on


PIC16F/PIC18F microcontroller effectively.

2) OBJECTIVES

a) Write program using C language in MPLABX IDE.


b) Draw and simulate PIC circuit in SimulIDE.
c) Build output hardware circuit using LEDs.

3) THEORY

SIMULIDE

SimulIDE is a simple real-time electronic circuit simulator, intended for hobbyists or students to
learn and experiment with simple electronic circuits and microcontrollers supporting PIC, AVR and
Arduino.Although it is not an accurate simulator for circuit analysis, it aims to be fast, simple and
easy to use with limited features. Simplicity and ease of use are the key features of this simulator.
You can create, simulate and interact with your circuits within minutes by dragging components
from the list and then dropping them into the circuit. SimulIDE also features a code editor and a
debugger for GcBasic, Arduino, PIC asm and AVR asm system operations.

Page 2
RESULTS

Produce your screenshot results related to procedures as stated in the rubric within this area.

(PROGRAM 1)

Page 3
Page 4
MPLAB

PROGRAM 2

Page 5
Page 6
DISCUSSIONS

Build C program code to perform the task below, then design its circuit in SimulIDE.

1) Referring to the previous circuit simulated from Program 2, run again the circuit by connecting an
oscilloscope and ammeter to observe the voltage waveform and current value of the LED at pin
RB7.

Page 7
2) Construct a reset circuit for PIC18F4550 using SimulIDE and explain its purpose of it in the
operation of the

The microprocessor reset circuit is a low-power supervisory device used to monitor power supplies.


It performs a single function: asserting a reset signal whenever the VCC supply voltage drops below
a preset value and keeping it asserted until VCC has risen above the preset threshold for a minimum
period of time (trec).

CONCLUSION

Write a summary to conclude on the attainment of all the set objectives, as well as on the results
obtained.

At the end of the lab, I can write a program using the C language in MPLABX IDE. I also can
draw and simulate PIC circuits in SimulIDE. SimulIDE is a simple real-time electronic circuit
simulator, intended for hobbyists or students to learn and experiment with simple electronic
circuits and microcontrollers supporting PIC, AVR, and Arduino. I also manage to build output
hardware circuits using LEDs as the result obtained on pages 2 - 5. It shows in the result that in
program 1, it only 1 LED and it blinks for 1s, and the programming in MPLAP IDE set as only
portB for B0 set as output. Meanwhile, program 2, it has 8 LED, and the programming in MPLAP
IDE set all portsB as output and get the result in simullde as all the 8 LED blink at the same time
for 1s.

Page 8

You might also like