#include //Allow us to use boolean values in our program * This interrupt causes the LED to go low, essentially ending the program. * on and off until RB.0/INT is set made high causing an interrupt. * Yet another "Hello World" program for the PIC16F628a that flashes an LED Do note that this requires an active high connection to RB0/INT, as seen below, to function correctly. Below is outlined a simple program that will leave the LED on until RB0/INT is set high. While this may be quite a jump from flashing an LED, I want to figure out how the timer0 works and thought I would be better starting with a simpler interrupt method: the INT external interrupt.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |