Академический Документы
Профессиональный Документы
Культура Документы
Author Message
Why not try page 153 (Section 14.11) interestingly enough it is titled "Interrupts"....
Joined: 06 Sep 2003
Posts: 602
Location: Norman, OK
After reading the interrupt section things are still not that clear. In the PIC877A.h file it has a
Joined: 14 Jun 2005
Posts: 71 list of interrupts that I can use. I am still looking for a more complete description of how they
work so I can decide which ones to use.
Also it is not clear (at least not to me) whether or not PortB is the only port that supports an
interrupt change on a pin.
Code:
1 от 2 01.3.2007 г. 11:07
CCS :: View topic - Is PortB the only place for a hardware interrupt? http://ccsinfo.com/forum/viewtopic.php?t=26304&highlight=inte...
Thanks for any help and your patience with me I have never used any interrupts-
SophE
Look in section 12.0 in data sheet for the Comparator module, and
specifically look in section 12.6 on Comparator interrupts.
You can use the capture/compare inputs as interrupts. That's pins 1 and 2 of port C. If all you
Joined: 17 Sep 2003
Posts: 46 want is an interrupt on a rising or falling edge (you do have to decide which) you can just
respond to the interrupt and ignore the capture data.
But I'm always dubious about multiple interrupts. If you have lots of things generating them it's
easy to get bogged down if everything happens at once. Would it be possible to use a repeating
timer and poll the inputs you want to monitor?
Page 1 of 1
2 от 2 01.3.2007 г. 11:07