Skip to Main Content
PIC Projects and Applications using C
book

PIC Projects and Applications using C

by David W Smith
December 2012
Intermediate to advanced content levelIntermediate to advanced
204 pages
3h 40m
English
Newnes
Content preview from PIC Projects and Applications using C
Chapter 10

Interrupts

If we are carrying out a task and we are interrupted by the phone ringing. We answer the phone, deal with it, and then return to our task. We need to remember of course what position we were at in the task. We could have been interrupted by a knock on the door.

The microcontroller does a similar thing when handling an interrupt. The microcontroller stops the task it is on and deals with the interrupt routine. It remembers where it was and returns back to the task.

There are several ways a microcontroller like the 18F1220 can be interrupted and they are:

ent RB0 going high or RB0 going low.

 RB1 going high or RB1 going low.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal
Jumpstarting C

Jumpstarting C

Wolfram Donat

Publisher Resources

ISBN: 9780080971513