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


Building a self balancing bot [Project]

Amazing timelapse of 30-story building constructed 15 days [Video]

Can Video Games Make You Smarter? [Science]

Make a GSM sim using PIC Microcontroller

Astonishing picture of Earth compared to all its water and air [Pic]

What Most Schools Don't Teach [Education]

An amazing optical illusion [Brainhack]

Barlow's wheel, electric motor [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