智能车制作
标题:
xs128的中断怎么写?
[打印本页]
作者:
machuan20082006
时间:
2011-4-18 11:08
标题:
xs128的中断怎么写?
void interrupt 16的意思是什么,对于中断一点不懂,请求各位赐教!!!
作者:
yyyzrxh
时间:
2013-4-18 16:17
void interrupt 16是中断号为16的中断,打开单片机的头文件,可以看到中断号
/**************** 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_VReserved65 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
例如中断0是复位reset。
作者:
飞卡搬砖小工
时间:
2013-4-25 00:37
define VectorNumber_Vtimovf 16
定时器溢出中断
作者:
牛牛爱向阳
时间:
2013-4-30 21:51
无意中帮到了我,呵呵,谢谢
欢迎光临 智能车制作 (http://dns.znczz.com/)
Powered by Discuz! X3.2