Home     Contact     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS     Terms of services     Privacy policy  
 Home      Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science   

<< Back to INDEX

PIC microcontrollers: Interrupts vs. Polling [Theory]
posted September 15 2011 19:17.18 by Giorgos Lazaridis

Here is something cool for those who are learning how to program a PIC microcontroller, and when they came across the PIC Interrupts felt totally helpless. Chris from pyroelectro uploaded a helping hand for you:

The goal of this tutorial is to build a system that has two types of outputs. One output will be the main program that flashes LEDs in a back and forth 'knight-rider' fashion. The second output will be triggered by an interrupt and should flash all the LEDs on and off a few times before exiting back to the main program.
In order to generate the interrupt, a standard push-button will be used. When the button is pushed, the PIC 18F452 microcontroller will sense the state change (from 5v to 0v) and issue a hardware interrupt to the software. The software will then pause the main program, execute the interrupt routine and return to the same spot in the main program.

Follow this link o read the article.

[Link: pyroelectro]
Tags: pic   microcontroller   articles   theory/tutorial   how to   electronic project   diy   software   

You might also like...

Getting started with Microchip's advanced MPLAB X IDE from DesignSpark [Webminar]

Facebook Privacy is a Joke [Privacy]

PIC24 based CHIP-8 game emulator [Project]

The Peachy Printer - The First $100 3D Printer & Scanner! [New product]

First digital camera [Technology]

This timelapse of the Alaska 19s Northern Lights is amazing

Flutter: $20 Wireless Arduino with half mile (1km) range.

Desulfator for 12V Car Batteries [Project]

<< Back to INDEX



  Email (shall not be published)


Notify me of new posts via email

Write your comments below:
BEFORE you post a comment:You are welcome to comment for corrections and suggestions on this page. But if you have questions please use the forum instead to post it. Thank you.


No comment yet...

Be the first to comment on this page!

 Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS   

Site design: Giorgos Lazaridis
© Copyright 2008
Please read the Terms of services and the Privacy policy