Other Parts Discussed in Thread: HALCOGEN
Hi, there. I only can make SPI (not mibspi) work for the polling mode, code is something like
while ((spiREG1->FLG & 0x0200) == 0);
spiREG1->DAT1 = 0x1111 | 0x10010000; //0x1111 is the data
while ((spiREG3->FLG & 0x0100) == 0);
printf("%x\n", spiREG3->BUF & 0xFFFF);
But I do not make the interrupt way work, the code is
while ((spiREG1->FLG & 0x0200) == 0);
spiREG1->DAT1 = 0x1111 | 0x10010000; // This transmission is successed
while(1); // I should get interrupt inside notification.c here.
where SPI1 is the master and SPI3 is the slave. I enable the SPIINT0 RX interrupt bit, which is bit 8, then I enable the VIM channel 37 and 38, which are mibspi3 low and high with IRQ. I call _enable_IRQ() in my init process. However, I cannot get interrupt in the notification.c, I see there are 2 functions, spiEndNotification() and spiNotification(), both of them cannot get the interrupt. By the way, what's the difference of this two?
Thanks.
