SI4432无法进入中断
时间:10-02
整理:3721RD
点击:
void main(void) { U8 ItStatus1,ItStatus2; U16 delay; U8 length,temp8; U8 payload[10]; //Initialize the MCU: // - set IO ports for the Software Development board // - set MCU clock source // - initialize the SPI port // - turn ofF LEDs MCU_Init(); /* ======================================================== * * Initialize the Si443x ISM chip * * ======================================================== */ //Turn on the radio by pulling down the PWRDN pin SDN = 0; //Wait at least 15ms befory any initialization SPI commands are sent to the radio // (wait for the power on reset sequence) for (temp8=0;temp8<15;temp8++) { for(delay=0;delay<10000;delay++); } //read interrupt status registers to clear the interrupt flags and release NIRQ pin ItStatus1 = SpiReadRegister(0x03); //read the Interrupt Status1 register ItStatus2 = SpiReadRegister(0x04); //read the Interrupt Status2 register //SW reset SpiWriteRegister(0x07, 0x80); //write 0x80 to the Operating & Function Control1 register //wait for POR interrupt from the radio (while the nIRQ pin is high) while ( NIRQ == 1); } 攫取的一端程序 NIRQ总为1,根本就进入不了中断 这程序为什么进入不了中断了? 我用的是的C8051F931的硬件接口三线模式其中SCK 为 P1.0 SDI P1.1 SDO P2.2 NSELP1.4 想不通啊 哪位大哥做过的?赐教一下感激不尽! 搞通了 自己真是个天才 小编是怎么解决的? 小编是怎么解决的 求教 小编是怎么解决这个问题的 栏目分类
|