飞思卡尔9S12XS128单片机的中断向量和中断号,在芯片手册里怎么查询?
展开全部
工程下面有个文件夹“Includes”,里面包含文件“mc9s12xs128.h”。把这个文件打开,往下拉一点就能看到中断号的定义“/**************** interrupt vector numbers ****************/”
我把它复制下来吧,供你参考:
/**************** interrupt vector numbers ****************/
#define VectorNumber_Vsi 119
#define VectorNumber_Vsyscall 118
#define VectorNumber_VReserved118 117
#define VectorNumber_VReserved117 116
#define VectorNumber_VReserved116 115
#define VectorNumber_VReserved115 114
#define VectorNumber_VReserved114 113
#define VectorNumber_VReserved113 112
#define VectorNumber_VReserved112 111
#define VectorNumber_VReserved111 110
#define VectorNumber_VReserved110 109
#define VectorNumber_VReserved109 108
#define VectorNumber_VReserved108 107
#define VectorNumber_VReserved107 106
#define VectorNumber_VReserved106 105
#define VectorNumber_VReserved105 104
#define VectorNumber_VReserved104 103
#define VectorNumber_VReserved103 102
#define VectorNumber_VReserved102 101
#define VectorNumber_VReserved101 100
#define VectorNumber_VReserved100 99
#define VectorNumber_VReserved99 98
#define VectorNumber_VReserved98 97
#define VectorNumber_Vatd0compare 96
#define VectorNumber_VReserved96 95
#define VectorNumber_VReserved95 94
#define VectorNumber_VReserved94 93
#define VectorNumber_VReserved93 92
#define VectorNumber_VReserved92 91
#define VectorNumber_VReserved91 90
#define VectorNumber_VReserved90 89
#define VectorNumber_VReserved89 88
#define VectorNumber_VReserved88 87
#define VectorNumber_VReserved87 86
#define VectorNumber_VReserved86 85
#define VectorNumber_VReserved85 84
#define VectorNumber_VReserved84 83
#define VectorNumber_VReserved83 82
#define VectorNumber_VReserved82 81
#define VectorNumber_VReserved81 80
#define VectorNumber_VReserved79 79
#define VectorNumber_VReserved78 78
#define VectorNumber_VReserved77 77
#define VectorNumber_VReserved76 76
#define VectorNumber_VReserved75 75
#define VectorNumber_VReserved74 74
#define VectorNumber_VReserved73 73
#define VectorNumber_VReserved72 72
#define VectorNumber_VReserved71 71
#define VectorNumber_VReserved70 70
#define VectorNumber_Vpit3 69
#define VectorNumber_Vpit2 68
#define VectorNumber_Vpit1 67
#define VectorNumber_Vpit0 66
#define VectorNumber_Vhti 65
#define VectorNumber_Vapi 64
#define VectorNumber_Vlvi 63
#define VectorNumber_VReserved62 62
#define VectorNumber_VReserved61 61
#define VectorNumber_VReserved60 60
#define VectorNumber_VReserved59 59
#define VectorNumber_VReserved58 58
#define VectorNumber_Vpwmesdn 57
#define VectorNumber_Vportp 56
#define VectorNumber_VReserved55 55
#define VectorNumber_VReserved54 54
#define VectorNumber_VReserved53 53
#define VectorNumber_VReserved52 52
#define VectorNumber_VReserved51 51
#define VectorNumber_VReserved50 50
#define VectorNumber_VReserved49 49
#define VectorNumber_VReserved48 48
#define VectorNumber_VReserved47 47
#define VectorNumber_VReserved46 46
#define VectorNumber_VReserved45 45
#define VectorNumber_VReserved44 44
#define VectorNumber_VReserved43 43
#define VectorNumber_VReserved42 42
#define VectorNumber_VReserved41 41
#define VectorNumber_VReserved40 40
#define VectorNumber_Vcan0tx 39
#define VectorNumber_Vcan0rx 38
#define VectorNumber_Vcan0err 37
#define VectorNumber_Vcan0wkup 36
#define VectorNumber_Vflash 35
#define VectorNumber_Vflashfd 34
#define VectorNumber_VReserved33 33
#define VectorNumber_VReserved32 32
#define VectorNumber_VReserved31 31
#define VectorNumber_VReserved30 30
#define VectorNumber_Vcrgscm 29
#define VectorNumber_Vcrgplllck 28
#define VectorNumber_VReserved27 27
#define VectorNumber_VReserved26 26
#define VectorNumber_Vporth 25
#define VectorNumber_Vportj 24
#define VectorNumber_VReserved23 23
#define VectorNumber_Vatd0 22
#define VectorNumber_Vsci1 21
#define VectorNumber_Vsci0 20
#define VectorNumber_Vspi0 19
#define VectorNumber_Vtimpaie 18
#define VectorNumber_Vtimpaaovf 17
#define VectorNumber_Vtimovf 16
#define VectorNumber_Vtimch7 15
#define VectorNumber_Vtimch6 14
#define VectorNumber_Vtimch5 13
#define VectorNumber_Vtimch4 12
#define VectorNumber_Vtimch3 11
#define VectorNumber_Vtimch2 10
#define VectorNumber_Vtimch1 9
#define VectorNumber_Vtimch0 8
#define VectorNumber_Vrti 7
#define VectorNumber_Virq 6
#define VectorNumber_Vxirq 5
#define VectorNumber_Vswi 4
#define VectorNumber_Vtrap 3
#define VectorNumber_Vcop 2
#define VectorNumber_Vclkmon 1
#define VectorNumber_Vreset 0
我把它复制下来吧,供你参考:
/**************** interrupt vector numbers ****************/
#define VectorNumber_Vsi 119
#define VectorNumber_Vsyscall 118
#define VectorNumber_VReserved118 117
#define VectorNumber_VReserved117 116
#define VectorNumber_VReserved116 115
#define VectorNumber_VReserved115 114
#define VectorNumber_VReserved114 113
#define VectorNumber_VReserved113 112
#define VectorNumber_VReserved112 111
#define VectorNumber_VReserved111 110
#define VectorNumber_VReserved110 109
#define VectorNumber_VReserved109 108
#define VectorNumber_VReserved108 107
#define VectorNumber_VReserved107 106
#define VectorNumber_VReserved106 105
#define VectorNumber_VReserved105 104
#define VectorNumber_VReserved104 103
#define VectorNumber_VReserved103 102
#define VectorNumber_VReserved102 101
#define VectorNumber_VReserved101 100
#define VectorNumber_VReserved100 99
#define VectorNumber_VReserved99 98
#define VectorNumber_VReserved98 97
#define VectorNumber_Vatd0compare 96
#define VectorNumber_VReserved96 95
#define VectorNumber_VReserved95 94
#define VectorNumber_VReserved94 93
#define VectorNumber_VReserved93 92
#define VectorNumber_VReserved92 91
#define VectorNumber_VReserved91 90
#define VectorNumber_VReserved90 89
#define VectorNumber_VReserved89 88
#define VectorNumber_VReserved88 87
#define VectorNumber_VReserved87 86
#define VectorNumber_VReserved86 85
#define VectorNumber_VReserved85 84
#define VectorNumber_VReserved84 83
#define VectorNumber_VReserved83 82
#define VectorNumber_VReserved82 81
#define VectorNumber_VReserved81 80
#define VectorNumber_VReserved79 79
#define VectorNumber_VReserved78 78
#define VectorNumber_VReserved77 77
#define VectorNumber_VReserved76 76
#define VectorNumber_VReserved75 75
#define VectorNumber_VReserved74 74
#define VectorNumber_VReserved73 73
#define VectorNumber_VReserved72 72
#define VectorNumber_VReserved71 71
#define VectorNumber_VReserved70 70
#define VectorNumber_Vpit3 69
#define VectorNumber_Vpit2 68
#define VectorNumber_Vpit1 67
#define VectorNumber_Vpit0 66
#define VectorNumber_Vhti 65
#define VectorNumber_Vapi 64
#define VectorNumber_Vlvi 63
#define VectorNumber_VReserved62 62
#define VectorNumber_VReserved61 61
#define VectorNumber_VReserved60 60
#define VectorNumber_VReserved59 59
#define VectorNumber_VReserved58 58
#define VectorNumber_Vpwmesdn 57
#define VectorNumber_Vportp 56
#define VectorNumber_VReserved55 55
#define VectorNumber_VReserved54 54
#define VectorNumber_VReserved53 53
#define VectorNumber_VReserved52 52
#define VectorNumber_VReserved51 51
#define VectorNumber_VReserved50 50
#define VectorNumber_VReserved49 49
#define VectorNumber_VReserved48 48
#define VectorNumber_VReserved47 47
#define VectorNumber_VReserved46 46
#define VectorNumber_VReserved45 45
#define VectorNumber_VReserved44 44
#define VectorNumber_VReserved43 43
#define VectorNumber_VReserved42 42
#define VectorNumber_VReserved41 41
#define VectorNumber_VReserved40 40
#define VectorNumber_Vcan0tx 39
#define VectorNumber_Vcan0rx 38
#define VectorNumber_Vcan0err 37
#define VectorNumber_Vcan0wkup 36
#define VectorNumber_Vflash 35
#define VectorNumber_Vflashfd 34
#define VectorNumber_VReserved33 33
#define VectorNumber_VReserved32 32
#define VectorNumber_VReserved31 31
#define VectorNumber_VReserved30 30
#define VectorNumber_Vcrgscm 29
#define VectorNumber_Vcrgplllck 28
#define VectorNumber_VReserved27 27
#define VectorNumber_VReserved26 26
#define VectorNumber_Vporth 25
#define VectorNumber_Vportj 24
#define VectorNumber_VReserved23 23
#define VectorNumber_Vatd0 22
#define VectorNumber_Vsci1 21
#define VectorNumber_Vsci0 20
#define VectorNumber_Vspi0 19
#define VectorNumber_Vtimpaie 18
#define VectorNumber_Vtimpaaovf 17
#define VectorNumber_Vtimovf 16
#define VectorNumber_Vtimch7 15
#define VectorNumber_Vtimch6 14
#define VectorNumber_Vtimch5 13
#define VectorNumber_Vtimch4 12
#define VectorNumber_Vtimch3 11
#define VectorNumber_Vtimch2 10
#define VectorNumber_Vtimch1 9
#define VectorNumber_Vtimch0 8
#define VectorNumber_Vrti 7
#define VectorNumber_Virq 6
#define VectorNumber_Vxirq 5
#define VectorNumber_Vswi 4
#define VectorNumber_Vtrap 3
#define VectorNumber_Vcop 2
#define VectorNumber_Vclkmon 1
#define VectorNumber_Vreset 0
展开全部
一般都是exception的章节里面,或者看BSP代码相关的.h里面看那些宏即可。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
第一章,1.6Resets and Interrupts
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
嗯 楼上那位列出的那个文件 里面的#define 就是了
不过你要看懂里面的名字的意思 像SCI PIT SPI CAN PORT 那些
不过你要看懂里面的名字的意思 像SCI PIT SPI CAN PORT 那些
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
32132321312
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询