Page 1 of 1

Advice required please

Posted: Sun May 10, 2009 5:16 pm
by Steve001
I am currently working on a project of a data logging system
using a PIC16F77 that has the following, 8 adc inputs 4 switches and a lcd display and 3 outputs.
rather than keep scanning the switch inputs for a key press is it possible to do this on an interupt ?
using the PORTB INTCON CHANGE ?
as the switches are used for setting up only

any advice or examples please

ta
steve

Re: Advice required please

Posted: Mon May 11, 2009 9:17 am
by Benj
Hello Steve

Why not dive in and do some testing, there is not much to the port change interrupts.

There are also some new articles on interrupts in our articles section of the forum if you need help.

Remember keep it simple while testing and make sure each component will work how you think it will. To test the interrupt functionality why not output a number to a port in your main routine then in your interrupt macro add one to that number.