Hey, this is a really basic question, but how does one program interrupts on a 16f88 in C?
I tried Void Interrupt Name { } and it wouldn't compile.
I tried Void Interrupt { } and it compiled, but never actually interrupted.
Thanks.
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
Posted: Fri Feb 24, 2006 12:24 pm
You use #INT_xxx immediately before your interrupt service routine, where xxx is the interrupt you are waiting for. The 16f88.h file should list all the options available for that device.
Search this forum for several recent examples _________________ The difference between genius and stupidity is that genius has its limits...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum