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
- posted
15 years ago
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
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.