pic18f452 interrupts

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

Reply to
Loading thread data ...

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


Reply to

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.