Advice required please

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Advice required please

Post 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
Success always occurs in private and failure in full view.

User avatar
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

Post 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.

Post Reply