faysal_002299
New Member
Hello all,
I am using dsPIC30F3011 mcu for my project. Now I want the Output Compare pins (eg. OC3 and OC4) to work just like an external interrupt (like INT1, INT2). And the OC ISR will act like INT ISR and respond in negative or positive edge. How can I do that? It would be great if you please provide some Code samples for initialization and ISR of OC.
[Actually I have used all the provided external interrupts but I need some more and the only option I have is, to use the OC3 and OC4 pins as normal external interrupt as per the pre-built circuit board I am working with. I also have already used all the input capture pins]
thanks in advance
I am using dsPIC30F3011 mcu for my project. Now I want the Output Compare pins (eg. OC3 and OC4) to work just like an external interrupt (like INT1, INT2). And the OC ISR will act like INT ISR and respond in negative or positive edge. How can I do that? It would be great if you please provide some Code samples for initialization and ISR of OC.
[Actually I have used all the provided external interrupts but I need some more and the only option I have is, to use the OC3 and OC4 pins as normal external interrupt as per the pre-built circuit board I am working with. I also have already used all the input capture pins]
thanks in advance