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
Advice required please
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Advice required please
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel