If anybody can kindly provide me the complete official syntax correctly declared list of ISRS of the ATMEGA4809 controller for use on my Arduino IDE based project on the Nano Every board.
for eg : 1 ISR name shown here ---> ISR(TCB2_INT_vect)
If anybody can kindly provide me the complete official syntax correctly declared list of ISRS of the ATMEGA4809 controller for use on my Arduino IDE based project on the Nano Every board.
for eg : 1 ISR name shown here ---> ISR(TCB2_INT_vect)
The data sheet, and the Arduino core source code for the Every will be your most reliable guides.
Maybe this helps. It is from the Microchip supplied header file iom4809.h
.
Look for the entries postfixed by _VECTOR(xx)
. Your example TCB2_INT_vect
is _VECTOR(25)
/* ========== Interrupt Vector Definitions ========== */
/* Vector 0 is the reset vector */
/* CRCSCAN interrupt vectors */
#define CRCSCAN_NMI_vect_num 1
#define CRCSCAN_NMI_vect _VECTOR(1) /* */
/* BOD interrupt vectors */
#define BOD_VLM_vect_num 2
#define BOD_VLM_vect _VECTOR(2) /* */
/* RTC interrupt vectors */
#define RTC_CNT_vect_num 3
#define RTC_CNT_vect _VECTOR(3) /* */
#define RTC_PIT_vect_num 4
#define RTC_PIT_vect _VECTOR(4) /* */
/* CCL interrupt vectors */
#define CCL_CCL_vect_num 5
#define CCL_CCL_vect _VECTOR(5) /* */
/* PORTA interrupt vectors */
#define PORTA_PORT_vect_num 6
#define PORTA_PORT_vect _VECTOR(6) /* */
/* TCA0 interrupt vectors */
#define TCA0_LUNF_vect_num 7
#define TCA0_LUNF_vect _VECTOR(7) /* */
#define TCA0_OVF_vect_num 7
#define TCA0_OVF_vect _VECTOR(7) /* */
#define TCA0_HUNF_vect_num 8
#define TCA0_HUNF_vect _VECTOR(8) /* */
#define TCA0_CMP0_vect_num 9
#define TCA0_CMP0_vect _VECTOR(9) /* */
#define TCA0_LCMP0_vect_num 9
#define TCA0_LCMP0_vect _VECTOR(9) /* */
#define TCA0_CMP1_vect_num 10
#define TCA0_CMP1_vect _VECTOR(10) /* */
#define TCA0_LCMP1_vect_num 10
#define TCA0_LCMP1_vect _VECTOR(10) /* */
#define TCA0_CMP2_vect_num 11
#define TCA0_CMP2_vect _VECTOR(11) /* */
#define TCA0_LCMP2_vect_num 11
#define TCA0_LCMP2_vect _VECTOR(11) /* */
/* TCB0 interrupt vectors */
#define TCB0_INT_vect_num 12
#define TCB0_INT_vect _VECTOR(12) /* */
/* TCB1 interrupt vectors */
#define TCB1_INT_vect_num 13
#define TCB1_INT_vect _VECTOR(13) /* */
/* TWI0 interrupt vectors */
#define TWI0_TWIS_vect_num 14
#define TWI0_TWIS_vect _VECTOR(14) /* */
#define TWI0_TWIM_vect_num 15
#define TWI0_TWIM_vect _VECTOR(15) /* */
/* SPI0 interrupt vectors */
#define SPI0_INT_vect_num 16
#define SPI0_INT_vect _VECTOR(16) /* */
/* USART0 interrupt vectors */
#define USART0_RXC_vect_num 17
#define USART0_RXC_vect _VECTOR(17) /* */
#define USART0_DRE_vect_num 18
#define USART0_DRE_vect _VECTOR(18) /* */
#define USART0_TXC_vect_num 19
#define USART0_TXC_vect _VECTOR(19) /* */
/* PORTD interrupt vectors */
#define PORTD_PORT_vect_num 20
#define PORTD_PORT_vect _VECTOR(20) /* */
/* AC0 interrupt vectors */
#define AC0_AC_vect_num 21
#define AC0_AC_vect _VECTOR(21) /* */
/* ADC0 interrupt vectors */
#define ADC0_RESRDY_vect_num 22
#define ADC0_RESRDY_vect _VECTOR(22) /* */
#define ADC0_WCOMP_vect_num 23
#define ADC0_WCOMP_vect _VECTOR(23) /* */
/* PORTC interrupt vectors */
#define PORTC_PORT_vect_num 24
#define PORTC_PORT_vect _VECTOR(24) /* */
/* TCB2 interrupt vectors */
#define TCB2_INT_vect_num 25
#define TCB2_INT_vect _VECTOR(25) /* */
/* USART1 interrupt vectors */
#define USART1_RXC_vect_num 26
#define USART1_RXC_vect _VECTOR(26) /* */
#define USART1_DRE_vect_num 27
#define USART1_DRE_vect _VECTOR(27) /* */
#define USART1_TXC_vect_num 28
#define USART1_TXC_vect _VECTOR(28) /* */
/* PORTF interrupt vectors */
#define PORTF_PORT_vect_num 29
#define PORTF_PORT_vect _VECTOR(29) /* */
/* NVMCTRL interrupt vectors */
#define NVMCTRL_EE_vect_num 30
#define NVMCTRL_EE_vect _VECTOR(30) /* */
/* USART2 interrupt vectors */
#define USART2_RXC_vect_num 31
#define USART2_RXC_vect _VECTOR(31) /* */
#define USART2_DRE_vect_num 32
#define USART2_DRE_vect _VECTOR(32) /* */
#define USART2_TXC_vect_num 33
#define USART2_TXC_vect _VECTOR(33) /* */
/* PORTB interrupt vectors */
#define PORTB_PORT_vect_num 34
#define PORTB_PORT_vect _VECTOR(34) /* */
/* PORTE interrupt vectors */
#define PORTE_PORT_vect_num 35
#define PORTE_PORT_vect _VECTOR(35) /* */
/* TCB3 interrupt vectors */
#define TCB3_INT_vect_num 36
#define TCB3_INT_vect _VECTOR(36) /* */
/* USART3 interrupt vectors */
#define USART3_RXC_vect_num 37
#define USART3_RXC_vect _VECTOR(37) /* */
#define USART3_DRE_vect_num 38
#define USART3_DRE_vect _VECTOR(38) /* */
#define USART3_TXC_vect_num 39
#define USART3_TXC_vect _VECTOR(39) /* */
the data sheet doesn't specify the ISR list.
Any idea how to open the Arduino Core source code...to look up ISR listing inside it...?
This looks promising will try the same... and let u know soon.
It'll be in .../Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/avr/include/avr/iom4809.h
(and similar)
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.