0% found this document useful (0 votes)
1K views14 pages

Mini Project Dec40053

This document summarizes a timer interrupt programming project in a PIC microcontroller. It contains an introduction explaining the purpose of the project is to build a system to automatically open a gate using a sensor to detect a car. It also includes a background theory section describing what a timer interrupt is and how it can be used to control timing of events. The document discusses that the group figured out the schematic circuit and built the source code, encountering mistakes but ultimately getting it to compile successfully. In conclusion, the group was able to understand the question, sketch the circuit, and build a working source code.

Uploaded by

Muhamad Hanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views14 pages

Mini Project Dec40053

This document summarizes a timer interrupt programming project in a PIC microcontroller. It contains an introduction explaining the purpose of the project is to build a system to automatically open a gate using a sensor to detect a car. It also includes a background theory section describing what a timer interrupt is and how it can be used to control timing of events. The document discusses that the group figured out the schematic circuit and built the source code, encountering mistakes but ultimately getting it to compile successfully. In conclusion, the group was able to understand the question, sketch the circuit, and build a working source code.

Uploaded by

Muhamad Hanan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

Timer interrupt

programming in PIC
NAME: MUHAMMAD AZAM BIN MOHD SAPRI

MUHAMMAD ASYRAF BIN ABD MANAH


MATRIC NUM: 04DET21F1097
04DET21F1064
CLASS: DET4C
LECTURER: PUAN NUR FILZAH
Build a system to open the gate of the house, it will open automatically when the sensor detects the presence of a car in
front of the gate. The operation of the system and the pins used refer to the table below
TABLE OF CONTENTS

01 02
BACKGROUND
INTRODUCTIO THEORY
N

04
03 CONCLUSION
DISCUSSION
01
INTRODUCTION
INTRODUCTION
Embedded system applications are the software
programs that run on embedded systems.
These applications are typically designed to be
small, efficient, and reliable. They are also often
designed to be used in real time, which means
that they must be able to respond to events
quickly. For this mini project, our group got the
first question. For this question, it got one
input, one motor and 3 output.
02
BACKGROUND
THEORY
BACKGROUND THEORY
A timer interrupt is a hardware interrupt that is generated by a timer.
Timer interrupts are used to perform tasks that need to be executed at
regular intervals, such as updating a display or controlling a motor. An
Interrupt is a signal to the processor (microcontroller) emitted by
hardware or software indicating an event that needs immediate attention.
Timer interrupts are a powerful tool that can be used to control the timing
of events in a PIC microcontroller. When a timer interrupt occurs, the
microcontroller will automatically jump to a specific location in memory,
called the interrupt service routine (ISR). The ISR can then be used to
perform any desired task, such as updating a display, reading a sensor, or
controlling a motor.
Schematic diagram
Source code
03
DISCUSSIO
N
DISCUSSION

The discussion for this mini project is at first we trying to understand


what the question given. After that, we trying how to figure the
schematic circuit by refer to the previous practical work. Besides, we also
build the source code and encounter many unsuccessful coding but after
fixing all the mistakes finally we got the source code compiled
successfully.
04
CONCLUSION
CONCLUSION

The conclusion for this mini project is we were able to


understand what the question asks us to do. Then, we
were able to sketch the schematic circuit. After that,
we were also able to build the source code and got
compiled successfully.
Thank
you!

You might also like