pic18f452 interrupts

Oct 05, 2007 1 Replies

how to handle 4 interrupts in pic18f452 out four interrupts 2 are lo interrupts and other two are high but we are having only two vecto address plz suggest me anybody


Welcome to the wonderful world of PIC.

In the interrupt routine, you need to check which interrupt bit is set, and service that one first (then clear it), then check the another interrupt flag and service that one.

You could also check each bit and set a RAM flag, exit the interrupt and service those in your main loop.

Timing on your routines is critical, you routine can not be too long.

good luck

don

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required