![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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 | |
| |
| | #2 | |
|
Check Page 43 and 48 of datasheet. I never used this chip or anything close to it really. This hopefully will help tho. On page 43: Quote:
Its Bits 4 and 3 of "IEC1" for OC4 and OC3 Now we can go to page 44 for priority information: "TABLE 5-1: INTERRUPT VECTOR TABLE" Hope that helps
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics Last edited by AtomSoft; 13th January 2009 at 12:30 PM. | ||
| |
| | #3 |
|
I would like to add some more information on my problem I am working with a circuit board designed by some other person. The only way I have before me is, to work with this pre-designed board. Now the circuit board is designed in such a way that, I have to detect two external sensors signal with pin 41 and 38 of dsPIC30F3011 which are Output Compare OC3 and OC4. And I would like to detect the positive edge in the ISR. Please suggest me what I can do in this situation. thanks in advance | |
| |
| | #4 |
|
not sure if this help but on page 47 "5.7 External Interrupt Requests" should show you some info.
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
|
| Tags |
| compare, external, interrup, output, pin |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Help: external siren/output from radar detector? | mnapuran | Electronic Projects Design/Ideas/Reviews | 5 | 10th March 2008 11:35 AM |
| CCP (compare mode) | crys | Robotics Chat | 3 | 17th February 2008 12:33 PM |
| Using PicBasic with Output compare for sounds | mduong77 | Micro Controllers | 7 | 29th March 2007 03:29 AM |
| compare a value to a table | pouchito | Micro Controllers | 8 | 7th January 2007 02:50 PM |
| How to compare values? | Lac | Micro Controllers | 7 | 26th January 2005 03:45 PM |