Understanding interrupts in PIC microcontrollers

posted Jul 26th 2011 5:01am by
filed under: Microcontrollers

Interrupts are the name of the game for more functional microcontroller firmware. [Rajendra] just posted a tutorial covering all of the interrupt types for the PIC 16F688 microcontroller. He gives an overview of all of the major points: what an interrupt is, what causes interrupts, how to read the datasheet (often overlooked) to set up interrupts, and finally he applies it to a test platform and a bit of code.

We’ve been playing around with an Arduino again over the weekend and are a bit frustrated with the restricted access to interrupts. That issue deals with AVR interrupts, a topic with which we’re already well acquainted. But we work with PIC hardware much less often and it’s fun to explore how the other half does things, both in hardware and in code.



4 Responses to Understanding interrupts in PIC microcontrollers

  • Alex says:

    That’s a big LED!

  • Matt says:

    These tutorials are one of the main reasons I visit HAD. Thanks!

  • Joe says:

    Why does the Arduino have restricted access to interrupts? I’m not familiar with the Arduino as I use Pics.

  • Tyler says:

    These look like great labs and tutorials.

    Definitely digging the PIC stuff, want to learn more about it, and I love seeing it on HaD.

  • Leave a Reply

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks






         




    Hacks

    Resources