piclist 2008\07\28\190122a >
Thread: Interrupt Questions
www.piclist.com/techref/microchip/ints.htm?key=interrupt
face picon face BY : Jinx email (remove spam text)



>1. if i am using RB0/INT as my interrupt source, can i still read RB0
> as a bit without disabling interrupts? ie. waiting for input to fall back
> down

Yes. You can also change the edge which triggers the interrupt. ie you
can select to detect when the pin goes L->H and/or when it goes H->L

> also can i exit a interrupt routine with a "goto" instead of a "retfie"?

Yes, but there will be a return address left on the stack, and each time
that ISR is called. Eventually there'll be a crash. PICs with POP can
deal with orphaned addresses on the stack if necessary, but you're
better to exit with RETFIE to keep the stack tidy

> ie.if i need to stop the program from what its doing and do something
> completely different

Not quite sure what you mean by that. When program flow enters an
ISR, interrupts are turned off by the hardware. If you exit that ISR with
RETURN instead of RETFIE, interrupts will not be turned back on

<00bd01c8f105$a0121810$89aafea9@ivp1> 7bit

See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Interrupt Questions

month overview.

new search...