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   
Share



You might also like...


Sunjammer, World's Largest Solar Sail, Passes Key Test for 2015 Launch [News]

How to Measure the Width of a Hair With a Laser! [Fun science]

Briefcase Arcade [Project]

BBC Science Club - Physics [Physics]

The riddle of the day #19 - Run Forest, Run

Beware of the fake CE sign [Gadgets]

Pirate bay is down after police raid

What Earth would be like if humans never existed [Science]


<< Back to INDEX



Comments

  Name

  Email (shall not be published)

  Website

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