#include"
MC9S12XEP100.h"
void Interrup_priority(void)
{
//INT_CFADDR:Interrupt Request Configuration Address Register
//INT_CFDATA0-7:Interrupt Request Configuration Data Registers
INT_CFADDR = 0xD0; //选择中断所在的组别,0xD0,D表示组别
INT_CFDATA2 = 7; //选择该组别中的第2个中断,串口1,设置其优先级为7
//INT_CFDATAn中的n,由中断地址的低四位除以2得到
//串口1的中断地址是0x0000FFD4,除以2为2
//中断地址可以从MC9S12XEP100.h中找到
//优先级的数字越大,级别越高
INT_CFADDR = 0xD0;
INT_CFDATA3 = 7; //串口0,MTi的数据接口
INT_CFADDR=0x80;
INT_CFDATA2 = 7; //串口5,2号点击
INT_CFADDR = 0x80;
INT_CFDATA3 = 7; //串口4,1号电机
INT_CFADDR = 0x50;
INT_CFDATA3 = 7; //串口7,3号电机,0x0000FF56
INT_CFADDR = 0xB0;
INT_CFDATA7= 7; // SPI1,中断地址:0x0000FFBE
}