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...

Could We Harvest Energy From a Star? [Science]

How It's Made - Fiber Optics [Video]

Stephen Hawking's big ideas... made simple - animation [Knowledge]

Arduino Piano [Project]

Kids, now and then [Infographix]

AC to DC Power Supply [Project]

How Modern Light Bulbs Work [Technology]

This Clear, Flexible Electronic Circuit Can Fit on the Surface of a Contact Lens [Innovation]

<< 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