InitAdc();
scib_fifo_init();
ADC_init();
EALLOW; // This is needed to write to EALLOW protected register
PieVectTable.ADCINT = &adc_isr;
//PieVectTable.SCIRXINTB=&scibRxFifoIsr;
PieVectTable.SCITXINTB= &scibTxFifoIsr;
EDIS;
PieCtrlRegs.PIECTRL.bit.ENPIE = 1; // Enable the PIE block
PieCtrlRegs.PIEIER1.bit.INTx6 = 1; //adc中断1.6
//PieCtrlRegs.PIEIER9.bit.INTx3=1; // PIE Group 9, INT3
PieCtrlRegs.PIEIER9.bit.INTx4=1; // 9.4发送中断
IER |= M_INT1; // Enable CPU Interrupt 1
IER |= M_INT9; // Enable CPU INT
EINT; // Enable Global interrupt INTM
ERTM; // For this example, init the ADC