How can I know the interrupt vector

General discussion on mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Aoday
Posts: 86
Joined: 07 Mar 2005 13:45

How can I know the interrupt vector

#1 Post by Aoday » 28 Aug 2008 03:13

this first time i am using dspic interrupts. In the Examples I found the org 0x1A when I refer the datasheet i found the interrupt vector for timer1 is 11 so please anyone can tell me how to resolve

rmteo
Posts: 1330
Joined: 19 Oct 2006 17:46
Location: Colorado, USA

#2 Post by rmteo » 28 Aug 2008 04:49

0x1A is the interrupt vector for Timer1. 0x11A (I dont' know where you got the 11) is the ALTERNATE interrupt vector for Timer1. The example is correct.
Why pay for overpriced toys when you can have
professional grade tools for FREE!!! :D :D :D

Aoday
Posts: 86
Joined: 07 Mar 2005 13:45

#3 Post by Aoday » 28 Aug 2008 05:14

Thank u very much for your reply i know the example is working but when i have refered to datasheet i found as bellow:

Number
Vector
Number Interrupt Source
Highest Natural Order Priority
0 8 INT0 – External Interrupt 0
1 9 IC1 – Input Capture 1
2 10 OC1 – Output Compare 1
3 11 T1 – Timer 1
4 12 IC2 – Input Capture 2
5 13 OC2 – Output Compare 2
6 14 T2 V Timer 2
7 15 T3 – Timer 3
8 16 SPI1
9 17 U1RX – UART1 Receiver
10 18 U1TX – UART1 Transmitter
11 19 ADC – ADC Convert Done
12 20 NVM – NVM Write Complete
13 21 SI2C – I2C™ Slave Interrupt
14 22 MI2C – I2C Master Interrupt
15 23 Input Change Interrupt
16 24 INT1 – External Interrupt 1
17 25 IC7 – Input Capture 7
18 26 IC8 – Input Capture 8
19 27 OC3 – Output Compare 3
20 28 OC4 – Output Compare 4
21 29 T4 – Timer 4
22 30 T5 – Timer 5
23 31 INT2 – External Interrupt 2
24 32 U2RX – UART2 Receiver
25 33 U2TX – UART2 Transmitter
26 34 Reserved
27 35 C1 – Combined IRQ for CAN1
28-40 36-48 Reserved
41 49 DCI – CODEC Transfer Done
42 50 LVD – Low-Voltage Detect
43-53 51-61 Reserved
Lowest Natural Order Priority

rmteo
Posts: 1330
Joined: 19 Oct 2006 17:46
Location: Colorado, USA

#4 Post by rmteo » 28 Aug 2008 05:44

The interrupt section of the dsPIC30 datasheet is very confusing. The one for the dsPIC33 (and PIC24) is much easier to understand.
Why pay for overpriced toys when you can have
professional grade tools for FREE!!! :D :D :D

Aoday
Posts: 86
Joined: 07 Mar 2005 13:45

#5 Post by Aoday » 28 Aug 2008 06:41

thanks friend i found the table in the following address:

http://ww1.microchip.com/downloads/en/D ... 70053D.pdf

Post Reply

Return to “mikroPascal for dsPIC30/33 and PIC24 General”