这两句话后面的,就是本型号单片机定义的所有中断。以下就是ATmega16A的中断,全部照抄如下:
============================开始====================================
#define INT0_vect_num 1
#define INT0_vect _VECTOR(1)
#define INT1_vect_num 2
#define INT1_vect _VECTOR(2)
#define TIMER2_COMP_vect_num 3
#define TIMER2_COMP_vect _VECTOR(3)
#define TIMER2_OVF_vect_num 4
#define TIMER2_OVF_vect _VECTOR(4)
#define TIMER1_CAPT_vect_num 5
#define TIMER1_CAPT_vect _VECTOR(5)
#define TIMER1_COMPA_vect_num 6
#define TIMER1_COMPA_vect _VECTOR(6)
#define TIMER1_COMPB_vect_num 7
#define TIMER1_COMPB_vect _VECTOR(7)
#define TIMER1_OVF_vect_num 8
#define TIMER1_OVF_vect _VECTOR(8)
#define TIMER0_OVF_vect_num 9
#define TIMER0_OVF_vect _VECTOR(9)
#define SPISTC_vect_num 10
#define SPISTC_vect _VECTOR(10)
#define USARTRXC_vect_num 11
#define USARTRXC_vect _VECTOR(11)
#define USARTUDRE_vect_num 12
#define USARTUDRE_vect _VECTOR(12)
#define USARTTXC_vect_num 13
#define USARTTXC_vect _VECTOR(13)
#define ADC_vect_num 14
#define ADC_vect _VECTOR(14)
#define EE_RDY_vect_num 15
#define EE_RDY_vect _VECTOR(15)
#define ANA_COMP_vect_num 16
#define ANA_COMP_vect _VECTOR(16)
#define TWI_vect_num 17
#define TWI_vect _VECTOR(17)
#define INT2_vect_num 18
#define INT2_vect _VECTOR(18)
#define TIMER0_COMP_vect_num 19
#define TIMER0_COMP_vect _VECTOR(19)
#define SPM_RDY_vect_num 20
#define SPM_RDY_vect _VECTOR(20)
#define _VECTOR_SIZE 4
#define _VECTORS_SIZE (21 * _VECTOR_SIZE)
文章评论(0条评论)
登录后参与讨论