Tuesday, December 3, 2013

PIC16F887 & Interrupts

I finally got a break from work, so I decided to hit the lab again to learn more about microcontrollers. A classmate asked me if I could teach him more about the PIC, so I decided to sharpen up on various peripherals of the PIC16F887 (that we weren't shown in class).



This PIC contains a program that blinks a light upon the Timer0 interrupt (with a prescaler of 256) and also interrupts upon shorting the RB0 pin (lighting up various LEDs). It's pretty simple, but it covers enough unfamiliar ground that I think should be useful to anyone still learning about the basics of microcontrollers.

No comments:

Post a Comment